Hi - there have been a couple of other posts on this subject, but none seem to have resolved my problem. I believe I should be able to pass a parameter with an EL method in JSF 2.0. So I have the following code:
and in a backing bean:
If I remove the parameter from the call in the xhtml and in the Java method all works fine, but with the parameter Glassfish 3 gives the following run time error (extract):
SEVERE: javax.el.ELException: /search.xhtml @48,103 styleClass="#{monitor.cellStyle(77)}": Method cellStyle not found
javax.faces.FacesException: javax.el.ELException: /search.xhtml @48,103 styleClass="#{monitor.cellStyle(77)}": Method cellStyle not found
at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2214)
at org.richfaces.renderkit.ExtendedDataTableRenderer.encodeRow(ExtendedDataTableRenderer.java:809)
at org.richfaces.renderkit.AbstractRowsRenderer.process(AbstractRowsRenderer.java:89)
I've tried some of the other solutions mentioned elsewhere, i.e. including and explicit dependancy for EL:
and setting the following in web.xml:
and making sure faces-config is correct:
But I still get the same error. Does anyone have any suggestions?
Many thanks.