W_K
W_K

Reputation: 868

Managed beans in xsp-config files

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.

Upvotes: 1

Views: 473

Answers (4)

Tim Tripcony
Tim Tripcony

Reputation: 8086

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.

Upvotes: 3

keithstric
keithstric

Reputation: 1064

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.

Upvotes: 2

Thomas Adrian
Thomas Adrian

Reputation: 3636

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?

Upvotes: 0

stwissel
stwissel

Reputation: 20384

As far as I know they have to be in the faces-config.xml

Upvotes: 1

Related Questions