protected void onSubmit() {
       if (trainingmode()){
          AjaxRequestTarget target = 
RequestCycle.get().find(AjaxRequestTarget.class);

          MessageDialog dialog = new MessageDialog("dialog", "Notice",
"Decision Matches "  ,
             DialogButtons.OK_CANCEL, DialogIcon.WARN) {

         public void onClose(  AjaxRequestTarget target, DialogButton
button) {

         }
     };
     
     dialog.open(target);
          }

 get an error at dialog.open(target) that says : Caused by:
java.lang.NullPointerException at
com.googlecode.wicket.jquery.ui.widget.dialog.MessageDialog.onOpen(MessageDialog.java:170)
at com.googlecode.wicket.jquery.ui.widget.dialog.AbstractDialog.open(A

I am trying to have an AjaxRequestTarget modal window pop up appear however
i do not have access to AjaxRequestTarget from within the onsubmit()

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Generating-a-popup-dialog-in-OnSubmit-tp4670521.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to