Can anyone tell me if it is possible to keep managed beans in separate .xsp-config configuration files? And if yes than how to do this? I have tried and it only worked if I put them into faces-config.xml file.
4 Answers
If you want to split your bean definitions into multiple configuration files, you'll need to create an OSGi plugin. XSP libraries can contain more than one faces-config file (and you can name them whatever you want, because you specify in the library class which XML files contain faces-config definitions). But in an NSF, you're limited to just the auto-generated faces-config.xml file.

- 8,056
- 1
- 23
- 34
Yes, Managed beans must be defined in the faces-config.xml file.
For a good reference on all the different options within faces-config and xsp-config take a look at this website. It describes the format of pretty much everything you might ever want to add to a faces-config or xsp-config and a brief description of the options.

- 1,053
- 1
- 11
- 21
faces-config is a JSF implementation, you should check out the JSF specification for this, there are even some good post in this forum like this one: JSF faces config file outside WEB-INF?

- 1
- 1

- 3,543
- 6
- 32
- 62