The facts:
IntelliJ IDEA 14.1.4 Ultimate (Educational Use)
Java EAR with Web Module
Wildfly Application Server
Primefaces 5.0
I just can't find any support for JSF in my IntelliJ IDE. There is no JSF option in the View -> Tool Windows menu as shown in several tutorials. I can't add a JSF facet in the Module Settings. I added the schemas and URIs of tag libs manually but code completion does not work either.
Did I miss something? Is it possible to add support for it in the installation process?
Solution:
File -> Settings -> Plugins -> enable JSF plugin
jetbrains.com/idea/webhelp10.5/enabling-jsf-support.html
Find here all the info.
IntelliJ IDEA features the support for JavaServer Faces (JSF) technology that leverages existing, standard UI and Web-tier concepts without limiting developers to a particular mark-up language, protocol, or client device through custom tag library for expressing a JavaServer Faces interface within a JSP page.
Preparing developement.
Facets.
I guess you don't have the correct configuration in Facelets support option:
Select the required Facelets support option.
This is the project-level setting. The selected option is set for all modules in the current project.
Auto. Automatic Facelets detection. The XHTML files are treated as Facelets or ordinary XHTML files depending on whether the module has a JSF facet or not. In the modules that have a JSF facet, all XHTML files are considered Facelets. If a module does not have a JSF facet, all XHTML files in it are treated as ordinary XHTML files.
Enabled. All XHTML files in the project are treated as Facelets.
Disabled. All XHTML files in the project are considered not to be Facelets and are treated as ordinary XHTML files.
UPDATE: to enable Facelets support check this part of the manual.
Related
Using Netbeans 7.3, Spring MVC does not seem to be bundled with the IDE. I thought this would be the case, but only JavaServer Faces and Hibernate are included when it comes to web frameworks. Do I have to activate it somehow? In Eclipse it is easy to download additional frameworks from within the IDE. How do I do this in Netbeans? I use glassfish locally, but that's OK with Spring MVC isn't it?
I just created a Web Project like the one in your comment and Spring MVC is there in NB 7.3. (Windows, Java 7)
Anyway, the following steps should help you recover it:
Open the Tools > Plugins window and go to Installed tab
Check the Show details box and look for Spring Web MVC ,it might be installed but deactivated. In that case activate it.
In case is not installed then go to the tab Available plugins
Look for Spring Web MVC and install it
Restart NetBeans
I would use maven too.
You don't have to master it, just add dependencies for the time being. And it would still work in case you switch your IDE.
NetBeans includes full Maven support since version 6.7. I would use Maven to pull in the spring dependencies by adding them in the pom.xml file.
Is it possible to implement axis2 in an JSF 2.0 project ?? it seems I cannot do that because it pops up an error saying : javaserver faces 2.0 requires dynamic web module 2.5, and axis2 requires dynamic module 2.2 or 2.3 does anyone have any solution please ??
I just tried this on MyEclipse 10.7.1 and had no problem. I just added JSF capabilities to the web project (right click on the project and go to MyEclipse->Add JSF Capabilities, selecting 2.0. Then I set the Axis2 runtime in the preferences (I have an old Axis2 1.5.4 runtime). Then I went to the preferences page you showed, for the project, and added Axis2. I got no errors. For the Axis2 runtime preferences page, you need to have the WTP Extras enabled (Window->Preferences->General->Capabilities->Advanced then open MyEclipse Standard Tools and select WTP Extras before clicking OK).
I'm not sure if the release of MyEclipse is significant but, if you're not on the latest (10.7.1) it would probably be a good idea to update your installation first.
I am trying to create a JSF 2.1 Project in Eclipse Java EE IDE.
In one screen, Eclipse asks for JSF Implementation Libary- here I have defined JSF 2.1.10 as a JSF Implementation Library- with the JAR files
jsf-api-2.1.10.jar
and
jsf-impl-2.1.10.jar.
However after adding the above implementation library, I get the following error message in the same screen of Eclipse IDE--
Required class javax.faces.FactoryFinder does not exist in selected libraries.
I even added Apache MyFaces Core 2.1.8 and Mojarra 2.1.10, but the above error message refuses to go away... What am I missing here?
How do I configure and set up a JSF 2.1 project correctly in Eclipse Java EE IDE?
Thanks...
This is my solution:
*Eclipse Juno
You should click JaveServerfaces tag of your eclipse Project Facet when creating your project.See this
I'm developing a web application with JSF 2.0 on the IDE Eclipse Indigo (the last version).
But on Project ->Properties -> Project Facets, the option JavaServer Faces is configured on version 1.2 and when I try to change the version to 2.0, an error message apears
Cannot change version of project facet JavaServer Faces to 2.0.
Strangely, the JSF libaries in my project are all the 2.0 version.
I think this is the problem that is causing my pages not to show simple xhtml tags like <h:outputLabel> and <h:inputText>.
The JSF libraries that I'm using was obtained on the Mojarra project 2.0.6
Hope someone could help me
Thanks in advance
This is an Eclipse quirk. See also Eclipse bug 201792 which is never been fixed.
The only way to change the JSF Facet version is by editing the following line of the /.settings/org.eclipse.wst.common.project.facet.core.xml file
<installed facet="jst.jsf" version="1.2"/>
to
<installed facet="jst.jsf" version="2.0"/>
Other than that, you can also just ignore it altogether. Changing the version of that facet really doesn't do any new magic for you anyway. The final WAR build still contains the JSF 2.0 libs and if you have redeclared <faces-config> root declaration of /WEB-INF/faces-config.xml file to comply JSF 2.0, then there should be no problems. If you still encounter problems with using Facelets (XHTML files, as you say yourself), then you should ask a new and more specific question about that here.
I have followed the below link to install and configure JBOSS Tools in Eclipse Indigo to work on a JSF project
http://planet.jboss.org/post/jboss_tools_milestone_for_eclipse_3_7_m6_indigo
Steps i followed.
1.Installed Eclipse
2.Configured Proxy
3.Loaded the Urls as specified in above link
however many of the packages fails during installation and i cant see a JSF project in the new project list.
What could be wrong here?. Please help me with some pointers.
You're reading an outdated tutorial. Eclipse Indigo was already finalized a few weeks after that tutorial was written. Even more, it's already in SR1 stage. You can download it here. Finally, you can try to install the JBoss tools through the following URL:
http://download.jboss.org/jbosstools/updates/development/indigo/
It works at least for me.
Please note that you do not necessarily need JBoss Tools in order to be able to create a JSF project. It's already built in Eclipse for Java EE. Just create a new Dynamic Web Project. JSF is available as one of the project facets which is configureable in the Configuration option of the 1st step of the Dynamic Web Project wizard.
The JBoss Tools is just an additional plugin which eases JSF development with several additional (autocomplete) wizards.
See also:
JSF 2.0 tutorial with Eclipse and Glassfish - contains a lot of helpful screenshots