I know there are quite a number of posts regarding JSF paginatin here, but none of them satisfed me.
To split pretty big data into pages I was going to use RichFaces Data scroller component.
It appeared to be suitable for that, but it looks like it does "artificial" pagination.
What i don't like here is that it loads all data and then merely displays part of it. At least it appears to do so. Correct me if i'm wrong.
Rich faces have nice demos, but by some reason they skip bean definitions- only xhtml.
I saw some mention of ExtendedDataModel, but the only example i found didn't impress me.
Why am i suposed to have 5 screen code just do display subset of data?
Honestly such a simple question as pagination happened to be very complex in JSF and i don't really get why.
So my questions are:
1. is it possible in Richfaces to load only one page of data
2. without storing it to session (i mean actual data not list state- current page, etc)
I'm interested only in richfaces lib as already use it in my project and don't what to introduce dependency on somethin else
thanx in advance
Best Answer
After talking on RichFaces forum came up this the following solution (thanx to Brendan Healey):
RichLazyDataModel.java
}
ListState.java
}
CardsBean.java
cards.xhtml (partial)