wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Lombardi" <brlom...@gmail.com>
Subject How can I display modal dialog only if validation is sucessful?
Date Wed, 21 May 2014 14:15:13 GMT
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

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message