1 Reply Latest reply on Sep 23, 2012 5:46 PM by Brendan Healey

    rich calendar problem

    Roberto Sorrenti Newbie

      Hello,

      I've a proble with rich calendar problem. I'm using richfaces 3.3.3 final version.

       

      this is code in file .XHTML

       

      <rich:calendar id="myCalendar" value="#{pl_voce_manuale.dataRif}" popup="true" enableManualInput="true" cellWidth="40px" cellHeight="40px">

                                                  <f:facet name="header">

                                                      <h:panelGrid columns="2" width="100%" columnClasses="width100, fake">

                                                          <h:outputText value="{selectedDateControl}" />

                                                          <h:outputText value="{todayControl}"  style="font-weight:bold; text-align:left"/>

                                                      </h:panelGrid>

                                                  </f:facet>

                                                  <f:facet name="weekDay">

                                                      <h:panelGroup style="width:60px; overflow:hidden;" layout="block">

                                                          <h:outputText value="{weekDayLabelShort}"/>

                                                      </h:panelGroup>

                                                  </f:facet>

                                                  <f:facet name="weekNumber">

                                                       <h:panelGroup>

                                                          <h:outputText value="{weekNumber}" style="color:red"/>

                                                      </h:panelGroup>

                                                   </f:facet>

                                                   <f:facet name="footer">

                                                      <h:panelGrid columns="3" width="100%" columnClasses="fake, width100 talign">

                                                          <h:outputText value="{previousMonthControl}" style="font-weight:bold;"/>

                                                          <h:outputText value="{currentMonthControl}" style="font-weight:bold;"/>

                                                          <h:outputText value="{nextMonthControl}" style="font-weight:bold;"/>

                                                      </h:panelGrid>

                                                  </f:facet>

                                                  <h:outputText value="{day}"></h:outputText>

                                                   <a4j:support event="onchanged" reRender="table"/>

                                                   <a4j:support event="oninputchange" reRender="table"></a4j:support>

                                              </rich:calendar>

       

       

      and this is my backing bean:

       

      public class PL_VOCE_MANUALEbean {

       

      public Date dataRif;

       

       

                public Date getDataRif() {

                          return dataRif;

                }

                public void setDataRif(Date dataRif) {

                          this.dataRif = dataRif;

                }

       

      }

       

       

      I can not get the value of the selected date. Can anyone help me, please?

      What's wrong?