We are making good progress toward ColdSpring 1.0. Another one down....
When using the flashUtilityService you can configure which method you want CS to call to get a struct of instance data from your bean to pass to flash as an Actionscript object. The sample application has been updated to show an example of this as well.
This is now implemented by providing a flashMapping config like the following:
<bean id="flashMappings" class="coldspring.remoting.flash.flashMappings">
<constructor-arg name="mappings">
<!-- Here we use a "list" element to pass in an array of structures to the constructor -->
<list>
<map>
<entry key="cfcType"><value>coldspring.examples.feedviewer.model.category.category</value></entry>
<entry key="asType"><value>CategoryVO</value></entry>
<entry key="toMethodName"><value>getInstanceData</value></entry>
</map>
<map>
<entry key="cfcType"><value>coldspring.examples.feedviewer.model.channel.channel</value></entry>
<entry key="asType"><value>ChannelVO</value></entry>
<entry key="toMethodName"><value>getInstanceData</value></entry>
</map>
</list>
</constructor-arg>
</bean>
--Kurt
- [coldspring-dev] getTO not longer required for flash remotin... Kurt Wiersma
- [coldspring-dev] getTO not longer required for flash re... Sean Corfield
- [coldspring-dev] getTO not longer required for flash re... Dave Ross
- [coldspring-dev] getTO not longer required for flash re... Chris Scott
- [coldspring-dev] getTO not longer required for flash re... Kurt Wiersma
- [coldspring-dev] getTO not longer required for flash re... Kurt Wiersma
