This content has been marked as final.
Show 2 replies
-
1. Re: How to disable the date in the calender component
ilya_shaikovsky Jun 5, 2009 8:01 AM (in response to thiagu.m)visit richfaces-demo online I've just written the sample because of such threads.
http://localhost:8080/richfaces-demo/richfaces/calendar.jsf?tab=clientSideCustomization&cid=20
or you could use dataModel. -
2. Re: How to disable the date in the calender component
thiagu.m Jun 5, 2009 3:17 PM (in response to thiagu.m)thank u for ur reply ,
i have two doubt .
the following code will disable the all old dates including current date.
but i need to enable the current date , i try to change the if condition like <=0 , but it is not working properly. any help...<script type="text/javascript"> var curDt = new Date(); function disablementFunction(day){ if (curDt.getTime() - day.date.getTime() < 0) return true; else return false; } </script> <rich:calendar isDayEnabled="disablementFunction" >
my second question is
if i have two calender component in my page means ,
i am not allow the user to select the date, which is older than the first calender component date.
i dont know how it is possible with javascipt.
by
Thiagu.m