Forums Register Login

Unable to find faces-config.xml

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1696 times.
Similar Threads
New project using JSF facelet
unable to load faces-config.xml
struts java.lang.IllegalAccessException
Can't find managed bean in xhtml attribute values..!
Creation of new bean in jBoss
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:41:15.