I don't believe validwhen works if you're using it with Spring MVC. You might check the documentation on springmodules.dev.java.net to make sure.
Matt On Wed, Apr 30, 2008 at 9:59 AM, Leo Barrientos C. <[EMAIL PROTECTED]> wrote: > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]