I've been reading the docs for about 2 days now and have a simple 
question I can't find the answer to. Please no flames, I have made
an attempt to find the answer to this question by reading all the
documentation I can find.

I'm using Flex with Websphere 6.0. I have a POJO business delegate 
class that returns a value object. I access the delegate class from 
my mxml file using the mxRemoteObject tag. Suppose I have a very 
simple Value Object on the server side called Person that is being 
returned by the business delegate:

public class Person
{
  private String firstName;
  private String lastName;
  // get & set accessors
}

I'd like to use the values returned in the Person object to populate 
controls on the client side, display data, etc.

QUESTION:
Do I *have* to create a corresponding Person class on the client side 
using ActionScript to access the attributes (firstName and lastName) 
on the client, and use registerObject()? If I don't create a 
corresponding Person class on the client side, how I can I access the 
properties in the Person object returned? What am I getting back on 
the client side?

I'd rather not create analogous value objects on the client side if I 
can avoid it, to avoid the classes getting out of sync.

Thanks in advance for any help! Pointers to documentation that 
address this (which I obviously cannot find) appreciated.
-Chris






------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hgvtr8p/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123165532/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to