jsf - How to set yearRange on primefaces calendar without preset date? -


this works fine when display selection birthday set:

<p:calendar id="german" value="#{listview.selected.birthday}"     locale="de" yearrange="-100:+0" navigator="true" pattern="yyyy-mm-dd"> 

but when create new entry, works it's set yearrange="c-10:c+10". i'm wondering yearrange="-100:+0" should not depend on selected date, on actual date. don't want set default date, without selecting date user won't save wrong birthday.

how can fix this?

(primefaces version: 5.2)

ok, stupid of me - had file creation of new entries , forgot update that. guess have reuse more of code.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -