Problems with calendar

UI Components for JSF
Post Reply
strandmyr
Posts: 2
Joined: 01 Nov 2010, 12:31

01 Nov 2010, 12:35

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)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests