wood burning stoves 2.0*
The moose likes Flex and the fly likes DataGrid With RemoteObject Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "DataGrid With RemoteObject" Watch "DataGrid With RemoteObject" New topic
Author

DataGrid With RemoteObject

Booma Devi
Ranch Hand

Joined: Nov 02, 2011
Posts: 61
Hi,

In the flex, Remote server is not displaying the datas to DataGrid... Below is the program...

DGridClient.mxml




Remoting-config.xml



Services-config.xml



Person.Java

PersonDao.Java

Praveen Kumar M K
Ranch Hand

Joined: Jul 03, 2011
Posts: 256
Seems to me that you are missing a vital piece of information while you're creating the RemoteObject. Check again!
Booma Devi
Ranch Hand

Joined: Nov 02, 2011
Posts: 61
Thanks praveen... I need to map the java object with action script object...
Praveen Kumar M K
Ranch Hand

Joined: Jul 03, 2011
Posts: 256
Hi Booma Devi,

I dint mean that actually I was referring to line 28 in the first mxml where you have <mx:RemoteObject id="serv" destination="remoteGrid" fault="faultHandler(event)"/> defined. Here I dont see a result handler being declared, so I thought that would be the mistake.

As you have used the same strings('name', 'age') in datafields of mxml as well as attributes of class Person, I dont think there is a need to create an actionscript mapping class.

Thanks,
Praveen.
Booma Devi
Ranch Hand

Joined: Nov 02, 2011
Posts: 61
Thanks for your reply praveen...

My code is running now... :-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DataGrid With RemoteObject