• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF h:dataTable to see pagination of last record by default

 
shiva nath
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to view last section view of pagination in JSF h:dataTable. Let say I have 29 records,each 10 records per view and it should always default to last view of 9 records.
Please let me know how to do it JSF pagination.
 
shiva nath
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this forum is active, I didn't get any response?
 
Tim Holloway
Bartender
Posts: 18411
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This forum - like all of the forums on the CodeRanch - is moderated by unpaid volunteers. One of the things you (allegedly) get from paid services that the free ones don't guarantee is response time.

Typically, I check in early in the morning US Eastern time on workdays, which means that ordinarily I wouldn't have seen your post until Tuesday morning (since next Monday is a holiday). But I also sometimes check in when I'm insomiac or bored. Fortunately, I was bored.

Anyone can volunteer help in this forum at any time. I'm presumably more knowledgeable than most on JSF, since it's a specialty of mine, but the task or forum moderator is primarily to ensure that people aren't violating our code of conduct (which is mostly "just be nice" and "don't use fake display names") and we don't demand that a staff member actually know anything about the forum being moderated. A lot of times people take on a forum to help themselves learn more about the topic in question, in fact.

But, like I said, no one gets paid to provide quick responses, so patience is a virtue when posting questions here.

And, incidentally, your answer:

Use the h:dataTable's "first" attribute to specify the (zero-based) first row index from the backing datamodel that will display as the first line of the table. If you're using a ListDataModel:


 
shiva nath
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Tim, I have implemented.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!