-
1. Re: problem on rich:calendar control
david.salter Feb 12, 2009 9:29 PM (in response to swetha.s.swetha13.yahoo.com)Set the disabled property to
true
.Check out
-
2. Re: problem on rich:calendar control
swetha.s.swetha13.yahoo.com Feb 13, 2009 7:12 AM (in response to swetha.s.swetha13.yahoo.com)That was working fine, but my requirement is disable calendar in javascript i.e, get the disable property into javascript function in that i want to disabled is equal to true, how to do this please help me..
-
3. Re: problem on rich:calendar control
anonyin Mar 29, 2011 2:08 PM (in response to swetha.s.swetha13.yahoo.com)I have the same scenario to be implemented did you find anyway to achieve this ?
Thanks
Kiran. -
4. Re: problem on rich:calendar control
kragoth Mar 29, 2011 6:48 PM (in response to swetha.s.swetha13.yahoo.com)Looking at the richfaces doco for the calendar it states that the client side api has not implemented functions to achieve your desired behaviour.
So, off the top of my head there's at least 2 things you could do.
Option 1. (Easy fix, but not quite what you are asking for) Do it with ajax. where you would normally do a js call to disable the component do a quick ajax call that rerenders the calendar with disabled set to true. This would be a very lightweight call, but...not sure if this will achieve what you want.
Option 2. (Requires you to do a bit of research.) View the source of the component in both states and compare them. Then work out what javascript you need to write to achieve the same result. This could take some time, but will achieve your exact desired result. Have fun though :P it can sometimes be a little tricky :)