0 Replies Latest reply on Aug 24, 2011 6:46 PM by Lee Marsh

    rich calendar timeselect event : is this a bug?

    Lee Marsh Newbie

      So I am trying to implement an f:ajax listener event to trigger on the rich calendar timeselect event. Here is my relevant code:

       

       

       

                              <rich:calendar

                              value="#{col.columnDate}"

                              datePattern="MM/dd/yyyy hh:mm a"

                              defaultTime="12:00 AM"

                              firstWeekDay="1"

                              showWeeksBar="false"

                              mode="client"

                              enableManualInput = "false"

                              id="observationDate"

                              showApplyButton="true"

                              >

                                    <f:ajax

                                        event="timeselect"

                                        listener="#{myBean.myEvent}"

                                        onevent="alert('Hello')"

                                    />

                             </rich:calendar>

       

      Logic follows that after time is selected myEvent should be called, and 'Hello' printed on screen. However, the bean function is never called. The js alert function is executed. a4j log shows that the ajax queue is empty after selecting a time value.

      However, if I change the event attribute to something else, for example, 'change', then the bean function is called as expected. This seems like a bug.

       

      Not sure if this is relevant but calendar is nested in an a4j:repeat tag.

       

      Current workaround for me, is to have ontimeselect call a a4j:jsFunction tag which then can properly execute the bean method.

       

       

      Thanks.