struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <>
Subject Re: non-HTML attributes
Date Thu, 23 Dec 2004 03:30:04 GMT
There is a prepareOtherAttributes() method that you can override to add
attributes you require, so you could easily create your own custom
implementation that extends TextareaTag. You would have to either modify the
struts tld to use your custom implementation and add the maxlength
parameter - or set up your own TLD for this custom tag.


----- Original Message ----- 
From: "Freddy Villalba A." <>
To: "Struts Users Mailing List" <>
Sent: Wednesday, December 22, 2004 7:38 PM
Subject: non-HTML attributes

> Hello everybody,
> Since TEXTAREA doesn't have a MAXLENGTH attribute (which is quite useful,
> the way), I wanted to implement my own solution using behaviours (hfc) to
> alter the standard TEXTAREA element. However, I've realized that this is
> compatible with Struts' tag, since TLD validation throws a validation
> exception (it detects an attribute that does not belong to the standard
> element nor the tag specification). I'd really like to use this
> Validator framework or anything else). Is it possible?
> I've thought about turning off XML validation. Not sure if this is
> with Struts and, if possible, I'm not sure I'd buy that with the implied
> tradeoff.
> Ideas anybody?
> Regards,
> Freddy.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message