Hi
i
manage to find the problem to at least one of the cases that we had trouble
with.
1. RO
result that was sent right back to
the server and failed - this problem was solved , it caused by a
Public Static final variable in the Java class therefore Flex
thought it is a different object.
2. RO
result that was set as the dataProvider to a datagrid and then pulled out from
the grid and sent back to server - i didn't managed to find the problem here
.
only creating the object from scratch -
does the dataProvider changes the objects it gets
??
thanks
Shlomi
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi Cohen
Sent: Thursday, February 09, 2006 11:26
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Difference between WebService and Remote Object
I've
already tried this and even Object Copy.
I
think you don't understand the problem ,the returned object is good , BUT when
sending the same returned object to server i get convertion
error.
Attached are the two VOs that participate in
this.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien
Sent: Wednesday, February 08, 2006 20:50
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Difference between WebService and Remote Object
The public static final member "may" be causing a problem.
I noticed this line of code may also be the problem.
var userVO:UserVO = event.result;
try this instead
var userVO:UserVO = UserVO(event.result);
if(userVO == null) trace("Error: the cast failed");
On 2/8/06, Shlomi Cohen
<[EMAIL PROTECTED]>
wrote:
How , i create the VO using Ant task (code generation)except for 1 public static final member - could that be the diff ?Shlomi
More than likely the definitions for your java UserVO and your ActionScript UserVO are different.
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien
Sent: Wednesday, February 08, 2006 20:07
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Difference between WebService and Remote Object
On 2/8/06, Shlomi Cohen <[EMAIL PROTECTED]> wrote:Hiwhile testing the performance of our application , i changed the way we work with the server from WS to RemoteObjectsi found that there is a difference in the way data is being received / transmitted although we use the registerClass (as the POJO2AS does for you) .for example a method that was saving user info to DB did not work with RO - saying it could not convert ASObject to typed object.what is wrong here ?here is a short snapshot<mx:RemoteObject id="service"><mx:method result="getUser(event)><mx:method result="saveUser></mx:RemoteObject>function sendRequest(){service.getUser(111);}function getUser(event){var userVO:UserVO = event.result;// we save with the save object we got.saveUser(userVO);}function saveUser(userVO){service.saveUser(userVO); ///fails to convert ASobject to typed object}Shlomi
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
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 email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
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 email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
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.