How to Enable the JSF facet in eclipse user library?

You have to prepare them yourself by Window > Preferences > Java > Build Path > User Libraries.

At least one user library must be selected" However there are no libraries to select. You have to prepare them yourself by Window > Preferences > Java > Build Path > User Libraries. I can optionally select "Disable Library Configuration" but I don't know what effects this might have as Eclipse is telling me that I must configure a user library.

When you choose this option, Eclispe will also tell you that the user takes the responsibility of configuring the classpath appropriately via alternate means. Should I download a separate Jar from the Mojarra and add this to my build? Or can I safely disable.

That's one of the alternative ways. Whether you need to download it yourself depends on the project's target runtime. If it's for example a simple JSP/Servlet container which does not ship with bundled JSF, such as Tomcat 7, then you indeed need to install it yourself.

Just dropping the JAR(s) in /WEB-INF/lib is sufficient (or defining it as an user library, of course). Eclipse will automagically do the right things for you (adding to build path, including in exported WAR, etc). However, if it's for example a more full fledged Java EE container, such as Glassfish 3, then you don't need to do anything as it already bundles JSF as part of Java EE API.

Just disable the library configuration altogether. Why wasn't it included with WTP like it was supposed to be? They have JSF tools included.

They do however not include JSF libraries. Or did you read otherwise? If so, where exactly?

It must have been a misinformation or misinterpretation. See also: JSF 2.0 tutorial with Eclipse and Glassfish.

I'm using glassfish3 with WTP. I probably have the JSF tools but not the libraries. So I'll see what happens.

– Randnum Nov 16 '11 at 15:19 Glassfish already has the libraries. So just disable library configuration. See also the 3rd paragraph of my answer.

You certainly have JSF tools, otherwise Eclipse wouldn't have asked you to pick a JSF user library or to disable it :) – BalusC Nov 16 '11 at 15:20.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions