- This topic has 5 replies, 5 voices, and was last updated 17 years, 8 months ago by Scott Anderson.
-
AuthorPosts
-
arsalMemberHi,
In a web project I can add JSF 1.1 capabilities but actually I wana add JSF 1.2. Could you guide me how to add JSF 1.2 capabilities or support in the project instead of JSF 1.1?
I have already downloaded JSF 1.2_04 lib and have it in a seperate folder so can I add it as a user library. If so how can I get the view/graphical support for faces-config.xml?
Regards,
Arsalan
Riyad KallaMemberArsalan,
Until we add it officially, my suggestion will be to create a User Library with the JSF 1.2 JARs in it (jsf-api.jar and jsf-impl.jar) and attach them to your project making sure to remove the older ones if they are in there.Alternatively, since JSF 1.2 is part of the JEE5 spec, if you are deploying to a JEE5 app server, you can create a User Library for JEE 5 (we will be adding that soon as well) and just attach that to your project and unattach all the JSF and J2EE Libraries from your project instead.
Also as long as your project still has JSF Capabilities added to it, the tooling will keep working just fine.
Ali KianzadehMember– Create empty web project using myeclipse wizard but don’t add jsf or jstl to it.
– copy jsf 1.2_04 files into WB-INF\lib folder
– copy jslt 1.2 folder into WEB-INF\lib
– replace web.xml with jee 5 compatible
– create new faces-config.xmlAll required link are in
http://groups.google.com/group/javaee5/web/setup-enironment-tomcat-6-jsf-1-2-jstl-1-2And of course tomcat 6 is required
Regards,
Ali Kianzadeh@arsal wrote:
Hi,
In a web project I can add JSF 1.1 capabilities but actually I wana add JSF 1.2. Could you guide me how to add JSF 1.2 capabilities or support in the project instead of JSF 1.1?
I have already downloaded JSF 1.2_04 lib and have it in a seperate folder so can I add it as a user library. If so how can I get the view/graphical support for faces-config.xml?
Regards,
Arsalan
Riyad KallaMemberAli,
I appreciate the follow up. I’d like to make the following notes:* Tomcat 6 can be used, but isn’t required. If you are using a full JEE5 container like Glassfish, Sun App Server, JBoss 5, etc. you don’t want to add the JARs to your web project, because they will be already in the server’s /lib dir and some servers balk at loading dupe classes.
But if you are using Tomcat 6, Ali’s suggestion is absolutely right.
RochaMemberHi all,
I’ve tried it and works but every time I redeploy my app to Tomcat 6 I got some exception and need to restart Tomcat. Anyone got same problem and know any workarround ?
Scott AndersonParticipantWe might be able to help if you could tell us exactly what steps you are performing and exactly what exception is being reported by the server.
-
AuthorPosts