wicket auto refresh datatable caches values -
i using datatable inside panel , panel set autorefresh every 60 sec. panel occassionally seems pull values not passed object. using propertycolumn add columns data table. there way disable cache in wicket or data table specifically
i have webservice returns list of contacts. list passed panels below
in loadcontactpanel new contactpanel(viewpanel.getcontentpanelid() , getcontactlistmodel());
public imodel<list<contact>> getcontactlistmodel() { list<contact> listofmodels = //get list webservice call return new listmodel<>(listofmodels); }
in contactpanel load panel called accordianpanel
the accordianpanel contains repeatingview
each repeatingview panel , in panel, adding defaultdatatable
the source of defaultdatatable contactdataprovider extends sortabledataprovider
this code of model method in contactdataprovider
@override public imodel<contact> model(final contact object) { return new abstractreadonlymodel() { private static final long serialversionuid = 1l; @override public object getobject() { return object; } }; }
in situation, should converted loadabledetachablemodel. 1 returned webservice or 1 in contactdataprovider
maybe loading data model stored in memory. should use loadabledetachablemodel
load data each time component rendered. not sure answers question provided few details, please show code.
Comments
Post a Comment