AnsweredAssumed Answered

Custom dialog : impossible to navigate to my custom JSP diag

Question asked by zomurn on Nov 17, 2008
Latest reply on Nov 17, 2008 by zomurn
Hi everyone,

I'am coding a custom dialog in Alfresco.
I read the tutorial and all seems to be well coded. The problem is that when I click on the "edit_properties.gif" icon, the page loads and left on the current one (browse.jsp) as like if the navigation handler doesn't care about the page attribut in <dialogs> tag (see above).
Why I don't manage to navigate to /jsp/extension/editer_metadonnees.jsp. Do I have forget something ? Thanks

<config evaluator="node-type" condition="msc:fiche" replace="true">
      <actions>

         <!– View document details –>
         <action id="editer_metadonnees_action_id">
            <permissions>
               <permission allow="true">Write</permission>
            </permissions>
            <label-id>editer_metadonnees_action_label_id
            </label-id>
            <image>/images/icons/edit_properties.gif
            </image>
            <action>dialog:editer_metadonnees_dialog_id
            </action>
            <action-listener>#{BrowseBean.setupContentAction}
            </action-listener>
            <params>
               <param name="id">#{actionContext.id}</param>
            </params>
         </action>

      
         <action-group id="document_browse">
            <show-link>false</show-link>
            <style-class>inlineAction</style-class>
            <action idref="editer_metadonnees" />
         </action-group>
         
      </actions>
   </config>

   <config>
      <!– Definition of the edit content properties dialog –>
      <dialog name="editer_metadonnees_dialog_id" page="/jsp/extension/editer_metadonnees.jsp"
         managed-bean="EditerMetadonneesDialog" icon="/images/icons/edit_properties_large.gif"
         title-id="editer_metadonnees" description-id="editer_metadonnees"
         show-ok-button="true">
         <buttons>
            <button id="editer_metadonnees_bouton_suivant_id" label-id="editer_metadonnees_bouton_suivant_label_id"
               action="#{DialogManager.bean.boutonSuivant}" disable="false"
               onclick="javascript:valider_metadonnees()" />
            <button id="editer_metadonnees_bouton_precedent_id" label-id="editer_metadonnees_bouton_precedent_label_id"
               action="#{DialogManager.bean.boutonPrecedent}" disable="false"
               onclick="javascript:valider_metadonnees()" />
         </buttons>
      </dialog>
   </config>

Outcomes