Hi, this is not a Myfaces issue, but bug in EL implementation. You can see org.apache.el.lang in stack = tomcat EL implementation. Do you use tomcat < 7.0.8 or WAS < 8.0.02? If so, please upgrade. See [1] [2] and [3] for details.
[1] https://issues.apache.org/jira/browse/MYFACES-3533 [2] https://issues.apache.org/jira/browse/MYFACES-3535 [3] https://issues.apache.org/bugzilla/show_bug.cgi?id=50790 burghard.britzke píše v Ne 10. 06. 2012 v 15:49 +0200: > for the jsf-source > Line 57: <h:graphicImage > value="/images/#{personenBean.aktuellePerson.geschlecht eq 'w' ? > 'fe':''}male.png"></h:graphicImage> > > and the bean > public class Person implements Serializable { > @Column(name = "\"geschlecht\"", nullable = false, length = 1) > private char geschlecht; > ... > > MyFaces 2.1.7 throws > java.lang.reflect.InvocationTargetException > Caused by:<br/>javax.el.ELException - Cannot convert w of type class > java.lang.String to class java.lang.Long > at org.apache.el.lang.ELSupport.coerceToNumber(ELSupport.java:304) > personen.xhtml at line 57 and column 92 > value="/images/#{personenBean.aktuellePerson.geschlecht eq 'w' ? > 'fe':''}male.png" > > Why does it try to convert the char 'w' to a long values although the > referenced field is a char value? > > > burghard@airbub >

