0 Replies Latest reply on Sep 27, 2008 11:57 AM by Ray T

    How to make currentMonthControl non-selectable

    Ray T Newbie

      I would like the user not to be able to click on a 'month' on the header and select alternate months. How
      do I go about doing this?

      <rich:calendar
      id="month11"
      currentDate="#{calendarBean.month11}"
      popup="false"
      cellWidth="25px" cellHeight="40px"
      boundaryDatesMode="none" showWeeksBar="false"
      dataModel="#{calendarDataModel}"
      todayControlMode="hidden"
      disabled="true"
      valueChangeListener="#{calendarDataModel.valueChanged}" >
      <f:facet name="header">
      <h:panelGrid columns="1" width="100%" columnClasses="fake, width100 talign" style="text-align:center;">
      <h:outputText value="{currentMonthControl}" style="font-weight:bold;"/>
      </h:panelGrid>
      </f:facet>
      <f:facet name="footer">
      <h:panelGrid columns="1" width="100%" columnClasses="fake, width100 talign">
      </h:panelGrid>
      </f:facet>
      </rich:calendar>