This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes Primeface data table page links buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "Primeface data table page links buttons" Watch "Primeface data table page links buttons" New topic
Author

Primeface data table page links buttons

K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2985
    
    9

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


K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17030
    
  26

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.


An IDE is no substitute for an Intelligent Developer.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2985
    
    9

Thanks Tim for your suggestion. I will look into using CSS.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2985
    
    9

Found the solution to this. No need to use CSS or javascript, just use the "pageLinks" attribute.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Primeface data table page links buttons
 
It's not a secret anymore!