This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Configuration File" Watch "JSF Configuration File" New topic
Author

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?

Thanks,
Reema
John Blanco
Greenhorn

Joined: Jan 13, 2005
Posts: 20
No.

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: http://aspose.com/file-tools
 
subject: JSF Configuration File