[ http://issues.apache.org/jira/browse/MYFACES-839?page=all ]
     
sean schofield closed MYFACES-839:
----------------------------------

    Resolution: Duplicate

> Leaf nodes render navigation command link in Tree2
> --------------------------------------------------
>
>          Key: MYFACES-839
>          URL: http://issues.apache.org/jira/browse/MYFACES-839
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.1.1
>  Environment: Windows 2000, Tomcat 5.5, JVM Sun Jre 1.5.0_03, Firefox 1.0.7, 
> IE6.0.2800.1106
>     Reporter: Cesar A. Correia
>     Assignee: sean schofield

>
> The renderer of Tree2 is rendering navigation command link for leaf nodes. 
> The icon minus or plus don't appear but the link is active. When the user 
> clicks on link the following error is triggered:
> Encountered a node ["xxx"] with an illogical state.  Node is expanded but it 
> is also considered a leaf (a leaf cannot be considered expanded.)
> One solution for this is in HtmlTreeRenderer.java, about line 580, replace 
> the code:
> RendererUtils.renderChild(context, expandControl);
> by this:
> if (!node.isLeaf()){
>      RendererUtils.renderChild(context, expandControl);
> }else{
>     RendererUtils.renderChild(context, image);
> }
> Cesar.

-- 
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

Reply via email to