-
1. Re: rich:scrollableDataTable and pagination
konstantin.mishin Feb 9, 2009 8:14 AM (in response to kevcpu411)Hi.
We haven't example pagination with rich:scrollableDataTable. But have it with rich:dataTable. See: http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?tab=dataModel. It should help you. -
2. Re: rich:scrollableDataTable and pagination
kevcpu411 Feb 9, 2009 3:47 PM (in response to kevcpu411)I looked at the example. As my first question, will this work with the ScrollableDataTable or do I have to extend org.richfaces.model.ScrollableTableDataModel instead. Also, when I tried to extend ScrollableTableDataModel I was informed that I need to override loadData, getWrappedData, setWrappedData and getRowCount. I noticed for the example you provided, there is a DataProvider and CurrentPk. What in the example is necessary and what is not?
-
3. Re: rich:scrollableDataTable and pagination
kragoth Feb 9, 2009 6:16 PM (in response to kevcpu411)Unless there's been a big change that I havn't seen, you cannot use pagination with a rich:scrollableDataTable by default.
I believe if you search the forums I think I remember someone doing this by extending the scrollableDataTable. You might be able to just copy what they have done. -
4. Re: rich:scrollableDataTable and pagination
fmarwede Feb 10, 2009 4:06 AM (in response to kevcpu411)Hmmm I think on http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?tab=dataModel is an example what you have to extend...sorry, I fear I don't understand what you are missing...
-
5. Re: rich:scrollableDataTable and pagination
kevcpu411 Feb 10, 2009 11:58 AM (in response to kevcpu411)I followed the link but on this link: http://jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/scrollableDataTable.html is states that you have to implement org.richfaces.model.ScrollableTableDataModel. I am confused on which one I should follow. Also, I am confused about the DataProvider, Range, SequenceRange. Additionally, is the currentPK necessary.
-
6. Re: rich:scrollableDataTable and pagination
kevcpu411 Feb 10, 2009 1:45 PM (in response to kevcpu411)Are special considerations needed to address editable dataGrids?