File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF Configuration File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Configuration File" Watch "JSF Configuration File" New topic

JSF Configuration File

Reema Patel
Ranch Hand

Joined: Jan 26, 2006
Posts: 169
The default config file in JSF is faces-config.xml. A JSF app can have mulitple JSF conf files that can be specified in the web.xml file, as shown here:

But, is it mandatory to have this definition in DD file?

John Blanco

Joined: Jan 13, 2005
Posts: 20

In fact, faces-config.xml is always included. You would only need to use this stanza to denote *other* files that have faces configuration.
Reema Patel
Ranch Hand

Joined: Jan 26, 2006
Posts: 169
Thanks John!

I think in most trivial apps faces-config.xml is used as the conf file. But, I see the DD element irrespective of any ither configuration file in almost all JSF Web Apps. I think it has become a common practive to include this element in the DD file.
I agree. Here's the link:
subject: JSF Configuration File
It's not a secret anymore!