AnsweredAssumed Answered

Problem overriding jsf component

Question asked by billerby on Feb 11, 2010
Latest reply on Feb 11, 2010 by billerby
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

Outcomes