4 Replies Latest reply on Jun 8, 2011 9:33 AM by Jonas Kemper

    <rich:calendar> change event richfaces 4

    Jonas Kemper Newbie

      Hi i have a rich:clendar elemnt. The problem is, that only the first time i change a date the bean-setter is invoked. any more changes arent updated...

       

      here the code:

       

       

      <h:form>
                <h:panelGrid columns="3">
                          <a4j:commandButton execute="@this" id="saveButton" action="#{treeBean.invokeSave}" value="Tabelle Speichern" disabled="#{!treeBean.displaySave}" render="undoButton,redoButton,saveButton"/>
                          <rich:column>
                                    <h:outputText value="wirksam ab:" />
                                              <rich:calendar required="false" disabled="#{!treeBean.displaySave}" defaultLabel="kein Datum -> sofort" value="#{treeBean.selectedDate}" id="calendar" locale="treeBean.locale" enableManualInput="true" datePattern="dd.MM.yyyy">
                                                        <a4j:ajax event="change" execute="@this" render="calendar"/>
                                                        <rich:validator/>
                                              </rich:calendar>
                          </rich:column>
                          <rich:message for="calendar"/>
                </h:panelGrid>
      </h:form>
      

       

      is there a different event i could use? like datechanged or sth.?

      i also tried to use the ondateselect attribute and there call a js-function, but that didnt worked for me, neither.

       

      i am trying to realize it together with jsr-303 validation... thanks for your help.