This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF Configuration File

 
Reema Patel
Ranch Hand
Posts: 169
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 169
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic