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>

Reply via email to