0 Replies Latest reply on Mar 12, 2008 12:13 PM by Shivdeep Krishna

    <rich:calendar> doesnt accept java.util.Calendar in Seam 2.0

    Shivdeep Krishna Newbie

      Hi,

      I have been trying to use java.util.Calendar with rich:calendarbut have had no success. JIRA issue RF-933 says this has been fixed in RochFaces 3.1.3 and 3.2.0. I am using Seam 2.0.1 GA which I believe contains RichFaces 3.1.3. Any help would be appreciated.

      registration.xhtml:

      <rich:calendar id="dob" value="#{person.dob}" popup="true" required="true" />


      Person.java:

      import java.util.Calendar;
      
      @Entity
      @Name("person")
      @Table(schema="public")
      public class Person extends Party {
      
       public Person() {}
      
       @Column(nullable=false)
       private Calendar dob;
      
       public Calendar getDob() {
       return dob;
       }
      
       public void setDob(Calendar dob) {
       this.dob = dob;
       }
      
       ......
       ......
       ......
      }


      Error Message:

      /registration.xhtml @40,107 value="#{person.dob}": java.lang.IllegalArgumentException: argument type mismatch


      Regards,
      Shiv