AnsweredAssumed Answered

Custom Action from Bean to browse_actions_menu

Question asked by ebell on Jun 5, 2008
So, I have the following custom action (Implemented in a bean)
<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>



<beans>

     

    <bean id="check-expires" class="com.burris.CheckExpires" parent="action-executer">

        <property name="serviceRegistry">

            <ref bean="ServiceRegistry"/>

        </property>

    </bean>

    <bean id="check-expires-messages" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">

            <property name="resourceBundles">

                        <list>

                            <value>com.burris.check-expires-messages</value>

                        </list>

            </property>

   </bean>



</beans>

I'd like that action to appear on the browse_actions_menu. 
Here's what I have:

<config>
   <actions>
      <!– Launch Check Expires –>
      <action id="Check-for-Expired-Documents">
         <label> Check for Expired Documents </label>
         <image>/images/icons/clock.gif</image>
         <!– something needs to go here–>
      </action>
      <action-group id="browse_actions_menu">
      <action idref="Check-for-Expired-Documents" />
      </action-group>

   </actions>
</config>
Which tag do I need to add under the action ID in order to make my custom action available?  Right now, there's just a clickable icon that does nothing.

Outcomes