You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Lois GreeneHernandez <lg...@knoa.com> on 2015/12/17 23:38:08 UTC
onError
Hello All,
So I've determined that the reason that my onsubmit appears not to work is because one of my components is throwing an error. I put an onError on my submit button and a callOnError on my form. I'm not sure which is causing the problem. Also, while I've looked at threads, I'm not seeing any exceptions thrown. I'm not seeing anything that tells me what's causing my error and how to fix it.
BTW, I've tried putting the code in try catch clauses to no avail because no exception is being thrown.
Any advice on how to figure out what the error is would be greatly appreciated.
Thanks
Lois
Re: onError
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
This means that some of your form components is invalid, i.e. its
conversion or validation has failed.
You can use a FeedbackPanel to render the feedback messages or just "new
FeedbackCollector(page).collect()" to get the list of errors in your
#onError() callback.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Thu, Dec 17, 2015 at 11:38 PM, Lois GreeneHernandez <
lgreenehernandez@knoa.com> wrote:
> Hello All,
>
> So I've determined that the reason that my onsubmit appears not to work is
> because one of my components is throwing an error. I put an onError on my
> submit button and a callOnError on my form. I'm not sure which is
> causing the problem. Also, while I've looked at threads, I'm not seeing
> any exceptions thrown. I'm not seeing anything that tells me what's
> causing my error and how to fix it.
>
> BTW, I've tried putting the code in try catch clauses to no avail because
> no exception is being thrown.
>
> Any advice on how to figure out what the error is would be greatly
> appreciated.
>
> Thanks
>
> Lois
>