Joseba Urkiri created JBSEAM-5092:
-------------------------------------
Summary: EL expression in pattern of s:convertDateTime breaks conversation
propagation
Key: JBSEAM-5092
URL:
https://issues.jboss.org/browse/JBSEAM-5092
Project: Seam 2
Issue Type: Bug
Components: JSF Controls
Affects Versions: 2.3.0.Final
Environment: JBoss 7.1.1
Reporter: Joseba Urkiri
Using an EL expression to determine the pattern of a convertDateTime, makes application
fail when executing any action.
Here is the test code:
{code:xml}
<h:dataTable value="#{testBean.model}" var="row">
<h:column>
<f:facet name="header">
<h:outputText value="DATE" />
</f:facet>
<h:outputText value="#{row}">
<s:convertDateTime pattern="#{testBean.pattern}" />
</h:outputText>
</h:column>
</h:dataTable>
{code}
{code:title=TestBean.java|borderStyle=solid}
@Name("testBean")
@Scope(ScopeType.CONVERSATION)
public class TestBean {
private static final String DATE_PATTERN = "yyyy/MM/dd";
private ListDataModel<Date> model;
public ListDataModel<Date> getModel() {
return model;
}
public void setModel(ListDataModel<Date> model) {
this.model = model;
}
public String getPattern() {
return DATE_PATTERN;
}
@Create
@Begin
public void onInit(){
Calendar cal = Calendar.getInstance();
List<Date> list = new ArrayList<Date>();
list.add(cal.getTime());
cal.add(Calendar.DAY_OF_MONTH, 1);
list.add(cal.getTime());
model = new ListDataModel<Date>(list);
}
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira