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

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

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