Hi.

I've updated all my faces libs to 1.1.2-SNAPSHOT. But the problem still
exists.
Some improvements were made to the inputCalendar component. 01.01.30
entered in the textfield will be correctly interpreted as 1930 by the
inputCalendar component when it popups. In the old release, it
interpreted it as the year 30.

So, it seems convertDateTime still lacks the 01.01.30 -> 01.01.1930
support :(.

regards,
Veit


Martin Marinschek schrieb:
> 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
>>

Reply via email to