Hi Dave

Thanks for the anster.

Yes I know I can use Strings but the idea is to reuse my java beans
properties that are Date or Number and not have extra attributes for them.
You said something about IIRC, how can I use this?

Regards,

Néstor 


-----Mensaje original-----
De: Dave Newton [mailto:[EMAIL PROTECTED] 
Enviado el: Wednesday, January 18, 2006 8:32 AM
Para: Struts Users Mailing List
Asunto: Re: Is there a way to use Dates and Numbers with Dynamic Action
Forms using a pattern?

Néstor Boscán wrote:
> Is there a way to use Dates with Dynamic Action Forms using a pattern. 
> We would like to use all our DTOs with Dynamic Form Beans but we're 
> having problem with Date and Numbers were we need to apply patterns. 
> Is there a way to do this?
>   
I'm not sure which use of the word "pattern" you're using; I assume you mean
formatting (like MM-DD-YYYY vs. DD/MM/YY etc.)?

Try using Strings as the form-property types. Validate the patterns via a
regex (called "mask" in struts validator land).

IIRC formsets support I18N via the 'country' and 'language' attributes, but
I'm fuzzy on this one.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to