I've given you all about a week's break. So, here I am again!
I'm using the Validator Framework, DynaValidatorActionForms, & DispatchActions. Since, I'm using the Dyna'Forms, I have the Validator Framework's validator.xml form definition mapped to the ActionMapping's path, instead of the formBean name. And, my ActionMapping validate attribute is set to "true".
The problem is...
For some of my JSP pages, On Load, I need to go to an action class to get values from DB to pre-pop fields in the forms, however, in this particular "page entry" event I do "not" need the Validation Framework to validate.
Would anyone happen to know if there is a way to turn on/off the validate attribute on the ActionMapping? If that cannot be done, is there a way to tell the Validator not to do anything by defining something in the validate.xml?
you can use validwhen (or requiredif) for every single field of the validation. this way is really painful though. i usually have 2 action-mappings mapped to the same DispatchedAction class (2 Actions if you're using Action) and same form-bean. for example:
<action path="/search/entry" name="SearchForm" type="com.my.actions.SearchAction" validate="false" parameter="submitAction"/> (the validate="false" is optional)