beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryl Olander (JIRA)" <beehive-...@incubator.apache.org>
Subject [jira] Resolved: (BEEHIVE-159) CheckBoxOption tag does not output id lookup JS when tagId is set
Date Wed, 09 Feb 2005 20:00:12 GMT
     [ http://issues.apache.org/jira/browse/BEEHIVE-159?page=history ]
     
Daryl Olander resolved BEEHIVE-159:
-----------------------------------

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

The CheckBoxOption and RadioButtonOption didn't support setting tagId.  I added support for
doing this which causes the JavaScript to be generated.

What is not supported the legacy mapping because this was never supported in older versions
so it's not legacy.   These tags only support the default tagId support.

I verified this both through the repeating use of options and the common use of options.

There are two tests verifying the behavior
coreWeb/bugs/j159 -- This is basically the repo
coreWeb/coretags/cbg/id -- This verifies repeating use

> CheckBoxOption tag does not output id lookup JS when tagId is set
> -----------------------------------------------------------------
>
>          Key: BEEHIVE-159
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-159
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Julie Zhuo
>     Assignee: Julie Zhuo

>
> Here is the JSP page where a CheckBoxOption has tagId set and its html output.
> ***** checkBoxOption.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">
>                 CheckBoxOption JS Output Test<br/>
>                 <netui:checkBoxGroup dataSource="actionForm">
>                     <netui:checkBoxOption tagId="cbo1" value="Text1"></netui:checkBoxOption>
>                     <netui:checkBoxOption tagId="cbo2" value="Text2"></netui:checkBoxOption>
>                 </netui:checkBoxGroup>
>                <br/>
>                 <netui:button value="Submit"/><br/>
>         </netui:form>
>         </netui:scriptContainer>
>         <p id="javaOut"></p>
>     </netui:body>
>     <script language="JavaScript" type="text/JavaScript">
>     var p = document.getElementById("javaOut");
>     var val = "<b>Document Access</b><br/>";
>     var cboTag = document.getElementById(lookupIdByTagId("cbo1",document.forms[0]));
>     val = val + "CheckBoxOption Scope Id: <b>" + getScopeId(cboTag) + "</b><br/>";
>     val = val + "CheckBoxOption Name: <b>" + getNetuiTagName("cbo1",cboTag) + "</b><br/>";
>     val = val + "CheckBoxOption ID: <b>" + lookupIdByTagId("cbo1",cboTag) + "</b><br/>";
>     val = val + "CheckBoxOption Name By Lookup: <b>" + lookupNameByTagId("cbo1",cboTag)
+ "</b><br/>";
>     p.innerHTML = val;
>     </script>
> </netui:html>
> ******* HTML Output *******
> <!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 4.01 Transitional//EN"
> >
> <html lang="en">
>     <head>
>         <base href="http://localhost:7001/JavaScriptWeb/outputTest/checkBoxOption.jsp">
>     </head>
>     <body>
>             <div netui:scopeId="one" >
>         <form name="bean" action="/JavaScriptWeb/outputTest/back.do" method="post">
>                 CheckBoxOption JS Output Test<br/>
>                 <input type="hidden" name="wlw-checkbox_group_key:{actionForm}OldValue"
value="true">
>                     <input type="checkbox" name="wlw-checkbox_group_key:{actionForm}"
id="cbo1" value="Text1"><span>Text1</span>
>                     <input type="checkbox" name="wlw-checkbox_group_key:{actionForm}"
id="cbo2" value="Text2"><span>Text2</span>
>                 
>                <br/>
>                 <input type="submit" value="Submit"><br/>
>         </form>
>         </div>
>         <p id="javaOut"></p>
>     </body>
>     <script language="JavaScript" type="text/JavaScript">
>     var p = document.getElementById("javaOut");
>     var val = "<b>Document Access</b><br/>";
>     var cboTag = document.getElementById(lookupIdByTagId("cbo1",document.forms[0]));
>     val = val + "CheckBoxOption Scope Id: <b>" + getScopeId(cboTag) + "</b><br/>";
>     val = val + "CheckBoxOption Name: <b>" + getNetuiTagName("cbo1",cboTag) + "</b><br/>";
>     val = val + "CheckBoxOption ID: <b>" + lookupIdByTagId("cbo1",cboTag) + "</b><br/>";
>     val = val + "CheckBoxOption Name By Lookup: <b>" + lookupNameByTagId("cbo1",cboTag)
+ "</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


Mime
View raw message