validating integer, java.lang.NoSuchMethodException

2010-07-12 Thread Jake Vang
hi, i am trying to validate an integer field (int primitive type) on a POJO (i.e. MyPojo.integer). i have the validation defined in --validation.xml as follows. ... Integer is required! ... when the form posts to the action, if the value of is left blank, i keep seeing a java.lang.NoSuc

Re: validating integer, java.lang.NoSuchMethodException

2010-07-12 Thread Jake Vang
a workaround to this problem is to have a string field in the Action class to represent MyPojo.integer. using this approach, the second set of validation rules below work 100% and i no longer see the NoSuchMethodException. however, the drawback is that now i have to transfer this to my backing bean