This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSF and the fly likes managing Faces-config in jSF ...please explain. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "managing Faces-config in jSF ...please explain." Watch "managing Faces-config in jSF ...please explain." New topic

managing Faces-config in jSF ...please explain.

hanumantha prem

Joined: May 20, 2009
Posts: 13
I am working on jSF and i am using RAD 6,and I have one doubt.This is my faces config file.
<description>The one and only HelloBean.</description>
<description>Navigation from the hello page.</description>
The managed-bean helloBean is added by me for my application,and the other 2 which are generated by the application itself,i.e they are backing beans.How one can differentiate these files by looking at the faces config file..or is there any way to keep these in different files. or how do you manage in faces config. please reply
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17149

Backing beans are managed beans. A backing bean is a bean that's referenced in a JSF page definition.

A Managed bean is any JavaBean that's managed by the JSF framework. And the way you tell JSF to manage a bean is to define it in either faces-config.xml or a similar file(s) designated by you in your webapp's web.xml file according to JSF's rules for such definitions.

An IDE is no substitute for an Intelligent Developer.
hanumantha prem

Joined: May 20, 2009
Posts: 13
But i want to keep the entries in different files..what could be done in order to do so.Please explain
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

You can have your JSF application read from separate faces-config files by entering their names in the deployment descriptor:

I've seen big appliations separate managed beans and navigation rules into separate files just to manage them a bit easier.

-Cameron McKenzie
I agree. Here's the link:
subject: managing Faces-config in jSF ...please explain.
It's not a secret anymore!