commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RD (JIRA)" <>
Subject [jira] Created: (EL-14) Property type incorrectly interpreted
Date Wed, 20 Sep 2006 10:22:25 GMT
Property type incorrectly interpreted

                 Key: EL-14
             Project: Commons EL
          Issue Type: Bug
    Affects Versions: 1.0 Final
         Environment: JBoss 4.0.4.GA
MyFaces 1.1.3
Tomahawk+Sandbox 1.1.5 snapshot
Commons EL 1.0
            Reporter: RD

<t:dataTable id="vertragData" styleClass="standardTable"
headerClass="standardTable_Header" footerClass="standardTable_Header"
var="vertrag" value="#{vertragListBean.vertragList}"
preserveDataModel="true" rows="20"
<x:commandLink action="edit" immediate="true"
rendered="#{vertrag.status == 'A' || vertrag.status == 'a'}">

private List<Vertrag> vertragList =new ArrayList<Vertrag>();
public List<Vertrag> getVertragList() {
return vertragList;
public class Vertrag implements Serializable {
private Character status;
public Character getStatus() {
return status;
public void setStatus(Character status) {
this.status = status;

This generates the following error message:

javax.faces.el.EvaluationException: Cannot get value for expression '#{vertrag.status == 'A'
|| vertrag.status == 'a'}'
at org.apache.myfaces.el.ValueBindingImpl.getValue(
at javax.faces.component.UIComponentBase.isRendered(
at org.apache.myfaces.component.html.ext.HtmlCommandLink.isRendered(
at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(
at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(
at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(
Caused by: javax.servlet.jsp.el.ELException: An exception occured trying to convert String
"A" to type "java.lang.Long"
at org.apache.commons.el.Logger.logError(
at org.apache.commons.el.Logger.logError(
at org.apache.commons.el.Logger.logError(
at org.apache.commons.el.Coercions.coerceToPrimitiveNumber(
at org.apache.commons.el.Coercions.applyEqualityOperator(
at org.apache.commons.el.EqualityOperator.apply(
at org.apache.commons.el.BinaryOperatorExpression.evaluate(

What can I do to solve this?

Note: I have posted this issue in MyFaces Tomahawk and have got the following message from
Martin Marinschek:
"Looks to me like a bug in commons-el. Can you reconfirm with the developer-group of the expression

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message