cancel
Showing results for 
Search instead for 
Did you mean: 

override component not working in my META-INF/faces-config

ribz33
Champ on-the-rise
Champ on-the-rise
I try to override org.alfresco.faces.AdvancedSearch component by my own in my file META-INF/face-config.xml.

I have already navigation rules and managed bean in this xml file and they are working correctly.

I don't understand why its not the same for component.
I did test to replace directly my component in faces-config-repo.xml and its working.

So my component in META-INF/face-config its not loaded, if you have an idea of reason that could be appreciate.

Thx.
1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
To override managed beans you need to define them in faces-config-custom.xml in WEB-INF as explained here: http://wiki.alfresco.com/wiki/Packaging_And_Deploying_Extensions#JSF_configuration_files

We supply an empty version of this file (as JSF has to find config files referred to) which can safely be replaced with your custom version.