Thanks for looking at this .
that is the working code that I previously posted .
This is what I am trying to do .
private RefreshPanel refreshPanel;
private WebMarkupContainer container;
private AjaxSelfUpdatingTimerBehavior ajaxTimer;
private PanelRefreshForm panelRefreshForm;
public PanelPageRefresh(){
init();
}
public void init(){
panelRefreshForm = new PanelRefreshForm("refreshform");
this.add(panelRefreshForm);
}
public class PanelRefreshForm extends Form{
public PanelRefreshForm(String id) {
super(id);
container = new WebMarkupContainer("container");
container.setOutputMarkupId(true);
this.add(container);
refreshPanel = new RefreshPanel("refreshPanel",new
Model(){
@Override
public Serializable getObject() {
System.out.println("Returning Database
objects");
return "0000000";
}
});
container.add(refreshPanel);
ajaxTimer = new
AjaxSelfUpdatingTimerBehavior(Duration.seconds(5));
container.add(ajaxTimer);
}
}
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Issue-with-panel-model-refresh-tp4655775p4655854.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]