|
Re: Possible Error in tartan.vo.ValueObject.cfc
|
Sam Shrefler
|
Feb 10, 2006 04:56 PST
|
Paul, makes perfect sense. I was aware of that, didn't think, Thank you!
Any thoughts on the array translation (my first question) Taking out the
ArraySet made my app work correctly.
Also, I'm not sure if this is the case, but I noticed on teh flex sample app
that you had code in your VO's constructors. I'm not sure with flex, but in
flash, teh constructor must be totally empty and also you must do
Object.registerClass() . If both of those are done, you get a proper
translation to the Actionscript VO.
I was able to check this by doing...
trace( myRemotedVO instanceof MyVO)
Are you looking for any kind of help on your Tartan framework? I've been
enjoying using it and the work you've done is Excellent! Thank you!
Sam
On 2/9/06, Paul Kenney <pken-@gmail.com> wrote:
| |
I can answer your second question easily.
Instead of calling the remote method like:
service.methodName(valueObject);
Do it like this:
service.methodName( {vo:valueObject} );
This is a FlashRemoting/CF issue, and it is just the way it is. Basically,
its like using named arguments or argumentCollection in CF, sort of.
On 2/9/06, Sam Shrefler <sshre-@gmail.com> wrote:
| |
Paul and others:
When passing a ValueObject from Flash Remoting to Coldfusion, the
following was giving me an error in tartan.vo.ValueObject.cfc
<cfif NOT StructKeyExists(this, key)>
<cfset this[key] = ArrayNew(1)>
<cfelse>
<cfset ArraySet(this[key], 1, ArrayLen(this[key]), "")>
</cfif>
More specifically, the ArraySet command. I wonder for what reason we
can not just do
<cfset this[key] = ArrayNew(1)>
and then populate the array.
Also, whenever I send an VO from flash remoting, I need to add a second
param that I set to true in the function call. If i don't, coldfusion says
that my vo argument wasnt' passed in. Any thoguhts?
Thanks
sam
|
--
Paul Kenney
pa-@pjk.us
pken-@gmail.com
http://www.pjk.us
|
|
|
 |
|