You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Richard W. Adams" <RW...@UP.COM> on 2013/06/13 17:49:49 UTC
Validator Can't Find Form Submitting Component
[Re-sending, as I noticed my previous send was an accidental forward, so
probably ended up in the wrong thread. Also adding some more info]
I have a form inside a panel. The form is nested inside another form that
includes the panel. The panel form has a validator which is supposed to
validate only conditionally, depending on how the form was submitted.
When I submit the panel form via an AjaxSubmitLink, the call to
findSubmittingButton() inside the validator returns null, even though I
called panelForm.add(theLiink). Is this expected behavior? I know the
findSubmittingButton() method says "button," but it returns an
IFormSubmittingComponent, so I would expect it could return either a
button or a submitting link.
I need to distinguish between the various links/buttons that can submit
the form. Is this not possible with an AjaxSubmitLink? I'm using Wicket
1.4.17.
**
This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**
Re: Validator Can't Find Form Submitting Component
Posted by Sven Meier <sv...@meiers.net>.
Please upgrade to 1.4.22 first and recheck the problem.
Sven
On 06/13/2013 05:49 PM, Richard W. Adams wrote:
> [Re-sending, as I noticed my previous send was an accidental forward, so
> probably ended up in the wrong thread. Also adding some more info]
>
> I have a form inside a panel. The form is nested inside another form that
> includes the panel. The panel form has a validator which is supposed to
> validate only conditionally, depending on how the form was submitted.
>
>
> When I submit the panel form via an AjaxSubmitLink, the call to
> findSubmittingButton() inside the validator returns null, even though I
> called panelForm.add(theLiink). Is this expected behavior? I know the
> findSubmittingButton() method says "button," but it returns an
> IFormSubmittingComponent, so I would expect it could return either a
> button or a submitting link.
>
> I need to distinguish between the various links/buttons that can submit
> the form. Is this not possible with an AjaxSubmitLink? I'm using Wicket
> 1.4.17.
>
> **
>
> This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
> **
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org