struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
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.

Niall

----- Original Message ----- 
From: "Freddy Villalba A." <fvillalba@pericless.com>
To: "Struts Users Mailing List" <user@struts.apache.org>
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,
by
> 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
not
> compatible with Struts' tag, since TLD validation throws a validation
> exception (it detects an attribute that does not belong to the standard
HTML
> element nor the tag specification). I'd really like to use this
solution(no
> Validator framework or anything else). Is it possible?
>
> I've thought about turning off XML validation. Not sure if this is
possible
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message