RE: [flexcoders] Re: transient properties of an object using RemoteClass

2007-10-29 Thread Dimitrios Gianninas
I believe so, first time I see it myself, never seen anything like this for 
Flex 2.
 
Dimitrios Gianninas
RIA Developer and Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
simonjpalmer
Sent: Monday, October 29, 2007 10:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: transient properties of an object using RemoteClass



Wait... this is 3, I am on 2...

I can't find a reference to this in Flex 2, is it a new feature of 3?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
ben.clinkinbeard
[EMAIL PROTECTED] wrote:


http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html
 
http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html
 
 
 
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 simonjpalmer simonjpalmer@
 wrote:
 
  I have a situation where I have a deliberate mismatch between my AS3
  and Java objects.
  
  I have a Java object
  
  package com.java
  class X
  {
  private String name;
  public String getName(){return name;}
  public void setName(String name){this.name=name;}
  }
  
  and an ActionScript object
  
  package com.as3
  {
  [Managed]
  [RemoteClass(alias=com.java.X)]
  public class X
  {
  private var name:String;
  private var age:Number;
  }
  }
  
  this all works great and my X.name gets transported back and forth
  reliably, however when data is transmitted from client to server I get
  a warning message from the framework on the server which says...
  
  Ignoring set property age for type com.as3.X as a setter could not be
  found.
  
  This means that the age property was transmitted unnecessarily. Not a
  problem for a primitive like a Number, but a real problem if age
  contained an array of objects.
  
  What I think I need is something like the transient keyword in Java
  object persistence which causes a property not to be considered for
  persistence, or in this case transmission. 
  
  Does any such thing exist, or is there another way of doing this? 
  
  Thanks
 




 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] Re: transient properties of an object using RemoteClass

2007-10-29 Thread simonjpalmer
Wait... this is 3, I am on 2...

I can't find a reference to this in Flex 2, is it a new feature of 3?

--- In flexcoders@yahoogroups.com, ben.clinkinbeard
[EMAIL PROTECTED] wrote:


http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html
 
 
 
 --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@
 wrote:
 
  I have a situation where I have a deliberate mismatch between my AS3
  and Java objects.
  
  I have a Java object
  
  package com.java
  class X
  {
  private String name;
  public String getName(){return name;}
  public void setName(String name){this.name=name;}
  }
  
  and an ActionScript object
  
  package com.as3
  {
  [Managed]
  [RemoteClass(alias=com.java.X)]
  public class X
  {
  private var name:String;
  private var age:Number;
  }
  }
  
  this all works great and my X.name gets transported back and forth
  reliably, however when data is transmitted from client to server I get
  a warning message from the framework on the server which says...
  
  Ignoring set property age for type com.as3.X as a setter could not be
  found.
  
  This means that the age property was transmitted unnecessarily.  Not a
  problem for a primitive like a Number, but a real problem if age
  contained an array of objects.
  
  What I think I need is something like the transient keyword in Java
  object persistence which causes a property not to be considered for
  persistence, or in this case transmission.  
  
  Does any such thing exist, or is there another way of doing this?  
  
  Thanks
 





[flexcoders] Re: transient properties of an object using RemoteClass

2007-10-29 Thread ben.clinkinbeard
Nah, looks like it was just undocumented in 2:

http://nondocs.blogspot.com/2007/04/metadatatransient.html
http://www.darronschall.com/weblog/archives/000271.cfm

HTH,
Ben


--- In flexcoders@yahoogroups.com, simonjpalmer [EMAIL PROTECTED]
wrote:

 Wait... this is 3, I am on 2...
 
 I can't find a reference to this in Flex 2, is it a new feature of 3?
 
 --- In flexcoders@yahoogroups.com, ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
 

http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html
  
  
  
  --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@
  wrote:
  
   I have a situation where I have a deliberate mismatch between my AS3
   and Java objects.
   
   I have a Java object
   
   package com.java
   class X
   {
   private String name;
   public String getName(){return name;}
   public void setName(String name){this.name=name;}
   }
   
   and an ActionScript object
   
   package com.as3
   {
   [Managed]
   [RemoteClass(alias=com.java.X)]
   public class X
   {
   private var name:String;
   private var age:Number;
   }
   }
   
   this all works great and my X.name gets transported back and forth
   reliably, however when data is transmitted from client to server
I get
   a warning message from the framework on the server which says...
   
   Ignoring set property age for type com.as3.X as a setter could
not be
   found.
   
   This means that the age property was transmitted unnecessarily.
 Not a
   problem for a primitive like a Number, but a real problem if age
   contained an array of objects.
   
   What I think I need is something like the transient keyword in
Java
   object persistence which causes a property not to be considered for
   persistence, or in this case transmission.  
   
   Does any such thing exist, or is there another way of doing this?  
   
   Thanks
  
 





[flexcoders] Re: transient properties of an object using RemoteClass

2007-10-29 Thread simonjpalmer
Thanks!  

--- In flexcoders@yahoogroups.com, ben.clinkinbeard
[EMAIL PROTECTED] wrote:


http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html
 
 
 
 --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@
 wrote:
 
  I have a situation where I have a deliberate mismatch between my AS3
  and Java objects.
  
  I have a Java object
  
  package com.java
  class X
  {
  private String name;
  public String getName(){return name;}
  public void setName(String name){this.name=name;}
  }
  
  and an ActionScript object
  
  package com.as3
  {
  [Managed]
  [RemoteClass(alias=com.java.X)]
  public class X
  {
  private var name:String;
  private var age:Number;
  }
  }
  
  this all works great and my X.name gets transported back and forth
  reliably, however when data is transmitted from client to server I get
  a warning message from the framework on the server which says...
  
  Ignoring set property age for type com.as3.X as a setter could not be
  found.
  
  This means that the age property was transmitted unnecessarily.  Not a
  problem for a primitive like a Number, but a real problem if age
  contained an array of objects.
  
  What I think I need is something like the transient keyword in Java
  object persistence which causes a property not to be considered for
  persistence, or in this case transmission.  
  
  Does any such thing exist, or is there another way of doing this?  
  
  Thanks
 





[flexcoders] Re: transient properties of an object using RemoteClass

2007-10-29 Thread simonjpalmer
The FB2 syntax hilighter ignores it, but I can confirm that it exists
and works in Flex 2.  Makes you wonder why it wasn't in the docs...

Thanks for your help.  This just cut my packet size by about 75% and
simplified my client code significantly.  

I'm a very happy man.

--- In flexcoders@yahoogroups.com, ben.clinkinbeard
[EMAIL PROTECTED] wrote:

 Nah, looks like it was just undocumented in 2:
 
 http://nondocs.blogspot.com/2007/04/metadatatransient.html
 http://www.darronschall.com/weblog/archives/000271.cfm
 
 HTH,
 Ben
 
 
 --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@
 wrote:
 
  Wait... this is 3, I am on 2...
  
  I can't find a reference to this in Flex 2, is it a new feature of 3?
  
  --- In flexcoders@yahoogroups.com, ben.clinkinbeard
  ben.clinkinbeard@ wrote:
  
  
 

http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html
   
   
   
   --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@
   wrote:
   
I have a situation where I have a deliberate mismatch between
my AS3
and Java objects.

I have a Java object

package com.java
class X
{
private String name;
public String getName(){return name;}
public void setName(String name){this.name=name;}
}

and an ActionScript object

package com.as3
{
[Managed]
[RemoteClass(alias=com.java.X)]
public class X
{
private var name:String;
private var age:Number;
}
}

this all works great and my X.name gets transported back and forth
reliably, however when data is transmitted from client to server
 I get
a warning message from the framework on the server which says...

Ignoring set property age for type com.as3.X as a setter could
 not be
found.

This means that the age property was transmitted unnecessarily.
  Not a
problem for a primitive like a Number, but a real problem if age
contained an array of objects.

What I think I need is something like the transient keyword in
 Java
object persistence which causes a property not to be
considered for
persistence, or in this case transmission.  

Does any such thing exist, or is there another way of doing
this?  

Thanks
   
  
 





[flexcoders] Re: transient properties of an object using RemoteClass

2007-10-26 Thread ben.clinkinbeard
http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html



--- In flexcoders@yahoogroups.com, simonjpalmer [EMAIL PROTECTED]
wrote:

 I have a situation where I have a deliberate mismatch between my AS3
 and Java objects.
 
 I have a Java object
 
 package com.java
 class X
 {
 private String name;
 public String getName(){return name;}
 public void setName(String name){this.name=name;}
 }
 
 and an ActionScript object
 
 package com.as3
 {
 [Managed]
 [RemoteClass(alias=com.java.X)]
 public class X
 {
 private var name:String;
 private var age:Number;
 }
 }
 
 this all works great and my X.name gets transported back and forth
 reliably, however when data is transmitted from client to server I get
 a warning message from the framework on the server which says...
 
 Ignoring set property age for type com.as3.X as a setter could not be
 found.
 
 This means that the age property was transmitted unnecessarily.  Not a
 problem for a primitive like a Number, but a real problem if age
 contained an array of objects.
 
 What I think I need is something like the transient keyword in Java
 object persistence which causes a property not to be considered for
 persistence, or in this case transmission.  
 
 Does any such thing exist, or is there another way of doing this?  
 
 Thanks