This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 2229
    
    7

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
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

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: 2229
    
    7

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

Joined: Sep 13, 2007
Posts: 2229
    
    7

Found the solution to this. No need to use CSS or javascript, just use the "pageLinks" attribute.
 
Don't get me started about those stupid light bulbs.
 
subject: Primeface data table page links buttons
 
Similar Threads
synchronization validation and display of dialog in a primeface JSF2.0 form
refresh data in session jsf2, primeface
JSF + PrimeFace: Validation Error: Value is not valid
Primeface & Jsf
Primeface Chart data problem