As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
private void getNodes(){ … … MapNode node = new MapNode(nodeRef, this.getNodeService(), true); node.addPropertyResolver("smallIcon", this.browseBean.resolverSmallIcon); node.addPropertyResolver("childNumber", this.resolverChildNumber); … … } public NodePropertyResolver resolverChildNumber = new NodePropertyResolver() { @SuppressWarnings("unchecked") public Object get(Node node) { Map cha = node.getChildAssociations(); Object key = cha.get("{http://www.alfresco.org/model/content/1.0}contains"); List<ChildAssociationRef> charef = (List<ChildAssociationRef>) key; int nbNode = charef.size(); return (nbNode < 0 ? 0 : nbNode); } };
… … <a:actionLink id="col2-act2" value="#{r.name} (#{r.childNumber})" actionListener="#{BrowseBean.clickSpace}" styleClass="header"> <f:param name="id" value="#{r.id}" /> </a:actionLink> … …