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]

Reply via email to