Author: dolander
Date: Wed Mar  2 17:22:29 2005
New Revision: 155986

URL: http://svn.apache.org/viewcvs?view=rev&rev=155986
Log:
Jira 396 -- The defaultValue for a checkBoxOption was made into a boolean


Modified:
    
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBoxOption.java

Modified: 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBoxOption.java
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBoxOption.java?view=diff&r1=155985&r2=155986
==============================================================================
--- 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBoxOption.java
 (original)
+++ 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/CheckBoxOption.java
 Wed Mar  2 17:22:29 2005
@@ -164,20 +164,15 @@
      * description="Sets the default value."
      * @netui.tldx:attribute
      */
-    public void setDefaultValue(Object defaultValue)
+    public void setDefaultValue(boolean defaultValue)
             throws JspException
     {
-        if (defaultValue == null) {
-            String s = Bundle.getString("Tags_AttrValueRequired", new 
Object[]{"defaultValue"});
-            registerTagError(s, null);
-            return;
-        }
-        if (defaultValue instanceof Boolean) {
-            _defaultValue = (Boolean) defaultValue;
-        }
-        else {
-            _defaultValue = Boolean.valueOf(defaultValue.toString());
-        }
+        //if (defaultValue == null) {
+        //    String s = Bundle.getString("Tags_AttrValueRequired", new 
Object[]{"defaultValue"});
+        //    registerTagError(s, null);
+         //   return;
+        //}
+        _defaultValue = Boolean.valueOf(defaultValue);
     }
 
     /**


Reply via email to