Hi, I have a form with two fields, when one is null the other is required, so I need to check one against the other. I´ve done the config below, but nothing happens:
<field property="nome" depends="validwhen,required,mask"> <arg0 key="cab.nome"/> <arg1 key="mask.nome"/> <var> <var-name>test</var-name> <var-value>((codigo == null) or (*this* != null))</var-value> </var> <var> <var-name>mask</var-name> <var-value>${alfa}</var-value> </var> </field> <field property="codigo" depends="validwhen,required,mask"> <arg0 key="cab.codigo"/> <arg1 key="mask.codigo"/> <var> <var-name>test</var-name> <var-value>((nome == null) or (*this* != null))</var-value> </var> <var> <var-name>mask</var-name> <var-value>${numInst}</var-value> </var> </field> -- View this message in context: http://www.nabble.com/Struts-validation-%28validwhen%29-tp25754823p25754823.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