wood burning stoves*
The moose likes JSF and the fly likes Eclipse with Apache & JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Eclipse with Apache & JSF" Watch "Eclipse with Apache & JSF" New topic
Author

Eclipse with Apache & JSF

Raef Kandeel
Ranch Hand

Joined: Aug 05, 2007
Posts: 87
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.


SCJP, SCWCD
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Pamungkas Timotius
Greenhorn

Joined: May 22, 2005
Posts: 26
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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse with Apache & JSF
 
Similar Threads
Version of J2EE and EJB for SCBCD
eclipse support for hibernate
Exception when using JSF backing bean property as integer
Property strings in Icefaces
Request parameters in Eclipse 6.5.1 debug session