myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: Seeking a specific date-pattern for <t:inputDate>
Date Wed, 04 Oct 2006 15:12:20 GMT
I have had an issue open on this for a long time with no progress. Go
ahead and vote for it and perhaps something will get done.

http://issues.apache.org/jira/browse/TOMAHAWK-260

On 10/4/06, Morten Mortensen <MOMOR@tdc.dk> wrote:
>
> Is it possible to specify a date-pattern for a <t:inputDate> component?
>
> Some dates in my application should not depend upon the locale of my
> machine, since these dates are "technical" and I therefore specifically
> want them split in fields from the most specific - the year - to the
> least specific at some granularity - say, the minute within the hour -
> and kind of corresponding to the "SimpleDateFormat"-pattern
> "yyyy/MM/dd/HH/mm".
>
> I somehow hoped, that some variant of this example fragment would work -
>
>     <t:inputDate
>       id="dateBegin"
>       value="#{graphOverviewTime.dateBegin}"
>       type="both"
>       popupCalendar="false"
>     >
>       <f:convertDateTime
>         pattern="yyyy/MM/dd/HH/mm"
>       />
>     </t:inputDate>
>
> - but it appears not to. Does this <f:convertDateTime> only work for
> <h:inputText> and can it be made to specify the layout of the
> <t:inputDate> component?
>
> Regards
> Morten Sabroe Mortensen
>
>

Mime
View raw message