Richfaces Calendar Minimum and Maximum Dates
        Posted  
        
            by DaUltimateTrooper
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by DaUltimateTrooper
        
        
        
        Published on 2009-12-16T09:47:35Z
        Indexed on 
            2010/05/26
            23:51 UTC
        
        
        Read the original article
        Hit count: 259
        
Hello everybody!
My problem is making the RichFaces calendar restricting the dates to be allowed to be chosen by the user.
Let's say I want to allow only the dates of this month and the dates of the next month to be chosen by the user.
I used the preloadDateRangeStart and preloadDateRangeEnd attributes but they did nothing.
I created my own CalendarDataModel which uses the preloadDateRangeStart and preloadDateRangeEnd and enables the items but the calendar on the screen allows only the dates of the current month to be selected. Note that the preloadDateRangeStart is today's date and preloadDateRangeEnd is today's date plus 2 months.
I am missing something here for sure. Can someone help me please?
© Stack Overflow or respective owner