You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by br...@apache.org on 2003/07/24 14:40:32 UTC

cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/samples Form2Bean.java

bruno       2003/07/24 05:40:32

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody/samples
                        Form2Bean.java
  Log:
  Added a Date and int field to illustrate binding of non-string values
  
  Revision  Changes    Path
  1.2       +19 -0     cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/samples/Form2Bean.java
  
  Index: Form2Bean.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/samples/Form2Bean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Form2Bean.java	23 Jul 2003 15:24:42 -0000	1.1
  +++ Form2Bean.java	24 Jul 2003 12:40:32 -0000	1.2
  @@ -52,6 +52,7 @@
   
   import java.util.ArrayList;
   import java.util.Collection;
  +import java.util.Date;
   
   /**
    * Sample bean used in the form2 binding demo.
  @@ -64,6 +65,8 @@
       private String phoneNumber;
   
       private String ipAddress;
  +    private Date birthday;
  +    private int aNumber;
   
       private Collection contacts = new ArrayList();
   
  @@ -108,6 +111,22 @@
   
       public void setIpAddress(String ipAddress) {
           this.ipAddress = ipAddress;
  +    }
  +
  +    public Date getBirthday() {
  +        return birthday;
  +    }
  +
  +    public void setBirthday(Date birthday) {
  +        this.birthday = birthday;
  +    }
  +
  +    public int getaNumber() {
  +        return aNumber;
  +    }
  +
  +    public void setaNumber(int aNumber) {
  +        this.aNumber = aNumber;
       }
   
       public Collection getContacts() {