-
1. Re: Using JBoss EL standalone with RIchFaces
amitev Oct 25, 2009 6:46 AM (in response to thomasgo)el-api.jar comes bundled within the JBoss application server but you could also find it in the https://facelets.dev.java.net/servlets/ProjectDocumentList.
Let us know if you need more tip.s -
2. Re: Using JBoss EL standalone with RIchFaces
thomasgo Oct 25, 2009 1:24 PM (in response to thomasgo)Thanks for your reply. Yes, I saw the el-api.jar in the lib directory, but the thread I linked said I should keep el-api.jar and replace el-ri.jar with jboss-el.jar. The problem is, however, that I could not find that el-ri.jar.
I suppose I have to register Jboss EL in another way to make it work, don't I?
Just putting it into the classpath isn't sufficient. -
3. Re: Using JBoss EL standalone with RIchFaces
nbelaevski Oct 25, 2009 1:37 PM (in response to thomasgo)Hi,
What is your application server? -
4. Re: Using JBoss EL standalone with RIchFaces
thomasgo Oct 25, 2009 2:14 PM (in response to thomasgo)JBoss 4.2.3.GA.
I modified the "default" server. -
5. Re: Using JBoss EL standalone with RIchFaces
nbelaevski Oct 25, 2009 2:25 PM (in response to thomasgo)JBoss already contains EL implementation (that's what el-ri is for), so it should be enough to put jboss-el.jar into application classpath.
-
6. Re: Using JBoss EL standalone with RIchFaces
thomasgo Oct 25, 2009 2:37 PM (in response to thomasgo)That's what I tried, but it doesn't seem to work.
At least I get errors when trying to use value expressions thathave parameters, e.g. <h:graphicsImage value="#{SomeBean.image('image.jpg')}"/>.
At first I added Seam completely to the classpath, registered the Seam listener within my web.xml and configured seam using a components.xml.
With this setup it worked.
However, I can't use Seam for the current project, since we don't have enough knowledge yet and we haven't enough time left to start learning how to use Seam as a whole. So I'd like to reduce dependencies and possible spots of failure for the current project and just integrate JBoss EL since this seems to be capable of running as a standalone library. -
7. Re: Using JBoss EL standalone with RIchFaces
nbelaevski Oct 25, 2009 3:20 PM (in response to thomasgo)Simply adding jboss-el really didn't change anything for my example.
You can implement your own ApplicationFactory analogous to org.jboss.seam.jsf.SeamApplicationFactory and use it as a workaround or consult JBoss AS forum for help. -
8. Re: Using JBoss EL standalone with RIchFaces
thomasgo Oct 25, 2009 4:07 PM (in response to thomasgo)OK, thanks. I'll try it again in the Seam forum or in the JBoss AS forum. I hope I can add topics there ;) .