Jeromy,

2.0.8 is the first version I've tried it in. I wanted to include the version
in full to avoid people suggesting an upgrade to 2.0.8 as a first step :).

Thanks for the RFC3339 tip, but I'm going to hold off using datetimepicker
until 2.1.

Al. 

-----Original Message-----
From: Jeromy Evans [mailto:[EMAIL PROTECTED] 
Sent: 13 June 2007 13:23
To: Struts Users Mailing List
Subject: Re: [S2.0.8] datetimepicker.... is it a train wreck?

Hi Al,

Are you saying the problem is new to 2.0.8?
I can confirm that formatLength and dayWidth have never worked for me in
2.0.6 but displayFormat was fine provided the date values are RFC3339
strings.
ie. I convert the Date to and from RFC3339 strings in the action, and use
displayFormat="dd MMM YYYY".

Al Sutton wrote:
>
> Btw, please don't post more links to your site, I'm not really 
> interested in boosting your google ad counts, I'd prefer a solution to 
> getting formatLength="medium" working.
>   
I couldn't agree more.
> -----Original Message-----
> From: Deepak Kumar [mailto:[EMAIL PROTECTED]
> Sent: 13 June 2007 11:52
> To: Struts Users Mailing List
> Subject: RE: [S2.0.8] datetimepicker.... is it a train wreck?
>
> Hi,
>
> Just read Datetime picker example at
>
http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml.
>
>
>
> Thanks
>
>
> -----Original Message-----
> From: Al Sutton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 13, 2007 4:11 PM
> To: 'Struts Users Mailing List'
> Subject: [S2.0.8] datetimepicker.... is it a train wreck?
>
>
> I've been trying to do some work with datetime picker in 2.0.8 and it 
> seems to me it's a real mess.
>
> In my action I have;
>
> public Date getReportStartDate() {
>       return reportStartDate;
> }
>
> public void setReportStartDate(Date reportStartDate) {
>       this.reportStartDate = reportStartDate; }
>
> Now, here comes the fun part, If I put the following in the JSP things 
> kind of work;
>
>       <s:datetimepicker label="Start date" name="reportStartDate"/>
>
> The reason I say kind of is because the date is shown in US format 
> (mm/dd/yyyy), which is confusing for european users, so I switched to;
>
>       <s:datetimepicker label="Start date" name="reportStartDate"
> formatLength="medium"/>
>
> Which then generates the error "Invalid field value for field 
> "reportStartDate".", and yes, this is the ONLY change made.
>
> I though about trying a custom date format and saw
> https://issues.apache.org/struts/browse/WW-1917 which basically makes 
> it not an option.
>
>
> So, my question is, am I doing something dumb, or does it really break 
> so easily?, and if so is it of any real use to non-US users to whom 
> the mm/dd/yyyy date format is just wrong?
>
>   


---------------------------------------------------------------------
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