On 4/28/06, Nahrwold, Helge <[EMAIL PROTECTED]> wrote:
But which result is used by the dataTable - the last?
All of them are used at different times. It's going to be
internally-inconsistent and probably cause problems.
You need to use a caching pattern:
private List cachedList = null;
public List getList() {
if (null == cachedList) {
cachedList = fetchList();
}
return cachedList;
}
Then, depending on whether this bean is request, session, or
t:saveState scoped, the list will be refetched once per request, per
session, or per page.