Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSF
<rich:datascroller> not working with"page" attribute
Roopesh Rana
Ranch Hand
Posts: 49
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
Jar :
JSF
4.4.7.
I am using <rich:datascroller> in my xHtml page for page navigation, but with "page" attribute data scroller not working.
My Code is here
public int getTopicListPageWithSpecificVfc() { Map<String, String> requestParams = ClientHelper.getRequestParameterMap(); String vfcId = requestParams.get(QcpBusinessParameters.vfcId.name()); return findPageNumberWithSpecificVfc(vfcId, getTableData().getTableRows()); } // package private for testing int findPageNumberWithSpecificVfc(String vfcId, List<RowDO<Object>> tableRows) { if (vfcId != null) { setPageRen(true); int rowNumber = 0; for (RowDO<Object> row : tableRows) { if (vfcId.equals(row.get(0).toString())) { return (rowNumber / (NUMBER_OF_ROWS_IN_TABLE + 1)) + 1; } rowNumber++; } } setPageRen(false); return 1; } public boolean getPageRen() { return pageRen; } public void setPageRen(boolean pageRen) { this.pageRen = pageRen; }
<rich:dataScroller id="dataScroller1" style="margin-top:10px; margin-bottom:10px" for="list_#{reportWrapper}" maxPages="10" page="#{topicListServiceDataBinder.topicListPageWithSpecificVfc}" rendered="#{!forExport and topicListServiceDataBinder.pageRen}" fastStep="10" />
Please help me on this
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
rich:datascroller not working
How to accessing PhaseId from managed bean
Jackson unrecognized field
Data table displaying same item multiple times-not supposed to
Casting Problem *Help Please
More...