If the AjaxSelfUpdatingTimerBehavior is added to the MyTabPanel panel, will the MyTabPanel() constructor be called at each update interval?
Please assist with this one guys. :D Yazeed Isaacs - Java Developer [EMAIL PROTECTED] -----Original Message----- From: Yazeed Isaacs [mailto:[EMAIL PROTECTED] Sent: 25 November 2008 12:45 PM To: [email protected] Subject: AjaxSelfUpdatingTimerBehavior not updating Hi The AjaxSelfUpdatingTimerBehavior does not update/refresh the content. I have a WebPage with an AjaxLink and a WebMarkupContainer that contains default ListView. WebPage |_AjaxLink |_WebMarkupContainer |_ListView When the AjaxLink is clicked, the ListView is replaced by an AjaxTabbedPanel. I do this by repainting the WebMarkupContainer in the AjaxLink.onClick method. Here is the overridden onClick Method: @Override public void onClick(AjaxRequestTarget target) { ArrayList tabs = new ArrayList(); AbstractTab tab1 = new AbstractTab(new Model("Data")) { public Panel getPanel(String panelId) { return new MyTabPanel(panelId); } }; tabs.add(tab1); AjaxTabbedPanel tabsPanel = new AjaxTabbedPanel("thetabs", tabs); container.replace(tabsPanel); container.setOutputMarkupId(true); container.setRenderBodyOnly(false); target.addComponent(container); } The AjaxSelfUpdatingTimerBehavior is added in the MyTabPanel constructor as: // timed updater add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(10))); What am I doing wrong? Yazeed Isaacs - Java Developer [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
