"The type javax.el.ValueExpression cannot be resolved" error when extending checkbox related jsf components
Asked Answered
A

1

6

I am creating JSF2 custom components and eclipse shows following error at the first line of the class.

The type javax.el.ValueExpression cannot be resolved. It is indirectly referenced from required .class files

Error only shown when my component extends checkbox related components like HtmlSelectBooleanCheckbox or HtmlSelectManyCheckbox. Other components like HtmlSelectOneMenu , HtmlInputText are ok. I've checked project build-path and javax.faces-2.1.14.jar is already added to the build-path.

Agma answered 11/3, 2014 at 9:24 Comment(1)
javax.faces.2.x.jar depends on other Java EE APIs - in particular the Servlet, JSP and Expression Language APIs.Deuced
A
12

Problem solved by adding JBoss Runtime Library to the classpath.

Eclipse: [Java Build Path -> Libraries -> Add Library -> Server Runtime -> JBoss Runtime]

I have no idea why the error only occurred when extending checkbox components.

Agma answered 14/3, 2014 at 8:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.