Re: How can override calendar formatting at initialization using DatePicker? getAdditionalJavascript not always working...

2010-06-10 Thread rawe
Yes, I solved it! When displaying the calendar the first time it's mandatory to call its clear method (Clears the selected dates in the current calendar widget and sets the calendar to the current month and year. ) My solution: @Override protected String getAdditionalJavascript() { if (a

Re: How can override calendar formatting at initialization using DatePicker? getAdditionalJavascript not always working...

2010-06-04 Thread rawe
I got the same problem! Did you solve it already? If yes, I would be glad to get some help! I just disabled the weekend days in DatePicker by overriding the method @Override protected String getAdditionalJavascript() { additionalJavascript += "${calendar}.addWeekdayRende

How can override calendar formatting at initialization using DatePicker? getAdditionalJavascript not always working...

2009-02-17 Thread Jen Van Orman
I am overriding the DatePicker class in order to limit the calendar to 3 months, and I also want to disable the 1st through 4th of each month. My override of getAdditionalJavascript does the following adds a renderer to these dates as an OutOfBoundsDate: * for*( *int* i = minCal.get(Calendar.*MON