This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF DataTable  pagination   Previous 1 2 3 4 5 Next  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF DataTable  pagination   Previous 1 2 3 4 5 Next  " Watch "JSF DataTable  pagination   Previous 1 2 3 4 5 Next  " New topic

JSF DataTable pagination Previous 1 2 3 4 5 Next

suresh myageri

Joined: Aug 16, 2007
Posts: 14

I need to achieve the pagination using dataTable.
It supports various display styles.

pager deluxe |< < 1 of 5 > >|
pager web 1 2 3 4 5

But i need to achieve in the following style

< Previous 1 2 3 4 5 Next >

can anyone achieved pagination in the above style using the data table.

I am using JSF for developing the JSR 168 compliant portlet

Please help to resolve the issue

thanks in advance
[ February 17, 2008: Message edited by: suresh myageri ]

SCJP 1.4 , IBM WPS Solution Developer, IBM DB2 8.1 Application Developer

"The tragedy of life is not death. The tragedy of life is what we allow to die inside of us while we live. -Dr. Norman Cousins
Amit Kumar Bhardwaj

Joined: Mar 05, 2008
Posts: 1
Hi Suresh,

Can you tell me how you have acheived the Page Web Prev 1 2 3 4 5 Next style for pagination, i am in need of this in my current project. Kindly provide me some code example for doing the same. Thanks in advance.
Eugene Abarquez
Ranch Hand

Joined: May 18, 2006
Posts: 211
MyFaces Tomahawk has a tag called data scroller. Might be the one you're looking for.

Tomahawk Data Scroller

There's so much to learn in this industry, and not everybody has the necessary interest.
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1850

You can use MyFaces Tomahawk t:dataTable.

Krishna Srinivasan
OCAJP 7/8 Exam, 400+ OCPJP Mock Questions
I agree. Here's the link:
subject: JSF DataTable pagination Previous 1 2 3 4 5 Next
It's not a secret anymore!