This content has been marked as final.
Show 2 replies
-
1. Re: rich:datascroller optimize
alankstewart Apr 1, 2008 6:15 PM (in response to jmiguel77)Your search bean can extend the org.ajax4jsf.model.ExtendedDataModel class and ovveride methods such as walk, setRowKey, getRowCount, isRowAvailable, getRowData.
We call facade (service layer) methods that use the Hibernate criteria api to set pagination boundaries using the Hibernate methods criteria.setFirstResult and criteria.setMaxResults to paginate the data. It works well - we have a table with 300,000 employees of our company and we can get the first, say 10 employees, all in lightening quick time.
Alan -
2. Re: rich:datascroller optimize
jmiguel77 Apr 1, 2008 6:32 PM (in response to jmiguel77)Hi Alan thanks a lot for the quick reply ??
could you help me with some code ??
thanks a lot