Don't know if this helps but ParameterParser knows how to build a date
object from these fields:

Date d = data.getParameters().getDate("selector_name");

-----------------------------------------------------------------
Jeffrey D. Brekke                                   Quad/Graphics
[EMAIL PROTECTED]                              http://www.qg.com
-----------------------------------------------------------------



> -----Original Message-----
> From: Stephane Bailliez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 9:37 AM
> To: Turbine Developers List
> Subject: RE: [PATCH] DateSelector
> 
> 
> > -----Original Message-----
> > From: Bartek Walter [mailto:[EMAIL PROTECTED]]
> 
> > > We actually had to make our own version of DateSelector to
> > > support dates in spanish. Does any one know how to change it
> > > to make it multilingual.(e.g. Autralian:)
> > 
> > I set proper locales in TR.props only (pl in my case) and I 
> got Polish
> > months names. The only thing remaining non-Polish is the 
> mmddyy order,
> > which is hardcoded to DateSelector (but easy to come around)
> 
> Just curious btw, how do you map this to a setter in your bean ?
> 
> Assuming you have a Torque peer such as:
> 
> class Peer {
>    public void setDate(Date date);
>    public Date getDate();
> }
> 
> In your date selector you have 3 values to deals with:
> 
> selector_name_year;
> selector_name_month;
> selector_name_day;
> 
> Now you have to map this back to a Date object...
> 
> I can't find even how Intake could help me here to do this without
> explicitely doing this conversion stuff in the action but 
> will look deeper
> into it.
> 
> Stephane
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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

Reply via email to