File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

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

sachin potu
Greenhorn

Joined: Oct 22, 2011
Posts: 21

Hi,

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

thanks
potu
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: JSF Example , with no faces-config.xml, web.xml
 
Similar Threads
Ajaxifying the Existing JSF Components using ajax4jsf.
My jsp's or html don't run on jboss
JSF vs GWT (+ some question on DOM Manipulation)
"#{...} is not allowed in template text" error
Am newbie in JSF