سؤال

My scenario is this:

I have a template with some base code for my application. This template has some custom renderers and some beans in the faces-config.xml file.

Then I have my application that inherits the base code from the template and this application has some additional beans. And everytime I refresh from the template I need to manually add the "local" application beans into faces-config.xml.

Is there a way to have multiple faces-config.xml files or is there another way to fix this problem?

هل كانت مفيدة؟

المحلول

This sounds like a perfect use case for an OSGi plugin: shared features applied to an application that, in turn, has its own custom behavior. An XSP Library supports multiple faces-config files because there's an explicit method for declaring which files to load. An NSF, on the other hand, assumes it contributes only one of its own.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top