I am using flex with BlazeDS to connect a J2EE AppServer. Can I place any Global Image in any global position that would change automatically whenever any remote object is called and the image would be set as default whenever the response comes back from the server..
A:
I assume you want to implement some sort of a loading screen or interface widget. (Did you know you can set the showBusyCursor on a remote object instance?)
There is no way to globally intercept the method calls on your remote objects though. You'll need to solve this by either:
- create a subclass of RemoteObject that sets some global flag on the result and fault events.
- write the same result and fault event handling code on each remote object call that sets a global flag.
Option 1 is a bit more advanced but will save you the boilerplate code that option 2 has.
Christophe Herreman
2009-01-15 18:39:27