[ http://issues.apache.org/jira/browse/BEEHIVE-170?page=history ]
Daryl Olander resolved BEEHIVE-170:
-----------------------------------
Assign To: Julie Zhuo (was: Daryl Olander)
Resolution: Fixed
This was a feature that was not yet implemented. It should work correctly now.
There are two tests that verify the proper behavior:
idmap/treeNoHtml and idmap/treeNoHtml2
> netui TreeItem tag no longer output sthe id lookup scripts when script
> container removed
> ----------------------------------------------------------------------------------------
>
> Key: BEEHIVE-170
> URL: http://issues.apache.org/jira/browse/BEEHIVE-170
> Project: Beehive
> Type: Bug
> Components: NetUI
> Versions: V1
> Reporter: Julie Zhuo
> Assignee: Julie Zhuo
>
> The following are the jsp used and its html output.
> ****************** tree-noContainer.jsp *********************
> <html>
> <head>
> <netui:base/>
> </head>
> <netui:body>
> Tree(no container) JS Output Test--JIRA164 & 167<br/>
> <netui:tree dataSource="pageFlow.tree" selectionAction="back"
> tagId="t1">
> <netui:treeItem expanded="true"
> tagId="ti1">Item1</netui:treeItem>
> </netui:tree>
> <p id="javaOut"></p>
> </netui:body>
> <script language="JavaScript" type="text/JavaScript">
> var p = document.getElementById("javaOut");
> var val = "<b>Document Access</b><br/>";
> val = val + "TreeItem Scope Id (Legacy Get): <b>" + getScopeId(p) +
> "</b><br/>";
> //val = val + "TreeItem Scope Id (non-Legacy Lookup): <b>" +
> lookupScopeId(document.getElementById(lookupIdByTagId("ti1", p))) +
> "</b><br/>";
> val = val + "TreeItem Name: <b>" + getNetuiTagName("ti1", p) +
> "</b><br/>";
> //val = val + "TreeItem ID: <b>" + lookupIdByTagId("ti1", p) +
> "</b><br/>";
> //val = val + "TreeItem Name By Lookup: <b>" + lookupNameByTagId("ti1",
> p) + "</b><br/>";
> p.innerHTML = val;
> </script>
> </html>
> ****************** html output ******************************
> <html>
> <head>
> <base
> href="http://localhost:7001/JavaScriptWeb/outputTest/tree-noContainer.jsp">
> </head>
> <body>
> Tree(no container) JS Output Test--JIRA164 & 167<br/>
> <div>
> <div id="ti1">
> <img
> src="/JavaScriptWeb/resources/beehive/version1/images/linelastnode.gif"
> style="vertical-align:middle;" border="0" alt="">
> <a
> href="/JavaScriptWeb/outputTest/back.do?netui_treeselected=0&netui_treeid=t1"> <img
> src="/JavaScriptWeb/resources/beehive/version1/images/folder_16_pad.gif"
> style="vertical-align:middle" border="0" alt="Tree Node"> Item1 </a>
> </div>
> </div>
> <p id="javaOut"></p>
> </body>
> <script language="JavaScript" type="text/JavaScript">
> var p = document.getElementById("javaOut");
> var val = "<b>Document Access</b><br/>";
> val = val + "TreeItem Scope Id (Legacy Get): <b>" + getScopeId(p) +
> "</b><br/>";
> //val = val + "TreeItem Scope Id (non-Legacy Lookup): <b>" +
> lookupScopeId(document.getElementById(lookupIdByTagId("ti1", p))) +
> "</b><br/>";
> val = val + "TreeItem Name: <b>" + getNetuiTagName("ti1", p) +
> "</b><br/>";
> //val = val + "TreeItem ID: <b>" + lookupIdByTagId("ti1", p) +
> "</b><br/>";
> //val = val + "TreeItem Name By Lookup: <b>" + lookupNameByTagId("ti1",
> p) + "</b><br/>";
> p.innerHTML = val;
> </script>
> </html>
--
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