Forums Register Login

htmldatatable displays stale values?

+Pie Number of slices to send: Send
Hi,
I'm using t:datatable myfaces extension implementation of JSF data table. The value of datatable is bound a request-scoped backing bean property (ArrayList of POJO). The business service class returns list of POJOs which I diplay them as rows in the table. The issues that I have with the datatable is, when the arraylist is empty or size == 0, the datatable renders stale data(old copy of the values of HTMLDataTable). I don't want to mixed the component and data logic, hence looking for cleaner approach and trying to avoid looking up the component from and setting the values of HTMLDataTable. I regenerate the list of POJOs when users selects an options from the combo box, so at times the list is empty based on the list returned from the service class, at times its not. It works fine when its not empty, but it still displays the previous list values(stale data) when the current list returned is empty.
The preserveDataModel is set to false;
preserveDataModel="false";

Has anyone experienced similar problem? Your help would be greatly appreciated.
thanks
[ December 14, 2006: Message edited by: Dez Max ]
A teeny tiny vulgar attempt to get you to buy our stuff
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1130 times.
Similar Threads
One-To-Many Child Objects Not Rendering
InputText in DataTable does not store value
how to get old value for edit page
h:dataTable binding => duplicate ID
Dynamic dataTable issue
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:11:41.