rich:calendar, problem reRendering panel
iimirela Mar 16, 2010 9:16 AMHi,
I have a rich:calendar which I'm using as an organizer. Some dates are enbled, as they have related data and others are not. The first time the calendar is rendered, the value is set to tha first available date and related data is shown. So for instance 16/03/2010 selected and 20/03/2010 and 25/03/2010 enabled. the first time I click on a nother date, nothing happens, and the next times, the data displayed is one step behind. So for instance if I click 20/03 nothing happens, if I click 25/03, I get the data related to 20/03. I get no errors in the a4j:log. It's driving me crazy!!!
Code snippet:
<a4j:form id="wsForm"> <a4j:region selfRendered="true"> <h:panelGrid columns="3" cellpadding="2" cellspacing="0" styleClass="calendar" id="calendarPanel" forceId="true"> <!-- Calendar --> <rich:calendar value="#{worksheetBean.selectedDate}" dataModel="#{calendarDataModel}" popup="false" showApplyButton="false" cellWidth="50px" cellHeight="50px" boundaryDatesMode="none" showWeeksBar="false" id="organizer" showFooter="false"> <f:facet name="header"> <h:panelGroup> <h:outputText value="#{worksheetBean.selectedDate}"> <f:convertDateTime pattern="MMMM, yyyy" locale="#{UIConfigurationsBean.locale}" timeZone="#{UIConfigurationsBean.timeZone}" /> </h:outputText> </h:panelGroup> </f:facet> <a4j:outputPanel layout="block" styleClass="cell" title="{toolTip}"> <h:outputText value="{day}" /> </a4j:outputPanel> <a4j:support event="ondateselected" reRender="wsForm:hoursPanel" /> </rich:calendar> <!-- Time slots --> <a4j:outputPanel id="hoursPanel"> <rich:dataGrid value="#{worksheetBean.paints}" var="paint" columns="8"> <h:panelGroup> <rich:paint2D width="65" height="60" data="#{paint}" format="gif" paint="#{worksheetBean.paint}" title="#{paint.text}"> </rich:paint2D> <h:outputText value="#{paint.text}" /> </h:panelGroup> </rich:dataGrid> </a4j:outputPanel> </h:panelGrid> </a4j:region> </a4j:form>
Richfaces version : 3.3.2.SR1.