You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Elam Daly <el...@gmail.com> on 2006/01/06 03:24:06 UTC
InputDate Problems
Hi All,
I have this - <t:inputdate value="#{someDate} type="time" timeZone="EST"
ampm="true"/>
and am having two problems:
1. The ampm attribute in the inputDate component is causing an exception
with MyFaces 1.1.1. - "Attribute ampm invalid for tag inputDate according
to TLD"
2. The seconds are showing, which I don't want. Is there someway to get
rid of them?
Thanks,
-Elam
Re: InputDate Problems
Posted by Simon Kitching <sk...@obsidium.com>.
Elam Daly wrote:
> Hi All,
>
> I have this - <t:inputdate value="#{someDate} type="time"
> timeZone="EST" ampm="true"/>
> 2. The seconds are showing, which I don't want. Is there someway to
> get rid of them?
Perhaps this?
<t:inputDate type="short_time" ...>
Re: InputDate Problems
Posted by Elam Daly <el...@gmail.com>.
Ah, ok. short_time in 1.1.1 gives me the time I want, but also shows a
date. I forgot about the convertDateTime.
Thanks for the replies guys!
-Elam
On 1/6/06, Volker Weber <us...@weber-oldenburg.de> wrote:
>
> Hi,
>
> you can use an explicit converter:
>
> <t:inputdate value="#{someDate} type="time">
> <f:convertDateTime timeZone="EST" pattern="h:mm a" >
> </t:inputdate>
>
> should do what you want.
>
> Regards,
> Volker
>
> Elam Daly wrote:
> > Hi All,
> >
> > I have this - <t:inputdate value="#{someDate} type="time"
> > timeZone="EST" ampm="true"/>
> > and am having two problems:
> > 1. The ampm attribute in the inputDate component is causing an exception
> > with MyFaces 1.1.1. - "Attribute ampm invalid for tag inputDate
> > according to TLD"
> > 2. The seconds are showing, which I don't want. Is there someway to
> > get rid of them?
> >
> > Thanks,
> > -Elam
>
> --
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>
Re: InputDate Problems
Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi,
you can use an explicit converter:
<t:inputdate value="#{someDate} type="time">
<f:convertDateTime timeZone="EST" pattern="h:mm a" >
</t:inputdate>
should do what you want.
Regards,
Volker
Elam Daly wrote:
> Hi All,
>
> I have this - <t:inputdate value="#{someDate} type="time"
> timeZone="EST" ampm="true"/>
> and am having two problems:
> 1. The ampm attribute in the inputDate component is causing an exception
> with MyFaces 1.1.1. - "Attribute ampm invalid for tag inputDate
> according to TLD"
> 2. The seconds are showing, which I don't want. Is there someway to
> get rid of them?
>
> Thanks,
> -Elam
--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.