This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
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.
It is sorta covered in the JavaRanch Style Guide.
subject: JSF Configuration File
It's not a secret anymore!