admin@glassfish.java.net

Re: calendar component

From: Senthil Chidambaram <cchidamb_at_sun.com>
Date: Mon, 16 Apr 2007 12:34:29 -0700

Bill,
Calendar component allows us to pick the date based on the locale. This
particular use case is when we create a timer event management rule,
this takes a property called pattern where user can enter any kind of
pattern he/she wants. In this case can we enforce the pattern to be
locale specific, and don't even show the pattern textfield on the screen.

thx
Senthil

Bill Shannon wrote:

> Ken Paulsen wrote:
>
>>
>> Hi Bill,
>>
>> I just looked into the code, it appears that the code does support
>> locale sensitive Date formats (in fact, you can supply any DateFormat
>> and it appears to respect it).
>>
>> However, Senthil has a page which the user enters the format on the
>> same page as the Date. I didn't understand this before, I'm working
>> w/ him on a better solution for this now...
>
>
> Why is that needed rather than just leaving it up to the locale?
>
> Of course, if the user has to enter the date in a particular format,
> you better be able to tell them what format to use for the locale
> they're running in!
>
> Doesn't the calendar component allow picking the date from a calendar?
> If so, that seems good enough for now.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>