• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sachin potu
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 18300
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Hantsy Bai
Greenhorn
Posts: 4
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic