You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Nelson Segura <ns...@gmail.com> on 2010/11/02 00:24:38 UTC
Displaying update error in Wizard step, need ideas
Hello,
I am using the wicket-extensions wizard. On applyState() of a wizard step, I
am calling my back end to update some data.
There is a corner condition under which the update might fail, and we would
like to stay in the current step and display a message.
I thought about overriding the onClick() method of the NextButton(), but it
is declared as final.
Any ideas on how I can abort applyState() and go back to the current step?
- Nelson
Re: Displaying update error in Wizard step, need ideas
Posted by rebecca <ri...@gmail.com>.
Hi again
I found a solution - just add the
"org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete" to
your message file with what ever message you want.
I still don't understand why the wizard must error this message anyway?
Rebecca
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Displaying-update-error-in-Wizard-step-need-ideas-tp3022966p3626038.html
Sent from the Users forum 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
Re: Displaying update error in Wizard step, need ideas
Posted by rebecca <ri...@gmail.com>.
hi Nelson,
Did you find a solution for this one? I have the same problem :-(
Thanks
Rebecca
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Displaying-update-error-in-Wizard-step-need-ideas-tp3022966p3626027.html
Sent from the Users forum 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
Re: Displaying update error in Wizard step, need ideas
Posted by Nelson Segura <ns...@gmail.com>.
Just to clarify, I try setting then setComplete(false), but that creates an
internal error message added by the wizard. I am thinking of creating the
feedback panel for my wizard with a filter to accept only my messages, but I
am not sure if that is the best approach,
-nelson
On Mon, Nov 1, 2010 at 4:24 PM, Nelson Segura <ns...@gmail.com> wrote:
> Hello,
> I am using the wicket-extensions wizard. On applyState() of a wizard step,
> I am calling my back end to update some data.
> There is a corner condition under which the update might fail, and we would
> like to stay in the current step and display a message.
>
> I thought about overriding the onClick() method of the NextButton(), but it
> is declared as final.
>
> Any ideas on how I can abort applyState() and go back to the current step?
>
> - Nelson
>