We have a use case using this component: http://relation.to/Bloggers/RichFacesCalendarForMonthsSelection
Here is our code:
<rich:calendar id="start_date"
datePattern="MM/yyyy"
inputClass="dateField"
value="#{statementMessageAssignmentEditor.startDate}"
required="true"
enableManualInput="true"
showFooter="false"
showWeekDaysBar="false"
styleClass="rich-calendar-month-year-only"
oncurrentdateselected="event.rich.component.selectDate(event.rich.date)" />
It works in all cases except if user selects, for example, Jan 2010. When I click ok button after calendar pops up for the current default (Jan 2010), it does not populate the field with the value. Will it work for the default selection when I click ok or not?
This is because oncurrentdateselected is defined as follows:
The client-side script method to be called after the current month or year is changed.
Is there a way around this? Or is this a limitation of the component? We are using RF 3.3.1.GA.