0 Replies Latest reply on Jul 15, 2011 11:59 AM by ivanlch08

    Strange error with Trees

    ivanlch08

      Hello,

       

      I have a strange error with rich:tree component, in few words I have this code, with jsf 1.2

       

       

      <rich:tree switchType="client" adviseNodeOpened="#{index.adviseNodeOpened}">

          <rich:recursiveTreeNodesAdaptor roots="#{index.lista}" var="d" nodes="#{d.nodes}">

              <rich:treeNode>

                  <a4j:commandLink value="#{d.nombre}" actionListener="#{index.listener}">

                      <f:attribute name="data" value="#{d}"/>

                  </a4j:commandLink>

              </rich:treeNode>

          </rich:recursiveTreeNodesAdaptor>

      </rich:tree>

       

       

       

      it renders at first time, but when I click a node, the nodes are links, it throws me an Error 500: java.lang.StackOverflowError.

       

       

      this is the error show in the console:

       

           at org.ajax4jsf.javascript.ScriptUtils.writeScriptToStream(ScriptUtils.java:174)

           at org.ajax4jsf.javascript.ScriptUtils.writeScriptToStream(ScriptUtils.java:174)

           at org.ajax4jsf.javascript.ScriptUtils.writeScriptToStream(ScriptUtils.java:174)

           at org.ajax4jsf.javascript.ScriptUtils.writeScriptToStream(ScriptUtils.java:174)

           .

           .

           .

           and more...

           .

           .

           at org.ajax4jsf.javascript.ScriptUtils.writeScriptToStream(ScriptUtils.java:174)

           at org.ajax4jsf.javascript.ScriptUtils.toScript(ScriptUtils.java:202)

           at org.ajax4jsf.renderkit.AJAXDataSerializer.asString(AJAXDataSerializer.java:40)

           at org.ajax4jsf.renderkit.AjaxRendererUtils.encodeAreas(AjaxRendererUtils.java:906)

           at org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:127)

           at org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:685)

           at org.ajax4jsf.component.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:556)

           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)

           at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:289)

           at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:220)

           at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

           at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1661)

           ... 28 more

       

      I have searched information about this error but I have not found it, please help me to identificate the cause of this error, thank you!

       

      Ivan