01-31-2008 11:03 AM
02-10-2008 08:15 AM
<h:commandButton id="close-btn" value="#{msg.close}" action="#{DocumentDetailsBean.handleAssociation}" styleClass="wizardButton" />
<h:commandButton id="close-btn" value="#{msg.close}" action="dialog:close" actionListener="#{DocumentDetailsBean.handleAssociation}" styleClass="wizardButton" />
public String handleAssociation(){
Node curNode = getDocument();
List<ChildAssociationRef> assocs = nodeService.getParentAssocs(curNode.getNodeRef());
if(assocs.size() != 1)
throw new AlfrescoRuntimeException("handleAssociation: more than one parent for an association");
NodeRef parent = assocs.get(0).getChildRef();
browseBean.setupContentAction(parent.getId(), true);
return "dialog:close";
}
02-12-2008 04:44 PM
02-13-2008 03:34 AM
02-13-2008 10:22 AM
<h:commandButton id="close-btn" value="#{msg.close}" action="#{DocumentDetailsBean.handleAssociation}" styleClass="wizardButton" />
together with:
public String handleAssociation(){
Node curNode = getDocument();
List<AssociationRef> assocs = nodeService.getSourceAssocs(curNode.getNodeRef(), CustomModel.PROP_SCENE);
if(assocs.size() != 1)
throw new AlfrescoRuntimeException("handleAssociation: more than one parent for an association");
NodeRef parent = assocs.get(0).getSourceRef();
browseBean.setupContentAction(parent.getId(), true);
return "dialog:close";
}
02-14-2008 08:06 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.