Re: passing form parameters to a custom validator

2009-05-21 Thread manub
--- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > >

Re: passing form parameters to a custom validator

2009-05-21 Thread stanlick
truts > 2.1.6. > > Thank you. > -- > View this message in context: > http://www.nabble.com/passing-form-parameters-to-a-custom-validator-tp23615918p23615918.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --

Re: passing form parameters to a custom validator

2009-05-21 Thread Lukasz Lenart
2009/5/21 manub : > I think that this may work for the expression validator because you are > supplying an expression. I've been thinking about tag, with it you can set any field in your validator and it can be an OGNL expression. Regards -- Lukasz http://www.lenart.org.pl/ --

Re: passing form parameters to a custom validator

2009-05-21 Thread manub
g > 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.

Re: passing form parameters to a custom validator

2009-05-20 Thread Lukasz Lenart
2009/5/20 manub : > 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? $...@pl.org.lenart.ems.model.employeetype@.value() != 'dd'} error.emplo

Re: passing form parameters to a custom validator

2009-05-20 Thread manub
d validator. -- View this message in context: http://www.nabble.com/passing-form-parameters-to-a-custom-validator-tp23615918p23630526.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe,

Re: passing form parameters to a custom validator

2009-05-20 Thread Lukasz Lenart
2009/5/20 manub : > Yes, I did. But in the action the string takes the value "${field}" and not > the field value. Frankly, I don't understand, are you trying to pass data from validator xml configuration to action? Regards -- Lukasz http://www.lenart.org.pl/ --

Re: passing form parameters to a custom validator

2009-05-20 Thread manub
- > 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

Re: passing form parameters to a custom validator

2009-05-20 Thread Lukasz Lenart
2009/5/19 manub : > I'm trying to write a custom field validator which needs other fields to > validate the field I need to validate. How can I pass field values (and not > static params) to a field validator in the validation xml? I'm using Struts > 2.1.6. Did you try ${fieldFromAction} ? Regar

passing form parameters to a custom validator

2009-05-19 Thread manub
ext: http://www.nabble.com/passing-form-parameters-to-a-custom-validator-tp23615918p23615918.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For