|
Hello all, I think I've almost gotten the paging component working with the sorting component for an ArrayList-based data model. If I remove the paging part from the JSP, the page still sorts and saves correctly. But, when I add the paging logic into the JSP, I get this message, which really doesn't help much. The log does refer to the JSP page, but the line number is bigger than the actual number of lines in the file so that's not helpful either. javax.servlet.ServletException: javax.servlet.ServletException: javax.servlet.jsp.JspException: null javax.faces.webapp.FacesServlet.service(FacesServlet.java:121) root cause javax.faces.FacesException: javax.servlet.ServletException: javax.servlet.jsp.JspException: null com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:327) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) I've added the Map code to the backing bean. That is, creating the map when the data is read and having a set method to update the map. The code is fairly straightforward, or so it seems, so I must be close. I created an "id" field in both the data grid and the scroller below. I just set ID = "Data". "Data" doesn't really refer to anything (that is, I just created it for the ID field). I'm not sure if the ID should be more than that as long as they both are the same...??? Here's my scroller definition (Note: my DataScrollerActionListenerhas no code in it, just like the example -- it's the same class -- but I'm not sure how this works). I'm assuming the styleClass and other "style" classes are built in. I've done nothing extra for them (for example, I couldn't find the "scrollerTable2" anywhere).
<h:panelGrid columns="1"
styleClass="scrollerTable2"
columnClasses="standardTable_ColumnCentered" >
<t:dataScroller
id="scroll_1"
for=""
fastStep="10"
pageCountVar="pageCount"
pageIndexVar="pageIndex"
styleClass="scroller"
paginator="true"
paginatorMaxPages="9"
paginatorTableClass="paginator"
paginatorActiveColumnStyle="font-weight:bold;">
<f:actionListener type="com.test.tp.DataScrollerActionListener" />
<f:facet name="first">
<t:graphicImage url="" border="1" />
</f:facet>
<f:facet name="last">
<t:graphicImage url="" border="1" />
</f:facet>
<f:facet name="previous">
<t:graphicImage url="" border="1" />
</f:facet>
<f:facet name="next">
<t:graphicImage url="" border="1" />
</f:facet>
<f:facet name="fastforward">
<t:graphicImage url="" border="1" />
</f:facet>
<f:facet name="fastrewind">
<t:graphicImage url="" border="1" />
</f:facet>
</t:dataScroller>
</h:panelGrid>
Thanks to all for any suggestions!
Mike
|
- Re: Paging Control -- Help Mike
- Re: Paging Control -- Help gramani

