You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by "romanisitua@yahoo.com" <ro...@yahoo.com> on 2021/06/25 11:55:46 UTC
Re: users Digest 25 Jun 2021 11:00:23 -0000 Issue 1732
I don't have it hosted. But I will see what I can do. I will revert.
Regards,
Sent from Yahoo Mail on Android
On Fri, 25 Jun 2021 at 12:54, romanisitua@yahoo.com<ro...@yahoo.com> wrote: I don't have it hosted. But I will see what I can do. I will revert.
Regards,
Sent from Yahoo Mail on Android
On Fri, 25 Jun 2021 at 12:00, users-digest-help@royale.apache.org<us...@royale.apache.org> wrote:
users Digest 25 Jun 2021 11:00:23 -0000 Issue 1732
Topics (messages 4782 through 4782)
Re: users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
4782 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: users@royale.apache.org
To unsubscribe, e-mail: users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail: users-digest-help@royale.apache.org
----------------------------------------------------------------------
<!--#yiv2557057086 filtered {}#yiv2557057086 filtered {}#yiv2557057086 filtered {}#yiv2557057086 filtered {}#yiv2557057086 filtered {}#yiv2557057086 p.yiv2557057086MsoNormal, #yiv2557057086 li.yiv2557057086MsoNormal, #yiv2557057086 div.yiv2557057086MsoNormal {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 a:link, #yiv2557057086 span.yiv2557057086MsoHyperlink {color:blue;text-decoration:underline;}#yiv2557057086 a:visited, #yiv2557057086 span.yiv2557057086MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv2557057086 p.yiv2557057086msonormal0, #yiv2557057086 li.yiv2557057086msonormal0, #yiv2557057086 div.yiv2557057086msonormal0 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msolistparagraph, #yiv2557057086 li.yiv2557057086msolistparagraph, #yiv2557057086 div.yiv2557057086msolistparagraph {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal0, #yiv2557057086 li.yiv2557057086msonormal0, #yiv2557057086 div.yiv2557057086msonormal0 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal, #yiv2557057086 li.yiv2557057086msonormal, #yiv2557057086 div.yiv2557057086msonormal {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal5, #yiv2557057086 li.yiv2557057086msonormal5, #yiv2557057086 div.yiv2557057086msonormal5 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msochpdefault, #yiv2557057086 li.yiv2557057086msochpdefault, #yiv2557057086 div.yiv2557057086msochpdefault {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal1, #yiv2557057086 li.yiv2557057086msonormal1, #yiv2557057086 div.yiv2557057086msonormal1 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal2, #yiv2557057086 li.yiv2557057086msonormal2, #yiv2557057086 div.yiv2557057086msonormal2 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal3, #yiv2557057086 li.yiv2557057086msonormal3, #yiv2557057086 div.yiv2557057086msonormal3 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal51, #yiv2557057086 li.yiv2557057086msonormal51, #yiv2557057086 div.yiv2557057086msonormal51 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal52, #yiv2557057086 li.yiv2557057086msonormal52, #yiv2557057086 div.yiv2557057086msonormal52 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msochpdefault1, #yiv2557057086 li.yiv2557057086msochpdefault1, #yiv2557057086 div.yiv2557057086msochpdefault1 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 span.yiv2557057086msohyperlink {}#yiv2557057086 span.yiv2557057086msohyperlinkfollowed {}#yiv2557057086 span.yiv2557057086msohyperlink1 {}#yiv2557057086 span.yiv2557057086emailstyle31 {}#yiv2557057086 p.yiv2557057086msonormal4, #yiv2557057086 li.yiv2557057086msonormal4, #yiv2557057086 div.yiv2557057086msonormal4 {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal6, #yiv2557057086 li.yiv2557057086msonormal6, #yiv2557057086 div.yiv2557057086msonormal6 {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 span.yiv2557057086msohyperlink2 {color:blue;text-decoration:underline;}#yiv2557057086 span.yiv2557057086msohyperlinkfollowed1 {color:purple;text-decoration:underline;}#yiv2557057086 p.yiv2557057086msolistparagraph1, #yiv2557057086 li.yiv2557057086msolistparagraph1, #yiv2557057086 div.yiv2557057086msolistparagraph1 {margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msolistparagraph2, #yiv2557057086 li.yiv2557057086msolistparagraph2, #yiv2557057086 div.yiv2557057086msolistparagraph2 {margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal01, #yiv2557057086 li.yiv2557057086msonormal01, #yiv2557057086 div.yiv2557057086msonormal01 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal02, #yiv2557057086 li.yiv2557057086msonormal02, #yiv2557057086 div.yiv2557057086msonormal02 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal7, #yiv2557057086 li.yiv2557057086msonormal7, #yiv2557057086 div.yiv2557057086msonormal7 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal53, #yiv2557057086 li.yiv2557057086msonormal53, #yiv2557057086 div.yiv2557057086msonormal53 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal54, #yiv2557057086 li.yiv2557057086msonormal54, #yiv2557057086 div.yiv2557057086msonormal54 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msochpdefault2, #yiv2557057086 li.yiv2557057086msochpdefault2, #yiv2557057086 div.yiv2557057086msochpdefault2 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msochpdefault3, #yiv2557057086 li.yiv2557057086msochpdefault3, #yiv2557057086 div.yiv2557057086msochpdefault3 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal11, #yiv2557057086 li.yiv2557057086msonormal11, #yiv2557057086 div.yiv2557057086msonormal11 {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal12, #yiv2557057086 li.yiv2557057086msonormal12, #yiv2557057086 div.yiv2557057086msonormal12 {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal21, #yiv2557057086 li.yiv2557057086msonormal21, #yiv2557057086 div.yiv2557057086msonormal21 {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal22, #yiv2557057086 li.yiv2557057086msonormal22, #yiv2557057086 div.yiv2557057086msonormal22 {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 span.yiv2557057086msohyperlink11 {color:blue;text-decoration:underline;}#yiv2557057086 p.yiv2557057086msonormal31, #yiv2557057086 li.yiv2557057086msonormal31, #yiv2557057086 div.yiv2557057086msonormal31 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal32, #yiv2557057086 li.yiv2557057086msonormal32, #yiv2557057086 div.yiv2557057086msonormal32 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal511, #yiv2557057086 li.yiv2557057086msonormal511, #yiv2557057086 div.yiv2557057086msonormal511 {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal512, #yiv2557057086 li.yiv2557057086msonormal512, #yiv2557057086 div.yiv2557057086msonormal512 {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal521, #yiv2557057086 li.yiv2557057086msonormal521, #yiv2557057086 div.yiv2557057086msonormal521 {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msonormal522, #yiv2557057086 li.yiv2557057086msonormal522, #yiv2557057086 div.yiv2557057086msonormal522 {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msochpdefault11, #yiv2557057086 li.yiv2557057086msochpdefault11, #yiv2557057086 div.yiv2557057086msochpdefault11 {margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 p.yiv2557057086msochpdefault12, #yiv2557057086 li.yiv2557057086msochpdefault12, #yiv2557057086 div.yiv2557057086msochpdefault12 {margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:"Calibri", sans-serif;}#yiv2557057086 span.yiv2557057086emailstyle311 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv2557057086 span.yiv2557057086EstiloCorreo62 {font-family:"Open Sans", sans-serif;color:#1F497D;font-weight:normal;font-style:normal;}#yiv2557057086 .yiv2557057086MsoChpDefault {font-size:10.0pt;}#yiv2557057086 filtered {}#yiv2557057086 div.yiv2557057086WordSection1 {}-->
Romanisitua, Could we do a direct test against your backend, can you post it temporarily?
I'm convinced it's a silly thing we're not seeing?
De: romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: jueves, 24 de junio de 2021 23:50
Para: users@royale.apache.org
Asunto: Re: users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
I have attached the source files for StringType and ShortType both the as3 and java equivalents
Note: The java version of StringType and ShortType extend AbstractType
AbstractType is defined as follows
public abstract class AbstractType<T> implements Serializable
{
protected T value = null; // single value
protected List<T> values; // multiple values
// getters and setters for the value and values implemented.
}
Like I said earlier I have another version of this same program that uses
import mx.collections.ArrayCollection
instead of
org.apache.royale.collections.ArrayList
with this line commented out
// registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
It works fine the List<String> or List<Short> is converted to ArrayCollection. I can then iterate and access the String or int (Short) respectively.
On Thursday, June 24, 2021, 10:31:35 PM GMT+1,users-digest-help@royale.apache.org <us...@royale.apache.org> wrote:
users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
Topics (messages 4780 through 4780)
Re: [EXTERNAL] Re: users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
4780 by: Brian Raymes
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
I’m a bit confused by this:
> The values arrayList in this two classes are implemented as List<String> and List<Short>
Shouldn’t they be List<StringType> and List<ShortType> ?
For example, the alias is what tells Royale which Java class to match to:
> [RemoteClass(alias="com.mdx.generic.dto.types.StringType")]
The “remote class” is StringType, not String, and ShortType, not Short.
From:romanisitua@yahoo.com <ro...@yahoo.com>
Sent: Thursday, June 24, 2021 2:22 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
Thanks for the feedback
I tried your suggestion
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
The arrayList of Custom object in my case represented by ArrayList<Record> (server side java) is serialized succesfully
However, I have two other as3 classes namely, StringType and ShortType. This classes are defined as follows
import org.apache.royale.collections.ArrayList;
//import mx.collections.ArrayCollection;
[RemoteClass(alias="com.mdx.generic.dto.types.StringType")]
[Bindable]
public class StringType implements Attribute
{
private var _name:String;
private var _value:String;
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
// other get and set here
}
[RemoteClass(alias="com.mdx.generic.dto.types.ShortType")]
[Bindable]
public class ShortType implements Attribute
{
private var _name:String;
private var _value:int;
private var _values:ArrayList;
public function ShortType()
{
trace(" --- init short type --- ");
}
public function set name(name:String) : void
{
this._name = name;
}
public function get name():String
{
return this._name;
}
public function set value(value:int) : void
{
this._value = value;
}
public function get value():int
{
return this._value;
}
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
The StringType and ShortType as3 classes map to server side java classes.
The values arrayList in this two classes are implemented as List<String> and List<Short>
respectively in java server side. The outcome is Serialization is not correct
When I output the content of the value arraylist I get
Language.as:254 attribute title field name:title
Language.as:254 title string type values: [object Object]
Language.as:254 attribute account type field name:accountCategory
Language.as:254 account short type values: [object Object]
Iterating through the object I get undefined for each value
However,
If I comment out the line
// registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
And refactor the as3 StringType and ShortType to use
mx.collections.ArrayCollection it works.
The log is as follows.
Language.as:254 title string type values: Mr,Mrs
Language.as:254 account short type values: 14,100,102
The downside to this is that I have to convert to royale arrayList to display using jewel ui.
Regards,
On Thursday, June 24, 2021, 08:45:21 PM GMT+1,users-digest-help@royale.apache.org <us...@royale.apache.org> wrote:
users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
Topics (messages 4777 through 4777)
Re: users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
4777 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
No romanisitua conversion,
I have fixed the mx remote object issue. I can now make calls to blazeds. For typed java ArrayList, I noticed that blazeds returns "mx.collections.ArrayCollection" object in my as3 class. So I have to do a conversion to "org.apache.royale.collections.ArrayList" to use in the jewel datagrid.
If you put the registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList); that I told you in the previous post, the mapping isn't that direct?
Hiedra
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: jueves, 24 de junio de 2021 19:58
Para: users@royale.apache.org
Asunto: Re: users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
David thanks for your mail. For this example, I am using vs code with maven to compile the project.
I intend to try out moonshine again. I had an issue with the maven plug in when using moonshine. But I was told it has been fixed with the lastest moonshine update.
I have fixed the mx remote object issue. I can now make calls to blazeds. For typed java ArrayList, I noticed that blazeds returns "mx.collections.ArrayCollection" object in my as3 class. So I have to do a conversion to "org.apache.royale.collections.ArrayList" to use in the jewel datagrid.
Regards,
On Thursday, June 24, 2021, 06:47:57 PM GMT+1,users-digest-help@royale.apache.org <us...@royale.apache.org> wrote:
users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
Topics (messages 4770 through 4773)
Re: Switching from js remoteObject to mx remoteObject
4770 by: Maria Jose Esteve
4772 by: Maria Jose Esteve
Re: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
4771 by: David Slotemaker de Bruine
Re: users Digest 23 Jun 2021 15:46:41 -0000 Issue 1724
4773 by: romanisitua.yahoo.com
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
¿Cómo estás compilando? Ant, asconfigc, mvn? Te faltará indicar la dependencia a MXRoyale.swc/MXRoyaleJS.swc
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 11:38
Para: users@royale.apache.org
Asunto: Switching from js remoteObject to mx remoteObject
Hi everyone,
I am trying to switch from usingjs:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Forgive me, I did not translate...
“How are you compiling? Ant, asconfigc, mvn? You will be missing the dependency to MXRoyale.swc/MXRoyaleJS.swc”
As David told you in the other post, the first thing you should do is to change to mx.
De: Maria Jose Esteve <mj...@iest.com>
Enviado el: miércoles, 23 de junio de 2021 17:48
Para: users@royale.apache.org
Asunto: RE: Switching from js remoteObject to mx remoteObject
¿Cómo estás compilando? Ant, asconfigc, mvn? Te faltará indicar la dependencia a MXRoyale.swc/MXRoyaleJS.swc
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 11:38
Para: users@royale.apache.org
Asunto: Switching from js remoteObject to mx remoteObject
Hi everyone,
I am trying to switch from usingjs:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Hi Roman,
I use BlazeDS, and I had all sorts of trouble using the js:Remote and the experts recomended I use mx:Remote.
So you need to start there I think. What IDE are you using? I am using Moonshine.
I can send you my config if thats what you are on.
Cheers,
David
On Wed, 23 Jun 2021 at 17:46, Maria Jose Esteve <mj...@iest.com> wrote:
Hi romanisitua,
I have not worked with Blazeds, I have always used FluorineFx withvb.net so I do not know if what I am going to tell you will be useful to you...
- Make sure that event.result returns the ShortType.vlues and StringType.values object, which "I understand you do get them right".
- Check that the type class of each of the rows of "values" is recognized and mapped (If you launch debug, you can set a breakpoint and expand event.result).
- If it has not recognized and mapped the classes.... Verify that they are defined in "com.test.generic.dto.types.*".
- Verify that in App.mxml you have indicated : registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
- Could you send me the code of the callback function?
Verify me these points and we continue with the debugging.
Hiedra.
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 22:50
Para: users@royale.apache.org
Asunto: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing theList<String> andList<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,
--
David Slotemaker de Bruïne
Head of Educational Robotics
Av. Sarriá, 130 - 08017 Barcelona
T. +34 932 523 729 ext. 135
dslotemaker@vicensvives.com
Good Day,
Thanks for your response. I have resolved the issues I was having. I have been able to do test with mx royale remote object. I discovered that I had to use the maven compilation option "option-with-swf". Then added some more dependencies. I looked up the dependencies from the parent module in the Remote AMF example project.
I have noticed that blazeds returns an "mx.collections.ArrayCollection" object for arrayList of custom object or arrayList of String or arrayList of Short server side (java).
As a result, adding the below code
registerClassAlias("flex.messaging.io.ArrayList", ArrayList); //
to give me
org.apache.royale.collections.ArrayList
Does not work. As a result, I have to convert to convert from "mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" to use my records in jewel datagrid.
I don't mind doing the conversion but I am wondering if this is an abnormal situation. Any ideas ?
Also please what is the maven dependency for
import org.apache.royale.net.remoting.amf.AMFBinaryData
AMFBinaryData.DEBUG = true;
The above code does not compile. I had to comment it out.
Regards,
On Thursday, June 24, 2021, 06:45:59 PM GMT+1,romanisitua@yahoo.com <ro...@yahoo.com> wrote:
Good Day,
Thanks for your response. I have resolved the issues I was having. I have been able to do test with mx royale remote object. I discovered that I had to use the maven compilation option "option-with-swf". Then added some more dependencies. I looked up the dependencies from the parent module in the Remote AMF example project.
I have noticed that blazeds returns an "mx.collections.ArrayCollection" object for arrayList of custom object or arrayList of String or arrayList of Short server side (java).
As a result, adding the below code
registerClassAlias("flex.messaging.io.ArrayList", ArrayList); //
to give me
org.apache.royale.collections.ArrayList
Does not work. As a result, I have to convert to convert from "mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" to use my records in jewel datagrid.
I don't mind doing the conversion but I am wondering if this is an abnormal situation. Any ideas ?
Also please what is the maven dependency for
import org.apache.royale.net.remoting.amf.AMFBinaryData
AMFBinaryData.DEBUG = true;
The above code does not compile. I had to comment it out.
Regards,
On Wednesday, June 23, 2021, 04:46:44 PM GMT+1, <us...@royale.apache.org> wrote:
users Digest 23 Jun 2021 15:46:41 -0000 Issue 1724
Topics (messages 4767 through 4769)
Switching from js remoteObject to mx remoteObject
4767 by: romanisitua.yahoo.com
Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
4768 by: romanisitua.yahoo.com
4769 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
Hi everyone,
I am trying to switch from usingjs:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing theList<String> andList<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,
Hi romanisitua,
I have not worked with Blazeds, I have always used FluorineFx with vb.net so I do not know if what I am going to tell you will be useful to you...
- Make sure that event.result returns the ShortType.vlues and StringType.values object, which "I understand you do get them right".
- Check that the type class of each of the rows of "values" is recognized and mapped (If you launch debug, you can set a breakpoint and expand event.result).
- If it has not recognized and mapped the classes.... Verify that they are defined in "com.test.generic.dto.types.*".
- Verify that in App.mxml you have indicated : registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
- Could you send me the code of the callback function?
Verify me these points and we continue with the debugging.
Hiedra.
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 22:50
Para: users@royale.apache.org
Asunto: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing theList<String> andList<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,
RE: [EXTERNAL] Re: users Digest 25 Jun 2021 11:00:23 -0000 Issue 1732
Posted by Brian Raymes <br...@teotech.com>.
One thing of note, in each case where you have the ApplicationDataBinding bead declared, you should be using ContainerDataBinding.
Each is optimized for certain use-cases.
* ApplicationDataBinding is only used at the Application tag level (e.g., ContactApp.mxml).
* ViewDataBinding for view based containers, although, I believe it has some bugs, so using ContainerDataBinding is likely preferred at this time (e.g. MainContent.mxml)
* ContainerDataBinding in most cases (e.g., most of your current cases should be this one)
* ItemRendererDataBinding for all item renderers.
Also, I use the following to update my ActionScript model from my Java model. It builds a base class and primary for each class converted. One that holds all of your fields, and one that extends it for you to modify and use directly.
https://github.com/cliffmeyers/Java2As
Current, I use the ant variant for this, but there is a maven option for you if you desire.
From: romanisitua@yahoo.com <ro...@yahoo.com>
Sent: Tuesday, June 29, 2021 2:21 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: users Digest 25 Jun 2021 11:00:23 -0000 Issue 1732
Hi Maria Esteves and others,
I am having some hosting challenges so I decided to push the sample code to my public git repo.
You can download it, view the project source and run it. It is a multi module maven project that has four maven projects
Here is the url
https://github.com/nyemiks/RoyaleContactApp.git
.
1. client1: This project uses mx royale remote object. It uses
import mx.collections.ArrayCollection
This code works fine. i.e the List<Record>, List<Short> and List<String> in the server side java were encoded succesfully. to
import mx.collections.ArrayCollection
The drawback here is that I had to convert from "mx.collections.ArrayCollection" to royale arrayList for it to display in jewel datagrid.
2. client2: This project uses mx royale remote object. I added the following code
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList); // for mx remote
The List<Record> is serialized to royale ArrayList succesfully however List<String> and List<Short> do not serialize. The values are undefined.
3. client3: this project attempts to use js remote object. Ignore this.
4. Server: this project uses Spring boot BlazeDS. The server side dto's are defined there namely Record, StringType, ShortType respectively.
I modified the maven pom for the client project to copy the compiled js to the spring boot blazeds project automatically anytime you run the command "mvn -P option-with-swf clean install". This allows us to run the application by opening the terminal and navigating to the server directory then issue the ./mvnw spring-boot:run command.
The url will be
[Inline image]
In the contactMapper class you will see where I logged the values for List<String> and List<Short>.
Regards,
On Friday, June 25, 2021, 12:55:46 PM GMT+1, romanisitua@yahoo.com<ma...@yahoo.com> <ro...@yahoo.com>> wrote:
I don't have it hosted. But I will see what I can do. I will revert.
Regards,
Sent from Yahoo Mail on Android<https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature>
On Fri, 25 Jun 2021 at 12:54, romanisitua@yahoo.com<ma...@yahoo.com>
<ro...@yahoo.com>> wrote:
I don't have it hosted. But I will see what I can do. I will revert.
Regards,
Sent from Yahoo Mail on Android<https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature>
On Fri, 25 Jun 2021 at 12:00, users-digest-help@royale.apache.org<ma...@royale.apache.org>
<us...@royale.apache.org>> wrote:
users Digest 25 Jun 2021 11:00:23 -0000 Issue 1732
Topics (messages 4782 through 4782)
Re: users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
4782 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: users@royale.apache.org<ma...@royale.apache.org>
To unsubscribe, e-mail: users-digest-unsubscribe@royale.apache.org<ma...@royale.apache.org>
For additional commands, e-mail: users-digest-help@royale.apache.org<ma...@royale.apache.org>
----------------------------------------------------------------------
Romanisitua, Could we do a direct test against your backend, can you post it temporarily?
I'm convinced it's a silly thing we're not seeing?
De: romanisitua@yahoo.com<ma...@yahoo.com> <ro...@yahoo.com>>
Enviado el: jueves, 24 de junio de 2021 23:50
Para: users@royale.apache.org<ma...@royale.apache.org>
Asunto: Re: users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
I have attached the source files for StringType and ShortType both the as3 and java equivalents
Note: The java version of StringType and ShortType extend AbstractType
AbstractType is defined as follows
public abstract class AbstractType<T> implements Serializable
{
protected T value = null; // single value
protected List<T> values; // multiple values
// getters and setters for the value and values implemented.
}
Like I said earlier I have another version of this same program that uses
import mx.collections.ArrayCollection
instead of
org.apache.royale.collections.ArrayList
with this line commented out
// registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
It works fine the List<String> or List<Short> is converted to ArrayCollection. I can then iterate and access the String or int (Short) respectively.
On Thursday, June 24, 2021, 10:31:35 PM GMT+1, users-digest-help@royale.apache.org<ma...@royale.apache.org> <us...@royale.apache.org>> wrote:
users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
Topics (messages 4780 through 4780)
Re: [EXTERNAL] Re: users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
4780 by: Brian Raymes
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: users@royale.apache.org<ma...@royale.apache.org>
To unsubscribe, e-mail: users-digest-unsubscribe@royale.apache.org<ma...@royale.apache.org>
For additional commands, e-mail: users-digest-help@royale.apache.org<ma...@royale.apache.org>
----------------------------------------------------------------------
I’m a bit confused by this:
> The values arrayList in this two classes are implemented as List<String> and List<Short>
Shouldn’t they be List<StringType> and List<ShortType> ?
For example, the alias is what tells Royale which Java class to match to:
> [RemoteClass(alias="com.mdx.generic.dto.types.StringType")]
The “remote class” is StringType, not String, and ShortType, not Short.
From: romanisitua@yahoo.com<ma...@yahoo.com> <ro...@yahoo.com>>
Sent: Thursday, June 24, 2021 2:22 PM
To: users@royale.apache.org<ma...@royale.apache.org>
Subject: [EXTERNAL] Re: users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
Thanks for the feedback
I tried your suggestion
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
The arrayList of Custom object in my case represented by ArrayList<Record> (server side java) is serialized succesfully
However, I have two other as3 classes namely, StringType and ShortType. This classes are defined as follows
import org.apache.royale.collections.ArrayList;
//import mx.collections.ArrayCollection;
[RemoteClass(alias="com.mdx.generic.dto.types.StringType")]
[Bindable]
public class StringType implements Attribute
{
private var _name:String;
private var _value:String;
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
// other get and set here
}
[RemoteClass(alias="com.mdx.generic.dto.types.ShortType")]
[Bindable]
public class ShortType implements Attribute
{
private var _name:String;
private var _value:int;
private var _values:ArrayList;
public function ShortType()
{
trace(" --- init short type --- ");
}
public function set name(name:String) : void
{
this._name = name;
}
public function get name():String
{
return this._name;
}
public function set value(value:int) : void
{
this._value = value;
}
public function get value():int
{
return this._value;
}
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
The StringType and ShortType as3 classes map to server side java classes.
The values arrayList in this two classes are implemented as List<String> and List<Short>
respectively in java server side. The outcome is Serialization is not correct
When I output the content of the value arraylist I get
Language.as:254 attribute title field name:title
Language.as:254 title string type values: [object Object]
Language.as:254 attribute account type field name:accountCategory
Language.as:254 account short type values: [object Object]
Iterating through the object I get undefined for each value
However,
If I comment out the line
// registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
And refactor the as3 StringType and ShortType to use
mx.collections.ArrayCollection it works.
The log is as follows.
Language.as:254 title string type values: Mr,Mrs
Language.as:254 account short type values: 14,100,102
The downside to this is that I have to convert to royale arrayList to display using jewel ui.
Regards,
On Thursday, June 24, 2021, 08:45:21 PM GMT+1, users-digest-help@royale.apache.org<ma...@royale.apache.org> <us...@royale.apache.org>> wrote:
users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
Topics (messages 4777 through 4777)
Re: users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
4777 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: users@royale.apache.org<ma...@royale.apache.org>
To unsubscribe, e-mail: users-digest-unsubscribe@royale.apache.org<ma...@royale.apache.org>
For additional commands, e-mail: users-digest-help@royale.apache.org<ma...@royale.apache.org>
----------------------------------------------------------------------
No romanisitua conversion,
I have fixed the mx remote object issue. I can now make calls to blazeds. For typed java ArrayList, I noticed that blazeds returns "mx.collections.ArrayCollection" object in my as3 class. So I have to do a conversion to "org.apache.royale.collections.ArrayList" to use in the jewel datagrid.
If you put the registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList); that I told you in the previous post, the mapping isn't that direct?
Hiedra
De: romanisitua@yahoo.com<ma...@yahoo.com> <ro...@yahoo.com>>
Enviado el: jueves, 24 de junio de 2021 19:58
Para: users@royale.apache.org<ma...@royale.apache.org>
Asunto: Re: users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
David thanks for your mail. For this example, I am using vs code with maven to compile the project.
I intend to try out moonshine again. I had an issue with the maven plug in when using moonshine. But I was told it has been fixed with the lastest moonshine update.
I have fixed the mx remote object issue. I can now make calls to blazeds. For typed java ArrayList, I noticed that blazeds returns "mx.collections.ArrayCollection" object in my as3 class. So I have to do a conversion to "org.apache.royale.collections.ArrayList" to use in the jewel datagrid.
Regards,
On Thursday, June 24, 2021, 06:47:57 PM GMT+1, users-digest-help@royale.apache.org<ma...@royale.apache.org> <us...@royale.apache.org>> wrote:
users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
Topics (messages 4770 through 4773)
Re: Switching from js remoteObject to mx remoteObject
4770 by: Maria Jose Esteve
4772 by: Maria Jose Esteve
Re: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
4771 by: David Slotemaker de Bruine
Re: users Digest 23 Jun 2021 15:46:41 -0000 Issue 1724
4773 by: romanisitua.yahoo.com
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: users@royale.apache.org<ma...@royale.apache.org>
To unsubscribe, e-mail: users-digest-unsubscribe@royale.apache.org<ma...@royale.apache.org>
For additional commands, e-mail: users-digest-help@royale.apache.org<ma...@royale.apache.org>
----------------------------------------------------------------------
¿Cómo estás compilando? Ant, asconfigc, mvn? Te faltará indicar la dependencia a MXRoyale.swc/MXRoyaleJS.swc
De: romanisitua@yahoo.com<ma...@yahoo.com> <ro...@yahoo.com>>
Enviado el: martes, 22 de junio de 2021 11:38
Para: users@royale.apache.org<ma...@royale.apache.org>
Asunto: Switching from js remoteObject to mx remoteObject
Hi everyone,
I am trying to switch from using js:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Forgive me, I did not translate...
“How are you compiling? Ant, asconfigc, mvn? You will be missing the dependency to MXRoyale.swc/MXRoyaleJS.swc”
As David told you in the other post, the first thing you should do is to change to mx.
De: Maria Jose Esteve <mj...@iest.com>>
Enviado el: miércoles, 23 de junio de 2021 17:48
Para: users@royale.apache.org<ma...@royale.apache.org>
Asunto: RE: Switching from js remoteObject to mx remoteObject
¿Cómo estás compilando? Ant, asconfigc, mvn? Te faltará indicar la dependencia a MXRoyale.swc/MXRoyaleJS.swc
De: romanisitua@yahoo.com<ma...@yahoo.com> <ro...@yahoo.com>>
Enviado el: martes, 22 de junio de 2021 11:38
Para: users@royale.apache.org<ma...@royale.apache.org>
Asunto: Switching from js remoteObject to mx remoteObject
Hi everyone,
I am trying to switch from using js:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Hi Roman,
I use BlazeDS, and I had all sorts of trouble using the js:Remote and the experts recomended I use mx:Remote.
So you need to start there I think. What IDE are you using? I am using Moonshine.
I can send you my config if thats what you are on.
Cheers,
David
On Wed, 23 Jun 2021 at 17:46, Maria Jose Esteve <mj...@iest.com>> wrote:
Hi romanisitua,
I have not worked with Blazeds, I have always used FluorineFx with vb.net<http://vb.net> so I do not know if what I am going to tell you will be useful to you...
- Make sure that event.result returns the ShortType.vlues and StringType.values object, which "I understand you do get them right".
- Check that the type class of each of the rows of "values" is recognized and mapped (If you launch debug, you can set a breakpoint and expand event.result).
- If it has not recognized and mapped the classes.... Verify that they are defined in "com.test.generic.dto.types.*".
- Verify that in App.mxml you have indicated : registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
- Could you send me the code of the callback function?
Verify me these points and we continue with the debugging.
Hiedra.
De: romanisitua@yahoo.com<ma...@yahoo.com> <ro...@yahoo.com>>
Enviado el: martes, 22 de junio de 2021 22:50
Para: users@royale.apache.org<ma...@royale.apache.org>
Asunto: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing the List<String> and List<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,
--
David Slotemaker de Bruïne
Head of Educational Robotics
[https://docs.google.com/uc?export=download&id=1hpaD5Yp2v5dsrHcFGfM0jvZLIii5bsag&revid=0B1k3qc0H07_WSWptMmg5ejd6N3BYeERrWk1MKytQamRFMFcwPQ]
Av. Sarriá, 130 - 08017 Barcelona<https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona&entry=gmail&source=g>
T. +34 932 523 729 ext. 135
dslotemaker@vicensvives.com<ma...@vicensvives.com>
Good Day,
Thanks for your response. I have resolved the issues I was having. I have been able to do test with mx royale remote object. I discovered that I had to use the maven compilation option "option-with-swf". Then added some more dependencies. I looked up the dependencies from the parent module in the Remote AMF example project.
I have noticed that blazeds returns an "mx.collections.ArrayCollection" object for arrayList of custom object or arrayList of String or arrayList of Short server side (java).
As a result, adding the below code
registerClassAlias("flex.messaging.io.ArrayList", ArrayList); //
to give me
org.apache.royale.collections.ArrayList
Does not work. As a result, I have to convert to convert from "mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" to use my records in jewel datagrid.
I don't mind doing the conversion but I am wondering if this is an abnormal situation. Any ideas ?
Also please what is the maven dependency for
import org.apache.royale.net.remoting.amf.AMFBinaryData
AMFBinaryData.DEBUG = true;
The above code does not compile. I had to comment it out.
Regards,
On Thursday, June 24, 2021, 06:45:59 PM GMT+1, romanisitua@yahoo.com<ma...@yahoo.com> <ro...@yahoo.com>> wrote:
Good Day,
Thanks for your response. I have resolved the issues I was having. I have been able to do test with mx royale remote object. I discovered that I had to use the maven compilation option "option-with-swf". Then added some more dependencies. I looked up the dependencies from the parent module in the Remote AMF example project.
I have noticed that blazeds returns an "mx.collections.ArrayCollection" object for arrayList of custom object or arrayList of String or arrayList of Short server side (java).
As a result, adding the below code
registerClassAlias("flex.messaging.io.ArrayList", ArrayList); //
to give me
org.apache.royale.collections.ArrayList
Does not work. As a result, I have to convert to convert from "mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" to use my records in jewel datagrid.
I don't mind doing the conversion but I am wondering if this is an abnormal situation. Any ideas ?
Also please what is the maven dependency for
import org.apache.royale.net.remoting.amf.AMFBinaryData
AMFBinaryData.DEBUG = true;
The above code does not compile. I had to comment it out.
Regards,
On Wednesday, June 23, 2021, 04:46:44 PM GMT+1, <us...@royale.apache.org>> wrote:
users Digest 23 Jun 2021 15:46:41 -0000 Issue 1724
Topics (messages 4767 through 4769)
Switching from js remoteObject to mx remoteObject
4767 by: romanisitua.yahoo.com
Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
4768 by: romanisitua.yahoo.com
4769 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: users@royale.apache.org<ma...@royale.apache.org>
To unsubscribe, e-mail: users-digest-unsubscribe@royale.apache.org<ma...@royale.apache.org>
For additional commands, e-mail: users-digest-help@royale.apache.org<ma...@royale.apache.org>
----------------------------------------------------------------------
Hi everyone,
I am trying to switch from using js:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing the List<String> and List<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,
Hi romanisitua,
I have not worked with Blazeds, I have always used FluorineFx with vb.net so I do not know if what I am going to tell you will be useful to you...
- Make sure that event.result returns the ShortType.vlues and StringType.values object, which "I understand you do get them right".
- Check that the type class of each of the rows of "values" is recognized and mapped (If you launch debug, you can set a breakpoint and expand event.result).
- If it has not recognized and mapped the classes.... Verify that they are defined in "com.test.generic.dto.types.*".
- Verify that in App.mxml you have indicated : registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
- Could you send me the code of the callback function?
Verify me these points and we continue with the debugging.
Hiedra.
De: romanisitua@yahoo.com<ma...@yahoo.com> <ro...@yahoo.com>>
Enviado el: martes, 22 de junio de 2021 22:50
Para: users@royale.apache.org<ma...@royale.apache.org>
Asunto: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing the List<String> and List<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,
Re: users Digest 25 Jun 2021 11:00:23 -0000 Issue 1732
Posted by "romanisitua@yahoo.com" <ro...@yahoo.com>.
Maria Esteves I have fixed the hosting issue. I have hosted it. Kindly send me a personal email. So I can send the public url to the service.
Thanks,
On Tuesday, June 29, 2021, 10:21:26 PM GMT+1, romanisitua@yahoo.com <ro...@yahoo.com> wrote:
Hi Maria Esteves and others,
I am having some hosting challenges so I decided to push the sample code to my public git repo.
You can download it, view the project source and run it. It is a multi module maven project that has four maven projects Here is the url
https://github.com/nyemiks/RoyaleContactApp.git
.1. client1: This project uses mx royale remote object. It uses import mx.collections.ArrayCollection
This code works fine. i.e the List<Record>, List<Short> and List<String> in the server side java were encoded succesfully. to import mx.collections.ArrayCollection
The drawback here is that I had to convert from "mx.collections.ArrayCollection" to royale arrayList for it to display in jewel datagrid.
2. client2: This project uses mx royale remote object. I added the following code
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList); // for mx remote
The List<Record> is serialized to royale ArrayList succesfully however List<String> and List<Short> do not serialize. The values are undefined.
3. client3: this project attempts to use js remote object. Ignore this.
4. Server: this project uses Spring boot BlazeDS. The server side dto's are defined there namely Record, StringType, ShortType respectively.
I modified the maven pom for the client project to copy the compiled js to the spring boot blazeds project automatically anytime you run the command "mvn -P option-with-swf clean install". This allows us to run the application by opening the terminal and navigating to the server directory then issue the ./mvnw spring-boot:run command.
The url will be
In the contactMapper class you will see where I logged the values for List<String> and List<Short>.
Regards,
On Friday, June 25, 2021, 12:55:46 PM GMT+1, romanisitua@yahoo.com <ro...@yahoo.com> wrote:
I don't have it hosted. But I will see what I can do. I will revert.
Regards,
Sent from Yahoo Mail on Android
On Fri, 25 Jun 2021 at 12:54, romanisitua@yahoo.com<ro...@yahoo.com> wrote: I don't have it hosted. But I will see what I can do. I will revert.
Regards,
Sent from Yahoo Mail on Android
On Fri, 25 Jun 2021 at 12:00, users-digest-help@royale.apache.org<us...@royale.apache.org> wrote:
users Digest 25 Jun 2021 11:00:23 -0000 Issue 1732
Topics (messages 4782 through 4782)
Re: users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
4782 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: users@royale.apache.org
To unsubscribe, e-mail: users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail: users-digest-help@royale.apache.org
----------------------------------------------------------------------
#yiv3485611209 -- filtered {}#yiv3485611209 filtered {}#yiv3485611209 filtered {}#yiv3485611209 filtered {}#yiv3485611209 filtered {}#yiv3485611209 p.yiv3485611209MsoNormal, #yiv3485611209 li.yiv3485611209MsoNormal, #yiv3485611209 div.yiv3485611209MsoNormal {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 a:link, #yiv3485611209 span.yiv3485611209MsoHyperlink {color:blue;text-decoration:underline;}#yiv3485611209 a:visited, #yiv3485611209 span.yiv3485611209MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv3485611209 p.yiv3485611209msonormal0, #yiv3485611209 li.yiv3485611209msonormal0, #yiv3485611209 div.yiv3485611209msonormal0 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msolistparagraph, #yiv3485611209 li.yiv3485611209msolistparagraph, #yiv3485611209 div.yiv3485611209msolistparagraph {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal0, #yiv3485611209 li.yiv3485611209msonormal0, #yiv3485611209 div.yiv3485611209msonormal0 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal, #yiv3485611209 li.yiv3485611209msonormal, #yiv3485611209 div.yiv3485611209msonormal {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal5, #yiv3485611209 li.yiv3485611209msonormal5, #yiv3485611209 div.yiv3485611209msonormal5 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msochpdefault, #yiv3485611209 li.yiv3485611209msochpdefault, #yiv3485611209 div.yiv3485611209msochpdefault {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal1, #yiv3485611209 li.yiv3485611209msonormal1, #yiv3485611209 div.yiv3485611209msonormal1 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal2, #yiv3485611209 li.yiv3485611209msonormal2, #yiv3485611209 div.yiv3485611209msonormal2 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal3, #yiv3485611209 li.yiv3485611209msonormal3, #yiv3485611209 div.yiv3485611209msonormal3 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal51, #yiv3485611209 li.yiv3485611209msonormal51, #yiv3485611209 div.yiv3485611209msonormal51 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal52, #yiv3485611209 li.yiv3485611209msonormal52, #yiv3485611209 div.yiv3485611209msonormal52 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msochpdefault1, #yiv3485611209 li.yiv3485611209msochpdefault1, #yiv3485611209 div.yiv3485611209msochpdefault1 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 span.yiv3485611209msohyperlink {}#yiv3485611209 span.yiv3485611209msohyperlinkfollowed {}#yiv3485611209 span.yiv3485611209msohyperlink1 {}#yiv3485611209 span.yiv3485611209emailstyle31 {}#yiv3485611209 p.yiv3485611209msonormal4, #yiv3485611209 li.yiv3485611209msonormal4, #yiv3485611209 div.yiv3485611209msonormal4 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal6, #yiv3485611209 li.yiv3485611209msonormal6, #yiv3485611209 div.yiv3485611209msonormal6 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 span.yiv3485611209msohyperlink2 {color:blue;text-decoration:underline;}#yiv3485611209 span.yiv3485611209msohyperlinkfollowed1 {color:purple;text-decoration:underline;}#yiv3485611209 p.yiv3485611209msolistparagraph1, #yiv3485611209 li.yiv3485611209msolistparagraph1, #yiv3485611209 div.yiv3485611209msolistparagraph1 {margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msolistparagraph2, #yiv3485611209 li.yiv3485611209msolistparagraph2, #yiv3485611209 div.yiv3485611209msolistparagraph2 {margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal01, #yiv3485611209 li.yiv3485611209msonormal01, #yiv3485611209 div.yiv3485611209msonormal01 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal02, #yiv3485611209 li.yiv3485611209msonormal02, #yiv3485611209 div.yiv3485611209msonormal02 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal7, #yiv3485611209 li.yiv3485611209msonormal7, #yiv3485611209 div.yiv3485611209msonormal7 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal53, #yiv3485611209 li.yiv3485611209msonormal53, #yiv3485611209 div.yiv3485611209msonormal53 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal54, #yiv3485611209 li.yiv3485611209msonormal54, #yiv3485611209 div.yiv3485611209msonormal54 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msochpdefault2, #yiv3485611209 li.yiv3485611209msochpdefault2, #yiv3485611209 div.yiv3485611209msochpdefault2 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msochpdefault3, #yiv3485611209 li.yiv3485611209msochpdefault3, #yiv3485611209 div.yiv3485611209msochpdefault3 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal11, #yiv3485611209 li.yiv3485611209msonormal11, #yiv3485611209 div.yiv3485611209msonormal11 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal12, #yiv3485611209 li.yiv3485611209msonormal12, #yiv3485611209 div.yiv3485611209msonormal12 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal21, #yiv3485611209 li.yiv3485611209msonormal21, #yiv3485611209 div.yiv3485611209msonormal21 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal22, #yiv3485611209 li.yiv3485611209msonormal22, #yiv3485611209 div.yiv3485611209msonormal22 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 span.yiv3485611209msohyperlink11 {color:blue;text-decoration:underline;}#yiv3485611209 p.yiv3485611209msonormal31, #yiv3485611209 li.yiv3485611209msonormal31, #yiv3485611209 div.yiv3485611209msonormal31 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal32, #yiv3485611209 li.yiv3485611209msonormal32, #yiv3485611209 div.yiv3485611209msonormal32 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal511, #yiv3485611209 li.yiv3485611209msonormal511, #yiv3485611209 div.yiv3485611209msonormal511 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal512, #yiv3485611209 li.yiv3485611209msonormal512, #yiv3485611209 div.yiv3485611209msonormal512 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal521, #yiv3485611209 li.yiv3485611209msonormal521, #yiv3485611209 div.yiv3485611209msonormal521 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msonormal522, #yiv3485611209 li.yiv3485611209msonormal522, #yiv3485611209 div.yiv3485611209msonormal522 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msochpdefault11, #yiv3485611209 li.yiv3485611209msochpdefault11, #yiv3485611209 div.yiv3485611209msochpdefault11 {margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:sans-serif;}#yiv3485611209 p.yiv3485611209msochpdefault12, #yiv3485611209 li.yiv3485611209msochpdefault12, #yiv3485611209 div.yiv3485611209msochpdefault12 {margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:sans-serif;}#yiv3485611209 span.yiv3485611209emailstyle311 {font-family:sans-serif;color:windowtext;}#yiv3485611209 span.yiv3485611209EstiloCorreo62 {font-family:sans-serif;color:#1F497D;font-weight:normal;font-style:normal;}#yiv3485611209 .yiv3485611209MsoChpDefault {font-size:10.0pt;}#yiv3485611209 filtered {}#yiv3485611209 div.yiv3485611209WordSection1 {}#yiv3485611209
Romanisitua, Could we do a direct test against your backend, can you post it temporarily?
I'm convinced it's a silly thing we're not seeing?
De: romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: jueves, 24 de junio de 2021 23:50
Para: users@royale.apache.org
Asunto: Re: users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
I have attached the source files for StringType and ShortType both the as3 and java equivalents
Note: The java version of StringType and ShortType extend AbstractType
AbstractType is defined as follows
public abstract class AbstractType<T> implements Serializable
{
protected T value = null; // single value
protected List<T> values; // multiple values
// getters and setters for the value and values implemented.
}
Like I said earlier I have another version of this same program that uses
import mx.collections.ArrayCollection
instead of
org.apache.royale.collections.ArrayList
with this line commented out
// registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
It works fine the List<String> or List<Short> is converted to ArrayCollection. I can then iterate and access the String or int (Short) respectively.
On Thursday, June 24, 2021, 10:31:35 PM GMT+1,users-digest-help@royale.apache.org <us...@royale.apache.org> wrote:
users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
Topics (messages 4780 through 4780)
Re: [EXTERNAL] Re: users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
4780 by: Brian Raymes
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
I’m a bit confused by this:
> The values arrayList in this two classes are implemented as List<String> and List<Short>
Shouldn’t they be List<StringType> and List<ShortType> ?
For example, the alias is what tells Royale which Java class to match to:
> [RemoteClass(alias="com.mdx.generic.dto.types.StringType")]
The “remote class” is StringType, not String, and ShortType, not Short.
From:romanisitua@yahoo.com <ro...@yahoo.com>
Sent: Thursday, June 24, 2021 2:22 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
Thanks for the feedback
I tried your suggestion
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
The arrayList of Custom object in my case represented by ArrayList<Record> (server side java) is serialized succesfully
However, I have two other as3 classes namely, StringType and ShortType. This classes are defined as follows
import org.apache.royale.collections.ArrayList;
//import mx.collections.ArrayCollection;
[RemoteClass(alias="com.mdx.generic.dto.types.StringType")]
[Bindable]
public class StringType implements Attribute
{
private var _name:String;
private var _value:String;
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
// other get and set here
}
[RemoteClass(alias="com.mdx.generic.dto.types.ShortType")]
[Bindable]
public class ShortType implements Attribute
{
private var _name:String;
private var _value:int;
private var _values:ArrayList;
public function ShortType()
{
trace(" --- init short type --- ");
}
public function set name(name:String) : void
{
this._name = name;
}
public function get name():String
{
return this._name;
}
public function set value(value:int) : void
{
this._value = value;
}
public function get value():int
{
return this._value;
}
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
The StringType and ShortType as3 classes map to server side java classes.
The values arrayList in this two classes are implemented as List<String> and List<Short>
respectively in java server side. The outcome is Serialization is not correct
When I output the content of the value arraylist I get
Language.as:254 attribute title field name:title
Language.as:254 title string type values: [object Object]
Language.as:254 attribute account type field name:accountCategory
Language.as:254 account short type values: [object Object]
Iterating through the object I get undefined for each value
However,
If I comment out the line
// registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
And refactor the as3 StringType and ShortType to use
mx.collections.ArrayCollection it works.
The log is as follows.
Language.as:254 title string type values: Mr,Mrs
Language.as:254 account short type values: 14,100,102
The downside to this is that I have to convert to royale arrayList to display using jewel ui.
Regards,
On Thursday, June 24, 2021, 08:45:21 PM GMT+1,users-digest-help@royale.apache.org <us...@royale.apache.org> wrote:
users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
Topics (messages 4777 through 4777)
Re: users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
4777 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
No romanisitua conversion,
I have fixed the mx remote object issue. I can now make calls to blazeds. For typed java ArrayList, I noticed that blazeds returns "mx.collections.ArrayCollection" object in my as3 class. So I have to do a conversion to "org.apache.royale.collections.ArrayList" to use in the jewel datagrid.
If you put the registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList); that I told you in the previous post, the mapping isn't that direct?
Hiedra
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: jueves, 24 de junio de 2021 19:58
Para: users@royale.apache.org
Asunto: Re: users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
David thanks for your mail. For this example, I am using vs code with maven to compile the project.
I intend to try out moonshine again. I had an issue with the maven plug in when using moonshine. But I was told it has been fixed with the lastest moonshine update.
I have fixed the mx remote object issue. I can now make calls to blazeds. For typed java ArrayList, I noticed that blazeds returns "mx.collections.ArrayCollection" object in my as3 class. So I have to do a conversion to "org.apache.royale.collections.ArrayList" to use in the jewel datagrid.
Regards,
On Thursday, June 24, 2021, 06:47:57 PM GMT+1,users-digest-help@royale.apache.org <us...@royale.apache.org> wrote:
users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
Topics (messages 4770 through 4773)
Re: Switching from js remoteObject to mx remoteObject
4770 by: Maria Jose Esteve
4772 by: Maria Jose Esteve
Re: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
4771 by: David Slotemaker de Bruine
Re: users Digest 23 Jun 2021 15:46:41 -0000 Issue 1724
4773 by: romanisitua.yahoo.com
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
¿Cómo estás compilando? Ant, asconfigc, mvn? Te faltará indicar la dependencia a MXRoyale.swc/MXRoyaleJS.swc
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 11:38
Para: users@royale.apache.org
Asunto: Switching from js remoteObject to mx remoteObject
Hi everyone,
I am trying to switch from usingjs:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Forgive me, I did not translate...
“How are you compiling? Ant, asconfigc, mvn? You will be missing the dependency to MXRoyale.swc/MXRoyaleJS.swc”
As David told you in the other post, the first thing you should do is to change to mx.
De: Maria Jose Esteve <mj...@iest.com>
Enviado el: miércoles, 23 de junio de 2021 17:48
Para: users@royale.apache.org
Asunto: RE: Switching from js remoteObject to mx remoteObject
¿Cómo estás compilando? Ant, asconfigc, mvn? Te faltará indicar la dependencia a MXRoyale.swc/MXRoyaleJS.swc
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 11:38
Para: users@royale.apache.org
Asunto: Switching from js remoteObject to mx remoteObject
Hi everyone,
I am trying to switch from usingjs:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Hi Roman,
I use BlazeDS, and I had all sorts of trouble using the js:Remote and the experts recomended I use mx:Remote.
So you need to start there I think. What IDE are you using? I am using Moonshine.
I can send you my config if thats what you are on.
Cheers,
David
On Wed, 23 Jun 2021 at 17:46, Maria Jose Esteve <mj...@iest.com> wrote:
Hi romanisitua,
I have not worked with Blazeds, I have always used FluorineFx withvb.net so I do not know if what I am going to tell you will be useful to you...
- Make sure that event.result returns the ShortType.vlues and StringType.values object, which "I understand you do get them right".
- Check that the type class of each of the rows of "values" is recognized and mapped (If you launch debug, you can set a breakpoint and expand event.result).
- If it has not recognized and mapped the classes.... Verify that they are defined in "com.test.generic.dto.types.*".
- Verify that in App.mxml you have indicated : registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
- Could you send me the code of the callback function?
Verify me these points and we continue with the debugging.
Hiedra.
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 22:50
Para: users@royale.apache.org
Asunto: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing theList<String> andList<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,
--
David Slotemaker de Bruïne
Head of Educational Robotics
Av. Sarriá, 130 - 08017 Barcelona
T. +34 932 523 729 ext. 135
dslotemaker@vicensvives.com
Good Day,
Thanks for your response. I have resolved the issues I was having. I have been able to do test with mx royale remote object. I discovered that I had to use the maven compilation option "option-with-swf". Then added some more dependencies. I looked up the dependencies from the parent module in the Remote AMF example project.
I have noticed that blazeds returns an "mx.collections.ArrayCollection" object for arrayList of custom object or arrayList of String or arrayList of Short server side (java).
As a result, adding the below code
registerClassAlias("flex.messaging.io.ArrayList", ArrayList); //
to give me
org.apache.royale.collections.ArrayList
Does not work. As a result, I have to convert to convert from "mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" to use my records in jewel datagrid.
I don't mind doing the conversion but I am wondering if this is an abnormal situation. Any ideas ?
Also please what is the maven dependency for
import org.apache.royale.net.remoting.amf.AMFBinaryData
AMFBinaryData.DEBUG = true;
The above code does not compile. I had to comment it out.
Regards,
On Thursday, June 24, 2021, 06:45:59 PM GMT+1,romanisitua@yahoo.com <ro...@yahoo.com> wrote:
Good Day,
Thanks for your response. I have resolved the issues I was having. I have been able to do test with mx royale remote object. I discovered that I had to use the maven compilation option "option-with-swf". Then added some more dependencies. I looked up the dependencies from the parent module in the Remote AMF example project.
I have noticed that blazeds returns an "mx.collections.ArrayCollection" object for arrayList of custom object or arrayList of String or arrayList of Short server side (java).
As a result, adding the below code
registerClassAlias("flex.messaging.io.ArrayList", ArrayList); //
to give me
org.apache.royale.collections.ArrayList
Does not work. As a result, I have to convert to convert from "mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" to use my records in jewel datagrid.
I don't mind doing the conversion but I am wondering if this is an abnormal situation. Any ideas ?
Also please what is the maven dependency for
import org.apache.royale.net.remoting.amf.AMFBinaryData
AMFBinaryData.DEBUG = true;
The above code does not compile. I had to comment it out.
Regards,
On Wednesday, June 23, 2021, 04:46:44 PM GMT+1, <us...@royale.apache.org> wrote:
users Digest 23 Jun 2021 15:46:41 -0000 Issue 1724
Topics (messages 4767 through 4769)
Switching from js remoteObject to mx remoteObject
4767 by: romanisitua.yahoo.com
Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
4768 by: romanisitua.yahoo.com
4769 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
Hi everyone,
I am trying to switch from usingjs:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing theList<String> andList<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,
Hi romanisitua,
I have not worked with Blazeds, I have always used FluorineFx with vb.net so I do not know if what I am going to tell you will be useful to you...
- Make sure that event.result returns the ShortType.vlues and StringType.values object, which "I understand you do get them right".
- Check that the type class of each of the rows of "values" is recognized and mapped (If you launch debug, you can set a breakpoint and expand event.result).
- If it has not recognized and mapped the classes.... Verify that they are defined in "com.test.generic.dto.types.*".
- Verify that in App.mxml you have indicated : registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
- Could you send me the code of the callback function?
Verify me these points and we continue with the debugging.
Hiedra.
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 22:50
Para: users@royale.apache.org
Asunto: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing theList<String> andList<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,
Re: users Digest 25 Jun 2021 11:00:23 -0000 Issue 1732
Posted by "romanisitua@yahoo.com" <ro...@yahoo.com>.
Hi Maria Esteves and others,
I am having some hosting challenges so I decided to push the sample code to my public git repo.
You can download it, view the project source and run it. It is a multi module maven project that has four maven projects Here is the url
https://github.com/nyemiks/RoyaleContactApp.git
.1. client1: This project uses mx royale remote object. It uses import mx.collections.ArrayCollection
This code works fine. i.e the List<Record>, List<Short> and List<String> in the server side java were encoded succesfully. to import mx.collections.ArrayCollection
The drawback here is that I had to convert from "mx.collections.ArrayCollection" to royale arrayList for it to display in jewel datagrid.
2. client2: This project uses mx royale remote object. I added the following code
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList); // for mx remote
The List<Record> is serialized to royale ArrayList succesfully however List<String> and List<Short> do not serialize. The values are undefined.
3. client3: this project attempts to use js remote object. Ignore this.
4. Server: this project uses Spring boot BlazeDS. The server side dto's are defined there namely Record, StringType, ShortType respectively.
I modified the maven pom for the client project to copy the compiled js to the spring boot blazeds project automatically anytime you run the command "mvn -P option-with-swf clean install". This allows us to run the application by opening the terminal and navigating to the server directory then issue the ./mvnw spring-boot:run command.
The url will be
In the contactMapper class you will see where I logged the values for List<String> and List<Short>.
Regards,
On Friday, June 25, 2021, 12:55:46 PM GMT+1, romanisitua@yahoo.com <ro...@yahoo.com> wrote:
I don't have it hosted. But I will see what I can do. I will revert.
Regards,
Sent from Yahoo Mail on Android
On Fri, 25 Jun 2021 at 12:54, romanisitua@yahoo.com<ro...@yahoo.com> wrote: I don't have it hosted. But I will see what I can do. I will revert.
Regards,
Sent from Yahoo Mail on Android
On Fri, 25 Jun 2021 at 12:00, users-digest-help@royale.apache.org<us...@royale.apache.org> wrote:
users Digest 25 Jun 2021 11:00:23 -0000 Issue 1732
Topics (messages 4782 through 4782)
Re: users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
4782 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: users@royale.apache.org
To unsubscribe, e-mail: users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail: users-digest-help@royale.apache.org
----------------------------------------------------------------------
#yiv9890791954 -- filtered {}#yiv9890791954 filtered {}#yiv9890791954 filtered {}#yiv9890791954 filtered {}#yiv9890791954 filtered {}#yiv9890791954 p.yiv9890791954MsoNormal, #yiv9890791954 li.yiv9890791954MsoNormal, #yiv9890791954 div.yiv9890791954MsoNormal {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 a:link, #yiv9890791954 span.yiv9890791954MsoHyperlink {color:blue;text-decoration:underline;}#yiv9890791954 a:visited, #yiv9890791954 span.yiv9890791954MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv9890791954 p.yiv9890791954msonormal0, #yiv9890791954 li.yiv9890791954msonormal0, #yiv9890791954 div.yiv9890791954msonormal0 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msolistparagraph, #yiv9890791954 li.yiv9890791954msolistparagraph, #yiv9890791954 div.yiv9890791954msolistparagraph {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal0, #yiv9890791954 li.yiv9890791954msonormal0, #yiv9890791954 div.yiv9890791954msonormal0 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal, #yiv9890791954 li.yiv9890791954msonormal, #yiv9890791954 div.yiv9890791954msonormal {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal5, #yiv9890791954 li.yiv9890791954msonormal5, #yiv9890791954 div.yiv9890791954msonormal5 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msochpdefault, #yiv9890791954 li.yiv9890791954msochpdefault, #yiv9890791954 div.yiv9890791954msochpdefault {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal1, #yiv9890791954 li.yiv9890791954msonormal1, #yiv9890791954 div.yiv9890791954msonormal1 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal2, #yiv9890791954 li.yiv9890791954msonormal2, #yiv9890791954 div.yiv9890791954msonormal2 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal3, #yiv9890791954 li.yiv9890791954msonormal3, #yiv9890791954 div.yiv9890791954msonormal3 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal51, #yiv9890791954 li.yiv9890791954msonormal51, #yiv9890791954 div.yiv9890791954msonormal51 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal52, #yiv9890791954 li.yiv9890791954msonormal52, #yiv9890791954 div.yiv9890791954msonormal52 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msochpdefault1, #yiv9890791954 li.yiv9890791954msochpdefault1, #yiv9890791954 div.yiv9890791954msochpdefault1 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 span.yiv9890791954msohyperlink {}#yiv9890791954 span.yiv9890791954msohyperlinkfollowed {}#yiv9890791954 span.yiv9890791954msohyperlink1 {}#yiv9890791954 span.yiv9890791954emailstyle31 {}#yiv9890791954 p.yiv9890791954msonormal4, #yiv9890791954 li.yiv9890791954msonormal4, #yiv9890791954 div.yiv9890791954msonormal4 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal6, #yiv9890791954 li.yiv9890791954msonormal6, #yiv9890791954 div.yiv9890791954msonormal6 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 span.yiv9890791954msohyperlink2 {color:blue;text-decoration:underline;}#yiv9890791954 span.yiv9890791954msohyperlinkfollowed1 {color:purple;text-decoration:underline;}#yiv9890791954 p.yiv9890791954msolistparagraph1, #yiv9890791954 li.yiv9890791954msolistparagraph1, #yiv9890791954 div.yiv9890791954msolistparagraph1 {margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msolistparagraph2, #yiv9890791954 li.yiv9890791954msolistparagraph2, #yiv9890791954 div.yiv9890791954msolistparagraph2 {margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal01, #yiv9890791954 li.yiv9890791954msonormal01, #yiv9890791954 div.yiv9890791954msonormal01 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal02, #yiv9890791954 li.yiv9890791954msonormal02, #yiv9890791954 div.yiv9890791954msonormal02 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal7, #yiv9890791954 li.yiv9890791954msonormal7, #yiv9890791954 div.yiv9890791954msonormal7 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal53, #yiv9890791954 li.yiv9890791954msonormal53, #yiv9890791954 div.yiv9890791954msonormal53 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal54, #yiv9890791954 li.yiv9890791954msonormal54, #yiv9890791954 div.yiv9890791954msonormal54 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msochpdefault2, #yiv9890791954 li.yiv9890791954msochpdefault2, #yiv9890791954 div.yiv9890791954msochpdefault2 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msochpdefault3, #yiv9890791954 li.yiv9890791954msochpdefault3, #yiv9890791954 div.yiv9890791954msochpdefault3 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal11, #yiv9890791954 li.yiv9890791954msonormal11, #yiv9890791954 div.yiv9890791954msonormal11 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal12, #yiv9890791954 li.yiv9890791954msonormal12, #yiv9890791954 div.yiv9890791954msonormal12 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal21, #yiv9890791954 li.yiv9890791954msonormal21, #yiv9890791954 div.yiv9890791954msonormal21 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal22, #yiv9890791954 li.yiv9890791954msonormal22, #yiv9890791954 div.yiv9890791954msonormal22 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 span.yiv9890791954msohyperlink11 {color:blue;text-decoration:underline;}#yiv9890791954 p.yiv9890791954msonormal31, #yiv9890791954 li.yiv9890791954msonormal31, #yiv9890791954 div.yiv9890791954msonormal31 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal32, #yiv9890791954 li.yiv9890791954msonormal32, #yiv9890791954 div.yiv9890791954msonormal32 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal511, #yiv9890791954 li.yiv9890791954msonormal511, #yiv9890791954 div.yiv9890791954msonormal511 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal512, #yiv9890791954 li.yiv9890791954msonormal512, #yiv9890791954 div.yiv9890791954msonormal512 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal521, #yiv9890791954 li.yiv9890791954msonormal521, #yiv9890791954 div.yiv9890791954msonormal521 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msonormal522, #yiv9890791954 li.yiv9890791954msonormal522, #yiv9890791954 div.yiv9890791954msonormal522 {margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msochpdefault11, #yiv9890791954 li.yiv9890791954msochpdefault11, #yiv9890791954 div.yiv9890791954msochpdefault11 {margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:sans-serif;}#yiv9890791954 p.yiv9890791954msochpdefault12, #yiv9890791954 li.yiv9890791954msochpdefault12, #yiv9890791954 div.yiv9890791954msochpdefault12 {margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:sans-serif;}#yiv9890791954 span.yiv9890791954emailstyle311 {font-family:sans-serif;color:windowtext;}#yiv9890791954 span.yiv9890791954EstiloCorreo62 {font-family:sans-serif;color:#1F497D;font-weight:normal;font-style:normal;}#yiv9890791954 .yiv9890791954MsoChpDefault {font-size:10.0pt;}#yiv9890791954 filtered {}#yiv9890791954 div.yiv9890791954WordSection1 {}#yiv9890791954
Romanisitua, Could we do a direct test against your backend, can you post it temporarily?
I'm convinced it's a silly thing we're not seeing?
De: romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: jueves, 24 de junio de 2021 23:50
Para: users@royale.apache.org
Asunto: Re: users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
I have attached the source files for StringType and ShortType both the as3 and java equivalents
Note: The java version of StringType and ShortType extend AbstractType
AbstractType is defined as follows
public abstract class AbstractType<T> implements Serializable
{
protected T value = null; // single value
protected List<T> values; // multiple values
// getters and setters for the value and values implemented.
}
Like I said earlier I have another version of this same program that uses
import mx.collections.ArrayCollection
instead of
org.apache.royale.collections.ArrayList
with this line commented out
// registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
It works fine the List<String> or List<Short> is converted to ArrayCollection. I can then iterate and access the String or int (Short) respectively.
On Thursday, June 24, 2021, 10:31:35 PM GMT+1,users-digest-help@royale.apache.org <us...@royale.apache.org> wrote:
users Digest 24 Jun 2021 21:31:33 -0000 Issue 1730
Topics (messages 4780 through 4780)
Re: [EXTERNAL] Re: users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
4780 by: Brian Raymes
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
I’m a bit confused by this:
> The values arrayList in this two classes are implemented as List<String> and List<Short>
Shouldn’t they be List<StringType> and List<ShortType> ?
For example, the alias is what tells Royale which Java class to match to:
> [RemoteClass(alias="com.mdx.generic.dto.types.StringType")]
The “remote class” is StringType, not String, and ShortType, not Short.
From:romanisitua@yahoo.com <ro...@yahoo.com>
Sent: Thursday, June 24, 2021 2:22 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
Thanks for the feedback
I tried your suggestion
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
The arrayList of Custom object in my case represented by ArrayList<Record> (server side java) is serialized succesfully
However, I have two other as3 classes namely, StringType and ShortType. This classes are defined as follows
import org.apache.royale.collections.ArrayList;
//import mx.collections.ArrayCollection;
[RemoteClass(alias="com.mdx.generic.dto.types.StringType")]
[Bindable]
public class StringType implements Attribute
{
private var _name:String;
private var _value:String;
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
// other get and set here
}
[RemoteClass(alias="com.mdx.generic.dto.types.ShortType")]
[Bindable]
public class ShortType implements Attribute
{
private var _name:String;
private var _value:int;
private var _values:ArrayList;
public function ShortType()
{
trace(" --- init short type --- ");
}
public function set name(name:String) : void
{
this._name = name;
}
public function get name():String
{
return this._name;
}
public function set value(value:int) : void
{
this._value = value;
}
public function get value():int
{
return this._value;
}
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
The StringType and ShortType as3 classes map to server side java classes.
The values arrayList in this two classes are implemented as List<String> and List<Short>
respectively in java server side. The outcome is Serialization is not correct
When I output the content of the value arraylist I get
Language.as:254 attribute title field name:title
Language.as:254 title string type values: [object Object]
Language.as:254 attribute account type field name:accountCategory
Language.as:254 account short type values: [object Object]
Iterating through the object I get undefined for each value
However,
If I comment out the line
// registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
And refactor the as3 StringType and ShortType to use
mx.collections.ArrayCollection it works.
The log is as follows.
Language.as:254 title string type values: Mr,Mrs
Language.as:254 account short type values: 14,100,102
The downside to this is that I have to convert to royale arrayList to display using jewel ui.
Regards,
On Thursday, June 24, 2021, 08:45:21 PM GMT+1,users-digest-help@royale.apache.org <us...@royale.apache.org> wrote:
users Digest 24 Jun 2021 19:45:18 -0000 Issue 1728
Topics (messages 4777 through 4777)
Re: users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
4777 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
No romanisitua conversion,
I have fixed the mx remote object issue. I can now make calls to blazeds. For typed java ArrayList, I noticed that blazeds returns "mx.collections.ArrayCollection" object in my as3 class. So I have to do a conversion to "org.apache.royale.collections.ArrayList" to use in the jewel datagrid.
If you put the registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList); that I told you in the previous post, the mapping isn't that direct?
Hiedra
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: jueves, 24 de junio de 2021 19:58
Para: users@royale.apache.org
Asunto: Re: users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
David thanks for your mail. For this example, I am using vs code with maven to compile the project.
I intend to try out moonshine again. I had an issue with the maven plug in when using moonshine. But I was told it has been fixed with the lastest moonshine update.
I have fixed the mx remote object issue. I can now make calls to blazeds. For typed java ArrayList, I noticed that blazeds returns "mx.collections.ArrayCollection" object in my as3 class. So I have to do a conversion to "org.apache.royale.collections.ArrayList" to use in the jewel datagrid.
Regards,
On Thursday, June 24, 2021, 06:47:57 PM GMT+1,users-digest-help@royale.apache.org <us...@royale.apache.org> wrote:
users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725
Topics (messages 4770 through 4773)
Re: Switching from js remoteObject to mx remoteObject
4770 by: Maria Jose Esteve
4772 by: Maria Jose Esteve
Re: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
4771 by: David Slotemaker de Bruine
Re: users Digest 23 Jun 2021 15:46:41 -0000 Issue 1724
4773 by: romanisitua.yahoo.com
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
¿Cómo estás compilando? Ant, asconfigc, mvn? Te faltará indicar la dependencia a MXRoyale.swc/MXRoyaleJS.swc
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 11:38
Para: users@royale.apache.org
Asunto: Switching from js remoteObject to mx remoteObject
Hi everyone,
I am trying to switch from usingjs:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Forgive me, I did not translate...
“How are you compiling? Ant, asconfigc, mvn? You will be missing the dependency to MXRoyale.swc/MXRoyaleJS.swc”
As David told you in the other post, the first thing you should do is to change to mx.
De: Maria Jose Esteve <mj...@iest.com>
Enviado el: miércoles, 23 de junio de 2021 17:48
Para: users@royale.apache.org
Asunto: RE: Switching from js remoteObject to mx remoteObject
¿Cómo estás compilando? Ant, asconfigc, mvn? Te faltará indicar la dependencia a MXRoyale.swc/MXRoyaleJS.swc
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 11:38
Para: users@royale.apache.org
Asunto: Switching from js remoteObject to mx remoteObject
Hi everyone,
I am trying to switch from usingjs:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Hi Roman,
I use BlazeDS, and I had all sorts of trouble using the js:Remote and the experts recomended I use mx:Remote.
So you need to start there I think. What IDE are you using? I am using Moonshine.
I can send you my config if thats what you are on.
Cheers,
David
On Wed, 23 Jun 2021 at 17:46, Maria Jose Esteve <mj...@iest.com> wrote:
Hi romanisitua,
I have not worked with Blazeds, I have always used FluorineFx withvb.net so I do not know if what I am going to tell you will be useful to you...
- Make sure that event.result returns the ShortType.vlues and StringType.values object, which "I understand you do get them right".
- Check that the type class of each of the rows of "values" is recognized and mapped (If you launch debug, you can set a breakpoint and expand event.result).
- If it has not recognized and mapped the classes.... Verify that they are defined in "com.test.generic.dto.types.*".
- Verify that in App.mxml you have indicated : registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
- Could you send me the code of the callback function?
Verify me these points and we continue with the debugging.
Hiedra.
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 22:50
Para: users@royale.apache.org
Asunto: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing theList<String> andList<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,
--
David Slotemaker de Bruïne
Head of Educational Robotics
Av. Sarriá, 130 - 08017 Barcelona
T. +34 932 523 729 ext. 135
dslotemaker@vicensvives.com
Good Day,
Thanks for your response. I have resolved the issues I was having. I have been able to do test with mx royale remote object. I discovered that I had to use the maven compilation option "option-with-swf". Then added some more dependencies. I looked up the dependencies from the parent module in the Remote AMF example project.
I have noticed that blazeds returns an "mx.collections.ArrayCollection" object for arrayList of custom object or arrayList of String or arrayList of Short server side (java).
As a result, adding the below code
registerClassAlias("flex.messaging.io.ArrayList", ArrayList); //
to give me
org.apache.royale.collections.ArrayList
Does not work. As a result, I have to convert to convert from "mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" to use my records in jewel datagrid.
I don't mind doing the conversion but I am wondering if this is an abnormal situation. Any ideas ?
Also please what is the maven dependency for
import org.apache.royale.net.remoting.amf.AMFBinaryData
AMFBinaryData.DEBUG = true;
The above code does not compile. I had to comment it out.
Regards,
On Thursday, June 24, 2021, 06:45:59 PM GMT+1,romanisitua@yahoo.com <ro...@yahoo.com> wrote:
Good Day,
Thanks for your response. I have resolved the issues I was having. I have been able to do test with mx royale remote object. I discovered that I had to use the maven compilation option "option-with-swf". Then added some more dependencies. I looked up the dependencies from the parent module in the Remote AMF example project.
I have noticed that blazeds returns an "mx.collections.ArrayCollection" object for arrayList of custom object or arrayList of String or arrayList of Short server side (java).
As a result, adding the below code
registerClassAlias("flex.messaging.io.ArrayList", ArrayList); //
to give me
org.apache.royale.collections.ArrayList
Does not work. As a result, I have to convert to convert from "mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" to use my records in jewel datagrid.
I don't mind doing the conversion but I am wondering if this is an abnormal situation. Any ideas ?
Also please what is the maven dependency for
import org.apache.royale.net.remoting.amf.AMFBinaryData
AMFBinaryData.DEBUG = true;
The above code does not compile. I had to comment it out.
Regards,
On Wednesday, June 23, 2021, 04:46:44 PM GMT+1, <us...@royale.apache.org> wrote:
users Digest 23 Jun 2021 15:46:41 -0000 Issue 1724
Topics (messages 4767 through 4769)
Switching from js remoteObject to mx remoteObject
4767 by: romanisitua.yahoo.com
Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
4768 by: romanisitua.yahoo.com
4769 by: Maria Jose Esteve
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail:users@royale.apache.org
To unsubscribe, e-mail:users-digest-unsubscribe@royale.apache.org
For additional commands, e-mail:users-digest-help@royale.apache.org
----------------------------------------------------------------------
Hi everyone,
I am trying to switch from usingjs:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespace
in the relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
<mx:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
It appears the compiler does not recognise the mx:RemoteObject class.
In other words the mx library is not loaded. I have checked my pom.xml to ensure that
the required royale dependencies is loaded.
Any ideas ?
Regards,
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing theList<String> andList<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,
Hi romanisitua,
I have not worked with Blazeds, I have always used FluorineFx with vb.net so I do not know if what I am going to tell you will be useful to you...
- Make sure that event.result returns the ShortType.vlues and StringType.values object, which "I understand you do get them right".
- Check that the type class of each of the rows of "values" is recognized and mapped (If you launch debug, you can set a breakpoint and expand event.result).
- If it has not recognized and mapped the classes.... Verify that they are defined in "com.test.generic.dto.types.*".
- Verify that in App.mxml you have indicated : registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
- Could you send me the code of the callback function?
Verify me these points and we continue with the debugging.
Hiedra.
De:romanisitua@yahoo.com <ro...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 22:50
Para: users@royale.apache.org
Asunto: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
Hi everyone,
I have the following classes server side
public class ShortType
{
private List<Short> values;
// values has getter and setter
}
public class StringType
{
private List<String> values;
// values has getter and setter
}
With their corresponding as3 classes
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.ShortType")]
[Bindable]
public class ShortType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
import org.apache.royale.collections.ArrayList;
[RemoteClass(alias="com.test.generic.dto.types.StringType")]
[Bindable]
public class StringType
{
private var _values:ArrayList;
public function set values(values:ArrayList) : void
{
trace(" --- short values list set --- ");
this._values = values;
}
public function get values():ArrayList
{
return this._values;
}
}
When trying to access the values arrayList in royale the content of the array list is incorrect
for example if a put short values 14, 100 in the arrayList server side, I will get an array list with values (0, 1)
The samething if I put String vales "Mr", "Mrs" in the arrayList server side, I will get an array list with values (0,1)
Clearly blazeds is not serializing theList<String> andList<Short>.
Any ideas ? I am using js:RemoteObject to perform the call.
I tried switching to mx royale but I keep getting compiler errors whenever I reference mx royale classes. I tried to follow the example where mx royale remote object was used in a jewel app but compiler errors keep coming up.
Would appreciate help on this. I am pretty stuck at the moment.
Regards,