I'm kicking off a blaze-ds project this weekend, and I'll be doing typesafe
java<->flex enums, when I figure it out I'll blog about it and post it here
:) It'll probably just require a small amount of custom unmarshalling code,
there's a lot of undocumented flexibility in mx.rpc.*

-Josh

Thu, Feb 5, 2009 at 11:37 AM, Maciek Sakrejda <[email protected]> wrote:

>   Interesting. Any thoughts on Granite Data Services' approach? There is a
> custom externalization process for Java Enum objects, and a granite Enum
> class in ActionScript that all your (generated) Enums extend. The enum
> class takes care of reading/writing. The writeExternal() method just
> writes the name of the Enum; readExternal() tries to find the name of
> the object in the constants defined by the Enum. The RemoteAlias
> metadata is set up as for a standard Java class.
>
> Are we asking for trouble in using this method? Is there something
> inherently dangerous here?
> --
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com
>
>
> -----Original Message-----
> From: Seth Hodgson <[email protected] <shodgson%40adobe.com>>
> Reply-To: [email protected] <flexcoders%40yahoogroups.com>
> To: [email protected] <flexcoders%40yahoogroups.com> <
> [email protected] <flexcoders%40yahoogroups.com>>
> Subject: RE: [flexcoders] Java enum in Flex3
> Date: Wed, 4 Feb 2009 16:20:33 -0800
>
> BlazeDS and LCDS roundtrip Java enums to the client and back as Strings.
> That's the only good option at present, and here's an in-depth
> explanation: http://greetingsfromoakland.blogspot.com/2009/02/enums.html
>
> Best,
> Seth
>
> From: [email protected] <flexcoders%40yahoogroups.com> [mailto:
> [email protected] <flexcoders%40yahoogroups.com>] On
> Behalf Of sunmoorthy1
> Sent: Monday, December 29, 2008 1:18 PM
> To: [email protected] <flexcoders%40yahoogroups.com>
> Subject: [flexcoders] Java enum in Flex3
>
> How to convert java enum values into Flex3 object.
> Any one went thru this problem?
> Please give your experties?
>
> Sundar
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  [email protected]
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/

Reply via email to