You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Igor Vaynberg <ig...@gmail.com> on 2010/02/11 18:02:37 UTC

Re: expecting different behavior from form validation - potential bug?

please create a quickstart and attach it to jira

-igor

On Thu, Feb 11, 2010 at 6:53 AM, Antoine van Wel
<an...@gmail.com> wrote:
> hi,
>
> In a nested form the onValidate() is overridden.
> It sets an error message on a component inside this form - so not on
> the form itself.
>
> However the submit on the form itself is executed as if no error
> exists. What I see when debugging is that hasErrorMessages on the
> inside nested form returns false. Is this correct? Should I explicitly
> set an error on the form, or something else to indicate the form
> itself has an error?
>
> ..using 1.4.6
>
>
> Antoine.
>
> ---------------------------------------------------------------------
> 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: expecting different behavior from form validation - potential bug?

Posted by Riyad Kalla <rk...@gmail.com>.
Antoine,

I think this was discussed 3 days ago in the thread titled
"Form#anyComponentError change in 1.4 breaks validation" (Russel
Morrisey), basically noting that in a recent release of Wicket, the
form "onError" behavior was changed to checking for errors on ANY
component in the form, to just Form-based components.

Related JIRA Issues:
http://issues.apache.org/jira/browse/WICKET-2202
http://issues.apache.org/jira/browse/WICKET-2026

And eventually this issue created:
https://issues.apache.org/jira/browse/WICKET-2734


Hope that helps incase you wanted to jump in on any of that.

-R


On Thu, Feb 11, 2010 at 10:02 AM, Igor Vaynberg <ig...@gmail.com> wrote:
> please create a quickstart and attach it to jira
>
> -igor
>
> On Thu, Feb 11, 2010 at 6:53 AM, Antoine van Wel
> <an...@gmail.com> wrote:
>> hi,
>>
>> In a nested form the onValidate() is overridden.
>> It sets an error message on a component inside this form - so not on
>> the form itself.
>>
>> However the submit on the form itself is executed as if no error
>> exists. What I see when debugging is that hasErrorMessages on the
>> inside nested form returns false. Is this correct? Should I explicitly
>> set an error on the form, or something else to indicate the form
>> itself has an error?
>>
>> ..using 1.4.6
>>
>>
>> Antoine.
>>
>> ---------------------------------------------------------------------
>> 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
>
>

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