5 Replies Latest reply on Sep 28, 2009 11:50 AM by asmweb

    Calendar update cell does not updates after bean logic proce

    asmweb

      Hello,

      i was wondering how can I update the cell's style of a calendar after my back bean has done some logic on that date. In base of the logic return I've the cell background green or red. Now when I select the date and finish the back bean logic process the cell and the calendar do not update/rerender at all. Here is my code:

      <rich:calendar
      popup="false"
      locale="it/IT"
      datePattern="dd/M/yyyy"
      showApplyButton="false"
      showWeeksBar="false"
      showHeader="true"
      id="calendario"
      showFooter="false"
      cellWidth="30px"
      cellHeight="30px"
      valueChangeListener="#{bean.valueChanged}"
      dataModel="#{bean}"
      reRender="link1"
      bypassUpdates="false"
      binding="#{bean.calendarioBinding}"
      preloadDateRangeBegin="01/01/2009"
      >
      <a4j:support event="onchanged"
      reRender="link2, link1">

      </a4j:support>
      <h:panelGrid id="day1" columns="1">
      <h:outputText id="dayId" value="{day}" style="align:center"></h:outputText>
      <h:outputText id="descId" value="{data.shortDescription}" style="align:center"/>
      </h:panelGrid>
      </rich:calendar>



      <rich:column>
      <a4j:commandLink value="Modify" immediate="true"
      action="#{bean.modify}">
      <a4j:support event="onclick" reRender="link1"></a4j:support>
      </a4j:commandLink>
      </rich:column>
      <rich:column>
      <a4j:commandLink value="Delete"
      action="#{bean.delete}" >
      <a4j:support event="onclick" reRender="link2, link1, calendario"></a4j:support>
      </a4j:commandLink>
      </rich:column>


      so when i press delete it won't update my calendar cell style, any help?

      thanks