You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by cs...@apache.org on 2006/03/27 23:04:40 UTC

svn commit: r389270 - in /beehive/trunk/netui: src/tags-html/org/apache/beehive/netui/tags/html/ test/webapps/drt/testRecorder/tests/

Author: cschoett
Date: Mon Mar 27 13:04:38 2006
New Revision: 389270

URL: http://svn.apache.org/viewcvs?rev=389270&view=rev
Log:
Fix for BEEHIVE-1085, updated tags which extend HtmlFocusBaseTag to set disabled attribute using the setDisabled() call instead of setting in state for netui attribute settings.

Modified:
    beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBox.java
    beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBoxOption.java
    beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ImageButton.java
    beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RadioButtonOption.java
    beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/TextArea.java
    beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/TextBox.java
    beehive/trunk/netui/test/webapps/drt/testRecorder/tests/AttributeTag.xml

Modified: beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBox.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBox.java?rev=389270&r1=389269&r2=389270&view=diff
==============================================================================
--- beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBox.java (original)
+++ beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBox.java Mon Mar 27 13:04:38 2006
@@ -180,7 +180,7 @@
             }
             else {
                 if (name.equals(DISABLED)) {
-                    _state.disabled = new Boolean(value).booleanValue();
+                    setDisabled(Boolean.parseBoolean(value));
                     return;
                 }
             }

Modified: beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBoxOption.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBoxOption.java?rev=389270&r1=389269&r2=389270&view=diff
==============================================================================
--- beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBoxOption.java (original)
+++ beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBoxOption.java Mon Mar 27 13:04:38 2006
@@ -93,7 +93,7 @@
             }
             else {
                 if (name.equals(DISABLED)) {
-                    _state.disabled = new Boolean(value).booleanValue();
+                    setDisabled(Boolean.parseBoolean(value));
                     return;
                 }
             }

Modified: beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ImageButton.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ImageButton.java?rev=389270&r1=389269&r2=389270&view=diff
==============================================================================
--- beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ImageButton.java (original)
+++ beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ImageButton.java Mon Mar 27 13:04:38 2006
@@ -101,7 +101,7 @@
             }
             else {
                 if (name.equals(DISABLED)) {
-                    _state.disabled = new Boolean(value).booleanValue();
+                    setDisabled(Boolean.parseBoolean(value));
                     return;
                 }
             }

Modified: beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RadioButtonOption.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RadioButtonOption.java?rev=389270&r1=389269&r2=389270&view=diff
==============================================================================
--- beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RadioButtonOption.java (original)
+++ beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RadioButtonOption.java Mon Mar 27 13:04:38 2006
@@ -87,7 +87,7 @@
             }
             else {
                 if (name.equals(DISABLED)) {
-                    _state.disabled = new Boolean(value).booleanValue();
+                    setDisabled(Boolean.parseBoolean(value));
                     return;
                 }
             }

Modified: beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/TextArea.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/TextArea.java?rev=389270&r1=389269&r2=389270&view=diff
==============================================================================
--- beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/TextArea.java (original)
+++ beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/TextArea.java Mon Mar 27 13:04:38 2006
@@ -80,7 +80,7 @@
     {
         if (name != null) {
             if (name.equals(DISABLED)) {
-                _state.disabled = new Boolean(value).booleanValue();
+                setDisabled(Boolean.parseBoolean(value));
                 return;
             }
             else if (name.equals(READONLY)) {

Modified: beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/TextBox.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/TextBox.java?rev=389270&r1=389269&r2=389270&view=diff
==============================================================================
--- beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/TextBox.java (original)
+++ beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/TextBox.java Mon Mar 27 13:04:38 2006
@@ -84,7 +84,7 @@
             }
             else {
                 if (name.equals(DISABLED)) {
-                    _state.disabled = new Boolean(value).booleanValue();
+                    setDisabled(Boolean.parseBoolean(value));
                     return;
                 }
                 else if (name.equals(READONLY)) {

Modified: beehive/trunk/netui/test/webapps/drt/testRecorder/tests/AttributeTag.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/AttributeTag.xml?rev=389270&r1=389269&r2=389270&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/testRecorder/tests/AttributeTag.xml (original)
+++ beehive/trunk/netui/test/webapps/drt/testRecorder/tests/AttributeTag.xml Mon Mar 27 13:04:38 2006
@@ -1279,7 +1279,7 @@
                 <tr valign="top">
                     <td>TheProperty:</td>
                     <td>
-                    <textarea name="{actionForm.theProperty}" class="MyAttributeClass" disabled rows="5" cols="5" customAttr="red" anotherCustomAttr="anotherCustomValue" style="MyAttributeStyle"></textarea>                    
+                    <textarea name="{actionForm.theProperty}" class="MyAttributeClass" rows="5" cols="5" customAttr="red" anotherCustomAttr="anotherCustomValue" style="MyAttributeStyle"></textarea>                    
                     </td>
                 </tr>
             </table>
@@ -1359,7 +1359,7 @@
                 <tr valign="top">
                     <td>TheProperty:</td>
                     <td>
-                    <input type="text" name="{actionForm.theProperty}" class="MyAttributeClass" maxlength="10" size="5" disabled customAttr="red" anotherCustomAttr="anotherCustomValue" style="MyAttributeStyle">                    
+                    <input type="text" name="{actionForm.theProperty}" class="MyAttributeClass" maxlength="10" size="5" customAttr="red" anotherCustomAttr="anotherCustomValue" style="MyAttributeStyle">                    
                     </td>
                 </tr>
             </table>