3 Replies Latest reply on Apr 8, 2009 8:50 AM by ashutoshdeora

    how to contro; the display of calendar inrichfaces

    ashutoshdeora

      i am posting the following code taken from the pdf doc from richfaces-ui-3.3.1.BETA3 page no.-220.

      in this calendarBean have been used
      i want to know what is this calendarBean is
      is this the name of the bean class u have defined or some defult bean class
      and

      how to use these {currentMonthControl}, {nextMonthControl},
      {nextYearControl}, {previousYearControl}, {previousMonthControl}, {todayControl},
      {selectedDateControl}

      methods or function in the calendar
      please guide on this


      <rich:calendar id="myCalendar" popup="true"
       locale="#{calendarBean.locale}" value="#{bean.date}"
       preloadRangeBegin="#{bean.date}" preloadRangeEnd="#{bean.date}"
       cellWidth="40px" cellHeight=">
       <!-- Customization with usage of facets and accessible elements -->
       <f:facet name="header">
       <h:panelGrid columns="2" width="100%" columnClasses="width100, fake">
       <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>
       </rich:calendar>