Hello everybody,How can I add multilanguage content with web service java API? First, I tried to get the notification image (EN, FR,…) on the original content, but I've already failed. The final purpose is to get different content for each language and different metadata for the same content.I have already tried to add the aspects "sys:localized and "cm:mlDocument", and to add the property "sys:local". Here a sample:
<cm:content view:childName="cm:CPA_01_1_02362130_03_01.pdf">
<view:aspects>
<sys:localized></sys:localized>
<cm:auditable></cm:auditable>
<sys:referenceable></sys:referenceable>
<cm:mlDocument></cm:mlDocument>
<cm:versionable></cm:versionable>
</view:aspects>
<view:properties>
<cm:name>CPA_01_1_02362130_03_01.pdf</cm:name>
<sys:node-dbid>28230</sys:node-dbid>
<sys:store-identifier>SpacesStore</sys:store-identifier>
<sys:locale>fr_</sys:locale>
<sys:node-uuid>18c46db4-ce3f-11dc-bd9c-d94728a8c74f</sys:node-uuid>
<cm:creator>pfr</cm:creator>
<cm:description>Conditions Particulières Exemplaire 1 de la police 02362130</cm:description>
<cm:modifier>pfr</cm:modifier>
<cm:versionLabel>1.2</cm:versionLabel>
<cm:content>contentUrl=exp actions real\content2.pdf|mimetype=application/pdf|size=59284|encoding=UTF-8|locale=fr_BE_</cm:content>
<cm:autoVersion>true</cm:autoVersion>
<cm:title>Conditions Particulières Exemplaire 1</cm:title>
<cm:author>bdusr</cm:author>
<cm:modified>2008-01-29T08:52:18.380+01:00</cm:modified>
<cm:created>2008-01-29T08:52:10.822+01:00</cm:created>
<sys:store-protocol>workspace</sys:store-protocol>
<cm:initialVersion>true</cm:initialVersion>
</view:properties>
<view:associations></view:associations>
</cm:content>
When I export this space, I have exactly the same xml file for both methods (java api and using the browser). But for the java api version, when I click on details, I got the error :
javax.faces.FacesException: Cannot get value for expression '#{DocumentDetailsBean.documentMlContainer}'
caused by:
org.apache.jasper.JasperException: Cannot get value for expression '#{DocumentDetailsBean.documentMlContainer}'
caused by:
javax.faces.el.EvaluationException: Cannot get value for expression '#{DocumentDetailsBean.documentMlContainer}'
caused by:
javax.faces.el.EvaluationException: Exception getting value of property documentMlContainer of base of type : org.alfresco.web.bean.DocumentDetailsBean
caused by:
javax.faces.el.EvaluationException: Bean: org.alfresco.web.bean.DocumentDetailsBean, property: documentMlContainer
caused by:
java.lang.reflect.InvocationTargetException
caused by:
org.alfresco.error.AlfrescoRuntimeException: No multilingual container exists for document node: workspace://SpacesStore/18c46db4-ce3f-11dc-bd9c-d94728a8c74f
By the way: the delete button doesnt' exist any more on the web interface.Can anybody show me how to do it right?Thank you.PeterMy config: Alfresco Community 2.1.0, Win XP SP2, tomcat 5.5, JRE 1.6, MySQL 5.0.45.