You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Morten Mortensen <MO...@tdc.dk> on 2006/10/04 12:16:45 UTC

Seeking a specific date-pattern for

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


Re: Seeking a specific date-pattern for

Posted by Andrew Robinson <an...@gmail.com>.
I may if I get some time. Thanks for all the work you do.

On 10/4/06, Cagatay Civici <ca...@gmail.com> wrote:
> Hi,
>
> I've added this one to my todo list some time ago but there are other issues
> for me with higher priority.
>
> Feel free to send patches.
>
> Cagatay
>
>
> On 10/4/06, Andrew Robinson <an...@gmail.com> wrote:
> > 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 <MO...@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
> > >
> > >
> >
>
>

Re: Seeking a specific date-pattern for

Posted by Cagatay Civici <ca...@gmail.com>.
Hi,

I've added this one to my todo list some time ago but there are other issues
for me with higher priority.

Feel free to send patches.

Cagatay

On 10/4/06, Andrew Robinson <an...@gmail.com> wrote:
>
> 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 <MO...@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
> >
> >
>

Re: Seeking a specific date-pattern for

Posted by Andrew Robinson <an...@gmail.com>.
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 <MO...@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
>
>