cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2482) Update JSON Provider to support Dojo JsonRestStore
Date Fri, 23 Oct 2009 13:00:59 GMT

    [ https://issues.apache.org/jira/browse/CXF-2482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12769215#action_12769215
] 

Sergey Beryozkin commented on CXF-2482:
---------------------------------------

Hi Jason

I'm thinking may be we should introduce another property, or just use 'serializeAsArray' property
instead of 
using "dropCollectionWrapperElement" and actually deprecate "dropCollectionWrapperElement"",
so it becomes :

<bean id="jsonProvider" class="org.apache.cxf.jaxrs.provider.JSONProvider">
    <property name="serializeAsArray" value="true"/>
    <property name="dropRootElement" value="true"/>
</bean> 

?

I'm just thinking that I should've not introduced "dropCollectionWrapperElement", because
it really means the same as what "dropRootElement" means.

Do you agree ? if yes then can you please update the patch so that "serializeAsArray" is used
instead of "dropRootElement", while "dropRootElement" is used instead of "dropCollectionWrapperElement"
and also remove "dropCollectionWrapperElement" prroperty from JSON provider and update setDropCollectionWrapperElement
to set "dropRootElement" instead and also make this setter as @deprecated ?

thanks, Sergey





> Update JSON Provider to support Dojo JsonRestStore
> --------------------------------------------------
>
>                 Key: CXF-2482
>                 URL: https://issues.apache.org/jira/browse/CXF-2482
>             Project: CXF
>          Issue Type: Improvement
>          Components: REST
>    Affects Versions: 2.2.4
>            Reporter: Jason Morawski
>            Priority: Trivial
>         Attachments: marshal-for-dojo.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> In order for Dojo's JsonRestStore to work with CXF JAX-RS based web services, Dojo expects
GET calls to return JSON containing an Array of Objects.  The JSON Provider should support
marshaling Collections of POJOs  to JSON that consists of a root Array element with child
Objects.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message