A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Ant, Maven and Other Build Tools
javax.el.ELContext cannot be resolved error when adding FaceletContext jsf maven built
Joined: Mar 19, 2013
Mar 19, 2013 13:59:47
I have this error when I added those lines in one method of managed bean : I fixed the imports of my project but no result I use
spring jsf and hibernate
here is the error :
Unresolved compilation problem: The type javax.el.ELContext cannot be resolved. It is indirectly referenced from required .class files
here the lines that causes error :
FaceletContext faceletContext = (FaceletContext) FacesContext.getCurrentInstance().getAttributes().get(FaceletContext.FACELET_CONTEXT_KEY); String formId = (String) faceletContext.getAttribute("hiddenIds");
do you have any idea
Joined: Oct 01, 2001
Mar 19, 2013 16:31:18
Hi Simon, welcome to JavaRanch!
and I have dependencies for both
and EL defined:
<dependency> <groupId>org.jboss.spec.javax.el</groupId> <artifactId>jboss-el-api_2.2_spec</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss.spec.javax.faces</groupId> <artifactId>jboss-jsf-api_2.0_spec</artifactId> <scope>provided</scope> </dependency>
Do you have both of those (or equivalent) in your POM?
I agree. Here's the link:
subject: javax.el.ELContext cannot be resolved error when adding FaceletContext jsf maven built
"maven site" fails on tests, while "maven test" runs without failures
All of a sudden many of my imports are underlined in red, that goes away when I retype them..
How to use custom tag?
How to Upgrade GWT 2.0.4 to GWT 2.2.0
Has anybody successfully run the Virtual Trainer application in "JSF Complete Reference"?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014