Using JBoss EL with Websphere
Posted
by rat
on Stack Overflow
See other posts from Stack Overflow
or by rat
Published on 2010-01-06T19:23:12Z
Indexed on
2010/03/31
10:33 UTC
Read the original article
Hit count: 703
Hey,
I'm doing a project which is going to run on Websphere.
I'm using JSF/Facelets/Richfaces for this project.
I want to use the JBoss EL implementation as it allows calling methods with parameters from EL etc.
... usually this is accomplished by getting the JBoss EL jar and then putting this in the web.xml:
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
</context-param>
However this isn't working ... I don't know if its a problem with Websphere or ...???
I get a stack trace when going to the page saying it can't parse the EL where I have passed a method a parameter:
<a4j:commandLink value="Delete" action="#{mcsaAdmin.deleteLanguage(1234)}" />
Looking at the stacktrace it appears to still be using the standard sun EL:
Caused by: javax.el.ELException: Error Parsing: #{mcsaAdmin.deleteLanguage(1234)}
at com.sun.el.lang.ExpressionBuilder.createNodeInternal(Unknown Source)
at com.sun.el.lang.ExpressionBuilder.build(Unknown Source)
at com.sun.el.lang.ExpressionBuilder.createMethodExpression(Unknown Source)
at com.sun.el.ExpressionFactoryImpl.createMethodExpression(Unknown Source)
at com.sun.facelets.tag.TagAttribute.getMethodExpression(TagAttribute.java:141)
Note the 'com.sun.el.ExpressionFactoryImpl' instead of 'org.jboss.el.ExpressionFactoryImpl' as specified above ...
Am I doing something obviously wrong? Anyone have any ideas... I'm using standard JSF implementation from majorra project or whatever provided on sun website and richfaces 3.1.4 and facelets 1.1.14.
© Stack Overflow or respective owner