Does the Eclipse IDE support JSF 2.0? - eclipse

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.

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.

Use Eclipse with JBoss Tools Plugin. It has support for JSF2 and CDI.
http://in.relation.to/14750.lace

Note, that you can do JSF 2.0 development in Eclipse, but not with as much tool support as might come later.
You can always edit xhtml files directly as XML-files (and have the namespaces registered), and have Glassfish deployments. I've done that, with stock Eclipse 3.5.2 Java EE edition, and the Glassfish plugin.

Have a read on http://weblogs.java.net/blog/2009/05/18/using-ide-write-jsf-20-app
It describe in details on how to setup your eclipse for jsf 2.0 development.

Related

Jakarta ee web project in Eclipse ide

I have the latest eclipse Sept 2020 ide for java ee installed, I cannot seem to find out how to create a jakarta ee 8 project in eclipse. I have tried Help then Eclipse Marketplace, searched for jakarta, but only result was Glassfish tools.
I usually program in beans, servlet, jsp code and a brand new to trying (attempting) to learn jakarta.
I can't even figure out how to start a new jakarta web project.
Please any help would be appreciated.
You'll need to wait a little bit for the tooling to catch up.
Indeed, when you create a new Servlet in Eclipse, the only option is to use the Java EE, javax libraries. Attempts to change to Jakarta libraries will cause errors.
One trick is to switch your target runtime to a new server that has the Jakarta EE libraries such as the latest Tomcat version (currently 10). But even that has to be done manually, as the Tomcat 10 server is not yet available as a supported server.
Jakarta EE 9 is officially released December 8th, 2020. It's on that date that all the packages are renamed. We may have to wait a little bit for all of the tooling, such as the Eclipse IDE, to catch up.

How can I chose a specific version of Java EE in Eclipse?

It's my first day with Java EE and I would like to understand:
How I can set up a Java EE 7 project? and where can I check what Java EE version I am actually using?
I downloaded the latest Eclipse for Java EE Developers (Neon) and am now trying to understand how all these parts fit together.
I ended up downloading Java Platform, Enterprise Edition 7 Web Profile SDK Update 3 as well as a Shell file to install Java Platform, Enterprise Edition 7 SDK Update 3.
I know there is a lot of instructions provided but I would just like to set up my Eclipse environment.
Happy for any help or resource!
You can follow this tutorial http://www.edu4java.com/en/servlet/servlet4.html it's old but it basically the same thing
You have to create a new project (Dynamic Web Project)
The versions of the Facets you choose will determine which Java EE spec version it aligns with
Choose your application server (I personally recommend Wildfly http://wildfly.org/, but the built-in Java EE Preview Server can run Servlets on its own)
And you are ready to go !

JSF and Richfaces on JBoss AS 4

I need to develop a presentation layer for an existing Java EE application running on JBoss AS 4.2.1.GA. I have been reading on JSF, Facelets and RichFaces and tried a few examples - some things worked but others didn't because of the limitations of library versions I used, considering the outdated JBoss.
Can someone recommend the direction I need to be heading to get this done as quickly as possible by using the mentioned server? By this I mean the Eclipse tool (WTP, JBoss Tools, ...), type of project, dependencies, ... Also, to shorten development time, maybe also use JRebel?
I know I would be better off using the latest server, but unfortunately it is not an option.
Also, I have installed JBoss Tools for Eclipse Indigo, but for creating RichFaces Project, it requires JBoss EAP 6 or AS 7.1.
I had created applications using JSF 1.2, RichFaces 3.3.3, JBoss Seam 2.0.2 (not required) for JBoss AS 4.2.2.GA. For development was used Eclipse (3.4/3.5) IDE for Java EE Developers. Version of Eclipse is not important. Yes, you need WTP. In my projects seam-gen was used for generating project skeleton. If you don't use Seam you can create Web project.

Eclipse plugin for Facelets files

I have checked this question but it seems outdated now. Are there any plugins for Eclipse that supports Facelets/XHTML files and eases the development?
Both the Glassfish Eclipse Plugin and the JBoss Tools Plugin supports Facelets files and autocompletion of JSF tags. The JBoss Tools Plugin also adds EL autocompletion support to this.
The Glassfish Eclipse Plugin only works when your target runtime is set to Glassfish and the JBoss Tools Plugin only works when your target runtime is set to JBoss AS. JBoss AS is deep under the covers the same as Tomcat (which is just a simple Servlet container), but then enriched with a lot of additional Java EE aspects such as JSF, EJB, JAX-WS/RS, JMS, etc.

How to Get JSF 2.0 Working with Eclipse 3.5 and JBoss 5.1

I am running Eclipse 3.5 and JBoss 5.1. I want to create a JSF 2.0 project.
I heard here that the Eclipse JBoss Tools plugin version 3.1 (available here) could do this for me.
I have installed the plugin. However, if I go to the Project Facets properties page for a Dynamic Web Project, I only see Facets for JavaServer Faces 1.1 and 1.2. My Java facet is set at 6.0, and my Dynamic Web Module to 2.5.
In the Targeted Runtimes properties page, I see that I am targeting the JBoss 5.1 Runtime.
I understand that Eclipse Helios will be here next week, but I'm curious if its possible to get JSF 2.0 working with 3.5. Any thoughts?
Certainly you can. Just set to 1.2, give the JSF 2.0 libraries and it will work. It's after all just the code which you write. You'll maybe only miss the IDE assistance in JSF 2.0 specific features, but this doesn't harm if you know how to write code yourself. Heck, you can even do this all using plain notepad.exe and javac.exe ;)
See also:
Does the Eclipse IDE support JSF 2.0?