mirror of
https://github.com/apache/struts.git
synced 2026-08-07 07:37:20 +00:00
WW-2480 Some OGNL expressions do not work with DateTimePicker component
o applied patch by Mike Calmus git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@667791 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -258,10 +258,10 @@ public class DateTimePicker extends UIBean {
|
||||
|
||||
// format the value to RFC 3399
|
||||
if(parameters.containsKey("value")) {
|
||||
parameters.put("nameValue", parameters.get("value"));
|
||||
addParameter("nameValue", parameters.get("value"));
|
||||
} else {
|
||||
if(name != null) {
|
||||
addParameter("nameValue", format(findValue(name)));
|
||||
if(parameters.containsKey("name")) {
|
||||
addParameter("nameValue", format(findValue((String)parameters.get("name"))));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user