[cvs] expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller Input.java

JCorporate Ltd jcorp at jcorp2.servlets.net
Mon Jul 19 16:59:52 PDT 2004


Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller
In directory jcorp2.servlets.net:/tmp/cvs-serv29587

Modified Files:
	Input.java 
Log Message:
corrected multi valued selects issues


Index: Input.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller/Input.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** Input.java	16 Jul 2004 01:30:54 -0000	1.26
--- Input.java	19 Jul 2004 23:59:50 -0000	1.27
***************
*** 114,118 ****
       */
      public static final String SELECTED = "selected";
!     
      /** Default value(s) for the item (optional) */
      private ArrayList defaultValue = null;
--- 114,118 ----
       */
      public static final String SELECTED = "selected";
! 
      /** Default value(s) for the item (optional) */
      private ArrayList defaultValue = null;
***************
*** 129,132 ****
--- 129,136 ----
      private int maxLength = 80;
  
+     /** @todo add this variable for multi valued selects to work  *RD* Mon Jul 27 2004 */
+     /** Multiple select true or false */
+     private String multiple = "false";
+ 
      /** Key used when this input is used as a Cacheable object */
      private String key = null;
***************
*** 701,704 ****
--- 705,727 ----
          return key;
      } /* getKey() */
+ 
+     /** @todo add this two methods for multi-valued fields to work  *RD* Mon Jul 27 2004 */
+     /**
+      * Set the the Input object allow multiple selections
+      *
+      * @param newMultiple Specify if true or false the input will accept multiple selects.
+      */
+     public void setMultiple(String newMultiple) {
+         multiple = newMultiple;
+     } /* setMultiple(String) */
+ 
+     /**
+      * Retrieve the multi select status.
+      *
+      * @return java.lang.String
+      */
+     public String getMultiple() {
+         return multiple;
+     } /* getMultiple() */
  
  } /* Input */



More information about the cvs mailing list