autocomplete JSF2 expression language [duplicate] - autocomplete

This question already has answers here:
Content Assist for JSF2 + CDI (weld) beans + Eclipse Helios
(3 answers)
Closed 7 years ago.
I'm trying to run my first Hello World application (JSF2 Facelets on jboss 5.0).
I'm using helios SR2, and I have no assist for expression language. Actually I've managed to run the Hello World application successfully, however I think I'd need autocomplete for bigger projects. Did anybody have the same issue and managed to resolve it?

See my answer at:
Content Assist for JSF2 + CDI (weld) beans + Eclipse Helios
I got it working in Eclipse Helios with JBoss Tools installed and by using CDI #Named instead of #ManagedBeans.

Related

I can't import Java EE annotations in eclipse,such as #EJB and #Stateless, instead eclipse recommends me to create them [duplicate]

This question already has answers here:
How to deploy EJB based application on Tomcat
(4 answers)
Which technologies does Tomcat support?
(5 answers)
What exactly is Java EE?
(6 answers)
Closed 3 years ago.
I can't import Java EE annotations in eclipse,such as #EJB and #Stateless, instead eclipse recommends me to create them.
Eclipse compiler error
Per se, you can't use the EJB specification with a plain Tomcat server. Tomcat is an open-source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and WebSocket specification.
The EJB (Enterprise JavaBeans) specification is part of Java EE (now called Jakarta EE) and requires a Java EE application server: e.g. TomEE, Payara, Glassfish, Open Liberty, WildFly, etc. Tomcat is not a Java EE application server as it is just a servlet-container.
If you still want to run your application in a Tomcat-like environment, have a look at the TomEE application server: How to deploy EJB based application on Tomcat.

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.

What's the ideal setup for a quick turnaround in Java EE development?

I'm currently struggling with the project setup while implementing a Java EE 6 application with Eclipse Indigo and JBoss 6. The application server and the IDE is pretty much set in the project. Maven 3 is used and was the base for the setup by using the WELD archetype and creating a WAR.
Now, the problem is, that I'm very disappointed about the development turnaround. I don't have a working automatic redeploying within eclipse and often need to restart JBoss since it gets confused with the new publishing and then is not able to redeploy correctly. This is very frustrating and time consuming. (Plus I feel the smirks behind me from the guys preferring script languages.)
From earlier projects we were using Seam 2 and the project created by seam-gen came with a somewhat decent republishing, although I still had to do a manual application restart whenever I changed Java classes. Then, from playing around with Netbeans 7 and the integrated GlassFish 3.1 I found that automatic redeployment was working ok. And since Java EE 6 is very wide spread, I assume, there must be a better setup than I have now.
So with this post I hope to get some more insight in having a good project setup for fluent development of Java EE 6 based WAR projects on JBoss and eclipse - who can share some best practices?
Thanks a lot!
You should use JBoss Tools plugins for Eclipse. JBoss Tools 3.3M2 is compatible with Indigo and JBoss AS 7 (which is 10 times faster than JBoss 6 for redeploy).
Regarding an equivalent to Seam Gen with CDI, you should really take a look to Seam Forge which is included in JBoss Tools 3.3 now.
Finally I'm using Jrebel to reload class and configuration without restarting the server. But for now it doesn't work yet with JBoss AS 7, so if you stick with JBoss AS 6 it's a goof combination.
This might not be the answer to your question, but if you want Java and fast turnaround look at http://www.playframework.org/ your script colleagues will be astounded.
For Eclipse to work well, use Eclipse Java EE edition and then add the JBoss server adapter.
The usual WTP-tooling then works for automatic deployments etc.

Netbeans IDE 7.0 Web Application Doesn't Support Java EE 6 Out of the Box? [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I just downloaded and installed the newest Netbeans IDE 7.0 Java EE edition (with Tomcat and GlassFish servers). Oddly enough, when I create a Web Application through the New Project wizard, the "Servers and Settings" step doesn't have an option for Java EE 6 in the "Java EE Version" pull-down menu, all I see is Java EE 5 and J2EE 1.4!
This is especially bizzare because the only other Java IDE I use is Netbeans 6.9.1 and even that one had Java EE 6 configurable right in the drop down.
Does anyone know how I can add Java EE 6 support to this wizard in Netbeans 7.0?
facepalm
My mistake. The reason EE 6 wasn't populating in the drop-down was I had accidentally selected an older version of the Apache Tomcat server which in fact did not support EE6. Selecting Tomcat 7.0.11 solved this problem.

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.