You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Karen Stutesman (JIRA)" <be...@incubator.apache.org> on 2005/02/17 21:32:48 UTC

[jira] Created: (BEEHIVE-326) Tree: Overriding an action sometimes causes the label to disappear

Tree: Overriding an action sometimes causes the label to disappear
------------------------------------------------------------------

         Key: BEEHIVE-326
         URL: http://issues.apache.org/jira/browse/BEEHIVE-326
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: Karen Stutesman
    Priority: Minor
 Attachments: overrideBug.zip

Sometimes when you use the <netui:treePropertyOverride> tag, the label of your Tree Elements disappears.

Test case:
1. <netui:tree> specifies myTreeAction for selectionAction and expansionAction
2. <netui:treeItem> contains a <netui:treePropertyOverride> that specifies mySelectionAction and myExpansionAction for selectionAction and expansionAction
3. Two <netui:treeItem> are nested in the above <netui:treeItem> for expansion.

Expected results: When viewed in the browser, all labels are in tact.
Actual results: The top level <netui:treeItem> loses its label while the nested item labels appear correctly.

See attached example.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (BEEHIVE-326) Tree: Overriding an action sometimes causes the label to disappear

Posted by "Karen Stutesman (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-326?page=history ]

Karen Stutesman updated BEEHIVE-326:
------------------------------------

    Attachment: overrideBug.zip

Page flow and jsp demonstrating a top level tree item losing its label, although it does not have to be at the top level to see this bug.

> Tree: Overriding an action sometimes causes the label to disappear
> ------------------------------------------------------------------
>
>          Key: BEEHIVE-326
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-326
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Karen Stutesman
>     Priority: Minor
>  Attachments: overrideBug.zip
>
> Sometimes when you use the <netui:treePropertyOverride> tag, the label of your Tree Elements disappears.
> Test case:
> 1. <netui:tree> specifies myTreeAction for selectionAction and expansionAction
> 2. <netui:treeItem> contains a <netui:treePropertyOverride> that specifies mySelectionAction and myExpansionAction for selectionAction and expansionAction
> 3. Two <netui:treeItem> are nested in the above <netui:treeItem> for expansion.
> Expected results: When viewed in the browser, all labels are in tact.
> Actual results: The top level <netui:treeItem> loses its label while the nested item labels appear correctly.
> See attached example.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-326) Tree: Overriding an action sometimes causes the label to disappear

Posted by "Daryl Olander (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-326?page=history ]

Daryl Olander reassigned BEEHIVE-326:
-------------------------------------

    Assign To: Daryl Olander

> Tree: Overriding an action sometimes causes the label to disappear
> ------------------------------------------------------------------
>
>          Key: BEEHIVE-326
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-326
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Karen Stutesman
>     Assignee: Daryl Olander
>     Priority: Minor
>  Attachments: overrideBug.zip
>
> Sometimes when you use the <netui:treePropertyOverride> tag, the label of your Tree Elements disappears.
> Test case:
> 1. <netui:tree> specifies myTreeAction for selectionAction and expansionAction
> 2. <netui:treeItem> contains a <netui:treePropertyOverride> that specifies mySelectionAction and myExpansionAction for selectionAction and expansionAction
> 3. Two <netui:treeItem> are nested in the above <netui:treeItem> for expansion.
> Expected results: When viewed in the browser, all labels are in tact.
> Actual results: The top level <netui:treeItem> loses its label while the nested item labels appear correctly.
> See attached example.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (BEEHIVE-326) Tree: Overriding an action sometimes causes the label to disappear

Posted by "Daryl Olander (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-326?page=history ]
     
Daryl Olander resolved BEEHIVE-326:
-----------------------------------

    Resolution: Fixed

So the real bug here is not that adding the TreePropertyOverload causesd the label to disapper.  The bug is that a label should never appear if it is part of the body content of a TreeItem and that TreeItem has children.  The reason for this, we don't support mixed content in the TreeItems.  Either the TreeItem has children and the label needs to be defined inside a TreeLabel, or the TreeItem is a leaf and then it is acceptable to use the tag's body content. 

So the bug here was that there were tags that dislayed the label from body content that also contained children TreeItems.  I fixed this case so that now, the content doesn't get used as the label.  The result is that this test now has two TreeItems without labels, which is the expected behavior.

One might ask, shouldn't this be an error then?  The answer to that is no because this works the same as almost all tags.  For example, in the Repeater, if you add a RepeaterItem, all body content of the repeater is ignored.  The same is true for the Span tag, you can add body content and it is always ignored.  

> Tree: Overriding an action sometimes causes the label to disappear
> ------------------------------------------------------------------
>
>          Key: BEEHIVE-326
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-326
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Karen Stutesman
>     Assignee: Daryl Olander
>     Priority: Minor
>  Attachments: overrideBug.zip
>
> Sometimes when you use the <netui:treePropertyOverride> tag, the label of your Tree Elements disappears.
> Test case:
> 1. <netui:tree> specifies myTreeAction for selectionAction and expansionAction
> 2. <netui:treeItem> contains a <netui:treePropertyOverride> that specifies mySelectionAction and myExpansionAction for selectionAction and expansionAction
> 3. Two <netui:treeItem> are nested in the above <netui:treeItem> for expansion.
> Expected results: When viewed in the browser, all labels are in tact.
> Actual results: The top level <netui:treeItem> loses its label while the nested item labels appear correctly.
> See attached example.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (BEEHIVE-326) Tree: Overriding an action sometimes causes the label to disappear

Posted by "Karen Stutesman (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-326?page=history ]
     
Karen Stutesman closed BEEHIVE-326:
-----------------------------------


Verified fixed
The body of treeItem is no longer evaluated when it has children.

> Tree: Overriding an action sometimes causes the label to disappear
> ------------------------------------------------------------------
>
>          Key: BEEHIVE-326
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-326
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Karen Stutesman
>     Assignee: Karen Stutesman
>     Priority: Minor
>  Attachments: overrideBug.zip
>
> Sometimes when you use the <netui:treePropertyOverride> tag, the label of your Tree Elements disappears.
> Test case:
> 1. <netui:tree> specifies myTreeAction for selectionAction and expansionAction
> 2. <netui:treeItem> contains a <netui:treePropertyOverride> that specifies mySelectionAction and myExpansionAction for selectionAction and expansionAction
> 3. Two <netui:treeItem> are nested in the above <netui:treeItem> for expansion.
> Expected results: When viewed in the browser, all labels are in tact.
> Actual results: The top level <netui:treeItem> loses its label while the nested item labels appear correctly.
> See attached example.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-326) Tree: Overriding an action sometimes causes the label to disappear

Posted by "Daryl Olander (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-326?page=history ]

Daryl Olander reassigned BEEHIVE-326:
-------------------------------------

    Assign To: Karen Stutesman  (was: Daryl Olander)

> Tree: Overriding an action sometimes causes the label to disappear
> ------------------------------------------------------------------
>
>          Key: BEEHIVE-326
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-326
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Karen Stutesman
>     Assignee: Karen Stutesman
>     Priority: Minor
>  Attachments: overrideBug.zip
>
> Sometimes when you use the <netui:treePropertyOverride> tag, the label of your Tree Elements disappears.
> Test case:
> 1. <netui:tree> specifies myTreeAction for selectionAction and expansionAction
> 2. <netui:treeItem> contains a <netui:treePropertyOverride> that specifies mySelectionAction and myExpansionAction for selectionAction and expansionAction
> 3. Two <netui:treeItem> are nested in the above <netui:treeItem> for expansion.
> Expected results: When viewed in the browser, all labels are in tact.
> Actual results: The top level <netui:treeItem> loses its label while the nested item labels appear correctly.
> See attached example.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira