-
1. Re: rich:calendar issue with jquery ui dialog
jackalope Jun 11, 2010 6:00 PM (in response to jackalope)Turns out that the 2nd event is getting wired up when jquery creates the dialog. So this is likely a jquery issue. However, if anyone has any ideas for fixing this one please let me know.
-
2. Re: rich:calendar issue with jquery ui dialog
nbelaevski Jun 12, 2010 9:54 AM (in response to jackalope)1 of 1 people found this helpfulHi,
I've observed similar problems when effects were activated in jQuery.UI: http://dev.jqueryui.com/ticket/4839.
-
3. Re: rich:calendar issue with jquery ui dialog
jackalope Jun 14, 2010 4:52 PM (in response to nbelaevski)1 of 1 people found this helpfulYes, I am seeing the same behavior you've described with effects when using jQuery's UI Dialog. Even without effects on the dialog I get the 2nd call to new Calendar(...), and thus multiple event wrappers created for each rich:calendar icon.
I've solved this issue for the time being with a small hack. Using jQuery I remove the javascript for the calendar component before I create the jQuery dialog. This appears to work and thus far doesn't have any negative effects on the functionality of the rich calendar. As I'm removing in the jQuery on page ready method the rich:calendar javascript has already been called.
// Before we create the dialog remove the javascript for the rich:calendar control. Avoids duplicate Calendar // objects and duplicate events which break the calendar. $j('[id$=DateScript]').remove();