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

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

Setting formSubmit was ignored when the tagId was set.  Again this was a simple 
logic error in figuring out what type of anchor was being rendered when the 
tagId was set.

> netui:anchor tag stops outputting anchor_submit_form script nor the id lookups
> ------------------------------------------------------------------------------
>
>          Key: BEEHIVE-161
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-161
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Julie Zhuo
>     Assignee: Julie Zhuo

>
> Repro:
> Use the following JSP and try it with and without the tagId attribute in the 
> anchor tag. View the html out put of this page.
> ********* Anchor.jsp **************************
> <%@ page language="java" contentType="text/html;charset=UTF-8"%>
> <%@ taglib prefix="netui" 
> uri="http://beehive.apache.org/netui/tags-html-1.0"%>
> <%@ taglib prefix="netui-data" 
> uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
> <%@ taglib prefix="netui-template" 
> uri="http://beehive.apache.org/netui/tags-template-1.0"%>
> <netui:html>
>     <head>
>         <netui:base/>
>     </head>
>     <netui:body>
>         <netui:scriptContainer scopeId="one" >
>         <netui:form action="back">
>               Form Submit Anchor JS Output Test
>               <br/>
>               <netui:textBox dataSource="actionForm.text1" /> <br/>
>               <netui:textBox dataSource="actionForm.text2" /> <br/>
>               <netui:anchor tagId="a1" 
> formSubmit="true">Submit</netui:anchor><br/>
>               <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>";
>     var anchorTag = document.getElementById(lookupIdByTagId("a1",p));
>     val = val + "Anchor Scope Id: <b>" + getScopeId(anchorTag) + "</b><br/>";
>     val = val + "TextBox Name: <b>" + getNetuiTagName("a1", anchorTag) + 
> "</b><br/>";
>     val = val + "TextBox ID: <b>" + lookupIdByTagId("a1",anchorTag) + 
> "</b><br/>";
>     //val = val + "TextBox Name By Lookup: <b>" + 
> lookupNameByTagId("a1",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

Reply via email to