0 Replies Latest reply on Apr 9, 2007 2:06 PM by Tihomir Surdilovic

    rich:tree - please help

    Tihomir Surdilovic Master

      i am testing a simple rich:tree component by following the example on the exadel website (just changing the names of the beans). Following is my jsp code:

      <rich:tree switchType="ajax"
      ajaxSubmitSelection="true"
      value="#{dataTree.data}"
      var="item"
      nodeFace="#{item.type}">
      <rich:treeNode type="syndrometype">
      <h:outputText value="#{item.presName}" />
      </rich:treeNode>
      <rich:treeNode type="subsyndrometype">
      <h:outputText value="#{item.presName}" />
      </rich:treeNode>
      </rich:tree>


      All my beans have the "public String getType(){...}" method as shown in the examples, but still I am getting the following exception:

      Caused by:
      javax.el.PropertyNotFoundException: ELResolver cannot handle a null base Object with identifier 'item'
      at com.sun.el.lang.ELSupport.throwUnhandled(ELSupport.java:52)
      at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:75)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:114)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
      at com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:102)
      at org.richfaces.component.html.HtmlTree.getNodeFace(HtmlTree.java:636)
      at org.richfaces.component.UITree.getNodeFacet(UITree.java:209)
      at org.richfaces.component.UITree.dataChildren(UITree.java:385)
      at org.ajax4jsf.ajax.repeat.UIDataAdaptor.saveChildState(UIDataAdaptor.java:697)
      at org.ajax4jsf.ajax.repeat.UIDataAdaptor.setRowKey(UIDataAdaptor.java:282)
      at org.ajax4jsf.ajax.repeat.UIDataAdaptor.setRowKey(UIDataAdaptor.java:265)
      at org.richfaces.renderkit.TreeRendererBase.writeContent(TreeRendererBase.java:395)
      at org.richfaces.renderkit.TreeRendererBase.encodeChildren(TreeRendererBase.java:299)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)
      at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:252)
      at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:232)
      at org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeChildren(AjaxContainerRenderer.java:100)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)
      at org.ajax4jsf.ajax.UIAjaxRegion.encodeChildren(UIAjaxRegion.java:119)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
      at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
      at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
      at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
      at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:247)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:171)
      at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:467)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1075)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1066)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:715)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:402)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      at org.mortbay.jetty.Server.handle(Server.java:285)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:469)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:791)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:508)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:358)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:362)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

      Can someone please help me identify the problem ? I am running on Jetty 6 with JSF 1.2 and richfaces 3.00

      Thank you!