RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-19 Thread Oscar . Cortes


It is actually private. The cause might be different.  We have a Flex /CF7
installation and there is a file in ColdFusion 7 called gateway-config.xml,
and with an entry called lowercase-keys.  This seems to explain what we
are seeing.
  I just don't remenber where I read that we should expect an attribute
name equal to the getter in Java.

Here an extract of gateway-config.xml:

  !-- Determines how complex objects/generic class data types are to
  be
  handled by the gateway. The two options are Classic or Flex.

  Classic mode performs shallow serialization on all non-static
  fields
  for classes implemeting java.io.Serializable.

  Flex mode uses improvements made for Flex's RemoteObject feature
  and performs deep serialization on fields with bean accessors for
  any
   class. --
  serializationClassic/serialization

  !-- ActionScript 1.0 and ColdFusion use case insensitive data
  structures
  to store associative arrays, objects and structs - the Java
  representation
  of these datatypes requires a case-insensitive Map, which the
  gateway
  achieves by looking up all keys in lowercase.  If case
  insensitivity is desired
  then this setting should be set to true.  ActionScript 2.0 is now
  case sensitive,
  but setting this to true will allow ColdFusion to look up keys
  case insensitively, and
  will not actually change the case of the keys.  For AS 2.0 to
  java this should be false,
  since both are case sensitive. --
  lowercase-keystrue/lowercase-keys

 By the way, we set it to true to get the same case that in Java, which is
actually the contrary of what it says in the file




   

   
 Matt Chotin To: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED]  cc:   
  
 Sent by:  Subject:  RE: [flexcoders] How 
to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex - 
RemoteObject call
 08/18/2005 02:19 AM
   
 Please respond to  
   
 flexcoders 
   

   

   




Sorry, I don't know what might be going on here.  Sounds like a
bean-mapping issue though.  Maybe your sDesc was public?


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, August 08, 2005 2:24 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned Java Collection in Flex
- RemoteObject call



Hi Matt,

I used XMLObjectOutput and found out that the name returned in the result
was 'sdesc'. I think I was confused by the fact that I was expecting 'Desc'
or 'desc', which is the getter name for this attribute  --getDesc- in the
Java VO. However, it is returning the name of the attribute itself but all
lower case. The original name in Java is 'sDesc', which I originally tried
as well.

Any comments on this?





 Matt Chotin To:
flexcoders@yahoogroups.com
 [EMAIL PROTECTED]  cc:

 Sent by:  Subject:  RE: [flexcoders]
How to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex -
RemoteObject call
 08/05/2005 07:45 PM

 Please respond to

 flexcoders







Yep, use fdb or FlexBuilder's debugger or the XMLObjectOutput in the extras
folder or one of the dump utilities that people have been mentioning over
the last few days.

Matt


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, August 05, 2005 10:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned Java Collection in Flex
- RemoteObject call



Thanks Matt, that makes sense. However, it still doesn't work. It might be
coming with a different name. Is there any way to display the object and
the name of  its attributes?

Thanks,
-Oscar.




 Matt Chotin To:
flexcoders@yahoogroups.com
 [EMAIL PROTECTED]  cc:

   

RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-18 Thread Matt Chotin










Sorry, I dont know what might be
going on here. Sounds like a bean-mapping issue though. Maybe your sDesc was
public?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, August 08, 2005 2:24
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
handle a returned Java Collection in Flex - RemoteObject call







Hi Matt,

I used XMLObjectOutput and found out that the name
returned in the result
was 'sdesc'. I think I was confused by the fact
that I was expecting 'Desc'
or 'desc', which is the getter name for this
attribute --getDesc- in the
Java VO. However, it is returning the name of the
attribute itself but all
lower case. The original name in Java is 'sDesc',
which I originally tried
as well.

Any comments on this?








Matt
Chotin
To: flexcoders@yahoogroups.com


[EMAIL PROTECTED]
cc:


Sent
by:
Subject: RE: [flexcoders] How to handle a returned
Java 

flexcoders@yahoogroups.com
Collection in Flex - RemoteObject
call


08/05/2005 07:45
PM


Please respond
to


flexcoders









Yep, use fdb or FlexBuilder's debugger or the
XMLObjectOutput in the extras
folder or one of the dump utilities that people
have been mentioning over
the last few days.

Matt


From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, August 05, 2005 10:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned
Java Collection in Flex
- RemoteObject call



Thanks Matt, that makes sense. However, it still
doesn't work. It might be
coming with a different name. Is there any way to
display the object and
the name of its attributes?

Thanks,
-Oscar.





Matt
Chotin
To:
flexcoders@yahoogroups.com

[EMAIL PROTECTED]
cc:


Sent
by:
Subject: RE: [flexcoders]
How to handle a returned Java

flexcoders@yahoogroups.com
Collection in Flex -
RemoteObject call

08/05/2005 12:41 AM


Please respond to


flexcoders







It's not getProperty(desc) for normal
arrays, only when being used for a
TreeDatatProvider. Try oItem.desc and see if
that works.

Matt


From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 1:33 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned
Java Collection in Flex
- RemoteObject call



Sorry for the late response, I actually got it
closer to what I need. I can
see the collection that the Remote Object is
returning in a ComboBox.
However, I can see all attributes listed in the
ComboBox separated by
commas. I only want to show one of them, the
Description. So I figured I
will use labelField or labelFuntion, but didn't
work. This is what I have:

Any ideas?

Server side:

public class LookupManager {
...
 public Collection getTheList()
{
 // Set
up default response

Collection response = null;

response = theList // gets the list from a Service

return response;
 }
...
}

client side:

mx:Script
 ![CDATA[


--
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



 Visit your
group flexcoders on the web.

 To
unsubscribe from this group, send an email to:

[EMAIL PROTECTED]

 Your use of
Yahoo! Groups is subject to the Yahoo! Terms of Service.





---
This e-mail message (including attachments, if
any) is intended for the use
of the individual or entity to which it is
addressed and may contain
information that is privileged, proprietary ,
confidential and exempt from
disclosure. If you are not the intended
recipient, you are notified that
any dissemination, distribution or copying of this
communication is
strictly prohibited. If you have received
this communication in error,
please notify the sender and erase this e-mail
message immediately.
---












--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-08 Thread Oscar . Cortes


Hi Matt,

 I used XMLObjectOutput and found out that the name returned in the result
was 'sdesc'. I think I was confused by the fact that I was expecting 'Desc'
or 'desc', which is the getter name for this attribute  --getDesc- in the
Java VO. However, it is returning the name of the attribute itself but all
lower case. The original name in Java is 'sDesc', which I originally tried
as well.

Any comments on this?




   

   
 Matt Chotin To: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED]  cc:   
  
 Sent by:  Subject:  RE: [flexcoders] How 
to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex - 
RemoteObject call
 08/05/2005 07:45 PM
   
 Please respond to  
   
 flexcoders 
   

   

   




Yep, use fdb or FlexBuilder's debugger or the XMLObjectOutput in the extras
folder or one of the dump utilities that people have been mentioning over
the last few days.

Matt


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, August 05, 2005 10:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned Java Collection in Flex
- RemoteObject call



Thanks Matt, that makes sense. However, it still doesn't work. It might be
coming with a different name. Is there any way to display the object and
the name of  its attributes?

Thanks,
-Oscar.




 Matt Chotin To:
flexcoders@yahoogroups.com
 [EMAIL PROTECTED]  cc:

 Sent by:  Subject:  RE: [flexcoders]
How to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex -
RemoteObject call
 08/05/2005 12:41 AM

 Please respond to

 flexcoders







It's not getProperty(desc) for normal arrays, only when being used for a
TreeDatatProvider.  Try oItem.desc and see if that works.

Matt


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 1:33 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned Java Collection in Flex
- RemoteObject call



Sorry for the late response, I actually got it closer to what I need. I can
see the collection that the Remote Object is returning in a ComboBox.
However, I can see all attributes listed in the ComboBox separated by
commas. I only want to show one of them, the Description. So I figured I
will use labelField or labelFuntion, but didn't work. This is what I have:

Any ideas?

Server side:

public class LookupManager {
...
public Collection getTheList() {
// Set up default response
Collection response = null;
 response = theList //  gets the list from a Service
 return response;
}
...
}

client side:

mx:Script
![CDATA[


--
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



   Visit your group flexcoders on the web.

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

   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 

RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-04 Thread Oscar . Cortes


Sorry for the late response, I actually got it closer to what I need. I can
see the collection that the Remote Object is returning in a ComboBox.
However, I can see all attributes listed in the ComboBox separated by
commas. I only want to show one of them, the Description. So I figured I
will use labelField or labelFuntion, but didn't work. This is what I have:

Any ideas?

Server side:

 public class LookupManager {
...
public Collection getTheList() {
// Set up default response
Collection response = null;
 response = theList //  gets the list from a Service
 return response;
}
...
}

client side:

 mx:Script
![CDATA[

  public var theList:Array= new Array();

   function resultLookupHandler(result)
   {
theList =  result;
}

   private function lblPriorityCode(oItem:Object):String
   {
   return oItem.getProperty(desc) // The original get in
s called getDesc, I tried both desc' and Desc with no sucess.
   }

]]
/mx:Script




mx:RemoteObject id=lookup
source=com.test.LookupManager
result=resultLookupHandler(event.result) 
/mx:RemoteObject

mx:Button label=Lookup click=lookup.getTheList()/
  mx:ComboBox dataProvider={theList} labelFunction=lblListCode
width=30% height=20%/mx:ComboBox







   

   
 Shahnavaz AlwareTo: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED] cc:
 
 Sent by:  Subject:  RE: [flexcoders] How 
to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex - 
RemoteObject call
 08/03/2005 02:23 PM
   
 Please respond to  
   
 flexcoders 
   

   

   




Can you post your code snippet? What you described in your email is right
way and should work if your code is doing right thing.

Thanks


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, August 03, 2005 9:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to handle a returned Java Collection in Flex -
RemoteObject call



I have a Java function that returns a Collection of VOs. I declared a
RemoteObject in Flex, and tried to assign the event.result to an Array
variable, but it actually didn't work. I want to use this data as the
DataProvider of ComboBoxes, or List, etc.

How can I read this data in Flex?

Thanks,
-Oscar.

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---







--
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



   Visit your group flexcoders on the web.

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

   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.

RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-03 Thread Shahnavaz Alware










Can you post your code snippet? What you
described in your email is right way and should work if your code is doing
right thing. 



Thanks











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, August 03, 2005
9:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to
handle a returned Java Collection in Flex - RemoteObject call







I have a Java function that returns a Collection
of VOs. I declared a
RemoteObject in Flex, and tried to assign the
event.result to an Array
variable, but it actually didn't work. I want to
use this data as the
DataProvider of ComboBoxes, or List, etc.

How can I read this data in Flex?

Thanks,
-Oscar.

---
This e-mail message (including attachments, if
any) is intended for the use
of the individual or entity to which it is
addressed and may contain
information that is privileged, proprietary ,
confidential and exempt from
disclosure. If you are not the intended
recipient, you are notified that
any dissemination, distribution or copying of this
communication is
strictly prohibited. If you have received
this communication in error,
please notify the sender and erase this e-mail
message immediately.
---












--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.