You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jeff Emminger <ma...@jeffemminger.com> on 2004/08/31 23:46:15 UTC

question about StringValidator

hi all,

i notice StringValidator has no method for setting the max length of the 
string.  is it more common/better to just use the html input's maxlength 
attribute, or should i subclass StringValidator?

thanks,
jeff


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


Re: question about StringValidator

Posted by Jamie Orchard-Hays <ja...@mac.com>.
I think that's why it's left out. You can just set max length in the html
and be done with it. Why process back on the server when it's built into
html?


----- Original Message ----- 
From: "Jeff Emminger" <ma...@jeffemminger.com>
To: <ta...@jakarta.apache.org>
Sent: Tuesday, August 31, 2004 5:46 PM
Subject: question about StringValidator


> hi all,
>
> i notice StringValidator has no method for setting the max length of the
> string.  is it more common/better to just use the html input's maxlength
> attribute, or should i subclass StringValidator?
>
> thanks,
> jeff
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


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