AnsweredAssumed Answered

Extending Advanced Search

Question asked by coffman on Nov 30, 2007
Hi, i am developing an advancedsearch enhancemente, it works ok when i install it as a zip file, the module has the following files:
MyUISearchCustomProperties.class (custom class that overwrite org.alfresco.web.ui.repo.component.UISearchCustomProperties)

faces-config.xml:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                              "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
   <navigation-rule>
      <from-view-id>/jsp/*</from-view-id>
      <navigation-case>
         <from-outcome>advSearch</from-outcome>
       <to-view-id>/jsp/extension/dialog/advanced-search.jsp</to-view-id>
      </navigation-case>
   </navigation-rule>
   <component>      <component-type>org.alfresco.faces.AdvancedSearch</component-type>      <component-class>com.queres.MyUISearchCustomProperties</component-class>
   </component>
</faces-config>
Now i would like to package the project as an AMP to distribute the extension, and here comes the problem …
Where must i put faces-config.xml ?
Must i use faces-config-custom.xml ? I try a lot of variants and none seems to work, my amp structure is like that:

module.properties
\
|– lib
    |
    |– qadvancedsearch.jar -> META-INF/faces-config.xml (first try)
|– web
     |
     |– jsp
         |
         |– extension
             |
             |– dialog
                 |– advanced-search.jsp
     |
     |–WEB-INF
        |
        |– faces-config-custom.xml (second try)

none of the locations i try solves my problem.
The component (my class) is never loaded, the jsp is working.

Thanks

Outcomes