Hello,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:
<alfresco-config>
<config>
<actions>
<action id="custom_action">
<permissions>
<permission allow="true">Write</permission>
</permissions>
<tooltip>…</tooltip>
<label>…</label>
<image>…</image>
<action>dialog:customDialog</action>
<action-listener>#{CustomBean.actionListenFunction}</action-listener>
<params>
<param name="id">#{actionContext.id}</param>
</params>
</action>
<action-group id="document_browse_menu">
<action idref="custom_action" />
</action-group>
</actions>
<dialogs>
<dialog name="customDialog" page="/jsp/customJSP.jsp" managed-bean="MyCustomDialog"
icon="/images/icons/icon.gif" title="…"
description="…" />
</dialogs>
</config>
</alfresco-config>
My dialog implementation is status-quo:
public class MyCustomDialog extends BaseDialogBean
{
@Override
protected String finishImpl(FacesContext context, String outcome) throws Exception
{
System.out.println("finishImpl called");
return outcome;
}
@Override
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.Thanks,Nick P