//Your Page
<af:inputDate label="Label1" id="id1s" rendered="true">
<af:validateDateTimeRange maximum="#{SampleBean.maxDate}"/>
</af:inputDate>
//Bean code stuff
public Date getMaxDate(){
Calendar cl = Calendar.getInstance();
cl.setTime(new Date());
cl.add(Calendar.DATE, 1);// you can alter max dates from here.. 0,1,2..
Date toDate = cl.getTime();
return toDate;
No comments:
Post a Comment