Re: Refreshing my Notification panel's model

2016-09-22 Thread Sandor Feher
Hi Martin, #updateAjaxAttributes() is neat solution works like a charm. Thank you!! Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refreshing-my-Notification-panel-s-model-tp4675548p467.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Issue using Wicket Bootstap Less

2016-09-22 Thread Martin Grigorov
Merged! Thanks a lot! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Sep 22, 2016 at 1:11 PM, Erik Strid wrote: > Hi Martin, > > I have created a pull request, see > https://github.com/l0rdn1kk0n/wicket-bootstrap/pull/636 > > Regards > Erik > > On Tue, Sep

Re: Concerns about different render strategies and latency

2016-09-22 Thread Martin Grigorov
Hi, The page id is in the url for a reason - it keeps the state of your page. If the page is stateless then there is no pageId and no redirect. So both bots are happy and performance is better. But Wicket's power is in its state management. If you render a stateful page without the pageId then the

Re: Refreshing my Notification panel's model

2016-09-22 Thread Martin Grigorov
Hi, If you use polling (with AjaxSelfUpdatingBehavior) then you refresh the session with every http request. You can use WebSocket instead. WebSocket connections do not affect the session lifetime and you can just push a message from the server side once there is something for the client. Another

Refreshing my Notification panel's model

2016-09-22 Thread Sandor Feher
Hi, Tightly coupled with my previous topic I'm looking for a proper solution for refreshing my panel's model and show if it must be showed. In a nutshell I have a hibernate entity which handled a sp

Re: Handling session timeout properly

2016-09-22 Thread Sandor Feher
Hi Martin, I checked up your code. I'm afraid this will not solve my problem because does not detect "normal" user activity. Ie. when user click on some page then the session timeout must be reset. I'm pretty sure that I must change my approach how my notification panel handled. -- View this mes

Re: Handling session timeout properly

2016-09-22 Thread Martin Spielmann
You could extend your existing AjaxSelfUpdatingTimerBehavior so it has an information about your desired timeout with very little overhead. On every update, you could decrement your remaining session time a little bit. I created the following gist. I think the code is more explanatory than an ema

Concerns about different render strategies and latency

2016-09-22 Thread Dirk Forchel
Today, we've had a long discussion at our site about dos and don'ts using Wicket. And it came up, that the default render strategy REDIRECT_TO_BUFFER used for Wicket applications might not be the best solution for everyone. >From a SEO point of view, what's bothering me much more than the additiona

Re: Handling session timeout properly

2016-09-22 Thread Sandor Feher
Thanks, looks very useful! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Handling-session-timeout-properly-tp4675541p4675544.html Sent from the Users forum mailing list archive at Nabble.com. - To u

Re: Handling session timeout properly

2016-09-22 Thread Ernesto Reinaldo Barreiro
https://github.com/reiern70/antilia-bits/tree/master/client-sign-out-parent There was some logic in here to trigger a signout from client side. On Thu, Sep 22, 2016 at 12:38 PM, Sandor Feher wrote: > Hi, > > My application have some AjaxSelfUpdatingTimerBehavior in its header panel > so my sess

Re: Issue using Wicket Bootstap Less

2016-09-22 Thread Erik Strid
Hi Martin, I have created a pull request, see https://github.com/l0rdn1kk0n/wicket-bootstrap/pull/636 Regards Erik On Tue, Sep 20, 2016 at 9:08 PM, Martin Grigorov wrote: > Hi Erik, > > Many thanks for investigating this! > > Please create a Pull Request! > It seems you already know how to fix

Handling session timeout properly

2016-09-22 Thread Sandor Feher
Hi, My application have some AjaxSelfUpdatingTimerBehavior in its header panel so my session never expires due to ajax requests. Somehow I would like to get rid of it. How is it possible to fence ajax request from the real request ? (As I realized there is no way.) I need an advice how to handle t