aspose file tools
The moose likes JSF and the fly likes JSF Example , with no faces-config.xml, web.xml 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 Example , with no faces-config.xml, web.xml" Watch "JSF Example , with no faces-config.xml, web.xml" New topic

JSF Example , with no faces-config.xml, web.xml

sachin potu

Joined: Oct 22, 2011
Posts: 21


I was just started learning JSF 2.0, i came to know that annotations can be used in JSF2.0 which can eliminate the use of web.xml and faces-config.xml

i tried to search the web for such kind of example, but unable to find one.

can anyone please help me in this

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16887

Rather than "eliminate", let's say "reduce". Not all of the options that can be specified in faces-config and web.xml have annotation equivalents.

Annotations are a mixed blesing. They cut down on the need to do side editing in a config file, but if you don't have good shop documentation and good standards, it can result in playing hide-and-seek trying to find where a definition is being made.

Customer surveys are for companies who didn't pay proper attention to begin with.
Hantsy Bai

Joined: Oct 25, 2011
Posts: 4

For a start up project, you can use NetBeans to create such one, and learn JSF.

But in realworld project, when yuo want to change some default settings, I think the web.xml and faces-config.xml is necessary.
I agree. Here's the link:
subject: JSF Example , with no faces-config.xml, web.xml
It's not a secret anymore!