cancel
Showing results for 
Search instead for 
Did you mean: 

ContentService

unknown-user
Champ on-the-rise
Champ on-the-rise
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

    <managed-property>
    <property-name>contentService</property-name>
    <value>#{ContentService}</value>
    </managed-property>

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
1 REPLY 1