03-29-2006 05:52 AM
03-29-2006 11:32 AM
03-30-2006 04:06 AM
03-30-2006 04:26 AM
03-30-2006 06:25 AM
<aspect name="cm:localizable">
<title>Localizable</title>
<properties>
<property name="cm:locale">
<title>Locale</title>
<!– need to have means to identify root instance of appropriate category –>
<type>d:category</type>
</property>
</properties>
</aspect>
So to access the "cm:locale" property you would write the following code in your BrowseBean method:
NodeRef categoryRef = (NodeRef)this.nodeService.getProperty(nodeRef, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "locale"));
You should test for a null value as that would mean either the aspect has not been applied or the property is empty (which is a valid case as it is not a mandatory property).03-30-2006 10:17 AM
this.nodeService.getProperty(this.nodeRef, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "locale")); protected NodeService nodeService;03-30-2006 10:29 AM
FacesContext context = FacesContext.getCurrentInstance();
NodeService nodeService = Repository.getServiceRegistry(context).getNodeService();03-30-2006 10:34 AM
I have declared nodeService:protected NodeService nodeService;
but i think that nodeService is Null !
03-30-2006 12:10 PM
javax.servlet.ServletContext <managed-bean-name>BrowseBean</managed-bean-name> protected NodeService nodeService;03-31-2006 09:15 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.