Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Datascroller for a datatable | need help  RSS feed

 
Anoop V. Kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reposting the code as code:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!