- This topic has 4 replies, 2 voices, and was last updated 16 years, 3 months ago by sarikan.
-
AuthorPosts
-
sarikanParticipantHi there,
Just installed MyEclipse 6.5 on Ubuntu 7.1, and when I create a web project, and add JSF capability to project, Sun’s reference impl. is added. There is a link during the add JSF capability wizard, and I click that and select MyFaces instead of Sun’s ref. impl.
This does not change anything. Neither does changing the defaults from the preferences. How do I add JSF capability with MyFaces, instead of Sun’s libraries? I don’t want them!Kind regards
Seref
Brian FernandesModeratorSeref,
When you add JSF capabilities, the first combo box labeled “JSF Reference Implementation” allows you to select between Sun RI or MyFaces. Did you use that combo to select MyFaces? When I selected MyFaces, the corresponding MyFaces libraries were added to my project.
Hope this helps.
sarikanParticipantHi,
That’s the case for J2EE 1.4 indeed. What about J2EE 5.0? When I choose to create a web project for Java EE 5.0, I am only allowed to use Sun’s ref. impl. The combobox you mention is gone in the dialog where I add JSF capabilities.
When I select Java EE 1.4, myeclipse alerts me that my compiler settings should be Java 1.4 compliant, and I lose Java 5 in that case.
Maybe it is my lack of knowledge about the Java EE standard, but is it not possible to use Java EE5, and myfaces with Java language version 5 ? Am I missing something here?Cheers
Brian FernandesModeratorSeref,
Apologize for not thinking of the JEE 5 use case up front. With JEE5, you notice it mentions “JSF implementation included with JEE 5 app server”.
The libraries added to your project, the “Java EE 5 Libraries” container and the libraries within it are added to your project for compile time requirements, but they will not be deployed when you deploy your application. We expect that your JEE 5 app server will include a JSF implementation which will be used. For instance, I believe Glassfish includes Mojarra as their JSF implementation.
What application server are you deploying to?
sarikanParticipantHi Brian,
The scenario I have in mind is: JSF + IceFaces + Facelets on JBoss application server.
I would really appreciate if you could help me out here. Is this setup possible on Java 5? I want to use annotations support for hibernate, and some other libraries I use require java 5 support.
I get another warning from Icefaces that it uses compatibility mode when I try to add it to a java ee 5 web project, even if the version I’m adding is 1.7?
To be honest, there is apparenty more reading to do for me, but I’d love to be able to get to a working setup faster.Kind Regards
Seref -
AuthorPosts