AnsweredAssumed Answered

ActionEvaluator not evaluated for content action

Question asked by jmliege on Sep 7, 2006
Latest reply on Sep 7, 2006 by jmliege
Hello,

I'm currently adding a specific action on content.
This works perfectly except that if i setup an evaluator, this one is never triggered, and my action remains not accessible.

My Evaluator is a class which implements the ActionEvaluator interface.

Here's my definition of the action.

<alfresco-config>
   <config>
      <actions>
         <!– Launch AddToCase dialog –>
         <action id="addtocase">
           <permissions>
               <permission allow="true">Write</permission>
             </permissions>
           <label-id>add_tocase</label-id>
            <image>/images/icons/approve.gif</image>
<!– if next line is removed, my action is accessible, if I add it, code is never triggered, and worse, action is never accessible. –>
            <evaluator>xxx.portal.web.action.evaluator.AddToCaseEvaluator</evaluator>
<!– –>
            <action>dialog:addToCase</action>
            <action-listener>#{BrowseBean.setupContentAction}</action-listener>
            <params>
               <param name="id">#{actionContext.id}</param>
            </params>
         </action>
        
         <!– Actions for a document in the Browse screen –>
         <action-group id="document_browse">
            <action idref="addtocase" />
         </action-group>
        
         <!– Actions Menu for a document in the Browse screen –>
         <action-group id="document_browse_menu">
            <action idref="addtocase" />
         </action-group>
        
      </actions>
   </config>
<alfresco-config>

May you have an explanation on this?

NB: I did the same for a 'space' action, and the evaluator is well triggered.

Best regards,
JMarc

Outcomes