将 ArrayCollection 从 ColdFusion 传递到 Flex(使用 BlazeDS)
当通过 BlazeDS 将对象从 ColdFusion 推送到 Flex,并使用 RemoteClass 映射类时...
[RemoteClass(alias="blah.blah")]
...是否可以将 ColdFusion“数组”(或某些 Java 等效项)自动映射到 ActionScript ArrayCollections?
这个家伙几乎拥有它,但还没有完全实现:
http://www.richinternet.de/blog/index.cfm?mode=entry&entry=33CF66A4-DC95-6312-95EFE8E3DB31D298
When pushing objects from ColdFusion to Flex via BlazeDS, and mapping the classes using RemoteClass...
[RemoteClass(alias="blah.blah")]
...is it possible to have ColdFusion "Arrays" (or some Java equivalent) automatically mapped to ActionScript ArrayCollections?
This chap nearly had it, but not quite:
http://www.richinternet.de/blog/index.cfm?mode=entry&entry=33CF66A4-DC95-6312-95EFE8E3DB31D298
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
就其价值而言,ColdFusion Query 对象直接自动映射到 ArrayCollection。 因此,如果可以选择,您可以手动创建一个查询对象并从您的服务返回该对象。
For what it's worth, a ColdFusion Query object maps directly and automatically to an ArrayCollection. So if it's an option, you could manually create a query object and return that from your service.
升级到CF 9.0.1 & 后 BlazeDS 4,我终于对此有了答案。
您现在可以在 services-config.xml 中使用以下节点,
详细信息如下:
http://help.adobe.com /en_US/ColdFusion/9.0/Developing/WS5B9C73A8-5FA2-4a54-B0C6-CECA2E20052D.html
After upgrading to CF 9.0.1 & BlazeDS 4, I finally have an answer to this.
You can now use the following node in you services-config.xml
Details here:
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS5B9C73A8-5FA2-4a54-B0C6-CECA2E20052D.html
我刚刚偶然发现了这篇关于序列化的文章通过java。 我还没有尝试过(希望今天晚些时候)。 希望它能帮助一些人。
i just stumbled on this article on serialization via java. I have yet to try this (hopefully later today). Hopefully it helps some.
从 Java 到 Flex,List (Java) 直接映射到 ArrayCollection (AS3)。
您可以在此处查看完整列表。 http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=serialize_data_2.html
From Java to Flex a List (Java) maps directly to an ArrayCollection (AS3).
You can see a full list here. http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=serialize_data_2.html