This content has been marked as final.
Show 3 replies
-
1. Re: Date field Disabled
lvdberg Oct 29, 2010 10:35 AM (in response to palani.palanivelsway.gmail.com)Hi,
add Ajax functionality which on blur or changes acccsses a method which sets the second date and rerenders
Leo
-
2. Re: Date field Disabled
palani.palanivelsway.gmail.com Oct 30, 2010 8:14 AM (in response to palani.palanivelsway.gmail.com)
If i select fromdate(ex 25-10-2010)from calendar control, the ToDate Calendar Control Should be Display greater than from date (ex : >25-10-2010).
how to disable the fromdate before date in calender control
I need sample code leo -
3. Re: Date field Disabled
lvdberg Oct 30, 2010 3:05 PM (in response to palani.palanivelsway.gmail.com)Hi,
Something like...
<a4j:support ... event="onblur" action="yourbean.check" /> /** Check the fromdate and add a day to the toDate */ public void check(){ // Add a day, can be improved with the Calendar class... long time = fromDate.getTime() + (1000 * 60 * 60 * 24); toDate = new Date(time); }
Leo
P.S. the magic word here is PLEASE (and not: I need sample code leo)