Page 1 of 1

Problems with calendar

Posted: 01 Nov 2010, 12:35
by strandmyr

Code: Select all

<p:calendar value="#{bean.lastDate}" pattern="dd.MM.yyyy" />
This line of code is giving me problems. The inputfield is shown correctly, but the pattern only works on the date loaded from the bean. (01.11.2010), but when the datepicker opens, and i select another date, i get the ISO-pattern 2010-11-05. It doesnt matter if i use locale or language, same result. I use 2.2.RC1. The datevar from the bean is java.util.Date. No formatting is done from getters or setters.

EDIT: Im using Mojarra 2.0.2 (FCS b10)