Yeah, RemoteObject requires the classname to be set at compile-time in the tag, no binding allowed.  That’s a bug that it didn’t raise a compiler error.  In 2.0 we’re trying to allow a lot more runtime tweaking of all of our services including RemoteObject to allow things like this.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Scott Barnes
Sent: Monday, May 16, 2005 10:50 PM
To: [email protected]
Subject: [flexcoders] RemoteObject source="" bug?

 

Indy @ Straker noticed today that you can't use
source="{binding.to.a.obj.value}" in mx:RemoteObject?

In that it appears it ignores the fact that the curly braces are there
and simply takes it as string value ..

ie:
call "{binding.to.a.obj.value}.doMethod()"  is the invocation attempt via Debug.

I did find a a work-around in that you could do:

function initRemoteObjectService() {

// tricks the flex compiler.
serviceID['__serviceName'] = binding.to.a.obj.value;

}

but seems dodge ? is it a bug or was that meant to be the case in
terms of assigning dynamic values to the source attribute.


--
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)



Yahoo! Groups Links

Reply via email to