Installing JSF 2.3 on Eclipse [message #1759693] |
Sat, 15 April 2017 17:36  |
Eclipse User |
|
|
|
JSF 2.3 only came out very recently, and I'm having problems getting it to work with Eclipse. I have earlier versions of JSF installed correctly, and in Eclipse when I go to Dynamic Web Project [Project name] and select for Target runtime Glassfish, and select for also Glassfish for configuration, then click on Modify... a new window opens with various versions of Java, JavaServer Faces, etc. Java 1.8 is selected by default, which I want, but Java Server Faces only has selections for 2.2 and earlier versions, and I'm unable to get 2.3 shown as being available, so what do I do?
I downloaded javax.faces-2.3.0.jar from https://maven.java.net/content/repositories/releases/org/glassfish/javax.faces/2.3.0/, then on my Windows computer found that in the Eclipse workspace I have the folder JSF 2.2 (Mojarra 2.2.0)\mojarra-2.2.0-FCS\lib\javax.faces.jar, so I created a new lib folder with the same path as above, except the I replaced 2.2 by 2.3 in all cases, copied the jar file into the new lib folder, then renamed it javax.faces.jar.
After closing then restarting Eclipse, I'm unable to select any version of JSF higher than 2.2. I can link the jar file directly into the project and it works, but Eclipse will not recognize the h: and f: tags in the XHTML source code, so obviously JSF is not linked properly with Eclipse, and would most appreciate some advice on fixing this.
This has all been done with Eclipse Mars.2 Release (4.5.2). I've now just installed Eclipse Neon and I'm still unable to get JSF 2.3 when I try to create a Dynamic Web Project. In fact in the Neon workspace there is no libraries folder, and because I have not yet successfully created any projects, there are also no project folders.
How do I get Eclipse to recognize JSF 2.3, and will the next version of Eclipse, Oxygen, which is due to come out in June this year, have JSF 2.3 automatically included?
|
|
|
|
Powered by
FUDForum. Page generated in 0.07830 seconds