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.*MONTH*); i <= maxCal.get(Calendar.* MONTH*); i++){ javascript += "${calendar}.addRenderer(\"" + (i + 1) + "/1\", ${calendar}.renderOutOfBoundsDate);"; javascript += "${calendar}.addRenderer(\"" + (i + 1) + "/2\", ${calendar}.renderOutOfBoundsDate);"; javascript += "${calendar}.addRenderer(\"" + (i + 1) + "/3\", ${calendar}.renderOutOfBoundsDate);"; javascript += "${calendar}.addRenderer(\"" + (i + 1) + "/4\", ${calendar}.renderOutOfBoundsDate);"; ... However, the renderer doesn't work when the calendar is initially shown. For example, if the pageDate of the calendar is set to 03/2009, the 1st through the 4th will be enabled, but the 1st through the 4th of April and May will be disabled, as expected. When navigating back to March, the 1st through the 4th are then disabled. Also, closing the calendar and reopening it disables the 1st through the 4th. With appendToInit being deprecated, how can these renderers be added to the initialization of the calendar? Any help is greatly appreciate. Thanks, Jen Van Orman -- Quis custodiet ipsos custodes?