Hi Bruce,

This is just one solution :
Have a look at http://pastebin.com/03DF5pcw


François Meillet
Formation Wicket - Développement Wicket





Le 21 mai 2014 à 16:15, Bruce Lombardi <brlom...@gmail.com> a écrit :

> Hi,
> 
> 
> 
> I have a form with several question that a user must answer. If the answers
> are correct, an email is sent to the user and the user is returned to the
> login page. That's a bit abrupt for the user and I  would like to provide a
> simple modal dialog that confirms that the email is sent before sending them
> to the home page. However, if the answers to the questions are not correct,
> then a feedback panel must be displayed.
> 
> 
> 
> I've looked at the approaches to providing a confirmation panel in this link
> https://cwiki.apache.org/confluence/display/WICKET/Getting+user+confirmation
> and other places, but I am having a problem with the approach. The
> JavaScript seems to run as soon as the button is clicked - before onSubmit
> or onValidate runs on the server. So I can't stop the pop-up from showing
> if the questions were not answered correctly.
> 
> 
> 
> Does anyone know a way I can display the modal dialog only after validation
> has run?
> 
> 
> 
> Thanks,
> 
> 
> 
> Bruce
> 
> 
> 

Reply via email to