-
1. Re: calender control validation
ilya_shaikovsky Apr 5, 2010 7:18 AM (in response to ipraveenjain)in this sample day is disabled if it's earlier than today. In your case function should check the second calendar value for that condition using client api.
-
2. Re: calender control validation
ipraveenjain Apr 6, 2010 1:55 AM (in response to ilya_shaikovsky)i am unabel to get the date in javascript function
function disablementFunctionEnd(day){
alert("day "+day.date.getTime());
alert("dt "+Richfaces.getComponent('endPeriod').getCurrentDate().getTime());
if (curDt.getTime() - day.date.getTime() > 0)
return true; else return false;
}i am trying to get the date in javascript Richfaces.getComponent('endPeriod').getCurrentDate().getTime()); using this
where endPeriod is the ID of my calendercontrol, but it is not working
i also tried with
Richfaces.getComponent('calendar','endPeriod').getCurrentDate().getTime());
but no result.
-
3. Re: calender control validation
nbelaevski Apr 6, 2010 6:38 AM (in response to ipraveenjain)I guess Richfaces.getComponent(...) returns undefined, try #{rich:component('...')}