Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the Eclipse IDE support JSF 2.0?

Tags:

eclipse

jsf

jsf-2

I have the WTP 3.1 plugin installed and have also installed the Glassfish v3 plugin. I am able to register my server.

When I create a dynamic web project, I can see that the maximum dynamic web module version available is 2.5. I then choose the default configuration for Glassfish v3 but, when I look at it JSF, it is not selected by default. When I select it, the maximum version available is 1.2.

I want to use JSF with facelets - does Eclipse support this? I can't seem to find anything helpful on the Eclipse WTP site.

like image 456
Shane Avatar asked May 05 '10 00:05

Shane


People also ask

How can I download JSF 2.2 in eclipse?

Create JavaServer Faces Library To create library you have to follow the below steps: While a window of JSF Capabilities is opened, click on the download library. The JavaServer Faces library is being searched and you should at least see a JSF 2.2 (Mojarra 2.2. 0) library.

Is JSF Java EE?

JSF is part of Java EE but you do not need full Java EE profile in order to use JSF. Examples: Tomcat is just a Java EE Web Profile implementation, and you can use JSF in Tomcat. You can use JSF in JBoss but you do not need JMS enabled in order to JSF to work.

Where is JSF framework used?

JavaServer Faces (JSF) is a new standard Java framework for building Web applications. It simplifies development by providing a component-centric approach to developing Java Web user interfaces. JavaServer Faces also appeals to a diverse audience of Java/Web developers.


1 Answers

Java EE 6 / JSF 2.0 is relatively new. Most tools are already ready, but Eclipse has to catch up it yet.

The status as far:

  • IntelliJ Ultimate Edition was early in this. Unfortunately not freeware. Note: the free Community Edition doesn't provide tools for much of Java EE, let alone JSF.

  • Netbeans 6.8 came a bit later almost full Java EE 6 support, including JSF 2.0.

  • Eclipse for Java EE planned to support Facelets in Galileo, but it was cancelled and postponed to the successor Helios which is currently in one of its latest Release Candidate stages been released at 24 July 2010. Helios for Java EE will ship with full fledged Java EE 6 support, including JSF 2.0.

As of now, it just works fine in Eclipse Ganymede/Galileo when you select JSF 1.2 and uses JSF 2.0 libraries. You'll only miss some code assistance which may be useful for JSF 2.0, but you can write code as good yourself.

like image 180
BalusC Avatar answered Oct 04 '22 20:10

BalusC