mindate in calendar

UI Components for JSF
Post Reply
yan
Posts: 3
Joined: 23 Sep 2010, 16:16

24 Sep 2010, 20:27

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!

SteveTaylor
Posts: 56
Joined: 27 Sep 2010, 17:15

28 Sep 2010, 21:38

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
GlassFish 3.1.1 (Mojarra 2.1.3) | Primefaces 3.0 | UrlRewriteFilter | Jrebel 4.5.3

SteveTaylor
Posts: 56
Joined: 27 Sep 2010, 17:15

01 Oct 2010, 08:55

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

yan
Posts: 3
Joined: 23 Sep 2010, 16:16

03 Oct 2010, 17:03

Hi Steve,

Thanks so much. Will try it out.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests