How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior
To me modalWindow.close(new AjaxRequestTarget(containerPage)) doesn't work... And RequestCycle.get().getRequestTarget() returns null; Please help... Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior
Yes .. don't do new AjaxTarget... use the one you are given, why not? It is an ajax event, no? ** Martin 2010/3/19 Martin Asenov mase...@velti.com: To me modalWindow.close(new AjaxRequestTarget(containerPage)) doesn't work... And RequestCycle.get().getRequestTarget() returns null; Please help... Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior
No, it's something like: new Timer().schedule(new TimerTask() { public void run() { modal.close(the target); } }, 12); Best, Martin -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Friday, March 19, 2010 5:23 PM To: users@wicket.apache.org Subject: Re: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior Yes .. don't do new AjaxTarget... use the one you are given, why not? It is an ajax event, no? ** Martin 2010/3/19 Martin Asenov mase...@velti.com: To me modalWindow.close(new AjaxRequestTarget(containerPage)) doesn't work... And RequestCycle.get().getRequestTarget() returns null; Please help... Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior
So how does the server communicate the close call to the client? Martijn On Fri, Mar 19, 2010 at 4:29 PM, Martin Asenov mase...@velti.com wrote: No, it's something like: new Timer().schedule(new TimerTask() { public void run() { modal.close(the target); } }, 12); Best, Martin -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Friday, March 19, 2010 5:23 PM To: users@wicket.apache.org Subject: Re: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior Yes .. don't do new AjaxTarget... use the one you are given, why not? It is an ajax event, no? ** Martin 2010/3/19 Martin Asenov mase...@velti.com: To me modalWindow.close(new AjaxRequestTarget(containerPage)) doesn't work... And RequestCycle.get().getRequestTarget() returns null; Please help... Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior
Here's the issue: Modal window is displayed. The user gets idle for a while. I've registered the modal by its session ID. When the user clicks on some AjaxLink/AjaxButton and I want to see if session is invalid, so I've overridden sessionDestroyed() in the webapp, which calls a method that should close the modal, just like this: modal.close((AjaxRequestTarget) RequestCycle.get().getRequestTarget()); but it doesn't work. Best, Martin -Original Message- From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] Sent: Friday, March 19, 2010 5:42 PM To: users@wicket.apache.org Subject: Re: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior So how does the server communicate the close call to the client? Martijn On Fri, Mar 19, 2010 at 4:29 PM, Martin Asenov mase...@velti.com wrote: No, it's something like: new Timer().schedule(new TimerTask() { public void run() { modal.close(the target); } }, 12); Best, Martin -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Friday, March 19, 2010 5:23 PM To: users@wicket.apache.org Subject: Re: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior Yes .. don't do new AjaxTarget... use the one you are given, why not? It is an ajax event, no? ** Martin 2010/3/19 Martin Asenov mase...@velti.com: To me modalWindow.close(new AjaxRequestTarget(containerPage)) doesn't work... And RequestCycle.get().getRequestTarget() returns null; Please help... Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org