Re: How can I refresh a parent Page after using PopupCloseLink in a popup window?

2008-02-22 Thread Edvin Syse

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?

2008-02-21 Thread JohnSmith333

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?

2008-02-21 Thread Maurice Marrink
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?

2008-02-21 Thread JohnSmith333

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?

2008-02-21 Thread Igor Vaynberg
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]