You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Makundi <ma...@koodaripalvelut.com> on 2009/09/29 08:28:56 UTC

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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Question about wicket validation

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
So validateComponents() validates also nested components if current
form depends on them?

**
Martin

2009/9/29 Jonathan Locke <jo...@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-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Question about wicket validation

Posted by Jonathan Locke <jo...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org