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

    rich calendar problem

    robs8383

      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?

       

       


        • 1. Re: rich calendar problem
          healeyb

          I think the first thing to check is if setDataRif() is being called, and what is the scope if the backing bean, @RequestScoped?

          Also is this code within a h:form?

           

          Regards,

          Brendan.