<< December, 2008 >>
SMTWTFS
123456
78910111213
14151617181920
21222324252627
28293031
Search Blog

Categories
Archives
RSS

Powered by
BlogCFM v1.14

06 August 2008
Crazy Flex RemoteObject Bug
I was developing a coldfusion/flex app today and i ran accross the most weirdest bug. The following code is pseudo code :

say if you have a remote object

<mx: remoteobjec id=something destination=ColdFusion >
<mx : method name=test result=result(event)>
<mx : arguments>
<arg1>inputtext.text</arg1>
<arg2>inputArrayCollection</arg2>
<arguments>
<method>
<remoteobjec>

This will work and send arg1 to the server but arg2 which is an array collection will be blank ,desptite the collection having over a 100 records

however if i send the same remote object like this , something.test(inputtext.text,inputArrayCollection)
it will work perfectly fine

werid ?
Posted by Faisal at 2:59 PM | Link | 3 comments
Subscription Options

You are not logged in, so your subscription status for this entry is unknown. You can login or register here.

Re: Crazy Flex RemoteObject Bug
Of course in your code you have the variable in {} to invoke evaluation right?

{inputArrayCollection}

Otherwise I think its just sending the string which is being type cast to an arrayccollection.
Posted by Simeon on August 7, 2008 at 10:26 AM

Re: Crazy Flex RemoteObject Bug
That stripped the xml for arg1 off my code, but your arguments need {} to bind them inside the mx:arguments code
Posted by Simeon on August 7, 2008 at 10:27 AM

Re: Crazy Flex RemoteObject Bug
OHh yes yes i am doing that , i should have wrote that in the psedo code.
Posted by Faisal on August 7, 2008 at 10:54 AM

Name:   Required
Email:   Required your email address will not be publicly displayed.

Want to receive notifications when new comments are added? Login/Register for an account.

Anti-spam key

Type in the text that you see in the above image:

Your comment:

Sorry, no HTML allowed!