You can try something like

                        private boolean closedByCloseButton = false;
                        ModalWindow modalWindow = ....

                        modalWindow.setCloseButtonCallback(new 
ModalWindow.CloseButtonCallback(){
                                private static final long serialVersionUID = 1L;
                                public boolean 
onCloseButtonClicked(@SuppressWarnings("unused") AjaxRequestTarget target) {
                                        closedByCloseButton = true;
                                        return true;
                                }
                        });

                        modalWindow.setWindowClosedCallback(new 
ModalWindow.WindowClosedCallback() {
                                private static final long serialVersionUID = 1L;
                                public void onClose(AjaxRequestTarget target) {
                                        if (!closedByCloseButton) {
                                                setResponsePage....
                                        }
                                }
                        }
                        );

I hope that leads you to the solution for your problem

Stefan Lindner

-----Ursprüngliche Nachricht-----
Von: Doug Leeper [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 1. November 2007 15:55
An: [email protected]
Betreff: ModalWindow question


I would like to use a ModalWindow to prompt for a choice of action for the user.

Upon selecting the choice, I would like to close the ModalWindow then redirect 
the user to a page based on the selected choice.

I know you can use setResponsePage in the Link on the ModalWindow page...so how 
would one go about doing this?

Thanks in advance,
- Doug
--
View this message in context: 
http://www.nabble.com/ModalWindow-question-tf4731828.html#a13530210
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to