11 Replies Latest reply on Dec 2, 2010 10:10 AM by kongo09

    rich:calendar doesnt accept java.util.Calendar in Seam 2.0.1 GA

    shiv

      Hi,


      I have been trying to use java.util.Calendar with rich:calendar but have had no success. JIRA issue RF-933 says this has been fixed in 3.1.3 and 3.2.0. I am using Seam 2.0.1 GA. 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