Re: FlexJS:Reflection API

2017-02-22 Thread PKumar
As suggested, I am planning to create one class for handling the rgisterClassAlias related code. This class will hold array of VO class & alias name that need to register for AMF de-serialization. I will call registerClassAlias on same array before calling blazeDS call. Regards, Prashant -

Re: FlexJS:Reflection API

2017-02-21 Thread Alex Harui
On 2/21/17, 10:28 AM, "PKumar" wrote: >Thanks for clarification Alex & Greg, > >I have resolve this issue. I have removed the registerClassAlias code from >library and placed it in Main application. > >one question, i want to ask here is, > >is it possible to implement

Re: FlexJS:Reflection API

2017-02-21 Thread PKumar
Thanks for clarification Alex & Greg, I have resolve this issue. I have removed the registerClassAlias code from library and placed it in Main application. one question, i want to ask here is, is it possible to implement "[RemoteClass]" metadata in FlexJS? - Regards, Prashant -- View

Re: FlexJS:Reflection API

2017-02-21 Thread Alex Harui
I agree with Greg. In regular Flex, the [RemoteClass] metadata causes the compiler to call registerClassAlias for you. The FlexJS compilers do not do that, and I would like to avoid that, because it might register classes too early (at startup, instead of just-in-time before deserialization) and

Re: FlexJS:Reflection API

2017-02-21 Thread Alex Harui
Hi Prashant, Try adding -remove-circulars compiler option to JS compile. Thanks, -Alex On 2/20/17, 10:18 AM, "PKumar" wrote: >Alex, > >Please check the attached console output. > >Error.txt > > > >

Re: FlexJS:Reflection API

2017-02-20 Thread Greg Dove
> > Regarding, > registerClassAlias(unTypeObject['_explicitType'], > getClassByAlias(unTypeObject['_explicitType'])) > > - I am getting the data from blazeDs and blazeDS adding the "_explicitType" > to every object. > Great - I assume _explicitType is the alias used to retrieve the class

Re: FlexJS:Reflection API

2017-02-20 Thread PKumar
Greg, Regarding, registerClassAlias(unTypeObject['_explicitType'], getClassByAlias(unTypeObject['_explicitType'])) - I am getting the data from blazeDs and blazeDS adding the "_explicitType" to every object. - I am just picking "_explicitType" and registering that class using

Re: FlexJS:Reflection API

2017-02-19 Thread Greg Dove
registerClassAlias(unTypeObject['_explicitType'], getClassByAlias(unTypeObject['_explicitType'])) Aside from the issue with TypeDefinition being missing, I think the class aliases should be declared explicitly elsewhere. Using registerClassAlias("vopackage.MyVo",vopackage.MyVo); I don't think

Re: FlexJS:Reflection API

2017-02-19 Thread Alex Harui
On 2/19/17, 7:17 AM, "PKumar" wrote: >Do i need to include it explicitly? i am using the flash Builder 4.7 to >develop library project. Hopefully not. It looks like your problem is in building the JS version. Are you using the Launch Configurations to build the JS

Re: FlexJS:Reflection API

2017-02-19 Thread PKumar
Do i need to include it explicitly? i am using the flash Builder 4.7 to develop library project. - Regards, Prashant -- View this message in context: http://apache-flex-users.246.n4.nabble.com/FlexJS-Reflection-API-tp14701p14704.html Sent from the Apache Flex Users mailing list

Re: FlexJS:Reflection API

2017-02-19 Thread Alex Harui
Are you sure the Reflection.swc is in the -library-path? -Alex On 2/19/17, 6:25 AM, "PKumar" wrote: >Hi, > >I am using the "registerClassAlias" in my AMFlibrary,but getting the below >mentioned error on compilation. Also getting the reference error inside

FlexJS:Reflection API

2017-02-19 Thread PKumar
Hi, I am using the "registerClassAlias" in my AMFlibrary,but getting the below mentioned error on compilation. Also getting the reference error inside "registerClassAlias". Please check & suggest.