AnsweredAssumed Answered

custom java action

Question asked by showbiz on Jul 1, 2009
Latest reply on Feb 10, 2011 by jeyaa
Hi,

I'm new in Alfresco and i want to create an action (with Java Code) applicable to a document.

I have added the followings tags in web-client-config custom


   <config>
      <actions>      
         <action id="myAction">
            <label>MyAction</label>
            <image>/images/icons/add.gif</image>                       
         </action>           
         <!– Add action to more actions menu for each document–>
         <action-group id="document_browse_menu">
            <action idref="myAction" />
         </action-group>        
      </actions>
   </config>

My questions is how i could connect this declaration with Java Code, i have proved to defining the tag 'action' and 'actionListener' but it don't work.

   <config>
      <actions>      
         <action id="myAction">
            <label>MyAction</label>
            <image>/images/icons/add.gif</image>                   
                 <action>es.alfresco.myAction</action>
         </action>           
         <!– Add action to more actions menu for each document–>
         <action-group id="document_browse_menu">
            <action idref="myAction" />
         </action-group>        
      </actions>
   </config>

Thanks in advance

Outcomes