2 Replies Latest reply on May 7, 2011 7:13 AM by Andrey Bondarenko

    calendar do not work

    Andrey Bondarenko Newbie



      I am new to RF, and I try to make a simle jsf page with oly one rich:calendar control. It look like this:



      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE html
              PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:rich="http://richfaces.org/rich" xmlns:h="http://java.sun.com/jsf/html"
            xml:lang="en" lang="en">
          <rich:calendar value="#{testBean.date}"></rich:calendar>


      TestBean look like this:



      package test;
      import javax.enterprise.context.ConversationScoped;
      import javax.enterprise.context.RequestScoped;
      import javax.faces.bean.ManagedBean;
      import javax.faces.bean.ViewScoped;
      import javax.inject.Named;
      import java.io.Serializable;
      import java.util.Calendar;
      import java.util.Date;
      public class TestBean implements Serializable
          private Date    date    = Calendar.getInstance().getTime();
          public Date getDate()
              return date;
          public void setDate(Date date)
              this.date = date;


      After deploy I can see calendar control with cuttent date and time, but it's not clickable or editable. Settinng disabled to false do not solve my problem.

      Maybe someone could help me.


      I use JBoss AS 6.0 final and RF 4 final.