Page 1 of 1

mindate in calendar

Posted: 24 Sep 2010, 20:27
by yan
Hi,

I'm trying to use the calendar for entering date of birth. Does anyone know what is the minimum date that I can set for the mindate parameter? I tried to set it to 01/01/1990. I am setting navigator to true but I cannot see years earlier than 2000 from the year dropdown list.

Thanks!

Re: mindate in calendar

Posted: 28 Sep 2010, 21:38
by SteveTaylor
Hi Yan.

I'm doing the same thing. I'm getting min and max date expressions from my conversation-scoped bean and using the following attributes:
yearRange="-120:-18" navigator="true".

The only issue I have is that it initially shows the year 1890 in the year combo. That's something I'll raise as a bug and perhaps submit a patch. It does behave a bit odd, because I clicked a date and the date read as 29/09/2010, not 1890.

EDIT: Be careful: Calendar doesn't have a validator despite having the ability to set ranges in tag attributes. You'll need to set that up yourself.

- Steve

Re: mindate in calendar

Posted: 01 Oct 2010, 08:55
by SteveTaylor
Yan, if you feel like living on the bleeding edge, you can get the patch here. Hopefully this will make it into the next milestone or RC release.

Re: mindate in calendar

Posted: 03 Oct 2010, 17:03
by yan
Hi Steve,

Thanks so much. Will try it out.