2 Replies Latest reply on Apr 14, 2011 6:30 AM by migelct

    rich:calendar fire onchanged event

    migelct

      Hello,

       

      I need to fire the event onchanged of the component rich:calendar from javascript code but I can't find any function to do it, I have tried the next commands:

       

      $('calendarId').component.onchange();
      $('calendarId').component.onchanged();
      $('calendarId').component.onChange();
      $('calendarId').component.onChanged();
      

       

      The component is loaded correctly because I can use other functions. such as:

       

       

      $('calendarId').component.doCollapse() 
      $('calendarId').component.resetSelectedDate()
      

       

      Thanks in advance

        • 1. rich:calendar fire onchanged event
          ilya40umov

          Hi,

          Try something like this:

          #{rich:component('someID')}.save();

          or some other options like .change(), .doChange().

          I guess you should debug it in firebug or something like it in order to find all the methods of the component.

          • 2. rich:calendar fire onchanged event
            migelct

            Thanks for your answer,

             

            I couldn't resolve this issue. I have checked it with firebug and I can't find any method to fire the event.

             

            On the other hand, Can I execute #{rich:component('someID')} in a external javascript file? How can I do it?

             

            Thanks!