[
https://issues.apache.org/struts/browse/WW-1923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Musachy Barroso resolved WW-1923.
---------------------------------
Resolution: Fixed
> Attributes "value", "startDate", and "endDate" must be evaluated as Object
> instead of String
> --------------------------------------------------------------------------------------------
>
> Key: WW-1923
> URL: https://issues.apache.org/struts/browse/WW-1923
> Project: Struts 2
> Issue Type: Bug
> Reporter: Musachy Barroso
> Assigned To: Musachy Barroso
> Priority: Blocker
> Fix For: 2.1.0
>
>
> as of the 2.x versions these attributes are evaluated as Strings. Using
> %{expr} where "expr" evaluates to a Date works because the toString() method
> generates an String which can be parsed into a Date object. For a Calendar
> object, that is not the case.
> Evaluating these attributes as objects will enable the values to be of type
> Date, Calendar (and the new date API in the future), or any other object
> whose toString() method generates a date that can be parsed.
> Users that were setting these attributes as hard coded Strings like:
> <s:datetimepicker value="2007-01-01" />
> must now changed it to:
> <s:datetimepicker value="%{'2007-01-01'}" />
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.