wood burning stoves 2.0*
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: 2615
    
    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/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2615
    
    9

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

Joined: Sep 13, 2007
Posts: 2615
    
    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