I think that this may work for the expression validator because you are
supplying an expression.

Maybe I need to use an expression too, but I don't know how to evaluate it
within my Java class for Validator.


Lukasz Lenart wrote:
> 
> 2009/5/20 manub <e.bla...@reply.it>:
>> I've written a custom field validator, which needs other field values to
>> validate his field. I need a way to pass that values to that field
>> validator.
> 
> Did you try to use param tag as below?
> 
> <field name="employee.employeeType">
>   <field-validator type="expression" short-circuit="false">
>     $...@pl.org.lenart.ems.model.employeetype@.value()
> != 'dd'}
>     error.employee.type.required
>     <message />
>   </field-validator>
> </field>
> 
> 
> 
> Regards
> -- 
> Lukasz
> http://www.lenart.org.pl/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/passing-form-parameters-to-a-custom-validator-tp23615918p23649333.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to