[ 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