Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14144

ScrollerPage calls getRowCount() on Tree model if one the same view.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.7
    • Fix Version/s: 4.5.10
    • Labels:
      None
    • Environment:

      Windows 7, Internet Explorer 11
      WebSphere 8.5.5 (Developer) with MyFaces 2.2.3 as shared lib.
      App is installed through Eclipse Kepler Service Release 2 with WebSphere plugin

      Description

      When i put rich:tree and rich:dataScroller on the same view, there is call to getRowCount() on tree model. Even if scroller is binded with dataTable:

      <rich:tree id="folderTreeId" toggleType="client" selectionType="client" var="item" value="#{folderTreeBean.roots}">
          <rich:treeNode>
              <h:outputText value="#{item.data.name}" />
          </rich:treeNode>
      </rich:tree>
      
      <rich:dataTable id="table1" var="row" rowKeyVar="rowKey" rows="10" value="#{macroListBean.listItems}">
          <rich:column id="columnNameId">
              <h:outputText value="#{row.name}" />
          </rich:column>
          <rich:column id="columnDescriptionId">
              <h:outputText value="#{row.description}" />
          </rich:column>
          <rich:column id="columnDateId">
              <h:outputText value="#{row.createdDate}">
                  <f:convertDateTime pattern="dd-MM-yyyy HH:mm" timeZone="Poland" />
              </h:outputText>
          </rich:column>
      </rich:dataTable>
      <rich:dataScroller for="table1" fastControls="hide" page="#{macroListBean.scrollerPage}" id="table1sc1"
          oncomplete="javascript:scroll(0,0)" />
      

      #

      {folderTreeBean.roots}

      extends NodesTreeSequenceKeyModel
      #

      {macroListBean.listItems}

      it is just list

      Beans are view scoped

      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R javax.faces.FacesException: Could not get property rowCount of component j_id_g:folderTreeId
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component._ComponentAttributesMap.getComponentProperty(_ComponentAttributesMap.java:690)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component._ComponentAttributesMap.get(_ComponentAttributesMap.java:319)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.richfaces.DataScrollerUtils.eval(DataScrollerUtils.java:86)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.richfaces.DataScrollerUtils.getRowCount(DataScrollerUtils.java:81)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.richfaces.event.DataTablePreRenderListener.processEvent(DataTablePreRenderListener.java:122)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.event.SystemEvent.processListener(SystemEvent.java:40)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:51)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.apache.myfaces.application.ApplicationImpl._traverseListenerList(ApplicationImpl.java:2595)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.apache.myfaces.application.ApplicationImpl.access$000(ApplicationImpl.java:129)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.apache.myfaces.application.ApplicationImpl$SystemListenerEntry.publish(ApplicationImpl.java:2784)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:610)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:589)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:526)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.apache.myfaces.shared.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:357)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.apache.myfaces.shared.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:186)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:554)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.richfaces.renderkit.html.PanelRenderer.doEncodeEnd(PanelRenderer.java:183)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.richfaces.renderkit.RendererBase.encodeEnd(RendererBase.java:180)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:554)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1891)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:313)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:58)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at pl.mycompany.Filter.doFilter(NoCacheFilter.java:29)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:919)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1881)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R Caused by: java.lang.reflect.InvocationTargetException
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at java.lang.reflect.Method.invoke(Method.java:620)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at javax.faces.component._ComponentAttributesMap.getComponentProperty(_ComponentAttributesMap.java:685)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R ... 58 more
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R Caused by: java.lang.NullPointerException
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at pl.mycompany.RichTreeModel.getRowCount(RichTreeModel.java:47)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R at org.richfaces.component.UIDataAdaptor.getRowCount(UIDataAdaptor.java:518)
      [14/09/15 10:28:29:655 CEST] 00000165 SystemErr R ... 63 more

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                paszek PaweĊ‚ Loba
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: