I keep getting pressure from a fair few people on how to do the whole
Flex -> Transfer and back again thing.
Unfortunately, my Flex skills are far from developed, so I don't have
an answer to this question.
For those of you who are developing with Flex and Transfer, can you
give us a quick run down of how you go about doing it?
I would really appreciate it, and hopefully we can all learn something.
Mark
Why is it such a big deal that the memento's are all in upper case?
Mark
[RemoteClass(alias="com.foo.MyComponent")] and the conversion happens automatically.That is very interesting.
How do you go about bringing the VO data back to a Transfer Objects?
Mark
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
All that said -- and with the understanding that I'm a) willing to do the work to learn on my own, and b) well aware of the dangers of "copying" someone else's solution and taking it as the "one true way" -- it would be extremely helpful to me and, I'm sure, to others, if we could see some examples of the techniques discussed in this thread. From Brian's process, which sounds like a fairly straightforward use of AOP and CS remote objects to send flat CFCs, with whatever reverse processing he does when the object comes back from Flex. To Jon's use of typed structs. To whatever Sean happens to be using today.
I don't have an readily available examples (besides client code), but Brian is much more eloquent than I, and his example like he says, is easily extended to use typed structs...
These seem to be the best options for the moment (as far as I can tell)
(A) Pushing CF based data -> Flex
1) Take query data, and convert it over to a typed struct as required.
2) Take a TransferObject (or array of them), and convert that over to a typed struct
(B) Pushing Flex VO data -> CF
1) Pushing a memento / struct back down to CF and (somehow?) pushing that data back onto a TransferObject and saving it.
The (A) side of pushing data from a query or from a TransferObject to Flex seems reasonably straight forward. Going the other way, and pulling it back down to Transfer could be a bit trickier, but not impossible.
Would that be correct?
Mark
Brian - your experience with getMetaData is different?
Mark
What version are you running? Almost sounds like you have more than
one codebase around...
Mark
You follow the upgrade guide?
Mark