This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Eclipse with Apache & JSF  RSS feed

 
Raef Kandeel
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there Ranchers,

I am a JSF newbie. I have been trying to get JSF to work with Eclipse and Apache. The way I attempted to do that is quite simple, I tried to follow the tutorial in http://www.laliluna.de/first-java-server-faces-tutorial.html. Although the interface that he used was quite different from mine, I always managed to find an equivalent. And it all worked pretty well until the code contained this line:

And the code wouldn't compile. Eclipse would say:
The import javax.faces cannot be resolved


The way I added JSF is by File->New Project->Web->Dynamic Web Project, Entered a project name, Pressed Next, I ticked Java Server Faces. Do you know why Eclipse is doing so? Thanks in advance.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually to me that means that the class isn't in the classpath, but I am no eclipse expert.

You might also want to see if something like Excadel, which is a bunch of plugins with Eclipse for JSF development, and is free.

Mark
 
Pamungkas Timotius
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never uses myEclipse...

However, just wonder.. Have you entered your JSF library in project's build path? (Right click on project > properties > Build Path, add your jar for JSF implementation)
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!