Make that t:saveState under the new naming rules.
On 8/12/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> My guess is your backing bean containing your table data is in request
> scope, and it no longer contains the data on the following request.
> You can probably verify that this is the issue by temporarily adding
> it in as session scope.
>
> The real solution is probably to use x:saveState to perserve your
> request-scoped bean until you no longer need it.
>
> On 8/11/05, Matthew Pease <[EMAIL PROTECTED]> wrote:
> > dur... thanks Mike.
> >
> > Now that it shows the buttons, when I click on Next, it jumps to a
> > page with no data. Any ideas here?
> >
> > Must there be special logic in the backing bean for this to work?
> >
> > Thanks-
> > Matt
> >
> > On 8/11/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > > You need to add a rows attribute to your dataTable.
> > >
> > > like rows="10"
> > >
> > > On 8/11/05, Matthew Pease <[EMAIL PROTECTED]> wrote:
> > > > Hi everyone -
> > > > I'm getting the following exception when trying to use
> > > > <x:dataScroller after a <x:dataTable with matching id / for.
> > > >
> > > > Am I doing something dumb?
> > > > Thank you-
> > > > Matt
> > > >
> > > > my scroller:
> > > >
> > > > <x:dataScroller id="scroll_1"
> > > > for="data"
> > > > fastStep="10"
> > > > pageCountVar="pageCount"
> > > > pageIndexVar="pageIndex"
> > > > paginator="true"
> > > > paginatorMaxPages="9" >
> > > > <f:facet name="first" >
> > > > <h:graphicImage url="images/arrow-first.gif" border="1"
> > > > />
> > > > </f:facet>
> > > > ... (facets snipped)
> > > > </x:dataScroller>
> > > >
> > > > my datatable
> > > > <x:dataTable id="tabledata"
> > > > var="item"
> > > > value="#{searchBean.resultList}"
> > > > preserveDataModel="true"
> > > > sortColumn="#{searchBean.sort}"
> > > > sortAscending="#{searchBean.ascending}"
> > > > preserveSort="false">
> > > >
> > > > My Exception
> > > > java.lang.ArithmeticException: / by zero
> > > > at
> > > > org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.getPageIndex(HtmlDataScrollerRenderer.java:505)
> > > > at
> > > > org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.encodeChildren(HtmlDataScrollerRenderer.java:189)
> > > > at
> > > > javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:329)
> > > > at
> > > > javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:380)
> > > > at
> > > > javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:288)
> > > > at
> > > > jsp_servlet.__searchresults._jspService(__searchresults.java:1820)
> > > > at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
> > > > at
> > > > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
> > > > at
> > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
> > > > at
> > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
> > > > at
> > > > weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:307)
> > > > at
> > > > org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:405)
> > > > at
> > > > org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:280)
> > > > at
> > > > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
> > > > at
> > > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
> > > > at
> > > > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
> > > > at
> > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
> > > > at
> > > > weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
> > > > at
> > > > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> > > > at
> > > > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
> > > > at
> > > > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> > > > at
> > > > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
> > > > at
> > > > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
> > > > at
> > > > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
> > > > at
> > > > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
> > > > at
> > > > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
> > > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> > > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> > > >
> > >
> >
>