Hello, validwhen works form anybody in appfuse/spring/hibernate?
I set the <validator name="validwhen"
classname="org.apache.struts.validator.validwhen.ValidWhen"
method="validateValidWhen"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest"
msg="errors.required"/>
in validator-rules.xml
And set the validator.xml
<field property="modelo.id" depends="validwhen">
<arg0 key="modelo.id" resource="false"/>
<msg name="validwhen" key="error.validwhen"/>
<var>
<var-name>test</var-name>
<var-value>(*this* != "0")</var-value>
</var>
</field>
But doesnot work (there is a select box called modelo.id)
Any idea?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]