[flexcoders] int not serializing properly from Java to ActionScript

2007-02-13 Thread ytseshred
I'm properly retrieving a result set from my database, but the serialization from Java to ActionScript screws up my id field along the way. -- My Java VO: public class TestVO { private int id; private String data; public TestVO() { } public TestVO(int id, String data) {

[flexcoders] Re: int not serializing properly from Java to ActionScript

2007-02-13 Thread ytseshred
Ah, didn't realize that was case-sensitive. The getId and setId change did the trick, thanks a lot. --- In flexcoders@yahoogroups.com, lepusmars [EMAIL PROTECTED] wrote: Try changing getID to getId and setID to setId. --- In flexcoders@yahoogroups.com, ytseshred ytseshred@ wrote: I'm

[flexcoders] Re: Actual location of UIComponent

2007-02-13 Thread ytseshred
If you have a references to the panel and the component: var pnl:Panel; var cmp:UIComponent; import flash.geom.Point; var pnt:Point = pnl.localToGlobal(new Point(cmp.x, cmp.y)); pnt.x and pnt.y will contain the global coordinates of the UIComponent. Is that what you're looking for? --- In

[flexcoders] Trouble Converting java List to ArrayCollection

2007-02-12 Thread ytseshred
I'm using RemoteObjects to connect to my backend. In one of my calls I'm trying to return a List of VO's I create after hitting my database. On the Flex side, my result event is firing properly, but when I try to convert the result to an ArrayCollection, instead of getting a proper

[flexcoders] Re: Using data in an Array Collection

2007-02-12 Thread ytseshred
You need to return retString; at the end of the function. --- In flexcoders@yahoogroups.com, jryano001 [EMAIL PROTECTED] wrote: Thanks for the response. This is more than likely me being daft but I've used the code you provided and set the labelFunction of checkData on the status

[flexcoders] Re: Trouble Converting java List to ArrayCollection

2007-02-12 Thread ytseshred
the throws is USELESS because you are already treating the exception with the try clause) The throws clause passes the exception treatment to a higher scope, this scope may not import de DAOException needed to process it properly. Simply never do this. On 2/12/07, ytseshred [EMAIL PROTECTED] wrote

[flexcoders] Re: Trouble Converting java List to ArrayCollection

2007-02-12 Thread ytseshred
where the throws is USELESS because you are already treating the exception with the try clause) The throws clause passes the exception treatment to a higher scope, this scope may not import de DAOException needed to process it properly. Simply never do this. On 2/12/07, ytseshred