Sorry if these have been covered, I am somewhat new to T5, using 5.0.11. First, onValidate seems to be called once for each form variable, BEFORE the setter is called for that form variable. While I understand that logic, it SEEMS makes things a touch difficult to check the value I want to validate, especially if I want to validate several variables at once, such as if I want to validate two password variables to make sure they are equal, or to verify a login page. I can do something like
onValidateFromPassword(String newPassword) and the assume username was already validated and "set" and then try "newPassword" for the user. This just seems awkward. Is it really intentional that onValidate is called once per form variable and before each setter? I would prefer that all setters are called, the onValidate is called so I can check stuff. Really not sure how this is best to be coded. SECOND: if I want a form reset as a submit button to reset the state of the form (all my fields are @Persist), if I have validation on the fields, pressing "Reset" will trigger Javascript validation and not allow the submit. I looked at the Component Reference on submit and don't see a way to short-circuit validation so I can perform the reset, and start nice and fresh. -- View this message in context: http://www.nabble.com/T5%3A-question-about-onValidate-and-form-reset-tp16809659p16809659.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]