Question about wicket validation
Hi! If a form validator depends on a nested form's components, it will assume they are valid because the nested form's components are validated after the parent form? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Question about wicket validation
protected final void validate() { if (isEnabledInHierarchy() isVisibleInHierarchy()) { // since this method can be called directly by users, this additional check is needed validateComponents(); validateFormValidators(); onValidate(); validateNestedForms(); } } MartinM wrote: Hi! If a form validator depends on a nested form's components, it will assume they are valid because the nested form's components are validated after the parent form? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Question-about-wicket-validation-tp25657602p25669362.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Question about wicket validation
So validateComponents() validates also nested components if current form depends on them? ** Martin 2009/9/29 Jonathan Locke jonathan.lo...@gmail.com: protected final void validate() { if (isEnabledInHierarchy() isVisibleInHierarchy()) { // since this method can be called directly by users, this additional check is needed validateComponents(); validateFormValidators(); onValidate(); validateNestedForms(); } } MartinM wrote: Hi! If a form validator depends on a nested form's components, it will assume they are valid because the nested form's components are validated after the parent form? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Question-about-wicket-validation-tp25657602p25669362.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org