Richard Coats

Greenhorn
+ Follow
since Mar 10, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Richard Coats

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.
13 years ago
JSF