You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by CarlHowarth <ca...@dlapiper.com> on 2006/08/23 13:48:15 UTC

within

Hello all,

Apologies if this has already been  covered, I have not been able to find a
suitable response to help me with this issue.

I have a page that displays data in a datatable, and also displays a couple
of dates independent of the table. All information is being drawn from the
same backing bean. When I display a date field independent to the table and
use the following code:

<h:outputText value="#{BackingBean.dateField}"><f:convertDateTime
type="date" dateStyle="short" /></h:outputText>

... the date is being displayed as I would expect for my locale
(dd/MM/yyyy), however when I use the same convertDateTime statement in an
outputted field in the dataTable the date is being displayed differently
(incorrectly) as dd-mmm-yyyy.

Is these a simple way to get the data displayed in the table outputted
correctly?

Any help would be much appreciated.

Thanks, Carl


-- 
View this message in context: http://www.nabble.com/%3Cf%3AconvertDateTime%3E-within-%3Ct%3AdataTable%3E-tf2151931.html#a5942859
Sent from the My Faces - Dev forum at Nabble.com.