AnsweredAssumed Answered

Custom Action : onclick tag is ignore

Question asked by zomurn on Nov 21, 2008
Latest reply on Feb 24, 2009 by yoann.b
Hello,

I code the following custom action in web-client-config-custom.xml

<action id="en_attente_action_id">
            <permissions>
               <permission allow="true">Write</permission>
            </permissions>
            <label-id>en_attente_action_label_id
            </label-id>
            <image>/images/icons/approve.gif
            </image>
            <onclick>javascript:confirm();</onclick>
            <script>/Alfresco/Dictionnaire des
               Données/Scripts/en_attente-action.js</script>
            <params>
               <param name="noderef">#{actionContext.nodeRef}
               </param>
               <param name="target">/alfresco/faces/jsp/browse.jsp
               </param>
            </params>
         </action>

The onclick tag is not outputed in the jsp page where this action appears graphically. From the html generated source code, I can't see the "confirm()" javascript method.
What's wrong ?

Thanks for help

Outcomes