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]

Reply via email to