[ http://issues.apache.org/jira/browse/BEEHIVE-169?page=history ]

Daryl Olander reassigned BEEHIVE-169:
-------------------------------------

    Assign To: Julie Zhuo  (was: Daryl Olander)

> JS id lookup by lookup**("tagId")/lookup**("tagId",tag) are both allowed now 
> when scopeId is present but generate different results
> -----------------------------------------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-169
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-169
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Julie Zhuo
>     Assignee: Julie Zhuo

>
> The following is the JSP used and the lookup results,
> ********** test.jsp ************
> <netui:html>
>     <head>
>         <netui:base/>
>     </head>
>     <netui:body>
>         <netui:scriptContainer scopeId="one" >
>         <netui:form tagId="form" action="back">
>                 Form JS Output Test!<br/>
>                 <netui:textBox dataSource="actionForm.text1" /><br/>
>                 <netui:button value="Submit"/><br/>
>        </netui:form>
>        <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 + "Form By Id is null: <b>" + 
> (document.getElementById(lookupIdByTagId("form", p)) == null) + "</b><br/>";
>     val = val + "Form Scope Id (Legacy Get): <b>" + 
> getScopeId(document.getElementById(lookupIdByTagId("form", p))) + "</b><br/>";
>     val = val + "Form Scope Id (non-Legacy Lookup): <b>" + 
> lookupScopeId(document.getElementById(lookupIdByTagId("form", p))) + 
> "</b><br/>";
>     val = val + "Form Name: <b>" + getNetuiTagName("form", p) + "</b><br/>";
>     val = val + "Form ID: <b>" + lookupIdByTagId("form", p) + "</b><br/>";
>     val = val + "Form Name By Lookup: <b>" + lookupNameByTagId("form", p) + 
> "</b><br/> <br/>";
>     val = val + "<b>Lookup by lookup*(\"tagId\") signature: </b><br/>";
>     val = val + "Form ID: <b>" + lookupIdByTagId("form") + "</b><br/>";
>     val = val + "Form Name By Lookup: <b>" + lookupNameByTagId("form") + 
> "</b><br/>";
>     p.innerHTML = val;
>     </script>
> </netui:html>
> ********* Looup Results ************
> Document Access
> Form By Id is null: false
> Form Scope Id (Legacy Get): one
> Form Scope Id (non-Legacy Lookup): one.
> Form Name: one.form
> Form ID: one.form
> Form Name By Lookup: bean
> Lookup by lookup*("tagId") signature: 
> Form ID: form
> Form Name By Lookup: undefined

-- 
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