[ http://issues.apache.org/jira/browse/BEEHIVE-167?page=history ]
     
Daryl Olander resolved BEEHIVE-167:
-----------------------------------

     Assign To: Julie Zhuo  (was: Daryl Olander)
    Resolution: Fixed

This was an unimplemented feature. 

I have completed the support on the Tree for tagId.  Because TagId is required, 
we decided you don't always want the lookup javascript methods to be output.  
There is a new attribute called renderJavaScript that must be set to true in 
order for the tree to output the default lookup methods.  The new tree will not 
render out the Legacy methods at all.

I added the base test idmap/tree to the DRTs to test support for tagId on the 
tree.

> netui tree tag does not ouput id look up scripts when tagId set
> ---------------------------------------------------------------
>
>          Key: BEEHIVE-167
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-167
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Julie Zhuo
>     Assignee: Julie Zhuo

>
> The following is the JSP used and its html output.
> ******************* tree.jsp *********************
> <netui:html>
>     <head>
>         <netui:base/>
>     </head>
>     <netui:body>
>         <netui:scriptContainer scopeId="one" >
>                 Tree JS Output Test<br/>
>                 <netui:tree dataSource="pageFlow.tree2" 
> selectionAction="back" tagId="t2">
>                     <netui:treeItem expanded="true">Item1</netui:treeItem>
>                 </netui:tree>
>        <p id="javaOut"></p>
>        </netui:scriptContainer>
>     </netui:body>
>     <script language="JavaScript" type="text/JavaScript">
>     var p = document.getElementById("javaOut");
>     var val = "<b>Document Access</b><br/>";
>     //val = val + "Tree Scope Id (Legacy Get): <b>" + getScopeId(p) + 
> "</b><br/>";
>     //val = val + "Tree Scope Id (non-Legacy Lookup): <b>" + 
> lookupScopeId(document.getElementById(lookupIdByTagId("t1", p))) + 
> "</b><br/>";
>     //val = val + "Tree Name: <b>" + getNetuiTagName("t2", p) + "</b><br/>";
>     //val = val + "Tree ID: <b>" + lookupIdByTagId("t2", p) + "</b><br/>";
>     //val = val + "Tree Name By Lookup: <b>" + lookupNameByTagId("t2", p) + 
> "</b><br/>";
>     p.innerHTML = val;
>     </script>
> </netui:html>
> ************************ html ouput ***************************
> <!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 4.01 Transitional//EN"
> >
> <html lang="en">
>     <head>
>         <base href="http://localhost:7001/JavaScriptWeb/outputTest/tree.jsp";>
>     </head>
>     <body>
>         <div netui:scopeId="one" >
>                 Tree JS Output Test<br/>
>                 <div>
>    <div>
>       <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=t2">&nbsp;<img
>  src="/JavaScriptWeb/resources/beehive/version1/images/folder_16_pad.gif" 
> style="vertical-align:middle" border="0" alt="Tree Node">&nbsp;Item1&nbsp;</a>
>    </div>
> </div>
>        <p id="javaOut"></p>
>        </div>
>     </body>
>     <script language="JavaScript" type="text/JavaScript">
>     var p = document.getElementById("javaOut");
>     var val = "<b>Document Access</b><br/>";
>     //val = val + "Tree Scope Id (Legacy Get): <b>" + getScopeId(p) + 
> "</b><br/>";
>     //val = val + "Tree Scope Id (non-Legacy Lookup): <b>" + 
> lookupScopeId(document.getElementById(lookupIdByTagId("t1", p))) + 
> "</b><br/>";
>     //val = val + "Tree Name: <b>" + getNetuiTagName("t2", p) + "</b><br/>";
>     //val = val + "Tree ID: <b>" + lookupIdByTagId("t2", p) + "</b><br/>";
>     //val = val + "Tree Name By Lookup: <b>" + lookupNameByTagId("t2", 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

Reply via email to