Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to find faces-config.xml  RSS feed

 
nagarjun kalivarapu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I am new learner of jsf. I am using net beans and i created a project . In my project i created some .jsp files and managed beans... i want make navigation's . but in my project i cant find faces config.xml file..

can any one please help me to find the faces-config.xml . if there is any alternative to make navigation.. please help me


Thank you
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We always say that the best IDE to use for learning Java is Windows Notepad. We're not entirely joking, since when an IDE does all the work for you, you won't have developed a proper understanding of what you are doing.

The faces-config.xml file is always located in the WEB-INF folder of the webapp's WAR. If the IDE did not create one, you have to create it yourself. If you need it.

The faces-config file was very important in JSF version 1, because it was the only way to define Managed Beans and navigation rules. In JSF2, it is less important, since you can define Managed Beans and navigation using annotations on the Java source code itself. However, certain things can only be defined in faces-config even in JSF2, so most of my projects have one.

Just as a bit of information, while the default is a WEB-INF/faces-config.xml file, you can actually split the faces-config into multiple files and/or change its name. This is done using configuration parameters in the WEB-INF/web.xml file. It's not a common practice for JSF2, although large projects in JSF1 used that feature sometimes to allow making the app more modular.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!