It's not a secret anymore!*
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
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
 
Similar Threads
Picture upload from flex RIA to MySql using java
Getting data from actionscript class file into Datagrid
using outerDocument in flex
How to display HyperLink on the DataGrid Component on to the column data
having components based on Data Grid's column value.