my only requirement is that i want that the dates in the calendar should be enabled for 120 days from the current date selected by the user and nothing else
or you can say that if i see the calendar at any time and if i want to see another month it will show the months which falls in those 120 days from the current date and only those dates will be enabled which falls in the range of 120 days from the current date
please can any one tell how to do this with a small example so that i can take some help from that in <rich:calendar>
preload range designed not for this reason. if you want to use dataModel but switch calendar on the client this attributes defines which data loads on rendering.
restriction of the dates enabled could be done via dataModel(server side way) or via isDayEnabled attribute(client side script). read about them in our documents.
Also you could handle our events like oncurrentdateselect and cancel it using return false if need to restrict current month switching.
please see the second post written by me
i have clearly mentioned my requirement
i am putting up some more data which might help you in guiding me
when the calendar will be rendered for the first time it will show the current date as it is showing now but in addition it will only enable date of 120 days more from the current date
please note that it will be current date+120 days
example - - some advance reservation here you can reserve seat till 120 days from the current date
it should be server side control as you mentioned of dataModel
this is my only requirement nothing more then that
please see weather you can find the way for it
Documentation written especially for developers in order to help in such situations. Read please my sugegstion again. As for me you need to use isDayEnabled attribute in order to restrict the dates outside the 120 days range.
thank you for the reply
i will post the work following your suggestion