St.Antario
St.Antario

Reputation: 27455

What EL version should I use along with JSF 2.1.29-01?

When we were using JSF 1.2-09 we had the following dependency:

<dependency>
    <groupId>el-impl</groupId>
    <artifactId>el-impl</artifactId>
    <version>1.0</version>
</dependency>

But now, we're updating to the JSF 2.1.29-01 and it's not clear what version I should use by now?

Upvotes: 0

Views: 580

Answers (3)

Tarik
Tarik

Reputation: 5031

The minimum requirements from the JSF Tag Info:

JSF 2.1 uses some Servlet 3.0 specific features, but is backwards compatible with Servlet 2.5. Those Servlet 3.0 features are optional.

And if we take a look to the JSF 2.0 minimum requirements we can find that: EL 2.1 which goes hand in hand with Servlet 2.5

So the conclusion is that EL 2.1 is the recommended EL for JSF 2.1

Upvotes: 0

Torsten
Torsten

Reputation: 6204

The EL implementation as well as the el-api jar you are using is part of your application container distribution. As JSF 2.0/2.1 is part of the Java EE 6 technology stack which is implemented by Tomcat 7, you should link to that api spec.

To compile your sources you will need to reference the needed el-api 2.2 with <scope>provided</scope> in your pom so that your web archive will not contain any EL libraries and possible conflicts with container provided libraries are avoided.

Upvotes: 1

Predrag Maric
Predrag Maric

Reputation: 24433

Judging by Maven repository information, JSF 2.1 depends on el-api 1.0.

Upvotes: 1

Related Questions