Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

limited date in calendar - primefaces

I'm using primefaces calendar but I'm having a problem with the year. The select component lists just the last (and next) 10 years, so between 2003 and 2023. In a field of birthday it can be terrible.. Follow the print of the component. How can I fix it?

print screen of calendar component

like image 667
David Krenkel Avatar asked Mar 07 '13 11:03

David Krenkel


1 Answers

I managed to fix this!

I just defined the attribute yearRange. The default value is yearRange="c-10:c+10" So I put like this:

yearRange="c-70:c+10"

like image 51
David Krenkel Avatar answered Nov 12 '22 03:11

David Krenkel