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] 
> 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 <[email protected]> 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" )
> >         .setOutputMarkupId( true )
> >         .add( new AjaxSelfUpdatingTimerBehavior( Duration.minutes( 2 ) )
> >       );
> >
> > The page becomes stateless.
> >
> > If in MyPanel, I have :
> > class MyPanel{
> >      ...
> >      @Override
> >      public boolean getStatelessHint(@SuppressWarnings( "unused" ) Component
> > component) {
> >           return true;
> >      }
> >      ...
> > }
> >
> > The update does not work as the expected component's HTML id does not remain
> > constant :
> >
> > Wicket.Ajax: Wicket.Ajax.Call.processComponent: Component with id
> > [[header2]] was not found while trying to perform markup update. Make sure
> > you called component.setOutputMarkupId(true) on the component whose markup
> > you are trying to update. console.error('Wicket.Ajax: ' + msg);
> > I also tried to use .setVersioned( false ) on both the component and the
> > page, but without success.
> > Is there a way to do this ?
> >
> > Thank you,
> >
> > Sylvain.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to