Why don't you put a breakpoint in the constructor and see let us know what
you find out? Is the constructor called through the same stack trace twice?

Thomas

On Thu, Feb 12, 2009 at 5:50 PM, Adriano dos Santos Fernandes <
adrian...@gmail.com> wrote:

> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Thomas Mäder
Wicket & Eclipse Consulting
www.devotek-it.ch

Reply via email to