Showing posts with label flex remote object with java. Show all posts
Showing posts with label flex remote object with java. Show all posts

Thursday, November 29, 2007

Remoting Object Flex

In mxml this code would be used








For every method defined in the remote object there should be fault and result function


//result function
private function getFullDetailsSuccessfull(evt:ResultEvent):void
{
PopUpManager.removePopUp(initial);
CursorManager.removeAllCursors();

jobMaster.removeAll();
jobMaster = ArrayCollection(evt.result);

}

// fault function
private function getFullDetailsFailed(evt:FaultEvent):void
{
this.enabled =true;
Alert.show("There was an error communicating to theserver:"+evt.fault.faultCode);
}


Corresponding to this there should be entry in remoting-config.xml
the destination should be same defined in the mxml file



com.apnatek.business.remoting.ListJobs
request

About Me