File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes issue with hx:pagerDeluxe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "issue with hx:pagerDeluxe" Watch "issue with hx:pagerDeluxe" New topic

issue with hx:pagerDeluxe

vaithee sub

Joined: Mar 12, 2004
Posts: 20
I am using ibm jsf package that came with rad 7 for my application.
I am not able to get the hx:pagerDeluxe to work. When I set max rows to 20, I see the pagination option in the page with correct number of pages. When I click on next/last buttons though, I get the see the same first 20 records only and it stays at Page 1. Do I have to do something in my backing bean to enable paging?

<hx:dataTableEx id="tableEx1"
var="varpracticeArea" styleClass="dataTableEx"
headerClass="dataTableHeaderClass" footerClass="footerClass"
rowClasses="oddRowClass, evenRowClass"
cellpadding="2" cellpadding="0" rules="all" border="0"
scrollSize="10%" rows="20">

<f:facet name="footer">
<hx:panelBox id="box1" styleClass="panelBox">
<hx:pagerDeluxe id="deluxe1" styleClass="pagerDeluxe" />
Bob Good
Ranch Hand

Joined: Jan 09, 2008
Posts: 86
Can you check if you have a javascript error?
I have found this often causes components to behave incorrectly.
Are you using Internet explorer? Look in the bottom left corner of the browser for a javascript error message.
vaithee sub

Joined: Mar 12, 2004
Posts: 20
I don't see any Java Script error in my page.
vaithee sub

Joined: Mar 12, 2004
Posts: 20
I was able to resolve the issue. It looks like hx:pagerDeluxe works for session scoped list only and does not work if the list is reloaded everytime on page refresh.
I agree. Here's the link:
subject: issue with hx:pagerDeluxe
jQuery in Action, 3rd edition