[ http://issues.apache.org/jira/browse/MYFACES-690?page=all ]
sean schofield closed MYFACES-690:
----------------------------------
Fix Version: Nightly
Resolution: Fixed
Fixed remaining problem by applied a modified version of the patch.
> tree2 server-side-toggle example: Encountered a node [0:0:0] + with an
> illogical state...
> -----------------------------------------------------------------------------------------
>
> Key: MYFACES-690
> URL: http://issues.apache.org/jira/browse/MYFACES-690
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Versions: 1.1.0
> Environment: http://www.irian.at/myfaces/tree2.jsf
> Reporter: Erik MellegÄrd
> Assignee: sean schofield
> Fix For: Nightly
> Attachments: patch.txt
>
> Server side toggle tree2 example throws exception.
> To reproduce the error:
> 1. Open http://www.irian.at/myfaces/tree2.jsf
> 2. Expand "Inbox" and "Frank Foo" folders
> 3. Click on the line that attaches Frank Foo with Requires Foo (where there
> would have been a plus if Requires Foo would have contained children)
> This generates the following exception:
> type Exception report
> message
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
> exception
> javax.servlet.ServletException: Encountered a node [0:0:0] + with an
> illogical state. Node is expanded but it is also considered a leaf (a leaf
> cannot be considered expanded.
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
>
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> root cause
> java.lang.IllegalStateException: Encountered a node [0:0:0] + with an
> illogical state. Node is expanded but it is also considered a leaf (a leaf
> cannot be considered expanded.
>
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeNavigation(HtmlTreeRenderer.java:463)
>
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeCurrentNode(HtmlTreeRenderer.java:346)
>
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRenderer.java:248)
>
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRenderer.java:276)
>
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRenderer.java:276)
>
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeChildren(HtmlTreeRenderer.java:200)
>
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319)
>
> javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:343)
> javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:251)
>
> org.apache.jsp.tree2_jsp._jspx_meth_t_tree2_1(org.apache.jsp.tree2_jsp:1050)
>
> org.apache.jsp.tree2_jsp._jspx_meth_h_form_0(org.apache.jsp.tree2_jsp:225)
>
> org.apache.jsp.tree2_jsp._jspx_meth_f_view_0(org.apache.jsp.tree2_jsp:182)
> org.apache.jsp.tree2_jsp._jspService(org.apache.jsp.tree2_jsp:126)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
>
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
>
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
>
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.9 logs.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira