cancel
Showing results for 
Search instead for 
Did you mean: 

Defining group of actions in a module

bgl
Champ on-the-rise
Champ on-the-rise
Hi,

I would like to add new group of actions (specified in web-client-config-actions.xml) defined for the purpose of my own module.
I thought it would work like the web-client-config.xml, adding a web-client-config-actions-custom.xml would make the trick…but that is not the case.

After searching, I found in web-client-application-context.xml this:


   <bean id="webClientConfigSource" class="org.alfresco.config.source.UrlConfigSource">
      <constructor-arg>
         <list>
            <value>classpath:alfresco/web-client-config.xml</value>
            <value>classpath:alfresco/web-client-config-dialogs.xml</value>
            <value>classpath:alfresco/web-client-config-wizards.xml</value>
            <value>classpath:alfresco/web-client-config-properties.xml</value>
            <value>classpath:alfresco/web-client-config-navigation.xml</value>
            <value>classpath:alfresco/web-client-config-wcm.xml</value>
            <value>classpath:alfresco/web-client-config-actions.xml</value>
            <value>classpath:alfresco/web-client-config-forum-actions.xml</value>
            <value>classpath:alfresco/web-client-config-wcm-actions.xml</value>
            <value>classpath:alfresco/web-client-config-workflow-actions.xml</value>
            <value>classpath:alfresco/extension/web-client-config-custom.xml</value>
            <value>jar:*!/META-INF/web-client-config-custom.xml</value>
         </list>
      </constructor-arg>
   </bean>

Now I understand much better the tips&tricks about web-client-config-custom.xml in jar file. But I'm afraid I cannot declare my set of actions.

I'm trying to do the following:
  create a custom drop down menu (following the code of create space) to create some special space with special attributes that can be filled at creation time.

I have my own browse.jsp which is a copy/paste from alfresco war but I have added a menu. This menu expects a group of actions defined in my META-INF/web-client-config-actions-custom.xml but it is not loaded.

If I add in the web-client-application-context.xml the following:

<value>jar:*!/META-INF/web-client-config-actions-custom.xml</value>

where I saw the web-client-config-custom, it seems to be found.

Is this an issue or a design choice ? if the last option, how can I do ? If it is the first option, do I have to raise an issue ? (I've checked quickly jira searching for web-client-application-context.xml but did not find any…may be my criteria was incorrect…)

Thx for reading this loooong post and proposing something  :wink:
10 REPLIES 10

bgl
Champ on-the-rise
Champ on-the-rise
Perfect ! It is working exactly the way I wanted.

Thanks for this great support Gavin !