4 Replies Latest reply on Jan 14, 2011 9:44 AM by Andi D

    Bug in JSF??? <h:outputText> and <f:convertDateTime>

    Andi D Newbie

      Hi,

       

      I know that this is no richfaces Problem but I have a really strange problem regarding JSF and the field creationDate.

      I get different results for the following two code sections! For the first one my results is "2011-01-14" and for the second one my result is "Thursday, January 13, 2011". Do you know a solution this problem??

       

      <h:link id="creationDateLink" value="#{project.creationDate}" outcome="/project/project">
        <f:convertDateTime type="date" dateStyle="full" timeZone="GMT" />
        <f:param name="projectId" value="#{project.id}" />
      </h:link>
      

       

       

      <h:outputText value="#{projectHome.instance.creationDate}">
        <f:convertDateTime type="date" dateStyle="full" timeZone="GMT" />
      </h:outputText>