Hello,
I have a stateless page, and I would like to periodically refresh a
section of this page.
If I do :
add( new MyPanel( header )
.setOutputMarkupId( true )
.add( new AjaxSelfUpdatingTimerBehavior( Duration.minutes( 2 ) )
);
The page becomes stateless.
If in MyPanel,
Hello,
I have a stateless page, and I would like to periodically refresh a
section of this page.
If I do :
add( new MyPanel( header )
.setOutputMarkupId( true )
.add( new AjaxSelfUpdatingTimerBehavior( Duration.minutes( 2 ) )
);
The page becomes stateless.
If in MyPanel,
Hi,
A Component (inc. Page) is stateless by nature.
On Wed, Sep 7, 2011 at 11:51 AM, Sylvain Vieujot
sylvain.vieu...@gmail.com wrote:
Hello,
I have a stateless page, and I would like to periodically refresh a section
of this page.
If I do :
add( new MyPanel( header )
The component is indeed stateless, but adding the
AjaxSelfUpdatingTimerBehavior prevents it to staying stateless and
generates an exception like :
Last cause: '[Header [Component id = header]]' claims to be stateless
but isn't. Possible reasons: no stateless hint, statefull behaviors
See jolira-tools Wicket Ajax stateless components and behaviors.
You'll have to roll your own timer behavior.
On Wed, Sep 7, 2011 at 6:20 PM, Sylvain Vieujot svieu...@apache.org wrote:
The component is indeed stateless, but adding the
AjaxSelfUpdatingTimerBehavior prevents it to staying
use something like this [1] as a base and build your own timer behavior
[1]
https://github.com/jolira/wicket-stateless/blob/master/stateless/src/main/java/com/google/code/joliratools/StatelessAjaxEventBehavior.java
-igor
On Wed, Sep 7, 2011 at 3:36 AM, Sylvain Vieujot svieu...@apache.org
I will look at this.
Thank you.
On Wed, 2011-09-07 at 08:34 -0700, Igor Vaynberg wrote:
use something like this [1] as a base and build your own timer behavior
[1]
I looked at this code, but it does not really help as it has to bind to
an event, whilst I am trying to do an auto update component.
I have 2 questions :
1) Why does the AbstractAjaxBehavior sets the getStatelessHint to
false ?
It seems to me that this non stateless hint could be set much lower
On Wed, Sep 7, 2011 at 10:11 AM, Sylvain Vieujot svieu...@apache.org wrote:
I looked at this code, but it does not really help as it has to bind to an
event, whilst I am trying to do an auto update component.
I have 2 questions :
1) Why does the AbstractAjaxBehavior sets the getStatelessHint
On Wed, 2011-09-07 at 10:19 -0700, Igor Vaynberg wrote:
On Wed, Sep 7, 2011 at 10:11 AM, Sylvain Vieujot svieu...@apache.org wrote:
I looked at this code, but it does not really help as it has to bind to an
event, whilst I am trying to do an auto update component.
I have 2 questions :
Session#nextSequenceValue() is public and non-final.
You can override it in YourWebSession to do whatever fits for your needs.
On Wed, Sep 7, 2011 at 9:35 PM, Sylvain Vieujot svieu...@apache.org wrote:
**
On Wed, 2011-09-07 at 10:19 -0700, Igor Vaynberg wrote:
On Wed, Sep 7, 2011 at 10:11
On Wed, Sep 7, 2011 at 11:35 AM, Sylvain Vieujot svieu...@apache.org wrote:
On Wed, 2011-09-07 at 10:19 -0700, Igor Vaynberg wrote:
On Wed, Sep 7, 2011 at 10:11 AM, Sylvain Vieujot svieu...@apache.org wrote:
I looked at this code, but it does not really help as it has to bind to an
event,
Using the session does not work, but using the RequestCycle works fine.
Below is how I solved the problem, and it seems to work quite well for
stateless pages.
Thank you for your help.
public class StatelessAjaxSelfUpdatingTimerBehavior extends
AjaxSelfUpdatingTimerBehavior {
private
13 matches
Mail list logo