Hello,

I have a ModalWindow which can be opened from two different places in my
application.
        
modalWindowForUpload.setPageCreator(new ModalWindow.PageCreator() {
            @Override
            public Page createPage() {
                try {
                    return new
UploadFisierModal(ClassName1.this.getPageReference(),modalWindowForUpload);
                } catch (Exception ex) {
                    System.out.println(ex.getMessage());
                    return null;
                }
            }
        });
And the constructor of the modal window:
    public UploadFisierModal(final PageReference modalWindowPage,  
            final ModalWindow window)

My question is how can i know from my ModalWindow which page opened it. Is
there a way to compare the PageReference modalWindowPage with ClassName1?

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/get-PageReference-for-ModalWinow-tp4649648.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