I think TabbedPanel works by replacing the active panel with the
result of ITab.getPanel: see method setSelectedTab(int index). So,
when you click on a tab the previous one is removed form the component
tree (and therefore TimerAjaxCallBacks are not able to find the
component). Have you considered using JavaScript based tabs (as the
ones proc=vided by jquery)? That way your component tree will be
always consistent.



On Thu, Jun 10, 2010 at 3:02 PM, Decebal Suiu <> wrote:
> Hello Ernesto,
> I resolved the problem. The AjaxSelfUpdatingTimerBehavior was added by me on
> the panel returned by the ITab.getPanel() method. I put the behavior on a
> child of the tab panel and it works.
> Do you have an explanation why I retrieve "PageExpiredException: No behavior
> listener found with behaviorId" in the first case (behavior on the tab
> panel)?
> Is it something that keeps by the role of onlyTargetActivePage() method? In
> the second case, the ajax was stopped because of precondition check (ignore
> if not active) but in the first case (with the error) the condition with
> active page is not true.
> Thanks,
> Decebal
> --
> View this message in context: 
> Sent from the Wicket - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to