1 Reply Latest reply on Feb 10, 2009 5:12 AM by ilya_shaikovsky

    How to make some specified date colorful in rich:calendar?

    canvic

      I want to make some specfied date colorful in rich:calendar component, how to implement?
      For example, there is a variable in the backing bean:

      Date[] dates = [2009-1-1, 2009-1-5, 2009-1-15]
      

      how to stain the there dates in rich:calendar component? Please help me!

        • 1. Re: How to make some specified date colorful in rich:calenda
          ilya_shaikovsky

          calendarDataModelItem has getStyleClass method defined. It should return the styleClass name you need to be applied to the date.

          There is also just client side solution. You should define dayStyleClass attribute with some your JS function which should get date as parameter and return styleClass name. Then this function will be called every time on popup build.