AnsweredAssumed Answered

[solved] my custom action is not triggered

Question asked by ethan on Aug 31, 2010
Latest reply on Sep 9, 2010 by inocka
Hello : )

I created a custom action attached to a custom model of document. I can launch the action by running it through the Run Action Menu but it doesn't work when I click on the action link I added in the doc_details_actions action group. I used the debug mode and put breakpoints to check the use of my custom action. they are triggered when I use the Run Action menu but with the action link, they aren't…

Here is the configuration of the action in my \alfresco\WEB-INF\classes\alfresco\extension\web-client-config-custom.xml file :


<action id="download-file">
   <permissions>
      <permission allow="true">Read</permission>
   </permissions>
   <label-id>download-file</label-id>
   <image>/magillem/images/icons/download.gif</image>
   <action>download-file</action>
</action>
And here is the bean configuration in my \alfresco\WEB-INF\classes\alfresco\extension\download-file-action-context.xml :


<beans>
     
    <!– Download Action Bean –>
    <bean id="download-file" class="my.alfresco.customUI.actions.DownloadActionExecuter" parent="action-executer">
       <property name="nodeService">
         <ref bean="NodeService" />
      </property>
      <property name="jcrServerIP" value="localhost:8080" />
      <property name="exchangeServerIP" value="192.168.20.241" />
      <property name="fileServerIP" value="192.168.20.151" />
      <property name="exchangeLogin" value="testUser" />
      <property name="exchangePassword" value="password" />
      <property name="publicAction">
           <value>true</value>
         </property>
   
   </bean>
  
      <!– Action properties –>
   <bean id="extension.actionResourceBundles" parent="actionResourceBundles">
      <property name="resourceBundles">
         <list>
            <value>alfresco.extension.download-file-action-messages</value>
         </list>
      </property>
   </bean>   
</beans>

Do you have any idea of what I am missing?

Thank you : )

Outcomes