I've a simple page as below, and when I call it from Firefox, ReportPage constructor is almost always called two times. Some times it's correctly called once. What may be wrong?

public class ReportPage extends WebPage
{
   private static final long serialVersionUID = 1L;
   private static final int CHECK_INTERVAL = 2;    // segundos

   public ReportPage(PageParameters parameters)
   {
       super(parameters);

       WebMarkupContainer update = new WebMarkupContainer("update");
       add(update);
update.add(new AbstractAjaxTimerBehavior(Duration.seconds(CHECK_INTERVAL)) {
           private static final long serialVersionUID = 1L;

           @Override
           protected void onTimer(AjaxRequestTarget target)
           {
           }
       });
   }
}


Adriano


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to