[cvs] expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib InputTag.java

JCorporate Ltd jcorp at jcorp2.servlets.net
Mon Jul 19 17:02:40 PDT 2004


Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib
In directory jcorp2.servlets.net:/tmp/cvs-serv29864

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


Index: InputTag.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/InputTag.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** InputTag.java	12 Mar 2004 23:54:39 -0000	1.20
--- InputTag.java	20 Jul 2004 00:02:38 -0000	1.21
***************
*** 542,553 ****
                      //first write out the label for this input
                      //by default, this is false
                      if (!"".equals(labelToUse)) {
!                         writer.print(labelToUse + "  ");
                      }
                  }
  
                  if (Input.ATTRIBUTE_LISTBOX.equalsIgnoreCase(typeToUse)) {
!                     this.buildSelectList(writer);
!                 } else if (Input.ATTRIBUTE_DROPDOWN.equalsIgnoreCase(typeToUse)) {
                      this.buildSelectList(writer);
                  } else if (Input.ATTRIBUTE_CHECKBOX.equalsIgnoreCase(typeToUse)) {
--- 542,561 ----
                      //first write out the label for this input
                      //by default, this is false
+                     /** @todo print </td> when outputting labels  *RD* Mon Jul 27 2004 */
                      if (!"".equals(labelToUse)) {
!                         writer.print(labelToUse + "</td>  ");
                      }
+ 
                  }
  
+                 /** @todo check if the field is a multi valued select so it can be correctly built  *RD* Mon Jul 27 2004 */
                  if (Input.ATTRIBUTE_LISTBOX.equalsIgnoreCase(typeToUse)) {
!                                     this.setSize(Integer.toString(oneInput.getLines()));
!                                     this.setMultiple(oneInput.getMultiple());
!                                     this.buildSelectList(writer);
!                                     this.setSize("");
!                                     this.setMultiple("");
!                 }
!                 else if (Input.ATTRIBUTE_DROPDOWN.equalsIgnoreCase(typeToUse)) {
                      this.buildSelectList(writer);
                  } else if (Input.ATTRIBUTE_CHECKBOX.equalsIgnoreCase(typeToUse)) {



More information about the cvs mailing list