struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <musa...@gmail.com>
Subject Re: Datetimepicker and struts 2.1.6
Date Mon, 09 Feb 2009 19:24:19 GMT
" it does not work anymore." means that the date field is not set?

musachy

On Mon, Feb 9, 2009 at 2:21 PM, Phan, Hienthuc T
<hienthuc_phan@merck.com> wrote:
> Hmmm... It used to work in Struts 2.0.11.  After I migrated the code to
> use Struts 2.1.6, it does not work anymore.  I'm thinking of overriding
> the struts 2.1.6 core jar with the datetimepicker classes, css,
> template, etc. from 2.0.11 (the working version).  What do you think?
>
> -----Original Message-----
> From: Musachy Barroso [mailto:musachy@gmail.com]
> Sent: Monday, February 09, 2009 11:07 AM
> To: Struts Users Mailing List
> Subject: Re: Datetimepicker and struts 2.1.6
>
> ok, I see what you mean now. This is the way that it was supposed to
> work since the beginning, so the date is always submitted in a
> "standard" format, disregarding the display format, or the locales of
> the client and server. If you field is of type Date, xwork will know
> how to parse the value.
>
> musachy
>
> On Mon, Feb 9, 2009 at 1:58 PM, Phan, Hienthuc T
> <hienthuc_phan@merck.com> wrote:
>> It did not throw exception or anything like that.
>>
>>        I specifically set the display format to "MM/dd/yyyy".
>>        Visually it displays correctly on UI as "01/02/2009"
>> The problem is:
>>        When the form is submitted, I got data back as
>> "2009-01-02T00:00:00-08:00" instead of "01/02/2009".
>>
>> -Hien
>>
>> -----Original Message-----
>> From: Musachy Barroso [mailto:musachy@gmail.com]
>> Sent: Monday, February 09, 2009 10:44 AM
>> To: Struts Users Mailing List
>> Subject: Re: Datetimepicker and struts 2.1.6
>>
>> xwork understands the "2009-01-30T00:00:00-08:00" format, what error
>> are you getting?
>>
>> musachy
>>
>> On Mon, Feb 9, 2009 at 1:35 PM, Phan, Hienthuc T
>> <hienthuc_phan@merck.com> wrote:
>>> No, it's the same locale.
>>>
>>> -----Original Message-----
>>> From: Musachy Barroso [mailto:musachy@gmail.com]
>>> Sent: Monday, February 09, 2009 10:25 AM
>>> To: Struts Users Mailing List
>>> Subject: Re: Datetimepicker and struts 2.1.6
>>>
>>> It could be related to this:
>>>
>>> http://jira.opensymphony.com/browse/XW-670
>>>
>>> is the client on a different locale than the server?
>>>
>>> musachy
>>>
>>> On Mon, Feb 9, 2009 at 1:09 PM, Phan, Hienthuc T
>>> <hienthuc_phan@merck.com> wrote:
>>>>
>>>> Hi,
>>>>
>>>> I migrated from struts 2.0.11 to 2.1.6 and the datetimepicker does
>> not
>>> work
>>>> anymore.  I specifically set the display format to "MM/dd/yyyy".
>>> Visually
>>>> it displays correctly; however, when the page is submitted, the data
>> I
>>> go
>>>> back is in this format: "yyyy-MM-ddT00:00:00-80:00".  This tag
> worked
>>> on
>>>> 2.0.11 without any custom conversion.  I don't know why it does not
>>> work on
>>>> 2.1.6.  Can you help?  Thanks.
>>>>
>>>> UI:
>>>>
>>>> From the log:
>>>>         input parameter 3 value set to 2009-01-02T00:00:00-08:00
>>>>         input parameter 4 value set to 2009-01-30T00:00:00-08:00
>>>>
>>>> A snip of my jsp code:
>>>>
>>>> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
>>>> <%@ taglib uri="/struts-tags" prefix="s" %>
>>>> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
>>>>
>>>> <html>
>>>>         <head>
>>>>                 <sx:head/>
>>>>         </head>
>>>>         <body>
>>>>                 .....
>>>>                 <sx:datetimepicker key="label.contract.approvaldate"
>>>> name="contract.approvalDate"
>>>> displayFormat="MM/dd/yyyy"/>
>>>>
>>>>         </body>
>>>> </html>
>>>>
>>>> Notice:  This e-mail message, together with any attachments,
> contains
>>>> information of Merck & Co., Inc. (One Merck Drive, Whitehouse
>> Station,
>>>> New Jersey, USA 08889), and/or its affiliates (which may be known
>>>> outside the United States as Merck Frosst, Merck Sharp & Dohme or
>>>> MSD and in Japan, as Banyu - direct contact information for
>> affiliates
>>> is
>>>> available at http://www.merck.com/contact/contacts.html) that may be
>>>> confidential, proprietary copyrighted and/or legally privileged. It
>> is
>>>> intended solely for the use of the individual or entity named on
> this
>>>> message. If you are not the intended recipient, and have received
>> this
>>>> message in error, please notify us immediately by reply e-mail and
>>>> then delete it from your system.
>>>>
>>>
>>>
>>>
>>> --
>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>> Notice:  This e-mail message, together with any attachments, contains
>>> information of Merck & Co., Inc. (One Merck Drive, Whitehouse
> Station,
>>> New Jersey, USA 08889), and/or its affiliates (which may be known
>>> outside the United States as Merck Frosst, Merck Sharp & Dohme or
>>> MSD and in Japan, as Banyu - direct contact information for
> affiliates
>> is
>>> available at http://www.merck.com/contact/contacts.html) that may be
>>> confidential, proprietary copyrighted and/or legally privileged. It
> is
>>> intended solely for the use of the individual or entity named on this
>>> message. If you are not the intended recipient, and have received
> this
>>> message in error, please notify us immediately by reply e-mail and
>>> then delete it from your system.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>> Notice:  This e-mail message, together with any attachments, contains
>> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
>> New Jersey, USA 08889), and/or its affiliates (which may be known
>> outside the United States as Merck Frosst, Merck Sharp & Dohme or
>> MSD and in Japan, as Banyu - direct contact information for affiliates
> is
>> available at http://www.merck.com/contact/contacts.html) that may be
>> confidential, proprietary copyrighted and/or legally privileged. It is
>> intended solely for the use of the individual or entity named on this
>> message. If you are not the intended recipient, and have received this
>> message in error, please notify us immediately by reply e-mail and
>> then delete it from your system.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


Mime
View raw message