I would suggest changing your dataProvider to '{myService.result.props.prop}'
 
You might also want to consider mx:List for your component instead of mx:DataGrid.  the component is probably better for single column data like this.  (datagrid's are actually made of multiple List components.)
 

--
Ronald Kinion
253-205-3000 x5162
[EMAIL PROTECTED]


 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed
Sent: Friday, June 17, 2005 1:09 AM
To: [email protected]
Subject: [flexcoders] HTTPService Fails

Hi,

I'm doing something really simple,

Calling an HTTPservice and showing it in a grid. The code for the
mxml is:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
creationComplete="myService.send();">
<mx:HTTPService id="myService" url=""http://tiger:8080/simple/props">http://tiger:8080/simple/props"
showBusyCursor="true"/>
<mx:DataGrid id="myGrid" dataProvider="{myService.result.props}"/>
</mx:Application>

The Servlet returns this:

<?xml version="1.0" encoding="utf-8" ?>
- <props>
  <prop>java.vendor=Sun Microsystems Inc.</prop>
  <prop>catalina.base=C:\ProgramFiles\jboss\jboss-3.2.7
\server\default</prop>
  <prop>catalina.useNaming=false</prop>
  <prop>os.name=Windows XP</prop>
  <prop>sun.boot.class.path=C:\ProgramFiles\jboss\jboss-3.2.7
\bin\\..\lib\endorsed\xercesImpl.jar;C:\ProgramFiles\jboss\jboss-
3.2.7\bin\\..\lib\endorsed\xml-
apis.jar;c:\programfiles\j2se\jre\lib\rt.jar;c:\programfiles\j2se\jre
\lib\i18n.jar;c:\programfiles\j2se\jre\lib\sunrsasign.jar;c:\programf
iles\j2se\jre\lib\jsse.jar;c:\programfiles\j2se\jre\lib\jce.jar;c:\pr
ogramfiles\j2se\jre\lib\charsets.jar;c:\programfiles\j2se\jre\classes
</prop>
  <prop>sun.java2d.fontpath=</prop>
  <prop>java.vm.specification.vendor=Sun Microsystems Inc.</prop>
</props>

But it wont show in the dataGrid!

What am I doing wrong?

Redards,

Iain




Yahoo! Groups Links

Reply via email to