git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6051 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2007-06-21 13:44:31 +00:00
parent 0fb90a5204
commit a146352022
2 changed files with 9 additions and 1 deletions

View File

@@ -206,6 +206,14 @@ public class DocumentDetailsBean extends BaseDetailsBean
return getDocument().hasAspect(ContentModel.ASPECT_MULTILINGUAL_DOCUMENT); return getDocument().hasAspect(ContentModel.ASPECT_MULTILINGUAL_DOCUMENT);
} }
/**
* Adds the node to the dispatch context so that overridden dialogs can be picked up
*/
public void setupEditContext(ActionEvent event)
{
this.navigator.setupDispatchContext(getDocument());
}
/** /**
* Save the state of the panel that was expanded/collapsed * Save the state of the panel that was expanded/collapsed
*/ */

View File

@@ -208,7 +208,7 @@
<f:facet name="title"> <f:facet name="title">
<r:permissionEvaluator value="#{DocumentDetailsBean.document}" allow="Write"> <r:permissionEvaluator value="#{DocumentDetailsBean.document}" allow="Write">
<a:actionLink id="titleLink1" value="#{msg.modify}" showLink="false" image="/images/icons/edit_properties.gif" <a:actionLink id="titleLink1" value="#{msg.modify}" showLink="false" image="/images/icons/edit_properties.gif"
action="dialog:editContentProperties" /> action="dialog:editContentProperties" actionListener="#{DocumentDetailsBean.setupEditContext}" />
</r:permissionEvaluator> </r:permissionEvaluator>
</f:facet> </f:facet>
</h:panelGroup> </h:panelGroup>