5 Replies Latest reply on Feb 17, 2011 5:15 AM by Nick Belaevski

    rich:calendar not working properly (richfaces4M6)

    Frantz FISCHER Newbie

      Hi,

       

      jdk 1.6.0_22

      tomcat 6.0.32

      jsf 2.0.4

      richfaces 4M6 (but M5 gives the same)

      tested with firefox 3.6.13 and safari

       

      here is the simple page :

       

      <?xml version='1.0' encoding='UTF-8' ?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml"xmlns:h="http://java.sun.com/jsf/html"xmlns:rich="http://richfaces.org/rich">

           <h:head>

                <title>Facelet Title</title>

           </h:head>

           <h:body>

                <h:form>

                     <rich:calendar/>

                </h:form>

           </h:body>

      </html>

       

      No errrors either in tomcat logs or in firefox console.

       

      When selecting a day, I always get day+1 and month-1 in the field. For example, selecting March,23 I get February,24 selected and displayed on the page.

      Also, clicking the today link gives the same day+1 and month-1, but curiously, the default date is the correct one.

      Any idea?

       

      Thanks for your help as I really don't know where to look