File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Primeface data table page links buttons

 
K. Tsang
Bartender
Pie
Posts: 3225
12
Android Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I'm using Primeface for one of my projects at work and there's a data table that needs to fit in a rather small fixed width space. I understand the default pagelinks (those buttons for pagination) is 10 but how to change this to a smaller number like 5. Do I need to specify the paginatorTemplate stuff? Can I use javascript to set the pagelinks or do it in the managed bean?

Thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17639
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSF, almost invariably if you want to change the appearance, spacing, or other visual characteristics of a View, you use CSS to do it.
 
K. Tsang
Bartender
Pie
Posts: 3225
12
Android Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim for your suggestion. I will look into using CSS.
 
K. Tsang
Bartender
Pie
Posts: 3225
12
Android Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the solution to this. No need to use CSS or javascript, just use the "pageLinks" attribute.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic