[ http://issues.apache.org/jira/browse/BEEHIVE-162?page=comments#action_60388 ] Krista Baker commented on BEEHIVE-162: --------------------------------------
The above example of the netui:anchor tag using a tagId and a linkName does not output the legacy tagId name. Expected Results (taken from actual result of legacy): if (netui_names == null) var netui_names = new Object(); netui_names.one__a3="a3 Actual Results: No legacy tag name information. This seems to only affect the netui:anchor and netui:imageAnchor with linkName="someText" tags. These same tags with href or action produce the correct/expected legacy information. > Named anchor does not output id lookup scripts when tagId is set > ---------------------------------------------------------------- > > Key: BEEHIVE-162 > URL: http://issues.apache.org/jira/browse/BEEHIVE-162 > Project: Beehive > Type: Bug > Components: NetUI > Versions: V1 > Reporter: Julie Zhuo > Assignee: Julie Zhuo > > The following is the JSP used for this test. > <netui:html> > <head> > <netui:base/> > </head> > <netui:body> > Named Anchor JS Output Test <br/> > <netui:scriptContainer scopeId="one" > > <netui:anchor tagId="a3" linkName="javaOut">Named > Anchor</netui:anchor> > <br/> > <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>"; > //var anchorTag = document.getElementById(lookupIdByTagId("a3",p)); > //val = val + "Anchor Scope Id: <b>" + getScopeId(anchorTag) + > "</b><br/>"; > //val = val + "Anchor Name: <b>" + getNetuiTagName("a3", anchorTag) + > "</b><br/>"; > //val = val + "Anchor ID: <b>" + lookupIdByTagId("a3",anchorTag) + > "</b><br/>"; > //val = val + "Anchor Name By Lookup: <b>" + > lookupNameByTagId("a3",anchorTag) + "</b><br/>"; > p.innerHTML = val; > </script> > </netui: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
