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!
mindate in calendar
-
- Posts: 56
- Joined: 27 Sep 2010, 17:15
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
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
GlassFish 3.1.1 (Mojarra 2.1.3) | Primefaces 3.0 | UrlRewriteFilter | Jrebel 4.5.3
-
- Posts: 56
- Joined: 27 Sep 2010, 17:15
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.
GlassFish 3.1.1 (Mojarra 2.1.3) | Primefaces 3.0 | UrlRewriteFilter | Jrebel 4.5.3
-
- Information
-
Who is online
Users browsing this forum: No registered users and 21 guests