05-05-2011 12:13 PM
<config evaluator="node-type" condition="eum:recipientsspace">
<property-sheet>
<separator name="eventSep" display-label="Recipients" component-generator="HeaderSeparatorGenerator" />
<show-child-association name="cm:contains" component-generator="RecipientsListGenerator" />
</property-sheet>
</config>
public class UIRecipientsList extends UIChildAssociationEditor {
@Override
protected void populateAssocationMaps(Node node, NodeService nodeService) {
//To change body of implemented methods use File | Settings | File Templates.
}
@Override
protected void renderReadOnlyAssociations(FacesContext context, ResponseWriter responseWriter, NodeService nodeService) throws IOException {
TemplateService templateService = (TemplateService) FacesContextUtils.getRequiredWebApplicationContext(context).getBean("templateService");
Map<String, Object> model = new HashMap<String, Object>();
model.put("test", "test1");
templateService.processTemplate("com/dods/alfresco/web/ui/repo/component/UIRecipientsPickerTest.ftl",
model, responseWriter);
}
@Override
protected void renderExistingAssociations(FacesContext context, ResponseWriter responseWriter, NodeService nodeService, boolean b) throws IOException {
//To change body of implemented methods use File | Settings | File Templates.
}
@Override
protected void removeTarget(Node node, String s) {
//To change body of implemented methods use File | Settings | File Templates.
}
@Override
protected void addTarget(Node node, String[] strings) {
//To change body of implemented methods use File | Settings | File Templates.
}
@Override
public void encodeBegin(FacesContext context) {
}
@Override
public void decode(FacesContext context) {
}
}
05-06-2011 10:29 AM
Node node = (Node) context.getExternalContext().getSessionMap().get("spaceProps");
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.