You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Cesar A. Correia (JIRA)" <de...@myfaces.apache.org> on 2005/11/17 17:19:41 UTC

[jira] Created: (MYFACES-839) Leaf nodes render navigation command link in Tree2

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


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


[jira] Closed: (MYFACES-839) Leaf nodes render navigation command link in Tree2

Posted by "sean schofield (JIRA)" <de...@myfaces.apache.org>.
     [ 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


[jira] Commented: (MYFACES-839) Leaf nodes render navigation command link in Tree2

Posted by "Marius Kreis (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-839?page=comments#action_12357909 ] 

Marius Kreis commented on MYFACES-839:
--------------------------------------

This is a clone of MYFACES-690
I also supplied a patch with this if-statement which was unfortunately ignored till now.

> 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

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