You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by sabina_12 <sa...@gmail.com> on 2012/06/01 14:47:29 UTC
get PageReference for ModalWinow
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org