cancel
Showing results for 
Search instead for 
Did you mean: 

Problem overriding jsf component

billerby
Champ on-the-rise
Champ on-the-rise
I am trying to override the PropertySheet component, but somehow the declaration of the extension in the faces-config-custom.xml does not work.

This is my declaration in my faces-config-custom.xml (which resides in alfresco/WEB-INF/classes/META-INF):

<faces-config>

<component>
   <component-type>org.alfresco.faces.PropertySheet</component-type>
   <component-class>com.acando.alfresco.web.UIMyPropertySheet</component-class>
</component>


However if I instead change the declaration in the main faces-config (faces-config-repo.xml which is the core in Alfresco) from…

<component>
      <component-type>org.alfresco.faces.PropertySheet</component-type>
      <component-class>org.alfresco.web.ui.repo.component.property.UIPropertySheet</component-class>
   </component>
to

   <component>
      <component-type>org.alfresco.faces.PropertySheet</component-type>
      <component-class>com.acando.alfresco.web.UIMyPropertySheet</component-class>
   </component>
…it works. Changing the central faces-config files in Alfresco is not an option in the long run for us, and I can not understand why the extension does not work in the first case. All other configuration like managed-bean declarations are perfectly read.

Any help appreciated.

Thanks!
/Erik
1 REPLY 1

billerby
Champ on-the-rise
Champ on-the-rise
Ok, found out that the faces-config-custom.xml must be placed directly in "Alfresco/WEB-INF" if an component extension should be picked up. I find it pretty strange though that all other declarations and configurations is beeing picked up and processed when placed in the "WEB-INF/classes/META-INF"-folder.