AnsweredAssumed Answered

Get document node in finishImpl()

Question asked by nparry on Jul 19, 2007
Latest reply on Jul 20, 2007 by gavinc

I've been trying to implement a custom dialog.  I've been following the aspect dialog example in the SDK, and I've been able to add a menu item to the "more options" menu on a document, as well as set up the dialog.  When the OK button is pushed on the dialog, finishImpl is called in the java class like it should be.  My question:

How do you access the document node that you ran the dialog on?  I need it for the finishImpl function.  Also, how do you access the input fields of the dialog?

My web-client-custom.xml is as follows:

         <action id="custom_action">
           <permission allow="true">Write</permission>
               <param name="id">#{}</param>
         <action-group id="document_browse_menu">
            <action idref="custom_action" />
         <dialog name="customDialog" page="/jsp/customJSP.jsp" managed-bean="MyCustomDialog"
                 icon="/images/icons/icon.gif" title="…"
                 description="…" />


My dialog implementation is status-quo:

public class MyCustomDialog extends BaseDialogBean
   protected String finishImpl(FacesContext context, String outcome) throws Exception
      System.out.println("finishImpl called");
      return outcome;

   public boolean getFinishButtonDisabled()
      return false;


I can get the node of the space it's in, but I can't get the actual content node.

Nick P