Re: How can I refresh a parent Page after using PopupCloseLink in a popup window?
class mypopupcloselink extends popupcloselink { oncomponenttag(tag) { super.oncomponenttag(tag); tag.put(onclick,window.parent.refresh();); } } Thanks :) Why didn't I think of this.. arghfl :) -- Edvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I refresh a parent Page after using PopupCloseLink in a popup window?
My wicket program also have the same question. Could anyone kindly help us? Thanks Edvin Syse wrote: Hi, I have a Link with PopupSettings to open another window, and then there is a PopupCloseLink on the new page which closes the popupwindow again. Is there a way to make the parent browserwindow refresh when I close the popupwindow also? Using ModalWindow makes this easy but I cannot have a ModalWindow in this usecase. -- Edvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-can-I-refresh-a-%22parent%22-Page-after-using-PopupCloseLink-in-a-popup-window--tp15574066p15608933.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I refresh a parent Page after using PopupCloseLink in a popup window?
Use a windowclosedcallback. Something like this should do the trick modalwindow.setWindowClosedCallback(new WindowClosedCallback() { private static final long serialVersionUID = 1L; @Override public void onClose(AjaxRequestTarget target) { target.addComponent(parentPage); } }); Maurice On Thu, Feb 21, 2008 at 1:17 PM, JohnSmith333 [EMAIL PROTECTED] wrote: My wicket program also have the same question. Could anyone kindly help us? Thanks Edvin Syse wrote: Hi, I have a Link with PopupSettings to open another window, and then there is a PopupCloseLink on the new page which closes the popupwindow again. Is there a way to make the parent browserwindow refresh when I close the popupwindow also? Using ModalWindow makes this easy but I cannot have a ModalWindow in this usecase. -- Edvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-can-I-refresh-a-%22parent%22-Page-after-using-PopupCloseLink-in-a-popup-window--tp15574066p15608933.html 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]
Re: How can I refresh a parent Page after using PopupCloseLink in a popup window?
Thanks ! But the modalwindow can't be used in this case. Could anyone know how to use Popup window rather than modal window ? Thanks~ modal window? Mr Mean wrote: Use a windowclosedcallback. Something like this should do the trick modalwindow.setWindowClosedCallback(new WindowClosedCallback() { private static final long serialVersionUID = 1L; @Override public void onClose(AjaxRequestTarget target) { target.addComponent(parentPage); } }); Maurice On Thu, Feb 21, 2008 at 1:17 PM, JohnSmith333 [EMAIL PROTECTED] wrote: My wicket program also have the same question. Could anyone kindly help us? Thanks Edvin Syse wrote: Hi, I have a Link with PopupSettings to open another window, and then there is a PopupCloseLink on the new page which closes the popupwindow again. Is there a way to make the parent browserwindow refresh when I close the popupwindow also? Using ModalWindow makes this easy but I cannot have a ModalWindow in this usecase. -- Edvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-can-I-refresh-a-%22parent%22-Page-after-using-PopupCloseLink-in-a-popup-window--tp15574066p15608933.html 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] -- View this message in context: http://www.nabble.com/How-can-I-refresh-a-%22parent%22-Page-after-using-PopupCloseLink-in-a-popup-window--tp15574066p15611509.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I refresh a parent Page after using PopupCloseLink in a popup window?
class mypopupcloselink extends popupcloselink { oncomponenttag(tag) { super.oncomponenttag(tag); tag.put(onclick,window.parent.refresh();); } } -igor On Tue, Feb 19, 2008 at 11:24 AM, Edvin Syse [EMAIL PROTECTED] wrote: Hi, I have a Link with PopupSettings to open another window, and then there is a PopupCloseLink on the new page which closes the popupwindow again. Is there a way to make the parent browserwindow refresh when I close the popupwindow also? Using ModalWindow makes this easy but I cannot have a ModalWindow in this usecase. -- Edvin - 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]