wood burning stoves 2.0*
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
Author

issue with hx:pagerDeluxe

vaithee sub
Greenhorn

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"
value="#{requestScope.practiceAreaList4Update.practiceAreas}"
var="varpracticeArea" styleClass="dataTableEx"
headerClass="dataTableHeaderClass" footerClass="footerClass"
rowClasses="oddRowClass, evenRowClass"
columnClasses="dataValueColumnClass,dataValueColumnClass,dataValueColumnClass,dataValueColumnClass,dataValueColumnClass,dataValueColumnClass,dataValueColumnClass"
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" />
</hx:panelBox>
</f:facet>
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
Greenhorn

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

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.
 
Don't get me started about those stupid light bulbs.
 
subject: issue with hx:pagerDeluxe
 
Similar Threads
Dynamic Component in JSF
Datatable trying to access non-existent field from Bean
Pagination with MyFaces (JSF Newbie)
Issue with using hx:requestRowAction in IE8
Backing Bean having Map properties