You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jorge Quiroga <jq...@pctltda.com> on 2006/03/01 23:32:35 UTC

[NEWB] DatePicker Date format

Hello:

Excuse me if the question is quite obvious, but I wanna be sure if the 
String that return the DatePicker component is always with this format: 
EEE MMM dd HH:mm:ss z yyyy with local in en_US.

Thanks in advance.

JQ


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: [NEWB] DatePicker Date format

Posted by Raul Raja Martinez <do...@estudiowebs.com>.
Take a look at 
http://jakarta.apache.org/tapestry/tapestry/ComponentReference/DatePicker.html

there is a translator parameter that allows you to format the date 
anyway you want


Adam Zimowski wrote:
> Not sure if I understand exactly, so please correct me if my
> suggestion is not what you're looking for.
> 
> DatePicker returns java.util.Date, and you could use DateFormat to get
> any format you want, including String conversion. Is this what you're
> looking for?
> 
> Regards,
> Adam
> 
> On 3/1/06, Jorge Quiroga <jq...@pctltda.com> wrote:
>> Hello:
>>
>> Excuse me if the question is quite obvious, but I wanna be sure if the
>> String that return the DatePicker component is always with this format:
>> EEE MMM dd HH:mm:ss z yyyy with local in en_US.
>>
>> Thanks in advance.
>>
>> JQ
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: [NEWB] DatePicker Date format

Posted by Jorge Quiroga <jq...@pctltda.com>.
Well, excuse me (I'm over-working and my brain is burned jeje), but the 
solution was very simple via ognl inside the component, where I can 
control the format to be always the same, then I can use only one 
parameter and various data types that I can convert to the real  data type.

Thanks.


Jorge Quiroga escribió:
> Hello:
> 
> I can resolved the problem with a <parameter> tag into the .jwc, but 
> again I need to confirm if the String that returns the DatePicker 
> component is always with the format EEE MMM dd HH:mm:ss z yyyy with 
> local in en_US if not, then how I can obtain the DateFormat used by the 
> DatePicker?
> 
> Thanks
> 
> JQ
> 
> Adam Zimowski escribió:
>> Not sure if I understand exactly, so please correct me if my
>> suggestion is not what you're looking for.
>>
>> DatePicker returns java.util.Date, and you could use DateFormat to get
>> any format you want, including String conversion. Is this what you're
>> looking for?
>>
>> Regards,
>> Adam
>>
>> On 3/1/06, Jorge Quiroga <jq...@pctltda.com> wrote:
>>> Hello:
>>>
>>> Excuse me if the question is quite obvious, but I wanna be sure if the
>>> String that return the DatePicker component is always with this format:
>>> EEE MMM dd HH:mm:ss z yyyy with local in en_US.
>>>
>>> Thanks in advance.
>>>
>>> JQ
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: [NEWB] DatePicker Date format

Posted by Jorge Quiroga <jq...@pctltda.com>.
Hello:

I can resolved the problem with a <parameter> tag into the .jwc, but 
again I need to confirm if the String that returns the DatePicker 
component is always with the format EEE MMM dd HH:mm:ss z yyyy with 
local in en_US if not, then how I can obtain the DateFormat used by the 
DatePicker?

Thanks

JQ

Adam Zimowski escribió:
> Not sure if I understand exactly, so please correct me if my
> suggestion is not what you're looking for.
> 
> DatePicker returns java.util.Date, and you could use DateFormat to get
> any format you want, including String conversion. Is this what you're
> looking for?
> 
> Regards,
> Adam
> 
> On 3/1/06, Jorge Quiroga <jq...@pctltda.com> wrote:
>> Hello:
>>
>> Excuse me if the question is quite obvious, but I wanna be sure if the
>> String that return the DatePicker component is always with this format:
>> EEE MMM dd HH:mm:ss z yyyy with local in en_US.
>>
>> Thanks in advance.
>>
>> JQ
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: [NEWB] DatePicker Date format

Posted by Jorge Quiroga <jq...@pctltda.com>.
Hello:

Well, I have a problem with a component that manage dinamically a 
TextField and DatePicker but their values are managed through a only one 
value parameter that is a String. So into the application that work with 
this component, has to manage a String value (because TextField) and 
because everything can be represented as a String. The problem is 
because the getter, when the DatePicked expect a Date, -but exist only 
one getter that returns a String- send a String and this value cannot be 
converted into a Date again, the solution that I try is, if the String 
returned by the DatePicker is always under the same format I can convert 
it to a format that the DatePicker can convert to a Date and avoid the 
unparseable error. Or how I can into the component convert the string to 
Date and pass it to the DatePicker dinamically generated?

Thanks for your time

JQ

Adam Zimowski escribió:
> Not sure if I understand exactly, so please correct me if my
> suggestion is not what you're looking for.
> 
> DatePicker returns java.util.Date, and you could use DateFormat to get
> any format you want, including String conversion. Is this what you're
> looking for?
> 
> Regards,
> Adam
> 
> On 3/1/06, Jorge Quiroga <jq...@pctltda.com> wrote:
>> Hello:
>>
>> Excuse me if the question is quite obvious, but I wanna be sure if the
>> String that return the DatePicker component is always with this format:
>> EEE MMM dd HH:mm:ss z yyyy with local in en_US.
>>
>> Thanks in advance.
>>
>> JQ
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> 

-- 
  Ing. Jorge Enrique Quiroga
Analista programador
PCT LTDA

Teléfonos: 4800069-4800046-4811984
Dirección: Carrera 28 bis Nº 51-08
Bogota D.C. - Colombia


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: [NEWB] DatePicker Date format

Posted by Adam Zimowski <zi...@gmail.com>.
Not sure if I understand exactly, so please correct me if my
suggestion is not what you're looking for.

DatePicker returns java.util.Date, and you could use DateFormat to get
any format you want, including String conversion. Is this what you're
looking for?

Regards,
Adam

On 3/1/06, Jorge Quiroga <jq...@pctltda.com> wrote:
> Hello:
>
> Excuse me if the question is quite obvious, but I wanna be sure if the
> String that return the DatePicker component is always with this format:
> EEE MMM dd HH:mm:ss z yyyy with local in en_US.
>
> Thanks in advance.
>
> JQ
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org