1 Reply Latest reply on May 9, 2009 8:52 AM by nbelaevski

    displaying current Date in <rich :calender>

      Hi.,
      i have to display current date in <rich:calender>,i need your suggestions to display it...

        • 1. Re: displaying current Date in <rich :calender>
          nbelaevski

          Hi,

          Here it goes:

          <rich:calendar>
           <f:facet name="header">
           <h:panelGrid columns="3">
           <h:outputText value="{previousMonthControl}"/>
           <h:outputText value="{monthLabelsShort[calendar.getCurrentDate().getMonth()]} {calendar.getCurrentDate().getFullYear()}"/>
           <h:outputText value="{nextMonthControl}"/>
           </h:panelGrid>
           </f:facet>
           </rich:calendar>