><binding name="validators" value="validator:int,
> required, maximum=5" />

Please try replacing validator by validators.
validator is for ValidField.

Shing



--- "Firas A." <[EMAIL PROTECTED]> wrote:

> Hello,
>  
> I get ClassCastException
> (org.apache.tapestry.valid.IntValidator) when
> trying to validate a field. Below is the code I'm
> using.
>  
> Page class:
>  @Bean
>  public abstract ValidationDelegate
> getValidationDelegate();
>  
> Page spec:
> <component id="AddToCartForm" type="Form">
> ...
>  <binding name="delegate"
> value="beans.validationDelegate" />
> </component>
>  
> <component id="QuantityField" type="TextField">
> <binding name="displayName" value="message:Quantity"
> />
> <binding name="value" value="ognl:quantity" /> <!--
> this property is int -->
> <binding name="translator" value="translator:number"
> />
> <binding name="validators" value="validator:int,
> required, maximum=5" />
> </component>
>  
> Thnaks for your time!
>  
> </Firas>
> 

Home page :
  http://uk.geocities.com/matmsh/index.html


                
___________________________________________________________ 
The all-new Yahoo! Mail goes wherever you go - free your email address from 
your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to