myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Dockx <jando...@mac.com>
Subject date conversion headache (HELP! URGENT!)
Date Thu, 29 Sep 2005 15:28:17 GMT
I'm getting tired.

We have this jsf code:

                1: <h:outputText value="#{enrollmentH.instance.startDate}" /><br
/>
                <f:verbatim>2: ${enrollmentH.instance.startDate}<br /></f:verbatim>
                <x:inputText id="startDate"
                             value="#{enrollmentH.instance.startDate}"
                             required="true"
                             size="10"
                             maxlength="10"
                             displayValueOnly="#{not enrollmentH.showFields}"
                             displayValueOnlyStyleClass="#{enrollmentH.viewMode}">
                  <f:convertDateTime pattern="dd/MM/yyyy" />
                </x:inputText>

(ok, it's hacked)

the enrollmentH.instance.startDate is a java.util.Date, 1 september 2005.

What is shown is

31-aug-2005
2: 2005-09-01
31/08/2005?

in other words:

h:outputText rendes 31 august
JSP el renders 1 september
h:inputText renders 31 august

JSF is one day off!!!

It's probably our fault. We are using a custom build of the main trunk, 2005-09-28, 11:00am
CET.
What are we missing????

Mime
View raw message