head contains
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
I just put this into datetimepicker/jsp/index.jsp
<sx:datetimepicker label="With initial date of 2009-01-30 and a custom format
MM/dd/yyyy" name="dddp5" value="%{'2009-01-30'}" displayFormat="MM/dd/yyyy" />
and here is what is rendered:
With initial date of 2009-01-30 and a custom format MM/dd/yyyy:
even the Ajax Calendar is working..
WEB-INF/sitemesh-decorator.log
WEB-INF/sitemesh-page.log
WEB-INF/lib/struts2-core-2.1.6.jar 736,715
anything in the logs??
Martin --
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission is of a confidential nature and Sender does not
endorse distribution to any party other than intended recipient. Sender does
not necessarily endorse content contained within this transmission.
Subject: Datetimepicker and struts 2.1.6
Date: Sun, 8 Feb 2009 19:25:22 -0500
From: [email protected]
To: [email protected]
Datetimepicker and struts 2.1.6
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 date format is set
to "yyyy-MM-dd". 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.
_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_022009