There have been many changes in the inputCalendar component since the
1.1.1 version - you'll need to update to a recent version for support
of the inputCalendar... I do suppose that your issue is fixed already,
though.

regards,

Martin

On 1/14/06, Veit Guna <[EMAIL PROTECTED]> wrote:
> Hi.
>
> I'm using Myfaces 1.1.1 with the Tomahawk extension. Now I would like to
>  let the user enter his birthdate in the format dd.MM.yyyy (german
> format). I use this on my page:
>
> --cut here--
> ...
> ...
> ...
>
> <t:inputCalendar id="birthdate" value="#{registrationPerson.birthdate}"
> required="true" renderAsPopup="true" renderPopupButtonAsImage="true"
> popupTodayString="#{msg.calendar_popup_today_label}"
> popupWeekString="#{msg.calendar_popup_week_label}"
> popupGotoString="#{msg.calendar_popup_actual_month_label}"
> popupDateFormat="dd.MM.yyyy">
>
> <f:convertDateTime pattern="dd.MM.yyyy" type="date" />
>
> </t:inputCalendar>
> ...
> ...
> ...
> --cut here--
>
> Entering in the format 01.01.1976 works ok. Also the popup uses this
> format. But when entering 01.01.76, it is interpreted (and redisplayed
> when validation errors occur on this page) as 01.01.0076. Is this by
> design or a bug? So is it possible, to let the user enter either 76 or
> 1976 an display and interpret it as 1976? Or do I have to implement this
> in a custom converter (perhaps extending the "normal" one)?
>
> I know, entering 01.01.10 could mean 2010 OR 1910 in this particular
> (birthdate) case - but one could pass the marginal value as parameter to
> the converter (<10 means 2000, >10 means 1900).
>
> regards,
> Veit
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to