Author: dolander
Date: Wed Jul 28 15:11:39 2004
New Revision: 30881

Added:
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtAnchorNullBinding.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtAnchorNullBindingError.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtBaseNullBinding.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtButtonNullBinding.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtCheckboxNullBinding.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtHtmlBaseNullBinding.xml
Modified:
   
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Anchor.java
   
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Button.java
   
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBox.java
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/Accesskey.xml
Log:
Add six BVTs confirming behavior of binding to null values.




Modified: 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Anchor.java
==============================================================================
--- 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Anchor.java
  (original)
+++ 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Anchor.java
  Wed Jul 28 15:11:39 2004
@@ -877,6 +877,8 @@
      */
     public void setAccessKey(char accessKey)
     {
+        if (accessKey == 0x00)
+            return;
         _state.registerAttribute(AbstractHtmlState.ATTR_GENERAL, ACCESSKEY, 
Character.toString(accessKey));
     }
 

Modified: 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Button.java
==============================================================================
--- 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Button.java
  (original)
+++ 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Button.java
  Wed Jul 28 15:11:39 2004
@@ -348,6 +348,8 @@
      */
     public void setAccessKey(char accessKey)
     {
+        if (accessKey == 0x00)
+            return;
         _state.registerAttribute(AbstractHtmlState.ATTR_GENERAL, ACCESSKEY, 
Character.toString(accessKey));
     }
 

Modified: 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBox.java
==============================================================================
--- 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBox.java
        (original)
+++ 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBox.java
        Wed Jul 28 15:11:39 2004
@@ -425,8 +425,9 @@
      */
     public void setAccessKey(char accessKey)
     {
-        AbstractHtmlState tsh = getState();
-        tsh.registerAttribute(AbstractHtmlState.ATTR_GENERAL, ACCESSKEY, 
Character.toString(accessKey));
+        if (accessKey == 0x00)
+            return;
+        _state.registerAttribute(AbstractHtmlState.ATTR_GENERAL, ACCESSKEY, 
Character.toString(accessKey));
     }
 
     /**
@@ -444,8 +445,7 @@
      */
     public void setAlt(String alt)
     {
-        AbstractHtmlState tsh = getState();
-        tsh.registerAttribute(AbstractHtmlState.ATTR_GENERAL, ALT, alt);
+        _state.registerAttribute(AbstractHtmlState.ATTR_GENERAL, ALT, alt);
     }
 
     /**
@@ -464,7 +464,6 @@
      */
     public void setTabindex(int tabindex)
     {
-        AbstractHtmlState tsh = getState();
-        tsh.registerAttribute(AbstractHtmlState.ATTR_GENERAL, TABINDEX, 
Integer.toString(tabindex));
+        _state.registerAttribute(AbstractHtmlState.ATTR_GENERAL, TABINDEX, 
Integer.toString(tabindex));
     }
 }

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
   (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
   Wed Jul 28 15:11:39 2004
@@ -1628,6 +1628,84 @@
          </features>
       </test>
       <test>
+         <name>CtAnchorNullBinding</name>
+         <description>Binding to null in the Anchor attributes</description>
+         <webapp>coreWeb</webapp>
+         <categories>
+            <category>bvt</category>
+            <category>tags</category>
+         </categories>
+         <features>
+            <feature>Anchor</feature>
+            <feature>Binding</feature>
+         </features>
+      </test>
+      <test>
+         <name>CtAnchorNullBindingError</name>
+         <description>Binding to null in the Anchor attributes that result in 
errors</description>
+         <webapp>coreWeb</webapp>
+         <categories>
+            <category>bvt</category>
+            <category>tags</category>
+         </categories>
+         <features>
+            <feature>Anchor</feature>
+            <feature>Binding</feature>
+         </features>
+      </test>
+      <test>
+         <name>CtBaseNullBinding</name>
+         <description>Binding to null in the Base tags attributes</description>
+         <webapp>coreWeb</webapp>
+         <categories>
+            <category>bvt</category>
+            <category>tags</category>
+         </categories>
+         <features>
+            <feature>Base</feature>
+            <feature>Binding</feature>
+         </features>
+      </test>
+      <test>
+         <name>CtButtonNullBinding</name>
+         <description>Binding to null in the Button tags 
attributes</description>
+         <webapp>coreWeb</webapp>
+         <categories>
+            <category>bvt</category>
+            <category>tags</category>
+         </categories>
+         <features>
+            <feature>Button</feature>
+            <feature>Binding</feature>
+         </features>
+      </test>
+      <test>
+         <name>CtCheckboxNullBinding</name>
+         <description>Binding to null in the Checkbox tags 
attributes</description>
+         <webapp>coreWeb</webapp>
+         <categories>
+            <category>bvt</category>
+            <category>tags</category>
+         </categories>
+         <features>
+            <feature>Checkbox</feature>
+            <feature>Binding</feature>
+         </features>
+      </test>
+      <test>
+         <name>CtHtmlBaseNullBinding</name>
+         <description>Binding to null in the HtmlBaseTag 
attributes</description>
+         <webapp>coreWeb</webapp>
+         <categories>
+            <category>bvt</category>
+            <category>tags</category>
+         </categories>
+         <features>
+            <feature>HtmlBaseTag</feature>
+            <feature>Binding</feature>
+         </features>
+      </test>
+      <test>
          <name>CustomTypeConverterTest</name>
          <description>Test the use of pluggable type converters.</description>
          <webapp>coreWeb</webapp>

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/Accesskey.xml
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/Accesskey.xml 
    (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/Accesskey.xml 
    Wed Jul 28 15:11:39 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>Accesskey</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>24 Jul 2004, 05:29:34.427 PM MDT</ses:startDate>
+   <ses:startDate>28 Jul 2004, 03:58:59.997 PM MDT</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -43,7 +43,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>4b58bc9d:fdf37c62e7:-7ffa</ses:value>
+                  <ses:value>3121d2e:fe07c36825:-8000</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -130,7 +130,7 @@
             </table>
             <br/>&nbsp;
             <input type="submit" value="Form Submit" accesskey="F" 
alt="PageFlow Text for Alt"><b>(F)</b>
-            <input type="Reset" value="Reset" accesskey="R" alt="PageFlow Text 
for Alt"><b>(R)</b>
+            <input type="reset" value="Reset" accesskey="R" alt="PageFlow Text 
for Alt"><b>(R)</b>
             <input type="image" src="/coreWeb/tags/accesskey/./folder.gif" 
accesskey="X"><b>(X)</b>
         </form>
     </body>
@@ -198,7 +198,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>14228672210353B2A456B18BD26BB24B</ses:value>
+                  <ses:value>A16EC57AE85CC0956E869F239A776903</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -232,7 +232,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=14228672210353B2A456B18BD26BB24B; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=A16EC57AE85CC0956E869F239A776903; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -248,7 +248,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>4b58bc9d:fdf37c62e7:-7ffa</ses:value>
+                  <ses:value>3121d2e:fe07c36825:-8000</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -300,7 +300,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>24 Jul 2004, 05:29:50.971 PM MDT</ses:endDate>
+   <ses:endDate>28 Jul 2004, 03:59:07.708 PM MDT</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>2</ses:testCount>
    <ses:passedCount>1</ses:passedCount>

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtAnchorNullBinding.xml
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtAnchorNullBinding.xml
   Wed Jul 28 15:11:39 2004
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
+   <ses:sessionName>CtAnchorNullBinding</ses:sessionName>
+   <ses:tester>Daryl</ses:tester>
+   <ses:startDate>28 Jul 2004, 02:38:27.379 PM MDT</ses:startDate>
+   <ses:description>binding to null in the Anchor attributes</ses:description>
+   <ses:tests>
+      <ses:test>
+         <ses:testNumber>1</ses:testNumber>
+         <ses:request>
+            <ses:protocol>HTTP</ses:protocol>
+            <ses:protocolVersion>1.1</ses:protocolVersion>
+            <ses:host>localhost</ses:host>
+            <ses:port>8080</ses:port>
+            
<ses:uri>/coreWeb/coretags/anchor/nullbinding/Controller.jpf</ses:uri>
+            <ses:method>GET</ses:method>
+            <ses:parameters/>
+            <ses:cookies>
+               <ses:cookie>
+                  <ses:name>JSESSIONID</ses:name>
+                  <ses:value>9612F0E66ACADBE27000B4776C60C829</ses:value>
+               </ses:cookie>
+            </ses:cookies>
+            <ses:headers>
+               <ses:header>
+                  <ses:name>accept</ses:name>
+                  <ses:value>image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, 
application/msword, application/x-shockwave-flash, */*</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-encoding</ses:name>
+                  <ses:value>gzip, deflate</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-language</ses:name>
+                  <ses:value>en-us</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>connection</ses:name>
+                  <ses:value>Keep-Alive</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>cookie</ses:name>
+                  
<ses:value>JSESSIONID=9612F0E66ACADBE27000B4776C60C829</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>host</ses:name>
+                  <ses:value>localhost:8080</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>referer</ses:name>
+                  
<ses:value>http://localhost:8080/coreWeb/coretags/index.jsp</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>user-agent</ses:name>
+                  <ses:value>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 
5.1)</ses:value>
+               </ses:header>
+            </ses:headers>
+         </ses:request>
+         <ses:response>
+            <ses:statusCode>200</ses:statusCode>
+            <ses:reason/>
+            <ses:responseBody><![CDATA[<!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 
4.01 Transitional//EN"
+       "http://www.w3.org/TR/html4/loose.dtd";>
+<html lang="en">
+<head>
+        <base 
href="http://localhost:8080/coreWeb/coretags/anchor/nullbinding/index.jsp";>
+    </head>
+    <body>
+    <h4>Anchor Null Binding</h4>
+    <p style="color:green">
+        This test will null bind to a bunch of attributes on the anchor.  
These should all be ignored without
+        warning.  In the first case, the anchors should all be exactly the 
same.  The attribute bound to a
+        null expression is ignored in the output.  The second set of anchor 
have default values for there
+        parameters.<br>
+        This is a single page test. 
+    </p>
+    <hr>
+    <ul>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
charSet</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
coords</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
hrefLang</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
location</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
onBlur</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
onFocus</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
rel</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
rev</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
scope</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
shape</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
target</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
type</li>
+    </ul>
+    <ul>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do">Link</a> -- 
accessKey</li>
+    <li><a href="/coreWeb/coretags/anchor/nullbinding/begin.do" 
tabindex="0">Link</a> -- tabindex</li>
+    </ul>
+    <hr>
+    
+    </body>
+</html>]]></ses:responseBody>
+         </ses:response>
+      </ses:test>
+   </ses:tests>
+   <ses:endDate>28 Jul 2004, 02:38:35.230 PM MDT</ses:endDate>
+   <ses:testCount>1</ses:testCount>
+</ses:recorderSession>

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtAnchorNullBindingError.xml
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtAnchorNullBindingError.xml
      Wed Jul 28 15:11:39 2004
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
+   <ses:sessionName>CtAnchorNullBindingError</ses:sessionName>
+   <ses:tester>Daryl</ses:tester>
+   <ses:startDate>28 Jul 2004, 02:39:08.427 PM MDT</ses:startDate>
+   <ses:description>Null binding to the Anchor attributes that cause 
errors</ses:description>
+   <ses:tests>
+      <ses:test>
+         <ses:testNumber>1</ses:testNumber>
+         <ses:request>
+            <ses:protocol>HTTP</ses:protocol>
+            <ses:protocolVersion>1.1</ses:protocolVersion>
+            <ses:host>localhost</ses:host>
+            <ses:port>8080</ses:port>
+            
<ses:uri>/coreWeb/coretags/anchor/nullbindingerror/Controller.jpf</ses:uri>
+            <ses:method>GET</ses:method>
+            <ses:parameters/>
+            <ses:cookies>
+               <ses:cookie>
+                  <ses:name>JSESSIONID</ses:name>
+                  <ses:value>9612F0E66ACADBE27000B4776C60C829</ses:value>
+               </ses:cookie>
+            </ses:cookies>
+            <ses:headers>
+               <ses:header>
+                  <ses:name>accept</ses:name>
+                  <ses:value>image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, 
application/msword, application/x-shockwave-flash, */*</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-encoding</ses:name>
+                  <ses:value>gzip, deflate</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-language</ses:name>
+                  <ses:value>en-us</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>connection</ses:name>
+                  <ses:value>Keep-Alive</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>cookie</ses:name>
+                  
<ses:value>JSESSIONID=9612F0E66ACADBE27000B4776C60C829</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>host</ses:name>
+                  <ses:value>localhost:8080</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>referer</ses:name>
+                  
<ses:value>http://localhost:8080/coreWeb/coretags/index.jsp</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>user-agent</ses:name>
+                  <ses:value>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 
5.1)</ses:value>
+               </ses:header>
+            </ses:headers>
+         </ses:request>
+         <ses:response>
+            <ses:statusCode>200</ses:statusCode>
+            <ses:reason/>
+            <ses:responseBody><![CDATA[<!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 
4.01 Transitional//EN"
+       "http://www.w3.org/TR/html4/loose.dtd";>
+<html lang="en">
+<head>
+        <base 
href="http://localhost:8080/coreWeb/coretags/anchor/nullbindingerror/index.jsp";>
+    </head>
+    <body>
+    <h4>Anchor Null Binding Errors</h4>
+    <p style="color:green">
+        This test will test null binding against various attributes of the 
anchor that should raise errors.  
+        The first set of test bind to
+        the core anchor properties <b>action, href, clientAction, 
linkName</b>.  Of these, only the href accepts
+        the value "".  All the rest will raise a runtime error.<br>
+        This is a single page test.
+    </p>
+    <p style="color:green">
+        The second test binds to <b>tagId</b> which will raise an error.
+    </p>
+    <hr>
+    <ul>
+    <li>action -- <span style="color:red;background-color:white">
+ [<b>Tag Error:1</b>, Found in tag <b>Anchor</b>]</span></li>
+    <li>href -- <a href="">Null href</a></li>
+    <li>clientAction -- <span style="color:red;background-color:white">
+ [<b>Tag Error:2</b>, Found in tag <b>Anchor</b>]</span></li>
+    <li>linkName -- <span style="color:red;background-color:white">
+ [<b>Tag Error:3</b>, Found in tag <b>Anchor</b>]</span></li>
+    </ul>
+    <hr>
+    <ul>
+    <li>tagId -- <span style="color:red;background-color:white">
+ [<b>Tag Error:4</b>, Found in tag <b>Anchor</b>]</span></li>
+    </u>    
+    <div> <hr /><table border="1" cellspacing="0" 
style="color:red;background-color:white">
+ <tr><th colspan="6">Page Errors</th></tr>
+ <tr><th>Error Number</th><th>Tag Type</th><th colspan="4">Error</th></tr>
+<tr><th>1</th><th>Anchor</th><th>Message</th><td>Attribute 'action' is 
required to have a value.  The value "" is illegal.  This is often cause by 
binding to an object with a null value.</td></tr>
+<tr><th>2</th><th>Anchor</th><th>Message</th><td>Attribute 'clientAction' is 
required to have a value.  The value "" is illegal.  This is often cause by 
binding to an object with a null value.</td></tr>
+<tr><th>3</th><th>Anchor</th><th>Message</th><td>Attribute 'linkName' is 
required to have a value.  The value "" is illegal.  This is often cause by 
binding to an object with a null value.</td></tr>
+<tr><th>4</th><th>Anchor</th><th>Message</th><td>Attribute 'tagId' is required 
to have a value.  The value "" is illegal.  This is often cause by binding to 
an object with a null value.</td></tr>
+</table></div>
+</body>
+</html>]]></ses:responseBody>
+         </ses:response>
+      </ses:test>
+   </ses:tests>
+   <ses:endDate>28 Jul 2004, 02:39:16.989 PM MDT</ses:endDate>
+   <ses:testCount>1</ses:testCount>
+</ses:recorderSession>

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtBaseNullBinding.xml
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtBaseNullBinding.xml
     Wed Jul 28 15:11:39 2004
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
+   <ses:sessionName>CtBaseNullBinding</ses:sessionName>
+   <ses:tester>Daryl</ses:tester>
+   <ses:startDate>28 Jul 2004, 02:40:37.973 PM MDT</ses:startDate>
+   <ses:description>Null Binding to the Base attributes</ses:description>
+   <ses:tests>
+      <ses:test>
+         <ses:testNumber>1</ses:testNumber>
+         <ses:request>
+            <ses:protocol>HTTP</ses:protocol>
+            <ses:protocolVersion>1.1</ses:protocolVersion>
+            <ses:host>localhost</ses:host>
+            <ses:port>8080</ses:port>
+            
<ses:uri>/coreWeb/coretags/base/nullbinding/Controller.jpf</ses:uri>
+            <ses:method>GET</ses:method>
+            <ses:parameters/>
+            <ses:cookies>
+               <ses:cookie>
+                  <ses:name>JSESSIONID</ses:name>
+                  <ses:value>DBDB337A2C9975B7B9244068EBD48228</ses:value>
+               </ses:cookie>
+            </ses:cookies>
+            <ses:headers>
+               <ses:header>
+                  <ses:name>accept</ses:name>
+                  <ses:value>image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, 
application/msword, application/x-shockwave-flash, */*</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-encoding</ses:name>
+                  <ses:value>gzip, deflate</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-language</ses:name>
+                  <ses:value>en-us</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>connection</ses:name>
+                  <ses:value>Keep-Alive</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>cookie</ses:name>
+                  
<ses:value>JSESSIONID=DBDB337A2C9975B7B9244068EBD48228</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>host</ses:name>
+                  <ses:value>localhost:8080</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>user-agent</ses:name>
+                  <ses:value>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 
5.1)</ses:value>
+               </ses:header>
+            </ses:headers>
+         </ses:request>
+         <ses:response>
+            <ses:statusCode>200</ses:statusCode>
+            <ses:reason/>
+            <ses:responseBody><![CDATA[<!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 
4.01 Transitional//EN"
+       "http://www.w3.org/TR/html4/loose.dtd";>
+<html lang="en">
+<head>
+        <base 
href="http://localhost:8080/coreWeb/coretags/base/nullbinding/index.jsp";>
+    </head>
+    <body>
+    <h4>Null binding in the base tag</h4>
+    <p style="color:green">
+    This test simply binds the base tag to a value that results in null.  In 
the base 
+    found in the head, there should not be a target.
+    </p>
+    </body>
+</html>]]></ses:responseBody>
+         </ses:response>
+      </ses:test>
+   </ses:tests>
+   <ses:endDate>28 Jul 2004, 02:40:47.776 PM MDT</ses:endDate>
+   <ses:testCount>1</ses:testCount>
+</ses:recorderSession>

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtButtonNullBinding.xml
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtButtonNullBinding.xml
   Wed Jul 28 15:11:39 2004
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
+   <ses:sessionName>CtButtonNullBinding</ses:sessionName>
+   <ses:tester>Daryl</ses:tester>
+   <ses:startDate>28 Jul 2004, 04:02:01.539 PM MDT</ses:startDate>
+   <ses:description>Daryl</ses:description>
+   <ses:tests>
+      <ses:test>
+         <ses:testNumber>1</ses:testNumber>
+         <ses:request>
+            <ses:protocol>HTTP</ses:protocol>
+            <ses:protocolVersion>1.1</ses:protocolVersion>
+            <ses:host>localhost</ses:host>
+            <ses:port>8080</ses:port>
+            
<ses:uri>/coreWeb/coretags/button/nullbinding/Controller.jpf</ses:uri>
+            <ses:method>GET</ses:method>
+            <ses:parameters/>
+            <ses:cookies/>
+            <ses:headers>
+               <ses:header>
+                  <ses:name>accept</ses:name>
+                  <ses:value>image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, 
application/msword, application/x-shockwave-flash, */*</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-encoding</ses:name>
+                  <ses:value>gzip, deflate</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-language</ses:name>
+                  <ses:value>en-us</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>connection</ses:name>
+                  <ses:value>Keep-Alive</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>host</ses:name>
+                  <ses:value>localhost:8080</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>testrecorder.playback.testid</ses:name>
+                  <ses:value>3121d2e:fe07c36825:-7e39</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>user-agent</ses:name>
+                  <ses:value>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 
5.1)</ses:value>
+               </ses:header>
+            </ses:headers>
+         </ses:request>
+         <ses:response>
+            <ses:statusCode>200</ses:statusCode>
+            <ses:reason/>
+            <ses:responseBody><![CDATA[<!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 
4.01 Transitional//EN"
+       "http://www.w3.org/TR/html4/loose.dtd";>
+<html lang="en">
+<head>
+        <base 
href="http://localhost:8080/coreWeb/coretags/button/nullbinding/index.jsp";>
+    </head>
+    <body>
+    <h4>Button Null Binding</h4>
+    <p style="color:green">There are two sets of tests.  The first set set all 
the attributes
+    that should result in errors [action, tagId and type].  In the last set of 
tests, the first
+    simply ignores the default value.  The second and third both will output 
the default value.
+    <br>
+    This is a single page test.  
+    </p>
+    <hr>
+    <ul>
+    <li><span style="color:red;background-color:white">
+ [<b>Tag Error:1</b>, Found in tag <b>Button</b>]</span> -- action</li>
+    <li><span style="color:red;background-color:white">
+ [<b>Tag Error:2</b>, Found in tag <b>Button</b>]</span> -- tagId</li>
+    <li><span style="color:red;background-color:white">
+ [<b>Tag Error:3</b>, Found in tag <b>Button</b>]</span> -- type</li>
+    </ul>
+    <hr>
+    <ul>
+    <li><input type="submit" value="Click"> -- value</li>
+    <li><input type="submit" value="Click" tabindex="0"> -- tabindex</li>
+    <li><input type="submit" value="Click"> -- accessKey</li>
+    </ul>
+    <hr>
+    
+    <div> <hr /><table border="1" cellspacing="0" 
style="color:red;background-color:white">
+ <tr><th colspan="6">Page Errors</th></tr>
+ <tr><th>Error Number</th><th>Tag Type</th><th colspan="4">Error</th></tr>
+<tr><th>1</th><th>Button</th><th>Message</th><td>Attribute 'action' is 
required to have a value.  The value "" is illegal.  This is often cause by 
binding to an object with a null value.</td></tr>
+<tr><th>2</th><th>Button</th><th>Message</th><td>Attribute 'tagId' is required 
to have a value.  The value "" is illegal.  This is often cause by binding to 
an object with a null value.</td></tr>
+<tr><th>3</th><th>Button</th><th>Message</th><td>The type of a button must be 
one of submit, button or reset, found ''.</td></tr>
+</table></div>
+</body>
+</html>]]></ses:responseBody>
+         </ses:response>
+         <ses:testResults>
+            <ses:testStatus>fail</ses:testStatus>
+         </ses:testResults>
+      </ses:test>
+   </ses:tests>
+   <ses:endDate>28 Jul 2004, 04:02:02.330 PM MDT</ses:endDate>
+   <ses:sessionStatus>fail</ses:sessionStatus>
+   <ses:testCount>1</ses:testCount>
+   <ses:passedCount>0</ses:passedCount>
+   <ses:failedCount>1</ses:failedCount>
+</ses:recorderSession>

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtCheckboxNullBinding.xml
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtCheckboxNullBinding.xml
 Wed Jul 28 15:11:39 2004
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
+   <ses:sessionName>CtCheckboxNullBinding</ses:sessionName>
+   <ses:tester>Daryl</ses:tester>
+   <ses:startDate>28 Jul 2004, 04:02:02.360 PM MDT</ses:startDate>
+   <ses:description>Daryl</ses:description>
+   <ses:tests>
+      <ses:test>
+         <ses:testNumber>1</ses:testNumber>
+         <ses:request>
+            <ses:protocol>HTTP</ses:protocol>
+            <ses:protocolVersion>1.1</ses:protocolVersion>
+            <ses:host>localhost</ses:host>
+            <ses:port>8080</ses:port>
+            
<ses:uri>/coreWeb/coretags/checkbox/nullbinding/Controller.jpf</ses:uri>
+            <ses:method>GET</ses:method>
+            <ses:parameters/>
+            <ses:cookies/>
+            <ses:headers>
+               <ses:header>
+                  <ses:name>accept</ses:name>
+                  <ses:value>image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, 
application/msword, application/x-shockwave-flash, */*</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-encoding</ses:name>
+                  <ses:value>gzip, deflate</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-language</ses:name>
+                  <ses:value>en-us</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>connection</ses:name>
+                  <ses:value>Keep-Alive</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>host</ses:name>
+                  <ses:value>localhost:8080</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>testrecorder.playback.testid</ses:name>
+                  <ses:value>3121d2e:fe07c36825:-7e37</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>user-agent</ses:name>
+                  <ses:value>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 
5.1)</ses:value>
+               </ses:header>
+            </ses:headers>
+         </ses:request>
+         <ses:response>
+            <ses:statusCode>200</ses:statusCode>
+            <ses:reason/>
+            <ses:responseBody><![CDATA[<!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 
4.01 Transitional//EN"
+       "http://www.w3.org/TR/html4/loose.dtd";>
+<html lang="en">
+<head>
+        <base 
href="http://localhost:8080/coreWeb/coretags/checkbox/nullbinding/index.jsp";>
+    </head>
+    <body>
+    <h4>CheckBox Null Binding</h4>
+    <p style="color:green">This test binds the primary attributes of the 
checkbox tag to a null value.
+    In the first set of tests, the value is ignored.  In the second set of 
tests, the default value is
+    output.  In the third set of tests, <b>tagId</b> will result in an error 
and the <b>defaultValue</b> will
+    result in a false.
+    <br>
+    This is a single page test.  
+    </p>
+    <hr>
+    <ul>
+    <li><input type="hidden" 
name="wlw-checkbox_key:{pageFlow.values[0]}OldValue" value="false"><input 
type="checkbox" name="wlw-checkbox_key:{pageFlow.values[0]}" checked> -- 
alt</li>
+    <li><input type="hidden" 
name="wlw-checkbox_key:{pageFlow.values[1]}OldValue" value="false"><input 
type="checkbox" name="wlw-checkbox_key:{pageFlow.values[1]}" checked> -- 
title</li>
+    </ul>
+    <hr>
+    <ul>
+    <li><input type="hidden" 
name="wlw-checkbox_key:{pageFlow.values[2]}OldValue" value="false"><input 
type="checkbox" name="wlw-checkbox_key:{pageFlow.values[2]}" checked 
tabindex="0"> -- tabindex</li>
+    <li><input type="hidden" 
name="wlw-checkbox_key:{pageFlow.values[3]}OldValue" value="false"><input 
type="checkbox" name="wlw-checkbox_key:{pageFlow.values[3]}" checked> -- 
accessKey</li>
+    </ul>
+    <hr>
+    <ul>
+    <li><span style="color:red;background-color:white">
+ [<b>Tag Error:1</b>, Found in tag <b>CheckBox</b>]</span> -- tagId</li>
+    <li><input type="hidden" 
name="wlw-checkbox_key:{pageFlow.nullBoolean}OldValue" value="false"><input 
type="checkbox" name="wlw-checkbox_key:{pageFlow.nullBoolean}"> -- 
defaultValue</li>
+    </ul>
+    <hr>
+    <ul>
+    
+    <div> <hr /><table border="1" cellspacing="0" 
style="color:red;background-color:white">
+ <tr><th colspan="6">Page Errors</th></tr>
+ <tr><th>Error Number</th><th>Tag Type</th><th colspan="4">Error</th></tr>
+<tr><th>1</th><th>CheckBox</th><th>Message</th><td>Attribute 'tagId' is 
required to have a value.  The value "" is illegal.  This is often cause by 
binding to an object with a null value.</td></tr>
+</table></div>
+</body>
+</html>]]></ses:responseBody>
+         </ses:response>
+         <ses:testResults>
+            <ses:testStatus>fail</ses:testStatus>
+         </ses:testResults>
+      </ses:test>
+   </ses:tests>
+   <ses:endDate>28 Jul 2004, 04:02:03.111 PM MDT</ses:endDate>
+   <ses:sessionStatus>fail</ses:sessionStatus>
+   <ses:testCount>1</ses:testCount>
+   <ses:passedCount>0</ses:passedCount>
+   <ses:failedCount>1</ses:failedCount>
+</ses:recorderSession>

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtHtmlBaseNullBinding.xml
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtHtmlBaseNullBinding.xml
 Wed Jul 28 15:11:39 2004
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
+   <ses:sessionName>CtHtmlBaseNullBinding</ses:sessionName>
+   <ses:tester>Daryl</ses:tester>
+   <ses:startDate>28 Jul 2004, 02:44:47.003 PM MDT</ses:startDate>
+   <ses:description>Null binding to the HtmlBaseTag 
attributes</ses:description>
+   <ses:tests>
+      <ses:test>
+         <ses:testNumber>1</ses:testNumber>
+         <ses:request>
+            <ses:protocol>HTTP</ses:protocol>
+            <ses:protocolVersion>1.1</ses:protocolVersion>
+            <ses:host>localhost</ses:host>
+            <ses:port>8080</ses:port>
+            
<ses:uri>/coreWeb/coretags/htmlbase/nullbinding/Controller.jpf</ses:uri>
+            <ses:method>GET</ses:method>
+            <ses:parameters/>
+            <ses:cookies>
+               <ses:cookie>
+                  <ses:name>JSESSIONID</ses:name>
+                  <ses:value>2B4B42181822A4FB261BC3696B59717B</ses:value>
+               </ses:cookie>
+            </ses:cookies>
+            <ses:headers>
+               <ses:header>
+                  <ses:name>accept</ses:name>
+                  <ses:value>image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, 
application/msword, application/x-shockwave-flash, */*</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-encoding</ses:name>
+                  <ses:value>gzip, deflate</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-language</ses:name>
+                  <ses:value>en-us</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>connection</ses:name>
+                  <ses:value>Keep-Alive</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>cookie</ses:name>
+                  
<ses:value>JSESSIONID=2B4B42181822A4FB261BC3696B59717B</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>host</ses:name>
+                  <ses:value>localhost:8080</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>user-agent</ses:name>
+                  <ses:value>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 
5.1)</ses:value>
+               </ses:header>
+            </ses:headers>
+         </ses:request>
+         <ses:response>
+            <ses:statusCode>200</ses:statusCode>
+            <ses:reason/>
+            <ses:responseBody><![CDATA[<!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 
4.01 Transitional//EN"
+       "http://www.w3.org/TR/html4/loose.dtd";>
+<html lang="en">
+<head>
+        <base 
href="http://localhost:8080/coreWeb/coretags/htmlbase/nullbinding/index.jsp";>
+    </head>
+    <body>
+    <h4>HtmlBase Attribute Binding</h4>
+    <p style="color:green">
+        This test will null bind to a bunch of attributes on which are defined 
on the HtmlBaseTag class.  These
+        attributes are exposed on a bunch of the HTML tags.  In all cases 
below, when a value is resolved
+        to null, the value is ignored.  All of the anchors in this test should 
result in the same markup.<br>
+        This is a single page test. 
+    </p>
+    <hr>
+    <ul>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
style</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
styleClass</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
title</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
onClick</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
onDblClick</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
onKeyDown</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
onKeyPress</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
onKeyUp</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
onMouseDown</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
onMouseMove</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
onMouseOut</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
onMouseOver</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
onMouseUp</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
dir</li>
+    <li><a href="/coreWeb/coretags/htmlbase/nullbinding/begin.do">Link</a> -- 
lang</li>
+    </ul>
+    <hr>
+    
+    </body>
+</html>]]></ses:responseBody>
+         </ses:response>
+      </ses:test>
+   </ses:tests>
+   <ses:endDate>28 Jul 2004, 02:44:54.514 PM MDT</ses:endDate>
+   <ses:testCount>1</ses:testCount>
+</ses:recorderSession>

Reply via email to