This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Primeface data table page links buttons

 
K. Tsang
Bartender
Posts: 3347
12
Android Java
  • 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: 17989
47
Android Eclipse IDE Linux
  • 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
Posts: 3347
12
Android Java
  • 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
Posts: 3347
12
Android Java
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic