struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freddy Villalba A." <fvilla...@pericless.com>
Subject RE: non-HTML attributes
Date Wed, 22 Dec 2004 20:47:13 GMT
Yes, Frank. Believe it or not, I know what u mean and I agree with u. ;)

However, in this case, that would mean I'd have to rebuild views (JSP) which
were tightly coupled to Struts tags/forms (time constraints at that time)
and that would take a while.

Indeed, for the moment, I'd decided to use plain JavaScript, but I'd really
like to use the "behaviours" solutions (it's definitely better, more robust
and powerful).

It's sad how this tiny details can become so important at a given time.

I remember a Servlet presentation framework I used for previous projects...
PAJES... it wouldn't complain about this kind of things and had some cool
features. These days, I'm kind of missing it...

Cheers,
Freddy.

P.S.: anybody else? alternatives?

-----Mensaje original-----
De: fzlists@omnytex.com [mailto:fzlists@omnytex.com]
Enviado el: miercoles, 22 de diciembre de 2004 20:51
Para: user@struts.apache.org
Asunto: Re: non-HTML attributes


Solution: Don't use the Struts tags. :)

Seriously, people tend to forget (or don't know to begin with) that they are
NOT required to use Struts.

Alternatively, limit the input via Javascript as an onKeyDown event handler.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Wed, December 22, 2004 2:38 pm, Freddy Villalba A. said:
> 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