//Dialog associated with a save button
      Dialog = new MessageDialog("Dialog", "Warning", "Message contents
here",
                DialogButtons.OK, DialogIcon.WARN) {
            public void onClose(AjaxRequestTarget target, DialogButton
button) {
                if (button != null && button.match(LBL_OK)) {
                    target.prependJavaScript("return saveClick()");
                    saveButton.add(new AttributeModifier("onclick", "return
saveClick()"));
                    target.add(saveButton);
                    //note: predefined button text are:
                    //LBL_OK, LBL_CANCEL, LBL_YES, LBL_NO, LBL_CLOSE,
LBL_SUBMIT
                }
            }
        }; 


        add(Dialog);
Now before I show the dialog using Dialog.open(target)

is there a way i can update the contents of the dialog?

java java-ee wicket

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modifying-the-message-contents-of-a-MessageDialog-tp4671101.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