Try using this in your x:inputCalendar

 

popupDateFormat="dd/MM/yyyy"

 

So yours would look like this.

 

<x:inputCalendar style="font-family:Verdana;font-size:11px;"

monthYearRowClass="yearMonthHeader"

weekRowClass="weekHeader"

currentDayCellClass="currentDayCell"

value="#{date1}"

renderAsPopup="true"

popupDateFormat="dd/MM/yyyy"

/>

 

Hope this is helpful,

 

James


From: Raphael Berehoudougou [mailto:[EMAIL PROTECTED]
Sent: 18 May 2005 09:06
To: MyFaces Discussion
Subject: RE: inputCalendar> Date Format

 

I cannot find this tag (f:formatDate)

 


From: Korhonen, Kalle [mailto:[EMAIL PROTECTED]
Sent: 17 May 2005 08:21
To: MyFaces Discussion
Subject: RE: inputCalendar> Date Format

Use a nested f:formatDate tag inside x:inputCalendar.

 

Kalle

 


From: Raphael Berehoudougou [mailto:[EMAIL PROTECTED]
Sent: Monday, May 16, 2005 3:22 AM
To: [email protected]
Subject: <x:inputCalendar> Date Format

Hi all,

I am trying to format the date in the text box of that component to "DD/MM/YYYY". At present the format is "DD/MM/YY", yet all my other dates that are not using this component are in the right format.

-- start code --

<x:inputCalendar style="font-family:Verdana;font-size:11px;"

monthYearRowClass="yearMonthHeader"

weekRowClass="weekHeader"

currentDayCellClass="currentDayCell"

value="#{date1}"

renderAsPopup="true"/>

 

where date1 is declared as a java.util.Date Object in the faces-config and the application locale is set to "en-GB"

-- end code --

 

Regards,


This communication contains information which is confidential and is for the exclusive use of the addressee. Any unauthorised use, distribution or copying of the information is prohibited. If you have received this transmission in error please contact the sender immediately.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

This communication contains information which is confidential and is for the exclusive use of the addressee. Any unauthorised use, distribution or copying of the information is prohibited. If you have received this transmission in error please contact the sender immediately.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

Reply via email to