chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Spasiano (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-535) Property Choice problem with Alfresco response
Date Fri, 25 May 2012 09:06:23 GMT

    [ https://issues.apache.org/jira/browse/CMIS-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13283225#comment-13283225
] 

Marco Spasiano commented on CMIS-535:
-------------------------------------

I have Alfresco 4.0.1 Enterprise and the code of ftl library atomentry.lib.atom.ftl is this:

[#if type == cmisconstants.DATATYPE_STRING]
<cmis:choiceString displayName="${choice.name?xml}">
[@cmisChoices choice.children type/]
<cmis:value>[@stringvalue choice.value/]</cmis:value>
</cmis:choiceString>
[#elseif type == cmisconstants.DATATYPE_INTEGER]
<cmis:choiceInteger displayName="${choice.name?xml}">
[@cmisChoices choice.children type/]
<cmis:value>[@stringvalue choice.value/]</cmis:value>
</cmis:choiceInteger>
[#elseif type == cmisconstants.DATATYPE_DECIMAL]
<cmis:choiceDecimal displayName="${choice.name?xml}">
[@cmisChoices choice.children type/]
<cmis:value>[@stringvalue choice.value/]</cmis:value>
</cmis:choiceDecimal>
[#elseif type == cmisconstants.DATATYPE_BOOLEAN]
<cmis:choiceBoolean displayName="${choice.name?xml}">
[@cmisChoices choice.children type/]
<cmis:value>[@stringvalue choice.value/]</cmis:value>
</cmis:choiceBoolean>
[#elseif type == cmisconstants.DATATYPE_DATETIME]
<cmis:choiceDateTime displayName="${choice.name?xml}">
[@cmisChoices choice.children type/]
<cmis:value>[@stringvalue choice.value/]</cmis:value>
</cmis:choiceDateTime>
[#elseif type == cmisconstants.DATATYPE_URI]
<cmis:choiceUri displayName="${choice.name?xml}">
[@cmisChoices choice.children type/]
<cmis:value>[@stringvalue choice.value/]</cmis:value>
</cmis:choiceUri>
[#elseif type == cmisconstants.DATATYPE_ID]
<cmis:choiceId displayName="${choice.name?xml}">
[@cmisChoices choice.children type/]
<cmis:value>[@stringvalue choice.value/]</cmis:value>
</cmis:choiceId>
                
> Property Choice problem with Alfresco response
> ----------------------------------------------
>
>                 Key: CMIS-535
>                 URL: https://issues.apache.org/jira/browse/CMIS-535
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.7.0
>         Environment: All
>            Reporter: Marco Spasiano
>            Priority: Blocker
>
> In Alfresco I have a problem with choice because the response of type definition is like
this:
> ...
> <cmis:choiceString displayName="Arabo">
>    <cmis:value>Arabo</cmis:value>
> </cmis:choiceString>
> ...
> And OpenCmis client don't parse this in ChoiceList but only in 
> CmisExtensionElement

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message