Re: Best practice sought: Register client change at server

2014-07-11 Thread Sven Meier
an AjaxEventBehavior, but I don't have a component to attach it to. You have a page, don't you? Otherwise you can request a resource via Ajax too. Regards Sven On 07/11/2014 02:47 AM, Joachim Schrod wrote: Hi, In a Wicket application I have JQuery code that triggers after a certain time

Re: Best practice sought: Register client change at server

2014-07-11 Thread Martin Grigorov
page.add(new AjaxEventBehavior(my-special-event) {...}); in JS code: jQuery(document).triggerHandler('my-special-event'); Voila! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 11, 2014 at 10:15 AM, Sven Meier s...@meiers.net wrote: an

Re: Best practice sought: Register client change at server

2014-07-11 Thread Joachim Schrod
On 07/11/14 04:44, Ernesto Reinaldo Barreiro wrote: On Fri, Jul 11, 2014 at 2:47 AM, Joachim Schrod jsch...@acm.org wrote: An AjaxEventBehavior would be the right thing, but I don't have a component to attach it to. The worst solution would be a hidden AjaxLink. IMO I simply need to establish

Re: Best practice sought: Register client change at server

2014-07-11 Thread Joachim Schrod
I didn't know that I can introduce my own event names, I thought I had to use one of the pre-defined ones. Thanks for that enlightenment, it works like a charm. Joachim On 07/11/14 12:01, Martin Grigorov wrote: page.add(new AjaxEventBehavior(my-special-event) {...}); in JS code:

Best practice sought: Register client change at server

2014-07-10 Thread Joachim Schrod
Hi, In a Wicket application I have JQuery code that triggers after a certain time of user inactivity. I need to tell server-side about that inactivity. No problem, I thought, just issue an AJAX request. Well, looking around I found several possibilities to do that as a side effect, but no

Re: Best practice sought: Register client change at server

2014-07-10 Thread Ernesto Reinaldo Barreiro
Maybe this can be of some help https://github.com/reiern70/antilia-bits/tree/master/client-sign-out-parent On Fri, Jul 11, 2014 at 2:47 AM, Joachim Schrod jsch...@acm.org wrote: Hi, In a Wicket application I have JQuery code that triggers after a certain time of user inactivity. I need to