문제

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