Question about wicket validation

2009-09-29 Thread Martin Makundi
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

2009-09-29 Thread Jonathan Locke

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

2009-09-29 Thread Martin Makundi
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