AnsweredAssumed Answered


Question asked by unknown-user on Feb 28, 2014
Latest reply on Mar 3, 2014 by jpotts
I am attempting to read  the content of a file in Alfresco. I have seen examples that use
ContentService. Unforunately, when I try to use the example code, the ContentService
is not available.
I have added ContentService as a managed property of my managed bean in faces-config.xml


In my java code, I am using

ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();
final ServiceRegistry serviceRegistry = (ServiceRegistry) ctx.getBean(ServiceRegistry.SERVICE_REGISTRY);

// contentService is an instance variable.
this.contentService = serviceRegistry.getContentService();

I am getting this Exception:

javax.faces.el.EvaluationException: Exception while invoking expression #{DeployAssetQADialog.start}
caused by:
javax.faces.el.PropertyNotFoundException: Bean: com.XXXXXXXXXX.DeployAssetDialog, property: contentService

Can anyone tell me if there is something that I am missing? Thanks