I have a problem concerning the primefaces-calendar. First of all - the code:
Code: Select all
<p:calendar id="arrivalDate" pattern="dd. MM. yyyy" mindate="#{reservation.today}" onSelectUpdate="departureDate" readOnlyInputText="true" value="#{reservation.startDate}"/>
<p:calendar id="departureDate" pattern="dd. MM. yyyy" mindate="#{reservation.startDate}" readOnlyInputText="true" value="#{reservation.endDate}"/>
But as soon as I add the mindate-attribute, everything gets messed up - what I mean:
The initial date is shown in the correct pattern (and the correct date: e.g. 14. 10. 2010). But when you click on the textfield (the calender opens) - the calender starts with a date that is in year 2016!! I don't know what I did wrong - everything was done according to the primefaces-documentation.
Help would be greatly appreciated - I use the following framworks/servers:
- Open Source Edition Glassfish v3
- Primefaces 2.1
- Mohjarra 2.0.3
Thx in advance & kind regards