1. opensymphony
  2. webwork

Commits

cameronbraid  committed 668b628

fixed bug that was detected while testing the new xwork jar.
changed doEndTag return codes to be JSP spec compliant.

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@63573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits aaf59af
  • Branches master

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/views/jsp/ui/SelectTag.java

View file
  • Ignore whitespace
 
     //~ Instance fields ////////////////////////////////////////////////////////
 
+    private String defaultKey = null;
+    private String defaultValue = null;
     private boolean emptyOption;
     private boolean multiple;
     private int size;
-    private String defaultKey = "";
-    private String defaultValue = "";
-
 
     //~ Methods ////////////////////////////////////////////////////////////////
 
+    public void setDefaultKey(String defaultKey) {
+        this.defaultKey = defaultKey;
+    }
+
+    public String getDefaultKey() {
+        return defaultKey;
+    }
+
+    public void setDefaultValue(String defaultValue) {
+        this.defaultValue = defaultValue;
+    }
+
+    public String getDefaultValue() {
+        return defaultValue;
+    }
+
     public void setEmptyOption(boolean emptyOption) {
         this.emptyOption = emptyOption;
     }
         return size;
     }
 
-    public String getDefaultKey() {
-        return defaultKey;
-    }
-
-    public void setDefaultKey(String defaultKey) {
-        this.defaultKey = defaultKey;
-    }
-
-    public String getDefaultValue() {
-        return defaultValue;
-    }
-
-    public void setDefaultValue(String defaultValue) {
-        this.defaultValue = defaultValue;
-    }
-
     public Object Multiple(boolean multiple) {
         setMultiple(multiple);
 
         this.emptyOption = false;
         this.multiple = false;
         this.size = 0;
-        this.defaultKey = "";
-        this.defaultValue = "";
+        this.defaultKey = null;
+        this.defaultValue = null;
     }
 
     protected String getDefaultTemplate() {