f:convertDateTime type=date is ignored
--------------------------------------
Key: MYFACES-1836
URL: https://issues.apache.org/jira/browse/MYFACES-1836
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 1.2.2
Environment: myFaces 1.2.2
Reporter: Christian Küppers
Fix For: 1.2.3-SNAPSHOT
Using
<f:convertDateTime type="date" timeZone="CET"/>
type=date is ignored and type=time is used, because of setConvertType in
org.apache.myfaces.taglib.core.ConvertDateTimeTag
private void setConverterType(ELContext elContext,
DateTimeConverter converter,
ValueExpression value)
{
if (value == null) return;
String type = (String)
UIComponentELTagUtils.evaluateValueExpression(elContext, value);
if (type == null)
{
type = DEFAULT_TYPE;
}
else
{
if (_dateStyle != null) {
type = TYPE_BOTH;
} else {
type = TYPE_TIME;
}
}
converter.setType(type);
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.