Eclipse plugin for Facelets files - eclipse

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.

Related

Does Eclipse Java EE IDE come with Tomcat?

I am wondering if I need to download and install Tomcat separately or if it comes with the latest version of Eclipse EE?
You will need to download Apache Tomcat separately, but you are not required to install it. In fact, it's simpler if you don't. The best layout supported for getting the required Java EE runtime libraries from Tomcat as well as launching it from Eclipse is the one from the unpacked tar/zip files.
Apache Tomcat and Eclipse has different types of license, and AFAIK Eclipse is "more free".

JBoss Tools 4.1 with Eclipse JavaEE bundle, but why?

On the JBoss Tools website they recommend explicitly to use Eclipse JavaEE bundle for the Tools. But when I install 4.1.1 (with all checkboxes) on a Standard Eclipse bundle, I have everything what JavaEE bundle has, with the ONLY execption of Mylyn (but therefore additionally Source for JDT and PDE). Or do I have a "missing link" here?
We state that Eclipse JavaEE is recommended since then you:
A) have 90% or so of all the required dependencies anyway (faster install)
B) get all the functionalities of Eclipse JavaEE/WTP available to you instead of "just" the ones JBoss Tools explicitly rely on. (more consistent functionallity)

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.

Metro plug-in for Eclipse Juno

Where can I find a tutorial to install and use a Metro plug-in to Eclipse Juno? I have to migrate a sample with ant (downloaded with metro 2.3 libraries) in a dynamic web project Eclipse. Thanks.
There is no Metro plug-in for Eclipse Juno, but GlassFish Tools for Juno available at Eclipse's marketplace. If you are willing to try it, there is an official tutorial for Metro-on-Eclipse available here.
However, you have mentioned in the comment that you are not using Glassfish, but Tomcat, so I would recommend different approach. Follow this tutorial and be careful when deploying the service - you will have to edit web.xml and sun-jaxws.xml files, together with installing JAX-WS (or Metro) libraries on Tomcat.

Does the Eclipse IDE support JSF 2.0?

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.