This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes Datascroller for a datatable | need help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Datascroller for a datatable | need help" Watch "Datascroller for a datatable | need help" New topic
Author

Datascroller for a datatable | need help

Anoop V. Kumar
Greenhorn

Joined: Jan 21, 2006
Posts: 18
Hello,

Has somebody successfully used the datascroller component from Tomahawk? I need help in that.

Basically, I have implemented it and it works great in the initial display - all the links appear (first, last, next, before and page numbers) - but when I click on the links I get this error:

****************************
An Error has occurred in this application.

javax.servlet.ServletException
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:129)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:652)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
at java.lang.Thread.run(Unknown Source)
****************************
****************************


Here is the JSF code:
********************************************************

<h anelGroup>
<t ataTable id="data"
var="system"
value="#{systemBean.systems}"
preserveDataModel="true"
rows="10">

<h:column>
<f:facet name="header">
<h utputText value="#{bundle.systemLabel}" />
</f:facet>
<h utputText value="#{system.name}" />
</h:column>

<h:column>
<f:facet name="header">
<h utputText value="#{bundle.systemCode}" />
</f:facet>
<h utputText value="#{system.ataCode}" />
</h:column>

<h:column>
<f:facet name="header">
<h utputText value="#{bundle.subSystemsLabel}"/>
</f:facet>
<h:commandButton
value="#{bundle.subSystemsButton}"
action="subsystems">
</h:commandButton>
</h:column>

</t ataTable>

<h anelGrid columns="1">
<t ataScroller id="scroll_1"
for="data"
fastStep="10"
pageCountVar="pageCount"
pageIndexVar="pageIndex"
paginator="true"
paginatorMaxPages="9">
<f:facet name="first" >
<t utputText value="first"/>
</f:facet>
<f:facet name="last">
<t utputText value="last"/>
</f:facet>
<f:facet name="previous">
<t utputText value="previous"/>
</f:facet>
<f:facet name="next">
<t utputText value="next"/>
</f:facet>
</t ataScroller>
</h anelGrid>
</h anelGroup>
********************************************************


I have read somewhere that we need to write some code to actually make it work - but so far I have searched on google and on the wiki sites of myfaces.org and have not found the actual literature regarding this implementation.

Please let me know if there is such an explanation and do forward me the link or provide some pointers on what methods to implement / configuration.

Thanks,
Anoop
Anoop V. Kumar
Greenhorn

Joined: Jan 21, 2006
Posts: 18
Reposting the code as code:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Datascroller for a datatable | need help
 
Similar Threads
align data with two dataTables
Problem with h:selectManyCheckbox
Facing problems with x:dataTable and x:dataScroller
getting problem while using �x:dataTable� and �x:updateActionListener�
HtmlDataTable and "duplicate ID"