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/09/09 16:16:04 UTC

Re: [solved] StringValidator minimumLength

never mind...forgot about setting "required" property

Jeff Emminger wrote:

> hi all,
> 
> i've set up a StringValidator to have a minimumLength of 1, but it's not 
> throwing an error when i submit with no data...is this not the correct 
> way to do it?
> 
> .page
> <bean name="stringValidator" 
> class="org.apache.tapestry.valid.StringValidator">
>   <set-property name="minimumLength" expression="1"/>
> </bean>
> <component id="inputFirstName" type="ValidField">
>   <binding name="value" expression="firstName"/>
>   <binding name="validator" expression="beans.stringValidator"/>
>   <static-binding name="displayName" value="First"/>
> </component>
> 
> 
> ---------------------------------------------------------------------
> 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