Re: Work on Emulation
Unfortunately, no. May be I have missed... :( Thank you for the update, I am going to work on. Serkan 26.06.2019 04:23 tarihinde Alex Harui yazdı: I made some changes almost 2 weeks ago. Did you not get a notification from the bug tracker? https://github.com/apache/royale-asjs/issues/419 -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Tuesday, June 25, 2019 at 1:41 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, any progress ? 6.06.2019 11:09 tarihinde Alex Harui yazdı: I’m backlogged on some other stuff. Hope to get to it this week. *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Tuesday, May 28, 2019 at 7:03 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Kindly remind :) 14.05.2019 16:12 tarihinde Serkan Taş yazdı: Hi Alex, I prepared sample project. Please find : https://drive.google.com/open?id=1jc0H1cf-Z2WJjeQy8Cy3rOuphrGjiNoL <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D1jc0H1cf-Z2WJjeQy8Cy3rOuphrGjiNoL=02%7C01%7Caharui%40adobe.com%7Ca9abec2bfccf4e025b5608d6f948e13a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636970488757952217=t0ceXLYe8Pl0nhCfp5l9ChQcYdABNGEVv9T%2BUVafp2Y%3D=0> You have to set to env vars for local to build the project : CLOSURE_HOME ROYALE_DIST_HOME Thanks, Serkan. 10.05.2019 00:53 tarihinde Serkan Taş yazdı: Thanks :) 9.05.2019 19:35 tarihinde Piotr Zarzycki yazdı: Well I explained to you how to check whether they are the latest, so you have your guarantee. :) czw., 9 maj 2019 o 18:34 Serkan Taş mailto:serkan@likyateknoloji.com>> napisał(a): I checked my git repo and it was good but to guarantee i downloaded the latest binaries from the url Piotr sent and tested with the latest binaries rather than the one I build locally and getting the error below. cid:part3.34BD1132.7ABE3721@likyateknoloji.com And the js file : 32: main.mtest.Wrapper.prototype.http_$$www_adobe_com$2008$flex$model$internal__initialize = function() { 33: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 34: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 35: }; May be I am missing something, Thanks, Serkan 8.05.2019 06:19 tarihinde Alex Harui yazdı: Look at the commits and see if the change I made is in the source. Make sure you delete all of your bin/js-debug folders. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Tuesday, May 7, 2019 at 7:48 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, After getting the latest version I am still getting the same error. How can I check that I pulled the version that you have fixed ? Thanks, Serkan 25.04.2019 08:46 tarihinde Alex Harui yazdı: File a bug an attach _Super_UserOps.js and _Super_UserOps.
Re: Work on Emulation
I made some changes almost 2 weeks ago. Did you not get a notification from the bug tracker? https://github.com/apache/royale-asjs/issues/419 -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Tuesday, June 25, 2019 at 1:41 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, any progress ? 6.06.2019 11:09 tarihinde Alex Harui yazdı: I’m backlogged on some other stuff. Hope to get to it this week. From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Tuesday, May 28, 2019 at 7:03 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Kindly remind :) 14.05.2019 16:12 tarihinde Serkan Taş yazdı: Hi Alex, I prepared sample project. Please find : https://drive.google.com/open?id=1jc0H1cf-Z2WJjeQy8Cy3rOuphrGjiNoL<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D1jc0H1cf-Z2WJjeQy8Cy3rOuphrGjiNoL=02%7C01%7Caharui%40adobe.com%7Ca9abec2bfccf4e025b5608d6f948e13a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636970488757952217=t0ceXLYe8Pl0nhCfp5l9ChQcYdABNGEVv9T%2BUVafp2Y%3D=0> You have to set to env vars for local to build the project : CLOSURE_HOME ROYALE_DIST_HOME Thanks, Serkan. 10.05.2019 00:53 tarihinde Serkan Taş yazdı: Thanks :) 9.05.2019 19:35 tarihinde Piotr Zarzycki yazdı: Well I explained to you how to check whether they are the latest, so you have your guarantee. :) czw., 9 maj 2019 o 18:34 Serkan Taş mailto:serkan@likyateknoloji.com>> napisał(a): I checked my git repo and it was good but to guarantee i downloaded the latest binaries from the url Piotr sent and tested with the latest binaries rather than the one I build locally and getting the error below. [cid:part3.34BD1132.7ABE3721@likyateknoloji.com] And the js file : 32: main.mtest.Wrapper.prototype.http_$$www_adobe_com$2008$flex$model$internal__initialize = function() { 33: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 34: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 35: }; May be I am missing something, Thanks, Serkan 8.05.2019 06:19 tarihinde Alex Harui yazdı: Look at the commits and see if the change I made is in the source. Make sure you delete all of your bin/js-debug folders. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Tuesday, May 7, 2019 at 7:48 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, After getting the latest version I am still getting the same error. How can I check that I pulled the version that you have fixed ? Thanks, Serkan 25.04.2019 08:46 tarihinde Alex Harui yazdı: File a bug an attach _Super_UserOps.js and _Super_UserOps.as and UserOps.js and UserOps.as Thanks, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Wednesday, April 24, 2019 at 8:52 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, I am still working on the issue which is related with third party library that we have discussed months ago. I am not sure how to get rid of the error below, may be anyone on the list have an idea. I am getting error below on chrome console: [cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com] Here is the _Super_UserOps.as source piece which couses the error : model_internal::initialize(); converted to _Super_UserOps.js : com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this, 'http://www.adobe.com/2008/flex/model/internal::initialize')(); content of the file model_internal.as<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmodel_internal.as=02%7C01%7Caharui%40adobe.com%7Ca9abec2bfccf4e025b5608d6f948e13a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636970488757952217=rTVhId1det86ZVFpuinnqc4k48GkTRAW%2Fc5ifDDAkmo%3D=0> : package com.adobe.fiber.core { public namespace model_internal = "http://www.adobe.com/2008/flex/model/internal;<http://www.adobe.com/2008/f
Re: Work on Emulation
Kindly remind :) 14.05.2019 16:12 tarihinde Serkan Taş yazdı: Hi Alex, I prepared sample project. Please find : https://drive.google.com/open?id=1jc0H1cf-Z2WJjeQy8Cy3rOuphrGjiNoL You have to set to env vars for local to build the project : CLOSURE_HOME ROYALE_DIST_HOME Thanks, Serkan. 10.05.2019 00:53 tarihinde Serkan Taş yazdı: Thanks :) 9.05.2019 19:35 tarihinde Piotr Zarzycki yazdı: Well I explained to you how to check whether they are the latest, so you have your guarantee. :) czw., 9 maj 2019 o 18:34 Serkan Taş <mailto:serkan@likyateknoloji.com>> napisał(a): I checked my git repo and it was good but to guarantee i downloaded the latest binaries from the url Piotr sent and tested with the latest binaries rather than the one I build locally and getting the error below. And the js file : 32: main.mtest.Wrapper.prototype.http_$$www_adobe_com$2008$flex$model$internal__initialize = function() { 33: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 34: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 35: }; May be I am missing something, Thanks, Serkan 8.05.2019 06:19 tarihinde Alex Harui yazdı: Look at the commits and see if the change I made is in the source. Make sure you delete all of your bin/js-debug folders. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Tuesday, May 7, 2019 at 7:48 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, After getting the latest version I am still getting the same error. How can I check that I pulled the version that you have fixed ? Thanks, Serkan 25.04.2019 08:46 tarihinde Alex Harui yazdı: File a bug an attach _Super_UserOps.js and _Super_UserOps.as and UserOps.js and UserOps.as Thanks, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Wednesday, April 24, 2019 at 8:52 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, I am still working on the issue which is related with third party library that we have discussed months ago. I am not sure how to get rid of the error below, may be anyone on the list have an idea. I am getting error below on chrome console: cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com Here is the _Super_UserOps.as source piece which couses the error : model_internal::initialize(); converted to _Super_UserOps.js : com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this, 'http://www.adobe.com/2008/flex/model/internal::initialize')(); content of the file model_internal.as <http://model_internal.as> : package com.adobe.fiber.core { public namespace model_internal = "http://www.adobe.com/2008/flex/model/internal; <http://www.adobe.com/2008/flex/model/internal>; } Ant the class piece which initialize the fault and and result functions that is the parent class of _Super_UserOps.as : model_internal function initialize() : void { this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents); this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents); } Any help kindly appreciated, Thanks Serkan 13.04.2019 00:34 tarihinde Alex Harui yazdı: Hi Serkan, Does it call the faultHandler instead? If so, there should be an error message in the fault event. What kind of service is UserOps? I would set breakpoints and debug to make sure it actually sent something (and maybe use a network monitor to see what was sent and to where). And then veri
Re: Work on Emulation
Hi Alex, I prepared sample project. Please find : https://drive.google.com/open?id=1jc0H1cf-Z2WJjeQy8Cy3rOuphrGjiNoL You have to set to env vars for local to build the project : CLOSURE_HOME ROYALE_DIST_HOME Thanks, Serkan. 10.05.2019 00:53 tarihinde Serkan Taş yazdı: Thanks :) 9.05.2019 19:35 tarihinde Piotr Zarzycki yazdı: Well I explained to you how to check whether they are the latest, so you have your guarantee. :) czw., 9 maj 2019 o 18:34 Serkan Taş <mailto:serkan@likyateknoloji.com>> napisał(a): I checked my git repo and it was good but to guarantee i downloaded the latest binaries from the url Piotr sent and tested with the latest binaries rather than the one I build locally and getting the error below. And the js file : 32: main.mtest.Wrapper.prototype.http_$$www_adobe_com$2008$flex$model$internal__initialize = function() { 33: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 34: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 35: }; May be I am missing something, Thanks, Serkan 8.05.2019 06:19 tarihinde Alex Harui yazdı: Look at the commits and see if the change I made is in the source. Make sure you delete all of your bin/js-debug folders. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Tuesday, May 7, 2019 at 7:48 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, After getting the latest version I am still getting the same error. How can I check that I pulled the version that you have fixed ? Thanks, Serkan 25.04.2019 08:46 tarihinde Alex Harui yazdı: File a bug an attach _Super_UserOps.js and _Super_UserOps.as and UserOps.js and UserOps.as Thanks, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Wednesday, April 24, 2019 at 8:52 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, I am still working on the issue which is related with third party library that we have discussed months ago. I am not sure how to get rid of the error below, may be anyone on the list have an idea. I am getting error below on chrome console: cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com Here is the _Super_UserOps.as source piece which couses the error : model_internal::initialize(); converted to _Super_UserOps.js : com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this, 'http://www.adobe.com/2008/flex/model/internal::initialize')(); content of the file model_internal.as <http://model_internal.as> : package com.adobe.fiber.core { public namespace model_internal = "http://www.adobe.com/2008/flex/model/internal; <http://www.adobe.com/2008/flex/model/internal>; } Ant the class piece which initialize the fault and and result functions that is the parent class of _Super_UserOps.as : model_internal function initialize() : void { this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents); this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents); } Any help kindly appreciated, Thanks Serkan 13.04.2019 00:34 tarihinde Alex Harui yazdı: Hi Serkan, Does it call the faultHandler instead? If so, there should be an error message in the fault event. What kind of service is UserOps? I would set breakpoints and debug to make sure it actually sent something (and maybe use a network monitor to see what was sent and to where). And then verify that the code that finally sends (maybe via XmlHTTPRequest) also set
Re: Work on Emulation
Thanks :) 9.05.2019 19:35 tarihinde Piotr Zarzycki yazdı: Well I explained to you how to check whether they are the latest, so you have your guarantee. :) czw., 9 maj 2019 o 18:34 Serkan Taş <mailto:serkan@likyateknoloji.com>> napisał(a): I checked my git repo and it was good but to guarantee i downloaded the latest binaries from the url Piotr sent and tested with the latest binaries rather than the one I build locally and getting the error below. And the js file : 32: main.mtest.Wrapper.prototype.http_$$www_adobe_com$2008$flex$model$internal__initialize = function() { 33: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 34: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 35: }; May be I am missing something, Thanks, Serkan 8.05.2019 06:19 tarihinde Alex Harui yazdı: Look at the commits and see if the change I made is in the source. Make sure you delete all of your bin/js-debug folders. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Tuesday, May 7, 2019 at 7:48 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, After getting the latest version I am still getting the same error. How can I check that I pulled the version that you have fixed ? Thanks, Serkan 25.04.2019 08:46 tarihinde Alex Harui yazdı: File a bug an attach _Super_UserOps.js and _Super_UserOps.as and UserOps.js and UserOps.as Thanks, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Wednesday, April 24, 2019 at 8:52 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, I am still working on the issue which is related with third party library that we have discussed months ago. I am not sure how to get rid of the error below, may be anyone on the list have an idea. I am getting error below on chrome console: cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com Here is the _Super_UserOps.as source piece which couses the error : model_internal::initialize(); converted to _Super_UserOps.js : com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this, 'http://www.adobe.com/2008/flex/model/internal::initialize')(); content of the file model_internal.as <http://model_internal.as> : package com.adobe.fiber.core { public namespace model_internal = "http://www.adobe.com/2008/flex/model/internal; <http://www.adobe.com/2008/flex/model/internal>; } Ant the class piece which initialize the fault and and result functions that is the parent class of _Super_UserOps.as : model_internal function initialize() : void { this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents); this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents); } Any help kindly appreciated, Thanks Serkan 13.04.2019 00:34 tarihinde Alex Harui yazdı: Hi Serkan, Does it call the faultHandler instead? If so, there should be an error message in the fault event. What kind of service is UserOps? I would set breakpoints and debug to make sure it actually sent something (and maybe use a network monitor to see what was sent and to where). And then verify that the code that finally sends (maybe via XmlHTTPRequest) also set up listeners for events and set breakpoints on those low-level event handlers. You can also use the network monitor against the Flex app and compare what is being sent to what Royale is sending. HTH,
Re: Work on Emulation
Well I explained to you how to check whether they are the latest, so you have your guarantee. :) czw., 9 maj 2019 o 18:34 Serkan Taş napisał(a): > > I checked my git repo and it was good but to guarantee i downloaded the > latest binaries from the url Piotr sent and tested with the latest binaries > rather than the one I build locally and getting the error below. > > > > And the js file : > > > 32: > main.mtest.Wrapper.prototype.http_$$www_adobe_com$2008$flex$model$internal__initialize > = function() { > 33: > main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, > this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); > 34: > main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, > this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); > 35: }; > > May be I am missing something, > > Thanks, > Serkan > > 8.05.2019 06:19 tarihinde Alex Harui yazdı: > > Look at the commits and see if the change I made is in the source. > > > > Make sure you delete all of your bin/js-debug folders. > > > > HTH, > > -Alex > > > > *From: *Serkan Taş > > *Reply-To: *"users@royale.apache.org" > > *Date: *Tuesday, May 7, 2019 at 7:48 AM > *To: *"users@royale.apache.org" > > *Subject: *Re: Work on Emulation > > > > Hi Alex, > > After getting the latest version I am still getting the same error. How > can I check that I pulled the version that you have fixed ? > > Thanks, > Serkan > > 25.04.2019 08:46 tarihinde Alex Harui yazdı: > > File a bug an attach _Super_UserOps.js and _Super_UserOps.as and > UserOps.js and UserOps.as > > > > Thanks, > > -Alex > > > > *From: *Serkan Taş > > *Reply-To: *"users@royale.apache.org" > > *Date: *Wednesday, April 24, 2019 at 8:52 PM > *To: *"users@royale.apache.org" > > *Subject: *Re: Work on Emulation > > > > Hi Alex, > > I am still working on the issue which is related with third party library > that we have discussed months ago. > > I am not sure how to get rid of the error below, may be anyone on the list > have an idea. > > I am getting error below on chrome console: > > [image: cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com] > > Here is the _Super_UserOps.as source piece which couses the error : > > model_internal::initialize(); > > converted to _Super_UserOps.js : > > com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, > this, 'http://www.adobe.com/2008/flex/model/internal::initialize')(); > > > content of the file model_internal.as : > > package com.adobe.fiber.core > { >public namespace model_internal = > "http://www.adobe.com/2008/flex/model/internal; > <http://www.adobe.com/2008/flex/model/internal>; > } > > > Ant the class piece which initialize the fault and and result functions > that is the parent class of _Super_UserOps.as : > > model_internal function initialize() : void > { > > this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents); > > this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents); > } > > Any help kindly appreciated, > Thanks > Serkan > > 13.04.2019 00:34 tarihinde Alex Harui yazdı: > > Hi Serkan, > > > > Does it call the faultHandler instead? If so, there should be an error > message in the fault event. > > > > What kind of service is UserOps? I would set breakpoints and debug to make > sure it actually sent something (and maybe use a network monitor to see what > was sent and to where). And then verify that the code that finally sends > (maybe via XmlHTTPRequest) also set up listeners for events and set > breakpoints on those low-level event handlers. > > > > You can also use the network monitor against the Flex app and compare what is > being sent to what Royale is sending. > > > > HTH, > > -Alex > > > > On 4/12/19, 2:25 PM, "Serkan Taş" > wrote: > > > > Hi Alex, > > > > I have service call in my project. > > > > > result="userOpsService_resultHandler(event)" > > fault="userOpsService_faultHandler(event)" /> > > > > Normally, I expect to call the result method > > userOpsService_resultHandler for successfull operations, but it does not. > > > > Which way I should go through to find out what is going on after calling > > the service ? > > > > Thanks, > > Serkan > > > > > > > > > > > > -- Piotr Zarzycki Patreon: *https://www.patreon.com/piotrzarzycki <https://www.patreon.com/piotrzarzycki>*
Re: Work on Emulation
I checked my git repo and it was good but to guarantee i downloaded the latest binaries from the url Piotr sent and tested with the latest binaries rather than the one I build locally and getting the error below. And the js file : 32: main.mtest.Wrapper.prototype.http_$$www_adobe_com$2008$flex$model$internal__initialize = function() { 33: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 34: main.mtest.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__propagateEvents, this, 'http://www.adobe.com/2008/flex/model/internal::propagateEvents'); 35: }; May be I am missing something, Thanks, Serkan 8.05.2019 06:19 tarihinde Alex Harui yazdı: Look at the commits and see if the change I made is in the source. Make sure you delete all of your bin/js-debug folders. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Tuesday, May 7, 2019 at 7:48 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, After getting the latest version I am still getting the same error. How can I check that I pulled the version that you have fixed ? Thanks, Serkan 25.04.2019 08:46 tarihinde Alex Harui yazdı: File a bug an attach _Super_UserOps.js and _Super_UserOps.as and UserOps.js and UserOps.as Thanks, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Wednesday, April 24, 2019 at 8:52 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, I am still working on the issue which is related with third party library that we have discussed months ago. I am not sure how to get rid of the error below, may be anyone on the list have an idea. I am getting error below on chrome console: cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com Here is the _Super_UserOps.as source piece which couses the error : model_internal::initialize(); converted to _Super_UserOps.js : com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this, 'http://www.adobe.com/2008/flex/model/internal::initialize')(); content of the file model_internal.as : package com.adobe.fiber.core { public namespace model_internal = "http://www.adobe.com/2008/flex/model/internal; <http://www.adobe.com/2008/flex/model/internal>; } Ant the class piece which initialize the fault and and result functions that is the parent class of _Super_UserOps.as : model_internal function initialize() : void { this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents); this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents); } Any help kindly appreciated, Thanks Serkan 13.04.2019 00:34 tarihinde Alex Harui yazdı: Hi Serkan, Does it call the faultHandler instead? If so, there should be an error message in the fault event. What kind of service is UserOps? I would set breakpoints and debug to make sure it actually sent something (and maybe use a network monitor to see what was sent and to where). And then verify that the code that finally sends (maybe via XmlHTTPRequest) also set up listeners for events and set breakpoints on those low-level event handlers. You can also use the network monitor against the Flex app and compare what is being sent to what Royale is sending. HTH, -Alex On 4/12/19, 2:25 PM, "Serkan Taş" <mailto:serkan@likyateknoloji.com> wrote: Hi Alex, I have service call in my project. Normally, I expect to call the result method userOpsService_resultHandler for successfull operations, but it does not. Which way I should go through to find out what is going on after calling the service ? Thanks, Serkan
Re: Work on Emulation
Hi Alex, I prepared a simple test case and created a bug with the url attached containing the related files. https://github.com/apache/royale-asjs/issues/419 Thanks, Serkan Alıntı Alex Harui : File a bug an attach _Super_UserOps.js and _Super_UserOps.as and UserOps.js and UserOps.as Thanks, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Wednesday, April 24, 2019 at 8:52 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, I am still working on the issue which is related with third party library that we have discussed months ago. I am not sure how to get rid of the error below, may be anyone on the list have an idea. I am getting error below on chrome console: [cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com] Here is the _Super_UserOps.as source piece which couses the error : model_internal::initialize(); converted to _Super_UserOps.js : com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this, 'http://www.adobe.com/2008/flex/model/internal::initialize')(); content of the file model_internal.as : package com.adobe.fiber.core { public namespace model_internal = "http://www.adobe.com/2008/flex/model/internal;<http://www.adobe.com/2008/flex/model/internal>; } Ant the class piece which initialize the fault and and result functions that is the parent class of _Super_UserOps.as : model_internal function initialize() : void { this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents); this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents); } Any help kindly appreciated, Thanks Serkan 13.04.2019 00:34 tarihinde Alex Harui yazdı: Hi Serkan, Does it call the faultHandler instead? If so, there should be an error message in the fault event. What kind of service is UserOps? I would set breakpoints and debug to make sure it actually sent something (and maybe use a network monitor to see what was sent and to where). And then verify that the code that finally sends (maybe via XmlHTTPRequest) also set up listeners for events and set breakpoints on those low-level event handlers. You can also use the network monitor against the Flex app and compare what is being sent to what Royale is sending. HTH, -Alex On 4/12/19, 2:25 PM, "Serkan Taş" <mailto:serkan@likyateknoloji.com> wrote: Hi Alex, I have service call in my project. Normally, I expect to call the result method userOpsService_resultHandler for successfull operations, but it does not. Which way I should go through to find out what is going on after calling the service ? Thanks, Serkan -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. www.likyateknoloji.com -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. --
Re: Work on Emulation
My AS knowledge is not so deep but I am going to try to find out a way. Thanks Alex, Serkan 26.04.2019 08:49 tarihinde Alex Harui yazdı: It is very difficult to tell from code in an email, but it looks like the compiler is not generating the right code for model_internal functions, so try using public or protected functions for now. -Alex On 4/24/19, 11:07 PM, "serkan@likyateknoloji.com" wrote: Thanks Alex, I am goint to file the bug after work. Can you suggest a workaround until the bug fixed ? Alıntı Alex Harui : > File a bug an attach _Super_UserOps.js and _Super_UserOps.as and > UserOps.js and UserOps.as > > Thanks, > -Alex > > From: Serkan Taş > Reply-To: "users@royale.apache.org" > Date: Wednesday, April 24, 2019 at 8:52 PM > To: "users@royale.apache.org" > Subject: Re: Work on Emulation > > Hi Alex, > > I am still working on the issue which is related with third party > library that we have discussed months ago. > > I am not sure how to get rid of the error below, may be anyone on > the list have an idea. > > I am getting error below on chrome console: > > [cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com] > > Here is the _Super_UserOps.as source piece which couses the error : > > model_internal::initialize(); > > converted to _Super_UserOps.js : > > com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this, > 'http://www.adobe.com/2008/flex/model/internal::initialize')(); > > > content of the file model_internal.as : > > package com.adobe.fiber.core > { >public namespace model_internal = > "http://www.adobe.com/2008/flex/model/internal;<http://www.adobe.com/2008/flex/model/internal>; > } > > > Ant the class piece which initialize the fault and and result > functions that is the parent class of _Super_UserOps.as : > > model_internal function initialize() : void > { > > this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents); > > this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents); > } > > Any help kindly appreciated, > Thanks > Serkan > 13.04.2019 00:34 tarihinde Alex Harui yazdı: > > Hi Serkan, > > > > Does it call the faultHandler instead? If so, there should be an > error message in the fault event. > > > > What kind of service is UserOps? I would set breakpoints and debug > to make sure it actually sent something (and maybe use a network > monitor to see what was sent and to where). And then verify that > the code that finally sends (maybe via XmlHTTPRequest) also set up > listeners for events and set breakpoints on those low-level event > handlers. > > > > You can also use the network monitor against the Flex app and > compare what is being sent to what Royale is sending. > > > > HTH, > > -Alex > > > > On 4/12/19, 2:25 PM, "Serkan Taş" > <mailto:serkan@likyateknoloji.com> > wrote: > > > > Hi Alex, > > > > I have service call in my project. > > > > > result="userOpsService_resultHandler(event)" > > fault="userOpsService_faultHandler(event)" /> > > > > Normally, I expect to call the result method > > userOpsService_resultHandler for successfull operations, but it does not. > > > > Which way I should go through to find out what is going on after calling > > the service ? > > > > Thanks, > > Serkan -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. https://nam04.safelinks.protection.outlook.com/?url=www.likyateknoloji.comdata=02%7C01%7Caharui%40adobe.com%7C170e06a32d7f427c6fe608d6c944599e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636917692765052576sdata=By2mOwwBUJ41ItMXHO5UqWs4%2FqCp5c4v%2Bgwc4Bk%2BnP4%3Dreserved=0 -- B
Re: Work on Emulation
It is very difficult to tell from code in an email, but it looks like the compiler is not generating the right code for model_internal functions, so try using public or protected functions for now. -Alex On 4/24/19, 11:07 PM, "serkan@likyateknoloji.com" wrote: Thanks Alex, I am goint to file the bug after work. Can you suggest a workaround until the bug fixed ? Alıntı Alex Harui : > File a bug an attach _Super_UserOps.js and _Super_UserOps.as and > UserOps.js and UserOps.as > > Thanks, > -Alex > > From: Serkan Taş > Reply-To: "users@royale.apache.org" > Date: Wednesday, April 24, 2019 at 8:52 PM > To: "users@royale.apache.org" > Subject: Re: Work on Emulation > > Hi Alex, > > I am still working on the issue which is related with third party > library that we have discussed months ago. > > I am not sure how to get rid of the error below, may be anyone on > the list have an idea. > > I am getting error below on chrome console: > > [cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com] > > Here is the _Super_UserOps.as source piece which couses the error : > > model_internal::initialize(); > > converted to _Super_UserOps.js : > > com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this, > 'http://www.adobe.com/2008/flex/model/internal::initialize')(); > > > content of the file model_internal.as : > > package com.adobe.fiber.core > { >public namespace model_internal = > "http://www.adobe.com/2008/flex/model/internal;<http://www.adobe.com/2008/flex/model/internal>; > } > > > Ant the class piece which initialize the fault and and result > functions that is the parent class of _Super_UserOps.as : > > model_internal function initialize() : void > { > > this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents); > > this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents); > } > > Any help kindly appreciated, > Thanks > Serkan > 13.04.2019 00:34 tarihinde Alex Harui yazdı: > > Hi Serkan, > > > > Does it call the faultHandler instead? If so, there should be an > error message in the fault event. > > > > What kind of service is UserOps? I would set breakpoints and debug > to make sure it actually sent something (and maybe use a network > monitor to see what was sent and to where). And then verify that > the code that finally sends (maybe via XmlHTTPRequest) also set up > listeners for events and set breakpoints on those low-level event > handlers. > > > > You can also use the network monitor against the Flex app and > compare what is being sent to what Royale is sending. > > > > HTH, > > -Alex > > > > On 4/12/19, 2:25 PM, "Serkan Taş" > <mailto:serkan@likyateknoloji.com> > wrote: > > > > Hi Alex, > > > > I have service call in my project. > > > > > result="userOpsService_resultHandler(event)" > > fault="userOpsService_faultHandler(event)" /> > > > > Normally, I expect to call the result method > > userOpsService_resultHandler for successfull operations, but it does not. > > > > Which way I should go through to find out what is going on after calling > > the service ? > > > > Thanks, > > Serkan -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. https://nam04.safelinks.protection.outlook.com/?url=www.likyateknoloji.comdata=02%7C01%7Caharui%40adobe.com%7C170e06a32d7f427c6fe608d6c944599e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636917692765052576sdata=By2mOwwBUJ41ItMXHO5UqWs4%2FqCp5c4v%2Bgwc4Bk%2BnP4%3Dreserved=0 -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açık
Re: Work on Emulation
Thanks Alex, I am goint to file the bug after work. Can you suggest a workaround until the bug fixed ? Alıntı Alex Harui : File a bug an attach _Super_UserOps.js and _Super_UserOps.as and UserOps.js and UserOps.as Thanks, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Wednesday, April 24, 2019 at 8:52 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, I am still working on the issue which is related with third party library that we have discussed months ago. I am not sure how to get rid of the error below, may be anyone on the list have an idea. I am getting error below on chrome console: [cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com] Here is the _Super_UserOps.as source piece which couses the error : model_internal::initialize(); converted to _Super_UserOps.js : com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this, 'http://www.adobe.com/2008/flex/model/internal::initialize')(); content of the file model_internal.as : package com.adobe.fiber.core { public namespace model_internal = "http://www.adobe.com/2008/flex/model/internal;<http://www.adobe.com/2008/flex/model/internal>; } Ant the class piece which initialize the fault and and result functions that is the parent class of _Super_UserOps.as : model_internal function initialize() : void { this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents); this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents); } Any help kindly appreciated, Thanks Serkan 13.04.2019 00:34 tarihinde Alex Harui yazdı: Hi Serkan, Does it call the faultHandler instead? If so, there should be an error message in the fault event. What kind of service is UserOps? I would set breakpoints and debug to make sure it actually sent something (and maybe use a network monitor to see what was sent and to where). And then verify that the code that finally sends (maybe via XmlHTTPRequest) also set up listeners for events and set breakpoints on those low-level event handlers. You can also use the network monitor against the Flex app and compare what is being sent to what Royale is sending. HTH, -Alex On 4/12/19, 2:25 PM, "Serkan Taş" <mailto:serkan@likyateknoloji.com> wrote: Hi Alex, I have service call in my project. Normally, I expect to call the result method userOpsService_resultHandler for successfull operations, but it does not. Which way I should go through to find out what is going on after calling the service ? Thanks, Serkan -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. www.likyateknoloji.com -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. --
Re: Work on Emulation
File a bug an attach _Super_UserOps.js and _Super_UserOps.as and UserOps.js and UserOps.as Thanks, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Wednesday, April 24, 2019 at 8:52 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, I am still working on the issue which is related with third party library that we have discussed months ago. I am not sure how to get rid of the error below, may be anyone on the list have an idea. I am getting error below on chrome console: [cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com] Here is the _Super_UserOps.as source piece which couses the error : model_internal::initialize(); converted to _Super_UserOps.js : com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this, 'http://www.adobe.com/2008/flex/model/internal::initialize')(); content of the file model_internal.as : package com.adobe.fiber.core { public namespace model_internal = "http://www.adobe.com/2008/flex/model/internal;<http://www.adobe.com/2008/flex/model/internal>; } Ant the class piece which initialize the fault and and result functions that is the parent class of _Super_UserOps.as : model_internal function initialize() : void { this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents); this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents); } Any help kindly appreciated, Thanks Serkan 13.04.2019 00:34 tarihinde Alex Harui yazdı: Hi Serkan, Does it call the faultHandler instead? If so, there should be an error message in the fault event. What kind of service is UserOps? I would set breakpoints and debug to make sure it actually sent something (and maybe use a network monitor to see what was sent and to where). And then verify that the code that finally sends (maybe via XmlHTTPRequest) also set up listeners for events and set breakpoints on those low-level event handlers. You can also use the network monitor against the Flex app and compare what is being sent to what Royale is sending. HTH, -Alex On 4/12/19, 2:25 PM, "Serkan Taş" <mailto:serkan@likyateknoloji.com> wrote: Hi Alex, I have service call in my project. Normally, I expect to call the result method userOpsService_resultHandler for successfull operations, but it does not. Which way I should go through to find out what is going on after calling the service ? Thanks, Serkan
Re: Work on Emulation
Hi Alex, I am still working on the issue which is related with third party library that we have discussed months ago. I am not sure how to get rid of the error below, may be anyone on the list have an idea. I am getting error below on chrome console: Here is the _Super_UserOps.as source piece which couses the error : model_internal::initialize(); converted to _Super_UserOps.js : com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this, 'http://www.adobe.com/2008/flex/model/internal::initialize')(); content of the file model_internal.as : package com.adobe.fiber.core { public namespace model_internal = "http://www.adobe.com/2008/flex/model/internal;; } Ant the class piece which initialize the fault and and result functions that is the parent class of _Super_UserOps.as : model_internal function initialize() : void { this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents); this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents); } Any help kindly appreciated, Thanks Serkan 13.04.2019 00:34 tarihinde Alex Harui yazdı: Hi Serkan, Does it call the faultHandler instead? If so, there should be an error message in the fault event. What kind of service is UserOps? I would set breakpoints and debug to make sure it actually sent something (and maybe use a network monitor to see what was sent and to where). And then verify that the code that finally sends (maybe via XmlHTTPRequest) also set up listeners for events and set breakpoints on those low-level event handlers. You can also use the network monitor against the Flex app and compare what is being sent to what Royale is sending. HTH, -Alex On 4/12/19, 2:25 PM, "Serkan Taş" wrote: Hi Alex, I have service call in my project. result="userOpsService_resultHandler(event)" fault="userOpsService_faultHandler(event)" /> Normally, I expect to call the result method userOpsService_resultHandler for successfull operations, but it does not. Which way I should go through to find out what is going on after calling the service ? Thanks, Serkan
Re: Work on Emulation
Hi Serkan, Does it call the faultHandler instead? If so, there should be an error message in the fault event. What kind of service is UserOps? I would set breakpoints and debug to make sure it actually sent something (and maybe use a network monitor to see what was sent and to where). And then verify that the code that finally sends (maybe via XmlHTTPRequest) also set up listeners for events and set breakpoints on those low-level event handlers. You can also use the network monitor against the Flex app and compare what is being sent to what Royale is sending. HTH, -Alex On 4/12/19, 2:25 PM, "Serkan Taş" wrote: Hi Alex, I have service call in my project. Normally, I expect to call the result method userOpsService_resultHandler for successfull operations, but it does not. Which way I should go through to find out what is going on after calling the service ? Thanks, Serkan
Re: Work on Emulation
Hi Alex, I have service call in my project. result="userOpsService_resultHandler(event)" fault="userOpsService_faultHandler(event)" /> Normally, I expect to call the result method userOpsService_resultHandler for successfull operations, but it does not. Which way I should go through to find out what is going on after calling the service ? Thanks, Serkan
Re: Work on Emulation
Hi Alex, I really do not remember why I added "as Array" to at the end for royale version of my source. I removed it and the evaluation is correct as flex version. Sorry for taking your time. Thanks, Serkan 12.04.2019 20:19 tarihinde Serkan Taş yazdı: Sorry Alex, you are right, i am going to check it send you the right one. Thanks Serkan Android için Outlook <https://aka.ms/ghei36>'u edinin Kimden: Alex Harui Gönderildi: 12 Nisan Cuma 19:29 Konu: Re: Work on Emulation Kime: users@royale.apache.org In your earlier email, you showed source code like this: service.headers = {Authorization:”Basic “ + encoder.toString()} as Array; Now you are saying the source code is: service.headers = {Authorization:”Basic “ + encoder.toString()} Certainly the first one with “as Array” would result in a call to Language.as and return null since the expression is a Object and not an Array. The second one should not result in a call to Language.as. Please verify that you have updated the .JS files and the debugger is using those files. Then try single-stepping to see when various expressions return null, or use the console to evaluate expressions, or break up that line of code into sub-expressions to see which one is null, such as: var foo:String = “Basic”: var bar:String = encoder.toString(); var baz:Object = {}; baz.Authorization = bar; service.headers = baz; HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Friday, April 12, 2019 at 1:58 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation It is not string or Array, but "Object" Here is the code piece in source "as" file : //-- // headers //-- private var _headers:Object = {}; [Inspectable(defaultValue="undefined", category="General")] /** * Custom HTTP headers to be sent to the third party endpoint. If multiple headers need to * be sent with the same name the value should be specified as an Array. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 */ public function get headers():Object { return _headers; } public function set headers(value:Object):void { _headers = value; } In flex version debug view, it is evaluated as below : cid:part1.80D078F9.B108FF77@likyateknoloji.com Thanks, Serkan 12.04.2019 06:16 tarihinde Alex Harui yazdı: It looks like a String is passed in to see if it an Array. Should service.headers be an array or string? -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Wednesday, April 10, 2019 at 5:41 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Alex, thank you for PR-406. Regarding our last conversation about the Basic Authentication, do you have an idea why the evaluation is null ? cid:part1.38E9F6E2.6D6FE83E@likyateknoloji.com Here is the piece in ActionScript : service.headers = {Authorization:"Basic " + encoder.toString()} as Array; Thanks in advance, Serkan
Re: Work on Emulation
Sorry Alex, you are right, i am going to check it send you the right one. Thanks Serkan Android için Outlook'u edinin Kimden: Alex Harui Gönderildi: 12 Nisan Cuma 19:29 Konu: Re: Work on Emulation Kime: users@royale.apache.org In your earlier email, you showed source code like this: service.headers = {Authorization:”Basic “ + encoder.toString()} as Array; Now you are saying the source code is: service.headers = {Authorization:”Basic “ + encoder.toString()} Certainly the first one with “as Array” would result in a call to Language.as and return null since the expression is a Object and not an Array. The second one should not result in a call to Language.as. Please verify that you have updated the .JS files and the debugger is using those files. Then try single-stepping to see when various expressions return null, or use the console to evaluate expressions, or break up that line of code into sub-expressions to see which one is null, such as: var foo:String = “Basic”: var bar:String = encoder.toString(); var baz:Object = {}; baz.Authorization = bar; service.headers = baz; HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Friday, April 12, 2019 at 1:58 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation It is not string or Array, but "Object" Here is the code piece in source "as" file : //-- // headers //-- private var _headers:Object = {}; [Inspectable(defaultValue="undefined", category="General")] /** * Custom HTTP headers to be sent to the third party endpoint. If multiple headers need to * be sent with the same name the value should be specified as an Array. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 */ public function get headers():Object { return _headers; } public function set headers(value:Object):void { _headers = value; } In flex version debug view, it is evaluated as below : Thanks, Serkan 12.04.2019 06:16 tarihinde Alex Harui yazdı: It looks like a String is passed in to see if it an Array. Should service.headers be an array or string? -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Wednesday, April 10, 2019 at 5:41 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Alex, thank you for PR-406. Regarding our last conversation about the Basic Authentication, do you have an idea why the evaluation is null ? Here is the piece in ActionScript : service.headers = {Authorization:"Basic " + encoder.toString()} as Array; Thanks in advance, Serkan
Re: Work on Emulation
In your earlier email, you showed source code like this: service.headers = {Authorization:”Basic “ + encoder.toString()} as Array; Now you are saying the source code is: service.headers = {Authorization:”Basic “ + encoder.toString()} Certainly the first one with “as Array” would result in a call to Language.as and return null since the expression is a Object and not an Array. The second one should not result in a call to Language.as. Please verify that you have updated the .JS files and the debugger is using those files. Then try single-stepping to see when various expressions return null, or use the console to evaluate expressions, or break up that line of code into sub-expressions to see which one is null, such as: var foo:String = “Basic”: var bar:String = encoder.toString(); var baz:Object = {}; baz.Authorization = bar; service.headers = baz; HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Friday, April 12, 2019 at 1:58 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation It is not string or Array, but "Object" Here is the code piece in source "as" file : //-- // headers //-- private var _headers:Object = {}; [Inspectable(defaultValue="undefined", category="General")] /** * Custom HTTP headers to be sent to the third party endpoint. If multiple headers need to * be sent with the same name the value should be specified as an Array. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 */ public function get headers():Object { return _headers; } public function set headers(value:Object):void { _headers = value; } In flex version debug view, it is evaluated as below : [cid:part1.80D078F9.B108FF77@likyateknoloji.com] Thanks, Serkan 12.04.2019 06:16 tarihinde Alex Harui yazdı: It looks like a String is passed in to see if it an Array. Should service.headers be an array or string? -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Wednesday, April 10, 2019 at 5:41 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Alex, thank you for PR-406. Regarding our last conversation about the Basic Authentication, do you have an idea why the evaluation is null ? [cid:part1.38E9F6E2.6D6FE83E@likyateknoloji.com] Here is the piece in ActionScript : service.headers = {Authorization:"Basic " + encoder.toString()} as Array; Thanks in advance, Serkan
Re: Work on Emulation
It is not string or Array, but "Object" Here is the code piece in source "as" file : //-- // headers //-- private var _headers:Object = {}; [Inspectable(defaultValue="undefined", category="General")] /** * Custom HTTP headers to be sent to the third party endpoint. If multiple headers need to * be sent with the same name the value should be specified as an Array. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 */ public function get headers():Object { return _headers; } public function set headers(value:Object):void { _headers = value; } In flex version debug view, it is evaluated as below : Thanks, Serkan 12.04.2019 06:16 tarihinde Alex Harui yazdı: It looks like a String is passed in to see if it an Array. Should service.headers be an array or string? -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Wednesday, April 10, 2019 at 5:41 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Alex, thank you for PR-406. Regarding our last conversation about the Basic Authentication, do you have an idea why the evaluation is null ? cid:part1.38E9F6E2.6D6FE83E@likyateknoloji.com Here is the piece in ActionScript : service.headers = {Authorization:"Basic " + encoder.toString()} as Array; Thanks in advance, Serkan
Re: Work on Emulation
It looks like a String is passed in to see if it an Array. Should service.headers be an array or string? -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Wednesday, April 10, 2019 at 5:41 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Alex, thank you for PR-406. Regarding our last conversation about the Basic Authentication, do you have an idea why the evaluation is null ? [cid:part1.38E9F6E2.6D6FE83E@likyateknoloji.com] Here is the piece in ActionScript : service.headers = {Authorization:"Basic " + encoder.toString()} as Array; Thanks in advance, Serkan
Re: Work on Emulation
Reminder. 10.04.2019 15:41 tarihinde Serkan Taş yazdı: Alex, thank you for PR-406. Regarding our last conversation about the Basic Authentication, do you have an idea why the evaluation is null ? Here is the piece in ActionScript : service.headers = {Authorization:"Basic " + encoder.toString()} as Array; Thanks in advance, Serkan
Re: Work on Emulation
Alex, thank you for PR-406. Regarding our last conversation about the Basic Authentication, do you have an idea why the evaluation is null ? Here is the piece in ActionScript : service.headers = {Authorization:"Basic " + encoder.toString()} as Array; Thanks in advance, Serkan
Re: Work on Emulation
Hi Alex, May you please check pr-406 when you have time ? Thanks, Serkan https://github.com/apache/royale-asjs/pull/406 17.03.2019 10:36 tarihinde Serkan Taş yazdı: Thank you Alex, As my application has complex authentication flow, I am going to work on a simple test case to check if royale currently is capable of the feature as is. Serkan 17.03.2019 10:11 tarihinde Alex Harui yazdı: Hi Serkan, There are things that Flash could do in the browser that are difficult or impractical to do without Flash. That’s one reason Royale does not promise 100% compatibility with Flex. I have not worked with Basic Auth, so I don’t know if it is one of them. A quick internet search implies that there are some ways to get around it, especially if you have control over the server response. See: https://stackoverflow.com/questions/86105/how-can-i-suppress-the-browsers-authentication-dialog HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Saturday, March 16, 2019 at 10:48 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, I am going to prepare a PR for the issue including both URLLoader override and the emulation AbstractOperation.sendBody fix. I going in to another big issue. Before getting deep I would like to discuss it with you. I my application I am using Http Basic Authentication. If you use Basic Authentication(BA), browser requests username and password with a native browser windows. Although I have login window and get the username and password (u/p) via login window, browser asks when you click the button on the login window. To prevent the browser to request the u/p until logged out from the application, I developed some functions sending the u/p through http requests authentication headers, and embed the u/p to request and send the info on every call to the server side. It is live and working for the flex version. I did not completely tested and debugged it yet but before getting in, I want to ask, is there any possibility for Royale to not support this kind of approach ? For my first attempts, I have some doubts that the same approach will not work. Thanks, Serkan 17.03.2019 03:35 tarihinde Alex Harui yazdı: Hi Serkan, OK, sound like you found the right fix. Thanks, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Friday, March 15, 2019 at 11:58 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Alex, In flex, it goes through the first case in if statement, not the second one : (The flex version send body method is attached) The parameters variable comes as string to the method. Current sendBody assumes that the "parameters" is always XML. But if we check if it is as string than the enters the first case. (emulation of sendBody is attached) if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } Thanks, Serkan 16.03.2019 09:40 tarihinde Alex Harui yazdı: Hi Serkan, That doesn’t make sense to me. Is the same code (before your proposed changes) in the Flex version of AbstractOperation? If so, then how does parameters.toXMLString() not throw an exception in Flex? -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Friday, March 15, 2019 at 11:28 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, I checked the flow in debug and can say that there is no conversion for XML, it is just string and I guess we have to check it and than use it as string. If change the AbstractOperation.sendBody as below : if (ctype == CONTENT_TYPE_XML) { if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } then in js debug : cid:part1.DBF1439D.1E2291C8@likyateknoloji.com can see that is passes.
Re: Work on Emulation
Hi Serkan, There are things that Flash could do in the browser that are difficult or impractical to do without Flash. That’s one reason Royale does not promise 100% compatibility with Flex. I have not worked with Basic Auth, so I don’t know if it is one of them. A quick internet search implies that there are some ways to get around it, especially if you have control over the server response. See: https://stackoverflow.com/questions/86105/how-can-i-suppress-the-browsers-authentication-dialog HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Saturday, March 16, 2019 at 10:48 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, I am going to prepare a PR for the issue including both URLLoader override and the emulation AbstractOperation.sendBody fix. I going in to another big issue. Before getting deep I would like to discuss it with you. I my application I am using Http Basic Authentication. If you use Basic Authentication(BA), browser requests username and password with a native browser windows. Although I have login window and get the username and password (u/p) via login window, browser asks when you click the button on the login window. To prevent the browser to request the u/p until logged out from the application, I developed some functions sending the u/p through http requests authentication headers, and embed the u/p to request and send the info on every call to the server side. It is live and working for the flex version. I did not completely tested and debugged it yet but before getting in, I want to ask, is there any possibility for Royale to not support this kind of approach ? For my first attempts, I have some doubts that the same approach will not work. Thanks, Serkan 17.03.2019 03:35 tarihinde Alex Harui yazdı: Hi Serkan, OK, sound like you found the right fix. Thanks, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Friday, March 15, 2019 at 11:58 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Alex, In flex, it goes through the first case in if statement, not the second one : (The flex version send body method is attached) The parameters variable comes as string to the method. Current sendBody assumes that the "parameters" is always XML. But if we check if it is as string than the enters the first case. (emulation of sendBody is attached) if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } Thanks, Serkan 16.03.2019 09:40 tarihinde Alex Harui yazdı: Hi Serkan, That doesn’t make sense to me. Is the same code (before your proposed changes) in the Flex version of AbstractOperation? If so, then how does parameters.toXMLString() not throw an exception in Flex? -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Friday, March 15, 2019 at 11:28 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, I checked the flow in debug and can say that there is no conversion for XML, it is just string and I guess we have to check it and than use it as string. If change the AbstractOperation.sendBody as below : if (ctype == CONTENT_TYPE_XML) { if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } then in js debug : [cid:part1.DBF1439D.1E2291C8@likyateknoloji.com] can see that is passes. Thanks, Serkan 15.03.2019 06:55 tarihinde Alex Harui yazdı: If the Flex version works and in the Flex version a string is being passed into authAndCall yet in Operation it is XML, we need to understand where Flex code or the Flash runtime converted the string back to XML. So you might need to check again more carefully at the Flex version. Then we will know where we might want to put similar conversion code. Thanks, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, March 14, 2019 at 1:55 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation
Re: Work on Emulation
Hi Alex, I am going to prepare a PR for the issue including both URLLoader override and the emulation AbstractOperation.sendBody fix. I going in to another big issue. Before getting deep I would like to discuss it with you. I my application I am using Http Basic Authentication. If you use Basic Authentication(BA), browser requests username and password with a native browser windows. Although I have login window and get the username and password (u/p) via login window, browser asks when you click the button on the login window. To prevent the browser to request the u/p until logged out from the application, I developed some functions sending the u/p through http requests authentication headers, and embed the u/p to request and send the info on every call to the server side. It is live and working for the flex version. I did not completely tested and debugged it yet but before getting in, I want to ask, is there any possibility for Royale to not support this kind of approach ? For my first attempts, I have some doubts that the same approach will not work. Thanks, Serkan 17.03.2019 03:35 tarihinde Alex Harui yazdı: Hi Serkan, OK, sound like you found the right fix. Thanks, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Friday, March 15, 2019 at 11:58 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Alex, In flex, it goes through the first case in if statement, not the second one : (The flex version send body method is attached) The parameters variable comes as string to the method. Current sendBody assumes that the "parameters" is always XML. But if we check if it is as string than the enters the first case. (emulation of sendBody is attached) if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } Thanks, Serkan 16.03.2019 09:40 tarihinde Alex Harui yazdı: Hi Serkan, That doesn’t make sense to me. Is the same code (before your proposed changes) in the Flex version of AbstractOperation? If so, then how does parameters.toXMLString() not throw an exception in Flex? -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Friday, March 15, 2019 at 11:28 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, I checked the flow in debug and can say that there is no conversion for XML, it is just string and I guess we have to check it and than use it as string. If change the AbstractOperation.sendBody as below : if (ctype == CONTENT_TYPE_XML) { if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } then in js debug : cid:part1.DBF1439D.1E2291C8@likyateknoloji.com can see that is passes. Thanks, Serkan 15.03.2019 06:55 tarihinde Alex Harui yazdı: If the Flex version works and in the Flex version a string is being passed into authAndCall yet in Operation it is XML, we need to understand where Flex code or the Flash runtime converted the string back to XML. So you might need to check again more carefully at the Flex version. Then we will know where we might want to put similar conversion code. Thanks, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Thursday, March 14, 2019 at 1:55 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Alex, I already debugged the flex code and then sent the code pieces. Although autheandcall method has parameter as string, the method loginresulthandler create and xml and passes the xml string as parameter. Ant the flex version works as expected. Tomorrow I will send you the orginal flex debug results of abstractoperation.sendbody method call. Note: I ll take care of event casting issue later. Thanx Serkan Android için Outlook
Re: Work on Emulation
Hi Serkan, OK, sound like you found the right fix. Thanks, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Friday, March 15, 2019 at 11:58 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Alex, In flex, it goes through the first case in if statement, not the second one : (The flex version send body method is attached) The parameters variable comes as string to the method. Current sendBody assumes that the "parameters" is always XML. But if we check if it is as string than the enters the first case. (emulation of sendBody is attached) if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } Thanks, Serkan 16.03.2019 09:40 tarihinde Alex Harui yazdı: Hi Serkan, That doesn’t make sense to me. Is the same code (before your proposed changes) in the Flex version of AbstractOperation? If so, then how does parameters.toXMLString() not throw an exception in Flex? -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Friday, March 15, 2019 at 11:28 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, I checked the flow in debug and can say that there is no conversion for XML, it is just string and I guess we have to check it and than use it as string. If change the AbstractOperation.sendBody as below : if (ctype == CONTENT_TYPE_XML) { if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } then in js debug : [cid:part1.DBF1439D.1E2291C8@likyateknoloji.com] can see that is passes. Thanks, Serkan 15.03.2019 06:55 tarihinde Alex Harui yazdı: If the Flex version works and in the Flex version a string is being passed into authAndCall yet in Operation it is XML, we need to understand where Flex code or the Flash runtime converted the string back to XML. So you might need to check again more carefully at the Flex version. Then we will know where we might want to put similar conversion code. Thanks, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, March 14, 2019 at 1:55 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Alex, I already debugged the flex code and then sent the code pieces. Although autheandcall method has parameter as string, the method loginresulthandler create and xml and passes the xml string as parameter. Ant the flex version works as expected. Tomorrow I will send you the orginal flex debug results of abstractoperation.sendbody method call. Note: I ll take care of event casting issue later. Thanx Serkan Android için Outlook<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7C254e7fbf783f4c2ba97d08d6a9dcd691%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636883163301294907=1CMbK1gCL%2FxRqbKcxbVXBc6Vv1YDkO8elB8dKX94BvQ%3D=0>'u edinin On Thu, Mar 14, 2019 at 11:46 PM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Hi Serkan, In the code you posted, it looks like “authAndCall” has a “parameter” that is a String. It is not obvious to me how parameter could be XML. I suggest that debug into that first before changing any emulation code. Also, you may have to pay close attention to code like XML(event.target.data).result. That converts event.target.data to XML (I hope), but what you get from the “result” property may not be XML or XMLList as it might be in Flash so there might need to be another cast or coercion. Again, debugging into it and comparing against the Flash version may help. HTH, -Alex
Re: Work on Emulation
Alex, In flex, it goes through the first case in if statement, not the second one : (The flex version send body method is attached) The parameters variable comes as string to the method. Current sendBody assumes that the "parameters" is always XML. But if we check if it is as string than the enters the first case. (emulation of sendBody is attached) if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } Thanks, Serkan 16.03.2019 09:40 tarihinde Alex Harui yazdı: Hi Serkan, That doesn’t make sense to me. Is the same code (before your proposed changes) in the Flex version of AbstractOperation? If so, then how does parameters.toXMLString() not throw an exception in Flex? -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Friday, March 15, 2019 at 11:28 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, I checked the flow in debug and can say that there is no conversion for XML, it is just string and I guess we have to check it and than use it as string. If change the AbstractOperation.sendBody as below : if (ctype == CONTENT_TYPE_XML) { if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } then in js debug : cid:part1.DBF1439D.1E2291C8@likyateknoloji.com can see that is passes. Thanks, Serkan 15.03.2019 06:55 tarihinde Alex Harui yazdı: If the Flex version works and in the Flex version a string is being passed into authAndCall yet in Operation it is XML, we need to understand where Flex code or the Flash runtime converted the string back to XML. So you might need to check again more carefully at the Flex version. Then we will know where we might want to put similar conversion code. Thanks, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Thursday, March 14, 2019 at 1:55 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Alex, I already debugged the flex code and then sent the code pieces. Although autheandcall method has parameter as string, the method loginresulthandler create and xml and passes the xml string as parameter. Ant the flex version works as expected. Tomorrow I will send you the orginal flex debug results of abstractoperation.sendbody method call. Note: I ll take care of event casting issue later. Thanx Serkan Android için Outlook <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7C2551ebc4ca5843a0b61508d6a9d888e3%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636883144810310442=FHyKbvy2JBZTNfrnWTMoCMRFxtqG6%2BYU9weVIXJxeAQ%3D=0>'u edinin On Thu, Mar 14, 2019 at 11:46 PM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Hi Serkan, In the code you posted, it looks like “authAndCall” has a “parameter” that is a String. It is not obvious to me how parameter could be XML. I suggest that debug into that first before changing any emulation code. Also, you may have to pay close attention to code like XML(event.target.data).result. That converts event.target.data to XML (I hope), but what you get from the “result” property may not be XML or XMLList as it might be in Flash so there might need to be another cast or coercion. Again, debugging into it and comparing against the Flash version may help. HTH, -Alex public function sendBody(parameters:Object):AsyncToken { var filter:SerializationFilter = getSerializationFilter(); var paramsToSend:Object; var token:AsyncToken; var fault:Fault; var faultEvent:FaultEvent; var msg:String; //concurrency check if (Concurrency.SINGLE == concurrency && activeCalls.hasActiveCalls()) { token = new AsyncToken(null); var m:String = resourceManager.getString( "rpc", &q
Re: Work on Emulation
Hi Serkan, That doesn’t make sense to me. Is the same code (before your proposed changes) in the Flex version of AbstractOperation? If so, then how does parameters.toXMLString() not throw an exception in Flex? -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Friday, March 15, 2019 at 11:28 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, I checked the flow in debug and can say that there is no conversion for XML, it is just string and I guess we have to check it and than use it as string. If change the AbstractOperation.sendBody as below : if (ctype == CONTENT_TYPE_XML) { if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } then in js debug : [cid:part1.DBF1439D.1E2291C8@likyateknoloji.com] can see that is passes. Thanks, Serkan 15.03.2019 06:55 tarihinde Alex Harui yazdı: If the Flex version works and in the Flex version a string is being passed into authAndCall yet in Operation it is XML, we need to understand where Flex code or the Flash runtime converted the string back to XML. So you might need to check again more carefully at the Flex version. Then we will know where we might want to put similar conversion code. Thanks, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, March 14, 2019 at 1:55 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Alex, I already debugged the flex code and then sent the code pieces. Although autheandcall method has parameter as string, the method loginresulthandler create and xml and passes the xml string as parameter. Ant the flex version works as expected. Tomorrow I will send you the orginal flex debug results of abstractoperation.sendbody method call. Note: I ll take care of event casting issue later. Thanx Serkan Android için Outlook<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7C2551ebc4ca5843a0b61508d6a9d888e3%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636883144810310442=FHyKbvy2JBZTNfrnWTMoCMRFxtqG6%2BYU9weVIXJxeAQ%3D=0>'u edinin On Thu, Mar 14, 2019 at 11:46 PM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Hi Serkan, In the code you posted, it looks like “authAndCall” has a “parameter” that is a String. It is not obvious to me how parameter could be XML. I suggest that debug into that first before changing any emulation code. Also, you may have to pay close attention to code like XML(event.target.data).result. That converts event.target.data to XML (I hope), but what you get from the “result” property may not be XML or XMLList as it might be in Flash so there might need to be another cast or coercion. Again, debugging into it and comparing against the Flash version may help. HTH, -Alex
Re: Work on Emulation
Hi Alex, I checked the flow in debug and can say that there is no conversion for XML, it is just string and I guess we have to check it and than use it as string. If change the AbstractOperation.sendBody as below : if (ctype == CONTENT_TYPE_XML) { if (parameters is String && xmlEncode == null) { paramsToSend = parameters as String; } else { paramsToSend = parameters.toXMLString(); } then in js debug : can see that is passes. Thanks, Serkan 15.03.2019 06:55 tarihinde Alex Harui yazdı: If the Flex version works and in the Flex version a string is being passed into authAndCall yet in Operation it is XML, we need to understand where Flex code or the Flash runtime converted the string back to XML. So you might need to check again more carefully at the Flex version. Then we will know where we might want to put similar conversion code. Thanks, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Thursday, March 14, 2019 at 1:55 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Alex, I already debugged the flex code and then sent the code pieces. Although autheandcall method has parameter as string, the method loginresulthandler create and xml and passes the xml string as parameter. Ant the flex version works as expected. Tomorrow I will send you the orginal flex debug results of abstractoperation.sendbody method call. Note: I ll take care of event casting issue later. Thanx Serkan Android için Outlook <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7C5ccb62561a9a43d91de508d6a8bf6dad%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636881937491611657=ePiv4M0qHrl1UTOMMxGl4xtE9h%2BymaC3YaZhkNBEugQ%3D=0>'u edinin On Thu, Mar 14, 2019 at 11:46 PM +0300, "Alex Harui" <mailto:aha...@adobe.com>> wrote: Hi Serkan, In the code you posted, it looks like “authAndCall” has a “parameter” that is a String. It is not obvious to me how parameter could be XML. I suggest that debug into that first before changing any emulation code. Also, you may have to pay close attention to code like XML(event.target.data).result. That converts event.target.data to XML (I hope), but what you get from the “result” property may not be XML or XMLList as it might be in Flash so there might need to be another cast or coercion. Again, debugging into it and comparing against the Flash version may help. HTH, -Alex
Re: Work on Emulation
Hi Serkan, Looking at your last two emails, assuming they are addressing the same problem, it appears that your code has a getLoginDataResultHandler that eventually calls Operation.send and is passing in a String instead of XML. You can try debugging your Flex version to see what data is received in getLoginDataResultHandler and confirm whether operation.send() is passed XML or not. That might provide the answer as to what data wasn’t transformed as expected. Maybe getLoginDataResultHandler returns XML in Flex and a String in Royale and then we would need to debug how getLoginDataResultHandler gets the server result and generates XML. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Wednesday, March 13, 2019 at 12:18 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, Here it is : [cid:part1.7B6E1FCF.A2A8DCBB@likyateknoloji.com] And overrides here : [cid:part2.A6ABACC4.6516C3C7@likyateknoloji.com] It does not look like it is xml. >>There may be code needed to intercept server results and check the >>resultFormat and convert the String to XML. Do you mean that it might be fixed in emulation classes ? If yes, may be you may guide me to make the relevant changes. Thanks, Serkan 12.03.2019 05:21 tarihinde Alex Harui yazdı: Hi Serkan, Try to debug where the variable named “parameter” gets its value. One thing to keep in mind is that Flash might automatically convert server results into XML, but the Royale code may not be doing that yet. There may be code needed to intercept server results and check the resultFormat and convert the String to XML. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org>, "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Monday, March 11, 2019 at 1:19 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, After implementing event type filter, I passed the event cast error and for now, I am getting an error below line (4) in the second picture below: [cid:part1.1CB0254B.481D08F0@likyateknoloji.com] When I check ctype, it is : "application/xml" [cid:part2.B6CB2157.B77DE2B6@likyateknoloji.com] [cid:part3.661763A6.8CBE4D1D@likyateknoloji.com] There has been discussion before https://github.com/apache/royale-asjs/pull/383#discussion_r249286044<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fpull%2F383%23discussion_r249286044=02%7C01%7Caharui%40adobe.com%7Cdd2496d896f84fab214308d6a7e8b8bd%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636881015306446344=LTHkIt23tYHi8EUxW3u46%2FENelJPr4pk8%2B%2FAYSsjJWw%3D=0> and I commented that it was working without casting. The value on watch window : parameters: "username=pinara" And rising exception for today. I am not sure what to do for now. It looks like the object is string but as I remember the flex version was also working. I need your advice. Thanks, Serkan
Re: Work on Emulation
Hi Alex, Here it is : And overrides here : It does not look like it is xml. >>There may be code needed to intercept server results and check the resultFormat and convert the String to XML. Do you mean that it might be fixed in emulation classes ? If yes, may be you may guide me to make the relevant changes. Thanks, Serkan 12.03.2019 05:21 tarihinde Alex Harui yazdı: Hi Serkan, Try to debug where the variable named “parameter” gets its value. One thing to keep in mind is that Flash might automatically convert server results into XML, but the Royale code may not be doing that yet. There may be code needed to intercept server results and check the resultFormat and convert the String to XML. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" , "users@royale.apache.org" *Date: *Monday, March 11, 2019 at 1:19 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, After implementing event type filter, I passed the event cast error and for now, I am getting an error below line (4) in the second picture below: cid:part1.1CB0254B.481D08F0@likyateknoloji.com When I check ctype, it is : "application/xml" cid:part2.B6CB2157.B77DE2B6@likyateknoloji.com cid:part3.661763A6.8CBE4D1D@likyateknoloji.com There has been discussion before https://github.com/apache/royale-asjs/pull/383#discussion_r249286044 <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fpull%2F383%23discussion_r249286044=02%7C01%7Caharui%40adobe.com%7Cb691fb7e0cbb4bb03cb208d6a65ed6a7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636879323607205693=5QLuYyBaMpBRgd%2F%2FHs982B4Bq1oyIe4wfeUPRJya5nk%3D=0> and I commented that it was working without casting. The value on watch window : parameters: "username=pinara" And rising exception for today. I am not sure what to do for now. It looks like the object is string but as I remember the flex version was also working. I need your advice. Thanks, Serkan
Re: Work on Emulation
Hi Serkan, Try to debug where the variable named “parameter” gets its value. One thing to keep in mind is that Flash might automatically convert server results into XML, but the Royale code may not be doing that yet. There may be code needed to intercept server results and check the resultFormat and convert the String to XML. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" , "users@royale.apache.org" Date: Monday, March 11, 2019 at 1:19 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, After implementing event type filter, I passed the event cast error and for now, I am getting an error below line (4) in the second picture below: [cid:part1.1CB0254B.481D08F0@likyateknoloji.com] When I check ctype, it is : "application/xml" [cid:part2.B6CB2157.B77DE2B6@likyateknoloji.com] [cid:part3.661763A6.8CBE4D1D@likyateknoloji.com] There has been discussion before https://github.com/apache/royale-asjs/pull/383#discussion_r249286044<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fpull%2F383%23discussion_r249286044=02%7C01%7Caharui%40adobe.com%7Cb691fb7e0cbb4bb03cb208d6a65ed6a7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636879323607205693=5QLuYyBaMpBRgd%2F%2FHs982B4Bq1oyIe4wfeUPRJya5nk%3D=0> and I commented that it was working without casting. The value on watch window : parameters: "username=pinara" And rising exception for today. I am not sure what to do for now. It looks like the object is string but as I remember the flex version was also working. I need your advice. Thanks, Serkan 5.03.2019 07:27 tarihinde Serkan Taş yazdı: Sure Alex, I just want you to see the main idea. I need to make some imports vs. to make it work. After all I am going to let you know. Thanks, Serkan 4.03.2019 22:17 tarihinde Alex Harui yazdı: Hi Serkan, That part looks ok, but I would expect there is more to it to get it to work from your app. There would probably be changes o MXRoyaleClasses or mx-royale-manifest.xml and all changes should go in a Pull Request. Thanks, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Monday, March 4, 2019 at 11:10 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Here it is; // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache.org%2Flicenses%2FLICENSE-2.0=02%7C01%7Caharui%40adobe.com%7Cb691fb7e0cbb4bb03cb208d6a65ed6a7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636879323607205693=Lyi34S1%2FqKs735RQx2aST6e7uKoNsm%2F62scAtJ21dXA%3D=0> // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // package mx.net { import org.apache.royale.events.EventDispatcher; public class URLLoader extends org.apache.royale.net.URLLoader { override public function dispatchEvent(event:Object):Boolean { try { if(event.type == "httpStatus") { var type:String = event.type; var status:int = event.value; var bubbles:Boolean = false; var cancelable:Boolean = false; event = new HTTPStatusEvent(type, bubbles, cancelable, status); } return super.dispatchEvent(event); } catch (e:Error) { if (e.name != "stopImmediatePropagation") throw e; } return false; } } } 4.03.2019 22:05 tarihinde Alex Harui yazdı: I would like to see you create the class. Thanks, -Alex
Re: Work on Emulation
Hi Alex, After implementing event type filter, I passed the event cast error and for now, I am getting an error below line (4) in the second picture below: When I check ctype, it is : "application/xml" There has been discussion before https://github.com/apache/royale-asjs/pull/383#discussion_r249286044 and I commented that it was working without casting. The value on watch window : parameters: "username=pinara" And rising exception for today. I am not sure what to do for now. It looks like the object is string but as I remember the flex version was also working. I need your advice. Thanks, Serkan 5.03.2019 07:27 tarihinde Serkan Taş yazdı: Sure Alex, I just want you to see the main idea. I need to make some imports vs. to make it work. After all I am going to let you know. Thanks, Serkan 4.03.2019 22:17 tarihinde Alex Harui yazdı: Hi Serkan, That part looks ok, but I would expect there is more to it to get it to work from your app. There would probably be changes o MXRoyaleClasses or mx-royale-manifest.xml and all changes should go in a Pull Request. Thanks, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Monday, March 4, 2019 at 11:10 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Here it is; // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache.org%2Flicenses%2FLICENSE-2.0=02%7C01%7Caharui%40adobe.com%7C6ba07f4b703a4737dc3608d6a0d502f8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636873234074060065=OfxkkgAvTE6BDJm29jg%2FqhJMbv61IHd%2FxPvRwfFJCwg%3D=0> // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // package mx.net { import org.apache.royale.events.EventDispatcher; public class URLLoader extends org.apache.royale.net.URLLoader { override public function dispatchEvent(event:Object):Boolean { try { if(event.type == "httpStatus") { var type:String = event.type; var status:int = event.value; var bubbles:Boolean = false; var cancelable:Boolean = false; event = new HTTPStatusEvent(type, bubbles, cancelable, status); } return super.dispatchEvent(event); } catch (e:Error) { if (e.name != "stopImmediatePropagation") throw e; } return false; } } } 4.03.2019 22:05 tarihinde Alex Harui yazdı: I would like to see you create the class. Thanks, -Alex
Re: Work on Emulation
Sure Alex, I just want you to see the main idea. I need to make some imports vs. to make it work. After all I am going to let you know. Thanks, Serkan 4.03.2019 22:17 tarihinde Alex Harui yazdı: Hi Serkan, That part looks ok, but I would expect there is more to it to get it to work from your app. There would probably be changes o MXRoyaleClasses or mx-royale-manifest.xml and all changes should go in a Pull Request. Thanks, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Monday, March 4, 2019 at 11:10 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Here it is; // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache.org%2Flicenses%2FLICENSE-2.0=02%7C01%7Caharui%40adobe.com%7C6ba07f4b703a4737dc3608d6a0d502f8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636873234074060065=OfxkkgAvTE6BDJm29jg%2FqhJMbv61IHd%2FxPvRwfFJCwg%3D=0> // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // package mx.net { import org.apache.royale.events.EventDispatcher; public class URLLoader extends org.apache.royale.net.URLLoader { override public function dispatchEvent(event:Object):Boolean { try { if(event.type == "httpStatus") { var type:String = event.type; var status:int = event.value; var bubbles:Boolean = false; var cancelable:Boolean = false; event = new HTTPStatusEvent(type, bubbles, cancelable, status); } return super.dispatchEvent(event); } catch (e:Error) { if (e.name != "stopImmediatePropagation") throw e; } return false; } } } 4.03.2019 22:05 tarihinde Alex Harui yazdı: I would like to see you create the class. Thanks, -Alex
Re: Work on Emulation
Hi Serkan, That part looks ok, but I would expect there is more to it to get it to work from your app. There would probably be changes o MXRoyaleClasses or mx-royale-manifest.xml and all changes should go in a Pull Request. Thanks, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Monday, March 4, 2019 at 11:10 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Here it is; // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache.org%2Flicenses%2FLICENSE-2.0=02%7C01%7Caharui%40adobe.com%7C6ba07f4b703a4737dc3608d6a0d502f8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636873234074060065=OfxkkgAvTE6BDJm29jg%2FqhJMbv61IHd%2FxPvRwfFJCwg%3D=0> // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // package mx.net { import org.apache.royale.events.EventDispatcher; public class URLLoader extends org.apache.royale.net.URLLoader { override public function dispatchEvent(event:Object):Boolean { try { if(event.type == "httpStatus") { var type:String = event.type; var status:int = event.value; var bubbles:Boolean = false; var cancelable:Boolean = false; event = new HTTPStatusEvent(type, bubbles, cancelable, status); } return super.dispatchEvent(event); } catch (e:Error) { if (e.name != "stopImmediatePropagation") throw e; } return false; } } } 4.03.2019 22:05 tarihinde Alex Harui yazdı: I would like to see you create the class. Thanks, -Alex
Re: Work on Emulation
I am calling from my app directly https://github.com/likyateknoloji/pinaraui-royale/blob/master/src/com/likya/pinara/main/PinaraUI.mxml[445] Sounds good to have such a class to keep the projects separated and to solve the issue without having such kind of dependency conflicts. May I create the class, or you may want to initiate. Thanks, Serkan 4.03.2019 21:48 tarihinde Alex Harui yazdı: How is org.apache.royale.net.URLLoader instantiated? Is it from HTTPService or are you using it directly in your app or something else? Maybe we need to create a mx.net.URLLoader in MXRoyale.swc that subclasses org.apache.royale.net.URLLoader so that mx.net.URLLoader can override as needed. -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Monday, March 4, 2019 at 10:44 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, To override the method in package org.apache.royale.net.URLLoader, I need to import mx.events.HTTPStatusEvent which is in emulation project. method : COMPILE::JS override public function dispatchEvent(event:Object):Boolean { try { if(event.type == "httpStatus") { var type:String = event.type; var status:int = event.value; var bubbles:Boolean = false; var cancelable:Boolean = false; event = new HTTPStatusEvent(type, bubbles, cancelable, status); } return super.dispatchEvent(event); } catch (e:Error) { if (e.name != "stopImmediatePropagation") throw e; } return false; } I am not sure if is it true to have such a dependency and how link emulation class to royale. Thanks, Serkan 28.02.2019 22:05 tarihinde Alex Harui yazdı: Yes, I would recommend trying to override dispatchEvent in URLLoader. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org>, "users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Thursday, February 28, 2019 at 11:04 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation I assume you confirm Alex. Thanks, Serkan
Re: Work on Emulation
How is org.apache.royale.net.URLLoader instantiated? Is it from HTTPService or are you using it directly in your app or something else? Maybe we need to create a mx.net.URLLoader in MXRoyale.swc that subclasses org.apache.royale.net.URLLoader so that mx.net.URLLoader can override as needed. -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Monday, March 4, 2019 at 10:44 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, To override the method in package org.apache.royale.net.URLLoader, I need to import mx.events.HTTPStatusEvent which is in emulation project. method : COMPILE::JS override public function dispatchEvent(event:Object):Boolean { try { if(event.type == "httpStatus") { var type:String = event.type; var status:int = event.value; var bubbles:Boolean = false; var cancelable:Boolean = false; event = new HTTPStatusEvent(type, bubbles, cancelable, status); } return super.dispatchEvent(event); } catch (e:Error) { if (e.name != "stopImmediatePropagation") throw e; } return false; } I am not sure if is it true to have such a dependency and how link emulation class to royale. Thanks, Serkan 28.02.2019 22:05 tarihinde Alex Harui yazdı: Yes, I would recommend trying to override dispatchEvent in URLLoader. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org>, "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, February 28, 2019 at 11:04 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation I assume you confirm Alex. Thanks, Serkan
Re: Work on Emulation
Hi Alex, To override the method in package org.apache.royale.net.URLLoader, I need to import mx.events.HTTPStatusEvent which is in emulation project. method : COMPILE::JS override public function dispatchEvent(event:Object):Boolean { try { if(event.type == "httpStatus") { var type:String = event.type; var status:int = event.value; var bubbles:Boolean = false; var cancelable:Boolean = false; event = new HTTPStatusEvent(type, bubbles, cancelable, status); } return super.dispatchEvent(event); } catch (e:Error) { if (e.name != "stopImmediatePropagation") throw e; } return false; } I am not sure if is it true to have such a dependency and how link emulation class to royale. Thanks, Serkan 28.02.2019 22:05 tarihinde Alex Harui yazdı: Yes, I would recommend trying to override dispatchEvent in URLLoader. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" , "users@royale.apache.org" *Date: *Thursday, February 28, 2019 at 11:04 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation I assume you confirm Alex. Thanks, Serkan
Re: Work on Emulation
Yes, I would recommend trying to override dispatchEvent in URLLoader. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" , "users@royale.apache.org" Date: Thursday, February 28, 2019 at 11:04 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation I assume you confirm Alex. Thanks, Serkan 26.02.2019 22:23 tarihinde Serkan Taş yazdı: I do not expect you take the control of my code in detail Alex. I am trying to make my project work, and trying to help to improve the framework as I can do my best beside. Here is the hierarchy for HTTPService : mx.rpc.http.HTTPService extends mx.rpc.AbstractInvoker extends org.apache.royale.events.EventDispatcher URLLOader also extends URLLoaderBase extends EventDispacther also. [cid:part1.23180305.E56A8DF1@likyateknoloji.com] For my case, progressHandler dispatches first RESPONSE_STATUS then ValueEvent through the class EventDispatcher. After than the method in my class, httpResult is called. [cid:part2.6BD9DDD6.8BAD8FFB@likyateknoloji.com] [cid:part3.BA1D1648.A6FC49B3@likyateknoloji.com] It looks like, it is better to override the function in URLLoader. I appreciate your advice. Thanks, Serkan 25.02.2019 23:33 tarihinde Alex Harui yazdı: I thought you were using HTTPService and not URLLoader until this morning when I looked more closely at your call stack. I’m not digging through your code in detail. I’m not sure if HTTPService wraps the URLLoader or subclasses or what. But fundamentally, you should be able to override the right dispatchEvent call and send something else, or possibly be the first listener for an event and call stopImmediatePropagation and dispatch something else. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Monday, February 25, 2019 at 11:19 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation You are right Alex, The dispatch is called in progressHsandler function in class URLLoader. But I guess there is a misunderstanding. From your mail I understood that I am going to override the function in HttpService class not in the URLLoader class. To make it clear, I am going to override the dispatch event function in URLLoader, right ? Thanks, Serkan 25.02.2019 20:26 tarihinde Alex Harui yazdı: The call stack indicates that URLLoader's progressHandler calls dispatchEvent. I would step into that call. If you have properly overridden URLLoader's dispatchEvent, then it should work. HTH, -Alex
Re: Work on Emulation
I assume you confirm Alex. Thanks, Serkan 26.02.2019 22:23 tarihinde Serkan Taş yazdı: I do not expect you take the control of my code in detail Alex. I am trying to make my project work, and trying to help to improve the framework as I can do my best beside. Here is the hierarchy for HTTPService : mx.rpc.http.HTTPService extends mx.rpc.AbstractInvoker extends org.apache.royale.events.EventDispatcher URLLOader also extends URLLoaderBase extends EventDispacther also. For my case, progressHandler dispatches first RESPONSE_STATUS then ValueEvent through the class EventDispatcher. After than the method in my class, httpResult is called. It looks like, it is better to override the function in URLLoader. I appreciate your advice. Thanks, Serkan 25.02.2019 23:33 tarihinde Alex Harui yazdı: I thought you were using HTTPService and not URLLoader until this morning when I looked more closely at your call stack. I’m not digging through your code in detail. I’m not sure if HTTPService wraps the URLLoader or subclasses or what. But fundamentally, you should be able to override the right dispatchEvent call and send something else, or possibly be the first listener for an event and call stopImmediatePropagation and dispatch something else. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Monday, February 25, 2019 at 11:19 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation You are right Alex, The dispatch is called in progressHsandler function in class URLLoader. But I guess there is a misunderstanding. From your mail I understood that I am going to override the function in HttpService class not in the URLLoader class. To make it clear, I am going to override the dispatch event function in URLLoader, right ? Thanks, Serkan 25.02.2019 20:26 tarihinde Alex Harui yazdı: The call stack indicates that URLLoader's progressHandler calls dispatchEvent. I would step into that call. If you have properly overridden URLLoader's dispatchEvent, then it should work. HTH, -Alex
Re: Work on Emulation
I do not expect you take the control of my code in detail Alex. I am trying to make my project work, and trying to help to improve the framework as I can do my best beside. Here is the hierarchy for HTTPService : mx.rpc.http.HTTPService extends mx.rpc.AbstractInvoker extends org.apache.royale.events.EventDispatcher URLLOader also extends URLLoaderBase extends EventDispacther also. For my case, progressHandler dispatches first RESPONSE_STATUS then ValueEvent through the class EventDispatcher. After than the method in my class, httpResult is called. It looks like, it is better to override the function in URLLoader. I appreciate your advice. Thanks, Serkan 25.02.2019 23:33 tarihinde Alex Harui yazdı: I thought you were using HTTPService and not URLLoader until this morning when I looked more closely at your call stack. I’m not digging through your code in detail. I’m not sure if HTTPService wraps the URLLoader or subclasses or what. But fundamentally, you should be able to override the right dispatchEvent call and send something else, or possibly be the first listener for an event and call stopImmediatePropagation and dispatch something else. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Monday, February 25, 2019 at 11:19 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation You are right Alex, The dispatch is called in progressHsandler function in class URLLoader. But I guess there is a misunderstanding. From your mail I understood that I am going to override the function in HttpService class not in the URLLoader class. To make it clear, I am going to override the dispatch event function in URLLoader, right ? Thanks, Serkan 25.02.2019 20:26 tarihinde Alex Harui yazdı: The call stack indicates that URLLoader's progressHandler calls dispatchEvent. I would step into that call. If you have properly overridden URLLoader's dispatchEvent, then it should work. HTH, -Alex
Re: Work on Emulation
I thought you were using HTTPService and not URLLoader until this morning when I looked more closely at your call stack. I’m not digging through your code in detail. I’m not sure if HTTPService wraps the URLLoader or subclasses or what. But fundamentally, you should be able to override the right dispatchEvent call and send something else, or possibly be the first listener for an event and call stopImmediatePropagation and dispatch something else. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Monday, February 25, 2019 at 11:19 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation You are right Alex, The dispatch is called in progressHsandler function in class URLLoader. But I guess there is a misunderstanding. From your mail I understood that I am going to override the function in HttpService class not in the URLLoader class. To make it clear, I am going to override the dispatch event function in URLLoader, right ? Thanks, Serkan 25.02.2019 20:26 tarihinde Alex Harui yazdı: The call stack indicates that URLLoader's progressHandler calls dispatchEvent. I would step into that call. If you have properly overridden URLLoader's dispatchEvent, then it should work. HTH, -Alex On 2/25/19, 2:25 AM, "serkan@likyateknoloji.com"<mailto:serkan@likyateknoloji.com> <mailto:serkan@likyateknoloji.com> wrote: Do yoyu mean the method in URLoader class ? Alıntı Alex Harui <mailto:aha...@adobe.com>: > If you step into dispatchEvent, where does it go? > > From: Serkan Taş <mailto:serkan@likyateknoloji.com> > Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Date: Sunday, February 24, 2019 at 11:49 AM > To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Subject: Re: Work on Emulation > > Hi Alex, > > After overriding the method in HTTPService, I watched that it is not called. > > according to the code below, > > loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); > > the method httpResult is called so the changes I made had no effect. > > Thanks, > Serkan > 14.02.2019 23:08 tarihinde Alex Harui yazdı: > I don’t think we have an example to reference. > > It should be something like: > > Override public function dispatchEvent(event:Event):Boolean > { >If (event.type == “httpStatus”) > { > Var newEvent:HTTPStatusEvent = new HTTPStatusEvent(…) > // assign other properties If needed >Super.dispatchEvent(newEvent); > } > } > > From: Serkan Taş > <mailto:serkan@likyateknoloji.com><mailto:serkan@likyateknoloji.com><mailto:serkan@likyateknoloji.com> > Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org><mailto:users@royale.apache.org><mailto:users@royale.apache.org> > <mailto:users@royale.apache.org><mailto:users@royale.apache.org><mailto:users@royale.apache.org> > Date: Thursday, February 14, 2019 at 11:54 AM > To: "users@royale.apache.org"<mailto:users@royale.apache.org><mailto:users@royale.apache.org><mailto:users@royale.apache.org> > <mailto:users@royale.apache.org><mailto:users@royale.apache.org><mailto:users@royale.apache.org> > Subject: Re: Work on Emulation > > Are there any similar implementation that you may advice me to check > as sample ? > 14.02.2019 22:36 tarihinde Alex Harui yazdı: > So the progressHandler in URLLoader is dispatching a ValueEvent, not > the HTTPStatusEvent you want. The emulation HTTPService should > override what gets dispatched. You could override dispatchEvent and > dispatch the right thing. > > HTH, > -Alex > > From: Serkan Taş > <mailto:serkan@likyateknoloji.com><mailto:serkan@likyateknoloji.com><mailto:serkan@likyateknoloji.com> > Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org><mailto:users@royale.apache.org><mailto:users@royale.apache.org> > <mailto:users@royale.apache.org><mailto:users@royale.apache.org><mailto:users@royale.apache.org> > Date: Thursday, February 14, 2019 at 11:30 AM > To: "users@royale.apache.org"<mailto:users@royale.apache.org><mailto:users@royale.apache.org><mailto:users@royale.apache.org>
Re: Work on Emulation
The call stack indicates that URLLoader's progressHandler calls dispatchEvent. I would step into that call. If you have properly overridden URLLoader's dispatchEvent, then it should work. HTH, -Alex On 2/25/19, 2:25 AM, "serkan@likyateknoloji.com" wrote: Do yoyu mean the method in URLoader class ? Alıntı Alex Harui : > If you step into dispatchEvent, where does it go? > > From: Serkan Taş > Reply-To: "users@royale.apache.org" > Date: Sunday, February 24, 2019 at 11:49 AM > To: "users@royale.apache.org" > Subject: Re: Work on Emulation > > Hi Alex, > > After overriding the method in HTTPService, I watched that it is not called. > > according to the code below, > > loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); > > the method httpResult is called so the changes I made had no effect. > > Thanks, > Serkan > 14.02.2019 23:08 tarihinde Alex Harui yazdı: > I don’t think we have an example to reference. > > It should be something like: > > Override public function dispatchEvent(event:Event):Boolean > { >If (event.type == “httpStatus”) > { > Var newEvent:HTTPStatusEvent = new HTTPStatusEvent(…) > // assign other properties If needed >Super.dispatchEvent(newEvent); > } > } > > From: Serkan Taş > <mailto:serkan@likyateknoloji.com> > Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> > <mailto:users@royale.apache.org> > Date: Thursday, February 14, 2019 at 11:54 AM > To: "users@royale.apache.org"<mailto:users@royale.apache.org> > <mailto:users@royale.apache.org> > Subject: Re: Work on Emulation > > Are there any similar implementation that you may advice me to check > as sample ? > 14.02.2019 22:36 tarihinde Alex Harui yazdı: > So the progressHandler in URLLoader is dispatching a ValueEvent, not > the HTTPStatusEvent you want. The emulation HTTPService should > override what gets dispatched. You could override dispatchEvent and > dispatch the right thing. > > HTH, > -Alex > > From: Serkan Taş > <mailto:serkan@likyateknoloji.com> > Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> > <mailto:users@royale.apache.org> > Date: Thursday, February 14, 2019 at 11:30 AM > To: "users@royale.apache.org"<mailto:users@royale.apache.org> > <mailto:users@royale.apache.org> > Subject: Re: Work on Emulation > > Found it : > [cid:part1.364CE0CC.0B2C681F@likyateknoloji.com] > 14.02.2019 22:28 tarihinde Serkan Taş yazdı: > Alex, > > I am not sure that I know how to capture call stack in Firefox Dev Edition. > > Thanks, > Serkan > 14.02.2019 22:23 tarihinde Alex Harui yazdı: > In Royale in the browser, some events aren’t what you think they > are. If you listen for a org.apache.royale.events.MouseEvent, the > browser dispatches a browser MouseEvent and Royale runs code to > catch that and convert it to org.apache.royale.events.MouseEvent. > > I suspect that the browser is sending its low-level event and Royale > code needs to be added to convert it to a Royale HTTPStatusEvent. > That’s why I suggested checking the call stack as it might be > possible to copy the MouseEventConverter patterns to do the > conversion. > > HTH, > -Alex > > From: Serkan Taş > <mailto:serkan@likyateknoloji.com> > Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> > <mailto:users@royale.apache.org> > Date: Thursday, February 14, 2019 at 11:14 AM > To: "users@royale.apache.org"<mailto:users@royale.apache.org> > <mailto:users@royale.apache.org> > Subject: Re: Work on Emulation > > Hi Alex, > 13.02.2019 01:50 tarihinde Alex Harui yazdı: > Hi Serkan, > > In the emulation components, you may have to catch certain events > and redispatch them with the appropriate type. In the event handler > that calls Alert, what is the type of the event parameter. Is it an > HTTPStatusEvent or a browser event? > Here is the registration : > > loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); > > It is registered as HTTPStatusEvent. And the
Re: Work on Emulation
Do yoyu mean the method in URLoader class ? Alıntı Alex Harui : If you step into dispatchEvent, where does it go? From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Sunday, February 24, 2019 at 11:49 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, After overriding the method in HTTPService, I watched that it is not called. according to the code below, loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); the method httpResult is called so the changes I made had no effect. Thanks, Serkan 14.02.2019 23:08 tarihinde Alex Harui yazdı: I don’t think we have an example to reference. It should be something like: Override public function dispatchEvent(event:Event):Boolean { If (event.type == “httpStatus”) { Var newEvent:HTTPStatusEvent = new HTTPStatusEvent(…) // assign other properties If needed Super.dispatchEvent(newEvent); } } From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, February 14, 2019 at 11:54 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Are there any similar implementation that you may advice me to check as sample ? 14.02.2019 22:36 tarihinde Alex Harui yazdı: So the progressHandler in URLLoader is dispatching a ValueEvent, not the HTTPStatusEvent you want. The emulation HTTPService should override what gets dispatched. You could override dispatchEvent and dispatch the right thing. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, February 14, 2019 at 11:30 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Found it : [cid:part1.364CE0CC.0B2C681F@likyateknoloji.com] 14.02.2019 22:28 tarihinde Serkan Taş yazdı: Alex, I am not sure that I know how to capture call stack in Firefox Dev Edition. Thanks, Serkan 14.02.2019 22:23 tarihinde Alex Harui yazdı: In Royale in the browser, some events aren’t what you think they are. If you listen for a org.apache.royale.events.MouseEvent, the browser dispatches a browser MouseEvent and Royale runs code to catch that and convert it to org.apache.royale.events.MouseEvent. I suspect that the browser is sending its low-level event and Royale code needs to be added to convert it to a Royale HTTPStatusEvent. That’s why I suggested checking the call stack as it might be possible to copy the MouseEventConverter patterns to do the conversion. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, February 14, 2019 at 11:14 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, 13.02.2019 01:50 tarihinde Alex Harui yazdı: Hi Serkan, In the emulation components, you may have to catch certain events and redispatch them with the appropriate type. In the event handler that calls Alert, what is the type of the event parameter. Is it an HTTPStatusEvent or a browser event? Here is the registration : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); It is registered as HTTPStatusEvent. And the handler has the signature : private function httpResult(event:HTTPStatusEvent):void If it is an HTTPStatusEvent, then the emulation may be as simple as adding a “status” getter that returns the event’s value property. As it is HTTPStatusEvent, than it will be enough to implement your advice to the JS section of the code. But when I check the code, there is getter for status : COMPILE::JS public class HTTPStatusEvent extends org.apache.royale.events.Event { /* include "../core/Version.as"; */ public static const HTTP_STATUS:String = "httpStatus"; private var m_status:int; //-- // // Class constants // //-- //-- // // Constructor // //-- /** * Constructor. * * @param type The event type; indicates the action that caused the event.
Re: Work on Emulation
If you step into dispatchEvent, where does it go? From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Sunday, February 24, 2019 at 11:49 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, After overriding the method in HTTPService, I watched that it is not called. according to the code below, loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); the method httpResult is called so the changes I made had no effect. Thanks, Serkan 14.02.2019 23:08 tarihinde Alex Harui yazdı: I don’t think we have an example to reference. It should be something like: Override public function dispatchEvent(event:Event):Boolean { If (event.type == “httpStatus”) { Var newEvent:HTTPStatusEvent = new HTTPStatusEvent(…) // assign other properties If needed Super.dispatchEvent(newEvent); } } From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, February 14, 2019 at 11:54 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Are there any similar implementation that you may advice me to check as sample ? 14.02.2019 22:36 tarihinde Alex Harui yazdı: So the progressHandler in URLLoader is dispatching a ValueEvent, not the HTTPStatusEvent you want. The emulation HTTPService should override what gets dispatched. You could override dispatchEvent and dispatch the right thing. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, February 14, 2019 at 11:30 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Found it : [cid:part1.364CE0CC.0B2C681F@likyateknoloji.com] 14.02.2019 22:28 tarihinde Serkan Taş yazdı: Alex, I am not sure that I know how to capture call stack in Firefox Dev Edition. Thanks, Serkan 14.02.2019 22:23 tarihinde Alex Harui yazdı: In Royale in the browser, some events aren’t what you think they are. If you listen for a org.apache.royale.events.MouseEvent, the browser dispatches a browser MouseEvent and Royale runs code to catch that and convert it to org.apache.royale.events.MouseEvent. I suspect that the browser is sending its low-level event and Royale code needs to be added to convert it to a Royale HTTPStatusEvent. That’s why I suggested checking the call stack as it might be possible to copy the MouseEventConverter patterns to do the conversion. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, February 14, 2019 at 11:14 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, 13.02.2019 01:50 tarihinde Alex Harui yazdı: Hi Serkan, In the emulation components, you may have to catch certain events and redispatch them with the appropriate type. In the event handler that calls Alert, what is the type of the event parameter. Is it an HTTPStatusEvent or a browser event? Here is the registration : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); It is registered as HTTPStatusEvent. And the handler has the signature : private function httpResult(event:HTTPStatusEvent):void If it is an HTTPStatusEvent, then the emulation may be as simple as adding a “status” getter that returns the event’s value property. As it is HTTPStatusEvent, than it will be enough to implement your advice to the JS section of the code. But when I check the code, there is getter for status : COMPILE::JS public class HTTPStatusEvent extends org.apache.royale.events.Event { /* include "../core/Version.as"; */ public static const HTTP_STATUS:String = "httpStatus"; private var m_status:int; //-- // // Class constants // //-- //-- // // Constructor // //-- /** * Constructor. * * @param type The event type; indicates the action that caused the event. * * @param bubbles Specifies whether the event can bubble * up the display list hierarchy. *
Re: Work on Emulation
Hi Alex, After overriding the method in HTTPService, I watched that it is not called. according to the code below, loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); the method httpResult is called so the changes I made had no effect. Thanks, Serkan 14.02.2019 23:08 tarihinde Alex Harui yazdı: I don’t think we have an example to reference. It should be something like: Override public function dispatchEvent(event:Event):Boolean { If (event.type == “httpStatus”) { Var newEvent:HTTPStatusEvent = new HTTPStatusEvent(…) // assign other properties If needed Super.dispatchEvent(newEvent); } } *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Thursday, February 14, 2019 at 11:54 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Are there any similar implementation that you may advice me to check as sample ? 14.02.2019 22:36 tarihinde Alex Harui yazdı: So the progressHandler in URLLoader is dispatching a ValueEvent, not the HTTPStatusEvent you want. The emulation HTTPService should override what gets dispatched. You could override dispatchEvent and dispatch the right thing. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Thursday, February 14, 2019 at 11:30 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Found it : cid:part1.364CE0CC.0B2C681F@likyateknoloji.com 14.02.2019 22:28 tarihinde Serkan Taş yazdı: Alex, I am not sure that I know how to capture call stack in Firefox Dev Edition. Thanks, Serkan 14.02.2019 22:23 tarihinde Alex Harui yazdı: In Royale in the browser, some events aren’t what you think they are. If you listen for a org.apache.royale.events.MouseEvent, the browser dispatches a browser MouseEvent and Royale runs code to catch that and convert it to org.apache.royale.events.MouseEvent. I suspect that the browser is sending its low-level event and Royale code needs to be added to convert it to a Royale HTTPStatusEvent. That’s why I suggested checking the call stack as it might be possible to copy the MouseEventConverter patterns to do the conversion. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Thursday, February 14, 2019 at 11:14 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, 13.02.2019 01:50 tarihinde Alex Harui yazdı: Hi Serkan, In the emulation components, you may have to catch certain events and redispatch them with the appropriate type. In the event handler that calls Alert, what is the type of the event parameter. Is it an HTTPStatusEvent or a browser event? Here is the registration : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); It is registered as HTTPStatusEvent. And the handler has the signature : private function httpResult(event:HTTPStatusEvent):void If it is an HTTPStatusEvent, then the emulation may be as simple as adding a “status” getter that returns the event’s value property. As it is HTTPStatusEvent, than it will be enough to implement your advice to the JS section of the code. But when I check the code, there is getter for status : COMPILE::JS public class HTTPStatusEvent extends org.apache.royale.events.Event { /* include "../core/Version.as"; */ public static const HTTP_STATUS:String = "httpStatus"; private var m_status:int; //-- // // Class constants // //--
Re: Work on Emulation
I don’t think we have an example to reference. It should be something like: Override public function dispatchEvent(event:Event):Boolean { If (event.type == “httpStatus”) { Var newEvent:HTTPStatusEvent = new HTTPStatusEvent(…) // assign other properties If needed Super.dispatchEvent(newEvent); } } From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Thursday, February 14, 2019 at 11:54 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Are there any similar implementation that you may advice me to check as sample ? 14.02.2019 22:36 tarihinde Alex Harui yazdı: So the progressHandler in URLLoader is dispatching a ValueEvent, not the HTTPStatusEvent you want. The emulation HTTPService should override what gets dispatched. You could override dispatchEvent and dispatch the right thing. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, February 14, 2019 at 11:30 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Found it : [cid:part1.364CE0CC.0B2C681F@likyateknoloji.com] 14.02.2019 22:28 tarihinde Serkan Taş yazdı: Alex, I am not sure that I know how to capture call stack in Firefox Dev Edition. Thanks, Serkan 14.02.2019 22:23 tarihinde Alex Harui yazdı: In Royale in the browser, some events aren’t what you think they are. If you listen for a org.apache.royale.events.MouseEvent, the browser dispatches a browser MouseEvent and Royale runs code to catch that and convert it to org.apache.royale.events.MouseEvent. I suspect that the browser is sending its low-level event and Royale code needs to be added to convert it to a Royale HTTPStatusEvent. That’s why I suggested checking the call stack as it might be possible to copy the MouseEventConverter patterns to do the conversion. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, February 14, 2019 at 11:14 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, 13.02.2019 01:50 tarihinde Alex Harui yazdı: Hi Serkan, In the emulation components, you may have to catch certain events and redispatch them with the appropriate type. In the event handler that calls Alert, what is the type of the event parameter. Is it an HTTPStatusEvent or a browser event? Here is the registration : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); It is registered as HTTPStatusEvent. And the handler has the signature : private function httpResult(event:HTTPStatusEvent):void If it is an HTTPStatusEvent, then the emulation may be as simple as adding a “status” getter that returns the event’s value property. As it is HTTPStatusEvent, than it will be enough to implement your advice to the JS section of the code. But when I check the code, there is getter for status : COMPILE::JS public class HTTPStatusEvent extends org.apache.royale.events.Event { /* include "../core/Version.as"; */ public static const HTTP_STATUS:String = "httpStatus"; private var m_status:int; //-- // // Class constants // //-- //-- // // Constructor // //-- /** * Constructor. * * @param type The event type; indicates the action that caused the event. * * @param bubbles Specifies whether the event can bubble * up the display list hierarchy. * * @param cancelable Specifies whether the behavior * associated with the event can be prevented. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Royale 0.9.3 */ public function HTTPStatusEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:int = 0) { super(type, bubbles, cancelable); m_status = status; } public function get status() : int { return m_status; } } But returns internal m_status, which is in my case is undefined. Thanks, Serkan If it is a browser event, then loo
Re: Work on Emulation
Are there any similar implementation that you may advice me to check as sample ? 14.02.2019 22:36 tarihinde Alex Harui yazdı: So the progressHandler in URLLoader is dispatching a ValueEvent, not the HTTPStatusEvent you want. The emulation HTTPService should override what gets dispatched. You could override dispatchEvent and dispatch the right thing. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Thursday, February 14, 2019 at 11:30 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Found it : cid:part1.364CE0CC.0B2C681F@likyateknoloji.com 14.02.2019 22:28 tarihinde Serkan Taş yazdı: Alex, I am not sure that I know how to capture call stack in Firefox Dev Edition. Thanks, Serkan 14.02.2019 22:23 tarihinde Alex Harui yazdı: In Royale in the browser, some events aren’t what you think they are. If you listen for a org.apache.royale.events.MouseEvent, the browser dispatches a browser MouseEvent and Royale runs code to catch that and convert it to org.apache.royale.events.MouseEvent. I suspect that the browser is sending its low-level event and Royale code needs to be added to convert it to a Royale HTTPStatusEvent. That’s why I suggested checking the call stack as it might be possible to copy the MouseEventConverter patterns to do the conversion. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Thursday, February 14, 2019 at 11:14 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, 13.02.2019 01:50 tarihinde Alex Harui yazdı: Hi Serkan, In the emulation components, you may have to catch certain events and redispatch them with the appropriate type. In the event handler that calls Alert, what is the type of the event parameter. Is it an HTTPStatusEvent or a browser event? Here is the registration : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); It is registered as HTTPStatusEvent. And the handler has the signature : private function httpResult(event:HTTPStatusEvent):void If it is an HTTPStatusEvent, then the emulation may be as simple as adding a “status” getter that returns the event’s value property. As it is HTTPStatusEvent, than it will be enough to implement your advice to the JS section of the code. But when I check the code, there is getter for status : COMPILE::JS public class HTTPStatusEvent extends org.apache.royale.events.Event { /* include "../core/Version.as"; */ public static const HTTP_STATUS:String = "httpStatus"; private var m_status:int; //-- // // Class constants // //-- //-- // // Constructor // //-- /** * Constructor. * * @param type The event type; indicates the action that caused the event. * * @param bubbles Specifies whether the event can bubble * up the display list hierarchy. * * @param cancelable Specifies whether the behavior * associated with the event can be prevented. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Royale 0.9.3 */ public function HTTPStatusEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:int = 0) { super(type, bubbles, cancelable); m_status = status; } public function get status() : int { return m_status; } } But returns internal m_status, which is in my case is undefined. Thanks, Serkan
Re: Work on Emulation
Found it : 14.02.2019 22:28 tarihinde Serkan Taş yazdı: Alex, I am not sure that I know how to capture call stack in Firefox Dev Edition. Thanks, Serkan 14.02.2019 22:23 tarihinde Alex Harui yazdı: In Royale in the browser, some events aren’t what you think they are. If you listen for a org.apache.royale.events.MouseEvent, the browser dispatches a browser MouseEvent and Royale runs code to catch that and convert it to org.apache.royale.events.MouseEvent. I suspect that the browser is sending its low-level event and Royale code needs to be added to convert it to a Royale HTTPStatusEvent. That’s why I suggested checking the call stack as it might be possible to copy the MouseEventConverter patterns to do the conversion. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Thursday, February 14, 2019 at 11:14 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, 13.02.2019 01:50 tarihinde Alex Harui yazdı: Hi Serkan, In the emulation components, you may have to catch certain events and redispatch them with the appropriate type. In the event handler that calls Alert, what is the type of the event parameter. Is it an HTTPStatusEvent or a browser event? Here is the registration : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); It is registered as HTTPStatusEvent. And the handler has the signature : private function httpResult(event:HTTPStatusEvent):void If it is an HTTPStatusEvent, then the emulation may be as simple as adding a “status” getter that returns the event’s value property. As it is HTTPStatusEvent, than it will be enough to implement your advice to the JS section of the code. But when I check the code, there is getter for status : COMPILE::JS public class HTTPStatusEvent extends org.apache.royale.events.Event { /* include "../core/Version.as"; */ public static const HTTP_STATUS:String = "httpStatus"; private var m_status:int; //-- // // Class constants // //-- //-- // // Constructor // //-- /** * Constructor. * * @param type The event type; indicates the action that caused the event. * * @param bubbles Specifies whether the event can bubble * up the display list hierarchy. * * @param cancelable Specifies whether the behavior * associated with the event can be prevented. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Royale 0.9.3 */ public function HTTPStatusEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:int = 0) { super(type, bubbles, cancelable); m_status = status; } public function get status() : int { return m_status; } } But returns internal m_status, which is in my case is undefined. Thanks, Serkan If it is a browser event, then look at the call stack to see who is dispatching the event. The code that dispatches the event might need to create an HTTPStatusEvent, copy the browser event properties into it, and then dispatch the HTTPStatusEvent. If you are not sure, post the call stack. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Tuesday, February 12, 2019 at 11:52 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex (only you are interested in emulation, right ?) :))) While debugging my code, I realized that there is a conflict between in status and httpStatus values of the event HTTPStatusEvent, at least in my mind. My old flex code, ported to royale, registers and event listener for HTTPStatusEvent.HTTP_STATUS and handler httpResult as below (loader is initialized somewhere) : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); After making http request, the handler returns as below on screen : cid:part1.78AD6179.FDDC1C04@likyateknoloji.com This is where it fires window : cid:part2.FC1F7F03.0A76E9BA@likyateknoloji.com It is normally expected that the status holds real value,
Re: Work on Emulation
Alex, I am not sure that I know how to capture call stack in Firefox Dev Edition. Thanks, Serkan 14.02.2019 22:23 tarihinde Alex Harui yazdı: In Royale in the browser, some events aren’t what you think they are. If you listen for a org.apache.royale.events.MouseEvent, the browser dispatches a browser MouseEvent and Royale runs code to catch that and convert it to org.apache.royale.events.MouseEvent. I suspect that the browser is sending its low-level event and Royale code needs to be added to convert it to a Royale HTTPStatusEvent. That’s why I suggested checking the call stack as it might be possible to copy the MouseEventConverter patterns to do the conversion. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Thursday, February 14, 2019 at 11:14 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, 13.02.2019 01:50 tarihinde Alex Harui yazdı: Hi Serkan, In the emulation components, you may have to catch certain events and redispatch them with the appropriate type. In the event handler that calls Alert, what is the type of the event parameter. Is it an HTTPStatusEvent or a browser event? Here is the registration : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); It is registered as HTTPStatusEvent. And the handler has the signature : private function httpResult(event:HTTPStatusEvent):void If it is an HTTPStatusEvent, then the emulation may be as simple as adding a “status” getter that returns the event’s value property. As it is HTTPStatusEvent, than it will be enough to implement your advice to the JS section of the code. But when I check the code, there is getter for status : COMPILE::JS public class HTTPStatusEvent extends org.apache.royale.events.Event { /* include "../core/Version.as"; */ public static const HTTP_STATUS:String = "httpStatus"; private var m_status:int; //-- // // Class constants // //-- //-- // // Constructor // //-- /** * Constructor. * * @param type The event type; indicates the action that caused the event. * * @param bubbles Specifies whether the event can bubble * up the display list hierarchy. * * @param cancelable Specifies whether the behavior * associated with the event can be prevented. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Royale 0.9.3 */ public function HTTPStatusEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:int = 0) { super(type, bubbles, cancelable); m_status = status; } public function get status() : int { return m_status; } } But returns internal m_status, which is in my case is undefined. Thanks, Serkan If it is a browser event, then look at the call stack to see who is dispatching the event. The code that dispatches the event might need to create an HTTPStatusEvent, copy the browser event properties into it, and then dispatch the HTTPStatusEvent. If you are not sure, post the call stack. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Tuesday, February 12, 2019 at 11:52 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex (only you are interested in emulation, right ?) :))) While debugging my code, I realized that there is a conflict between in status and httpStatus values of the event HTTPStatusEvent, at least in my mind. My old flex code, ported to royale, registers and event listener for HTTPStatusEvent.HTTP_STATUS and handler httpResult as below (loader is initialized somewhere) : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); After making http request, the handler returns as below on screen : cid:part1.78AD6179.FDDC1C04@likyateknoloji.com This is where it fires window : cid:part2.FC1F7F03.0A76E9BA@likyateknoloji.com It is normally expected that the status holds real value, but here it is not, httpStatus contains the value in "va
Re: Work on Emulation
In Royale in the browser, some events aren’t what you think they are. If you listen for a org.apache.royale.events.MouseEvent, the browser dispatches a browser MouseEvent and Royale runs code to catch that and convert it to org.apache.royale.events.MouseEvent. I suspect that the browser is sending its low-level event and Royale code needs to be added to convert it to a Royale HTTPStatusEvent. That’s why I suggested checking the call stack as it might be possible to copy the MouseEventConverter patterns to do the conversion. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Thursday, February 14, 2019 at 11:14 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, 13.02.2019 01:50 tarihinde Alex Harui yazdı: Hi Serkan, In the emulation components, you may have to catch certain events and redispatch them with the appropriate type. In the event handler that calls Alert, what is the type of the event parameter. Is it an HTTPStatusEvent or a browser event? Here is the registration : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); It is registered as HTTPStatusEvent. And the handler has the signature : private function httpResult(event:HTTPStatusEvent):void If it is an HTTPStatusEvent, then the emulation may be as simple as adding a “status” getter that returns the event’s value property. As it is HTTPStatusEvent, than it will be enough to implement your advice to the JS section of the code. But when I check the code, there is getter for status : COMPILE::JS public class HTTPStatusEvent extends org.apache.royale.events.Event { /* include "../core/Version.as"; */ public static const HTTP_STATUS:String = "httpStatus"; private var m_status:int; //-- // // Class constants // //-- //-- // // Constructor // //-- /** * Constructor. * * @param type The event type; indicates the action that caused the event. * * @param bubbles Specifies whether the event can bubble * up the display list hierarchy. * * @param cancelable Specifies whether the behavior * associated with the event can be prevented. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Royale 0.9.3 */ public function HTTPStatusEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:int = 0) { super(type, bubbles, cancelable); m_status = status; } public function get status() : int { return m_status; } } But returns internal m_status, which is in my case is undefined. Thanks, Serkan If it is a browser event, then look at the call stack to see who is dispatching the event. The code that dispatches the event might need to create an HTTPStatusEvent, copy the browser event properties into it, and then dispatch the HTTPStatusEvent. If you are not sure, post the call stack. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Tuesday, February 12, 2019 at 11:52 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex (only you are interested in emulation, right ?) :))) While debugging my code, I realized that there is a conflict between in status and httpStatus values of the event HTTPStatusEvent, at least in my mind. My old flex code, ported to royale, registers and event listener for HTTPStatusEvent.HTTP_STATUS and handler httpResult as below (loader is initialized somewhere) : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); After making http request, the handler returns as below on screen : [cid:part1.78AD6179.FDDC1C04@likyateknoloji.com] This is where it fires window : [cid:part2.FC1F7F03.0A76E9BA@likyateknoloji.com] It is normally expected that the status holds real value, but here it is not, httpStatus contains the value in "value" as below : [cid:part3.E6732EF2.3364FCC2@likyateknoloji.com] As the HTTPStatusEvent is emulated, I am not sure how to go to solve the issue. Thanks, Serkan
Re: Work on Emulation
Note : I made that changes, the status getter for the code while working on emulation migration : https://github.com/apache/royale-asjs/commit/2b2fd8e78f80bb430d225a457bea56b643c517cc#diff-c8bd604a6ab0e50cf419257de923650d 14.02.2019 22:13 tarihinde Serkan Taş yazdı: Hi Alex, 13.02.2019 01:50 tarihinde Alex Harui yazdı: Hi Serkan, In the emulation components, you may have to catch certain events and redispatch them with the appropriate type. In the event handler that calls Alert, what is the type of the event parameter. Is it an HTTPStatusEvent or a browser event? Here is the registration : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); It is registered as HTTPStatusEvent. And the handler has the signature : private function httpResult(event:HTTPStatusEvent):void If it is an HTTPStatusEvent, then the emulation may be as simple as adding a “status” getter that returns the event’s value property. As it is HTTPStatusEvent, than it will be enough to implement your advice to the JS section of the code. But when I check the code, there is getter for status : COMPILE::JS public class HTTPStatusEvent extends org.apache.royale.events.Event { /* include "../core/Version.as"; */ public static const HTTP_STATUS:String = "httpStatus"; private var m_status:int; //-- // // Class constants // //-- //-- // // Constructor // //-- /** * Constructor. * * @param type The event type; indicates the action that caused the event. * * @param bubbles Specifies whether the event can bubble * up the display list hierarchy. * * @param cancelable Specifies whether the behavior * associated with the event can be prevented. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Royale 0.9.3 */ public function HTTPStatusEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:int = 0) { super(type, bubbles, cancelable); m_status = status; } public function get status() : int { return m_status; } } But returns internal m_status, which is in my case is undefined. Thanks, Serkan If it is a browser event, then look at the call stack to see who is dispatching the event. The code that dispatches the event might need to create an HTTPStatusEvent, copy the browser event properties into it, and then dispatch the HTTPStatusEvent. If you are not sure, post the call stack. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Tuesday, February 12, 2019 at 11:52 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex (only you are interested in emulation, right ?) :))) While debugging my code, I realized that there is a conflict between in status and httpStatus values of the event HTTPStatusEvent, at least in my mind. My old flex code, ported to royale, registers and event listener for HTTPStatusEvent.HTTP_STATUS and handler httpResult as below (loader is initialized somewhere) : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); After making http request, the handler returns as below on screen : cid:part1.78AD6179.FDDC1C04@likyateknoloji.com This is where it fires window : cid:part2.FC1F7F03.0A76E9BA@likyateknoloji.com It is normally expected that the status holds real value, but here it is not, httpStatus contains the value in "value" as below : cid:part3.E6732EF2.3364FCC2@likyateknoloji.com As the HTTPStatusEvent is emulated, I am not sure how to go to solve the issue. Thanks, Serkan
Re: Work on Emulation
Hi Alex, 13.02.2019 01:50 tarihinde Alex Harui yazdı: Hi Serkan, In the emulation components, you may have to catch certain events and redispatch them with the appropriate type. In the event handler that calls Alert, what is the type of the event parameter. Is it an HTTPStatusEvent or a browser event? Here is the registration : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); It is registered as HTTPStatusEvent. And the handler has the signature : private function httpResult(event:HTTPStatusEvent):void If it is an HTTPStatusEvent, then the emulation may be as simple as adding a “status” getter that returns the event’s value property. As it is HTTPStatusEvent, than it will be enough to implement your advice to the JS section of the code. But when I check the code, there is getter for status : COMPILE::JS public class HTTPStatusEvent extends org.apache.royale.events.Event { /* include "../core/Version.as"; */ public static const HTTP_STATUS:String = "httpStatus"; private var m_status:int; //-- // // Class constants // //-- //-- // // Constructor // //-- /** * Constructor. * * @param type The event type; indicates the action that caused the event. * * @param bubbles Specifies whether the event can bubble * up the display list hierarchy. * * @param cancelable Specifies whether the behavior * associated with the event can be prevented. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Royale 0.9.3 */ public function HTTPStatusEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:int = 0) { super(type, bubbles, cancelable); m_status = status; } public function get status() : int { return m_status; } } But returns internal m_status, which is in my case is undefined. Thanks, Serkan If it is a browser event, then look at the call stack to see who is dispatching the event. The code that dispatches the event might need to create an HTTPStatusEvent, copy the browser event properties into it, and then dispatch the HTTPStatusEvent. If you are not sure, post the call stack. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Tuesday, February 12, 2019 at 11:52 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex (only you are interested in emulation, right ?) :))) While debugging my code, I realized that there is a conflict between in status and httpStatus values of the event HTTPStatusEvent, at least in my mind. My old flex code, ported to royale, registers and event listener for HTTPStatusEvent.HTTP_STATUS and handler httpResult as below (loader is initialized somewhere) : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); After making http request, the handler returns as below on screen : cid:part1.78AD6179.FDDC1C04@likyateknoloji.com This is where it fires window : cid:part2.FC1F7F03.0A76E9BA@likyateknoloji.com It is normally expected that the status holds real value, but here it is not, httpStatus contains the value in "value" as below : cid:part3.E6732EF2.3364FCC2@likyateknoloji.com As the HTTPStatusEvent is emulated, I am not sure how to go to solve the issue. Thanks, Serkan
Re: Work on Emulation
Hi Serkan, In the emulation components, you may have to catch certain events and redispatch them with the appropriate type. In the event handler that calls Alert, what is the type of the event parameter. Is it an HTTPStatusEvent or a browser event? If it is an HTTPStatusEvent, then the emulation may be as simple as adding a “status” getter that returns the event’s value property. If it is a browser event, then look at the call stack to see who is dispatching the event. The code that dispatches the event might need to create an HTTPStatusEvent, copy the browser event properties into it, and then dispatch the HTTPStatusEvent. If you are not sure, post the call stack. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Tuesday, February 12, 2019 at 11:52 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex (only you are interested in emulation, right ?) :))) While debugging my code, I realized that there is a conflict between in status and httpStatus values of the event HTTPStatusEvent, at least in my mind. My old flex code, ported to royale, registers and event listener for HTTPStatusEvent.HTTP_STATUS and handler httpResult as below (loader is initialized somewhere) : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); After making http request, the handler returns as below on screen : [cid:part1.78AD6179.FDDC1C04@likyateknoloji.com] This is where it fires window : [cid:part2.FC1F7F03.0A76E9BA@likyateknoloji.com] It is normally expected that the status holds real value, but here it is not, httpStatus contains the value in "value" as below : [cid:part3.E6732EF2.3364FCC2@likyateknoloji.com] As the HTTPStatusEvent is emulated, I am not sure how to go to solve the issue. Thanks, Serkan
Re: Work on Emulation
Hi Alex (only you are interested in emulation, right ?) :))) While debugging my code, I realized that there is a conflict between in status and httpStatus values of the event HTTPStatusEvent, at least in my mind. My old flex code, ported to royale, registers and event listener for HTTPStatusEvent.HTTP_STATUS and handler httpResult as below (loader is initialized somewhere) : loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult); After making http request, the handler returns as below on screen : This is where it fires window : It is normally expected that the status holds real value, but here it is not, httpStatus contains the value in "value" as below : As the HTTPStatusEvent is emulated, I am not sure how to go to solve the issue. Thanks, Serkan
Re: Work on Emulation
Hi Alex, I sent the details in previous mails. I understand that it is hard to catch the process with so much time delay. As it is so much time consuming process to prepare a simple sample, I rather prefer to send you the stack trace and may be the variable values as far as I have time. Thanks, Serkan Android için Outlook'u edinin Kimden: Alex Harui Gönderildi: 6 Şubat Çarşamba 00:42 Konu: Re: Work on Emulation Kime: users@royale.apache.org Serkan, We simply don’t have enough information to be helpful. No idea what line of code is causing the exception. No idea what the “text” is and how you verified that is the text that is causing the problem. We don’t have any call stacks that would help indicate the code flow leading up to this point so we have an idea why some text is being converted to XML. Royale is not 100% compatible with Flex. Probably will never be. There could certainly still be bugs in Royale’s HTTPService. Maybe resultFormat isn’t working in Royale? Maybe Royale sent something slightly different so the server responded differently? Maybe Flash eats that initial string but the browsers don’t. There are too many possibilities. You will have to narrow it down and/or provide a simple test case that reproduces the problem. Thanks, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Tuesday, February 5, 2019 at 1:07 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, I checked the code, as I thought, it is text and parsed on the flex side without an error. Same request fails with royale. I guess flex http service does not check the input. Below is the declaration of service in flex code. Should I convert parameter to an xml text, what you suggest ? Thanks, Serkan. 5.02.2019 08:47 tarihinde serkan@likyateknoloji.com yazdı: I am going to check if it is valid or not, but I am sure that it is working with flex version. Thanks, Serkan Alıntı Alex Harui : Is contentData valid XML? From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Thursday, January 31, 2019 at 12:08 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi, After pressing login button I am getting the error below: [cid:part1.9142D64E.89437FAE@likyateknoloji.com] I guess, the response handler can not handle the response string => "1.0.0;Windows 10;STATE_WORKING" Here is the part of the js that makes the request (URLLoader.js:88-93): if (contentData) { element.send(contentData); } else { element.send(); } this.dispatchEvent(new org.apache.royale.events.Event("postSend")); The "element" is type XMLHttpRequest and I can not debug that object. Thanks, Serkan
Re: Work on Emulation
Serkan, We simply don’t have enough information to be helpful. No idea what line of code is causing the exception. No idea what the “text” is and how you verified that is the text that is causing the problem. We don’t have any call stacks that would help indicate the code flow leading up to this point so we have an idea why some text is being converted to XML. Royale is not 100% compatible with Flex. Probably will never be. There could certainly still be bugs in Royale’s HTTPService. Maybe resultFormat isn’t working in Royale? Maybe Royale sent something slightly different so the server responded differently? Maybe Flash eats that initial string but the browsers don’t. There are too many possibilities. You will have to narrow it down and/or provide a simple test case that reproduces the problem. Thanks, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Tuesday, February 5, 2019 at 1:07 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, I checked the code, as I thought, it is text and parsed on the flex side without an error. Same request fails with royale. I guess flex http service does not check the input. Below is the declaration of service in flex code. Should I convert parameter to an xml text, what you suggest ? Thanks, Serkan. 5.02.2019 08:47 tarihinde serkan@likyateknoloji.com<mailto:serkan@likyateknoloji.com> yazdı: I am going to check if it is valid or not, but I am sure that it is working with flex version. Thanks, Serkan Alıntı Alex Harui <mailto:aha...@adobe.com>: Is contentData valid XML? From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, January 31, 2019 at 12:08 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi, After pressing login button I am getting the error below: [cid:part1.9142D64E.89437FAE@likyateknoloji.com] I guess, the response handler can not handle the response string => "1.0.0;Windows 10;STATE_WORKING" Here is the part of the js that makes the request (URLLoader.js:88-93): if (contentData) { element.send(contentData); } else { element.send(); } this.dispatchEvent(new org.apache.royale.events.Event("postSend")); The "element" is type XMLHttpRequest and I can not debug that object. Thanks, Serkan
Re: Work on Emulation
Hi Alex, I checked the code, as I thought, it is text and parsed on the flex side without an error. Same request fails with royale. I guess flex http service does not check the input. Below is the declaration of service in flex code. Should I convert parameter to an xml text, what you suggest ? Thanks, Serkan. 5.02.2019 08:47 tarihinde serkan@likyateknoloji.com yazdı: I am going to check if it is valid or not, but I am sure that it is working with flex version. Thanks, Serkan Alıntı Alex Harui : Is contentData valid XML? From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Thursday, January 31, 2019 at 12:08 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi, After pressing login button I am getting the error below: [cid:part1.9142D64E.89437FAE@likyateknoloji.com] I guess, the response handler can not handle the response string => "1.0.0;Windows 10;STATE_WORKING" Here is the part of the js that makes the request (URLLoader.js:88-93): if (contentData) { element.send(contentData); } else { element.send(); } this.dispatchEvent(new org.apache.royale.events.Event("postSend")); The "element" is type XMLHttpRequest and I can not debug that object. Thanks, Serkan
Re: Work on Emulation
I am going to check if it is valid or not, but I am sure that it is working with flex version. Thanks, Serkan Alıntı Alex Harui : Is contentData valid XML? From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Thursday, January 31, 2019 at 12:08 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi, After pressing login button I am getting the error below: [cid:part1.9142D64E.89437FAE@likyateknoloji.com] I guess, the response handler can not handle the response string => "1.0.0;Windows 10;STATE_WORKING" Here is the part of the js that makes the request (URLLoader.js:88-93): if (contentData) { element.send(contentData); } else { element.send(); } this.dispatchEvent(new org.apache.royale.events.Event("postSend")); The "element" is type XMLHttpRequest and I can not debug that object. Thanks, Serkan -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. www.likyateknoloji.com -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. --
Re: Work on Emulation
Hi, After pressing login button I am getting the error below: I guess, the response handler can not handle the response string => "1.0.0;Windows 10;STATE_WORKING" Here is the part of the js that makes the request (URLLoader.js:88-93): if (contentData) { element.send(contentData); } else { element.send(); } this.dispatchEvent(new org.apache.royale.events.Event("postSend")); The "element" is type XMLHttpRequest and I can not debug that object. Thanks, Serkan
Re: Work on Emulation
I thought you did not get the mail so i sent it twice. It is not a new problem, the same we discussed before, may be hard to remember. I may check the earlier mails and send you a summary when I have time. Thanks, Serkan 30.01.2019 23:22 tarihinde Alex Harui yazdı: Serkan, Do you have a specific question? Without a test case, it is not efficient for us to try to help you. I suggest looking into it yourself. I can help answer specific questions, but my queue of issues is pretty deep right now so I wouldn’t be able to do the whole investigation until next week at the earliest. Did you try your older test case? Does it have the same problem? Did you verify that it is states related? What does the DOM tree look like? Is the label offset by CSS or by position? HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Wednesday, January 30, 2019 at 11:53 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation 26.01.2019 09:49 tarihinde Serkan Taş yazdı: Hi Alex, I guess there are still some issues related with form layout with states; cid:part1.7124472A.5D1855AB@likyateknoloji.com Thanks, Serkan
Re: Work on Emulation
Serkan, Do you have a specific question? Without a test case, it is not efficient for us to try to help you. I suggest looking into it yourself. I can help answer specific questions, but my queue of issues is pretty deep right now so I wouldn’t be able to do the whole investigation until next week at the earliest. Did you try your older test case? Does it have the same problem? Did you verify that it is states related? What does the DOM tree look like? Is the label offset by CSS or by position? HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Wednesday, January 30, 2019 at 11:53 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation 26.01.2019 09:49 tarihinde Serkan Taş yazdı: Hi Alex, I guess there are still some issues related with form layout with states; [cid:part1.7124472A.5D1855AB@likyateknoloji.com] Thanks, Serkan
Re: Work on Emulation
26.01.2019 09:49 tarihinde Serkan Taş yazdı: Hi Alex, I guess there are still some issues related with form layout with states; Thanks, Serkan
Re: Work on Emulation
Hi Alex, I guess there are still some issues related with form layout with states; Thanks, Serkan
Re: Work on Emulation
Hi Alex, Created PR-383 including the changes for the issue. Thanks, Serkan 17.01.2019 22:50 tarihinde Serkan Taş yazdı: Okay I am going to work on the issue, it is over for me tonight. Thanks, Serkan 17.01.2019 22:46 tarihinde Alex Harui yazdı: Sure, and/or you can change the code, make sure it works, and submit a PR. -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Thursday, January 17, 2019 at 11:43 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation May I open an issue on github ? Here is URLLoader; COMPILE::JS { var element:XMLHttpRequest = this.element as XMLHttpRequest; element.onreadystatechange = progressHandler; var url:String = request.url; /* var contentData:String = null; if (_contentData != null) { if (_method == HTTPConstants.GET) { if (url.indexOf('?') != -1) { url += _contentData; } else { url += '?' + _contentData; } } else { contentData = _contentData; } } */ element.open(request.method, request.url, true); // element.timeout = _timeout; var sawContentType:Boolean = false; if (request.requestHeaders) { var n:int = request.requestHeaders.length; for (var i:int = 0; i < n; i++) { var header:HTTPHeader = request.requestHeaders[i]; if (header.name == HTTPHeader.CONTENT_TYPE) { sawContentType = true; } element.setRequestHeader(header.name, header.value); } } /* if (request.method != HTTPConstants.GET && !sawContentType && contentData) { element.setRequestHeader( HTTPHeader.CONTENT_TYPE, _contentType); } */ /* if (contentData) { element.send(contentData); } else {*/ element.send(); /* } */ } dispatchEvent(new Event("postSend")); } 17.01.2019 22:38 tarihinde Alex Harui yazdı: Hi Serkan, I think URLLoader needs to check the method and if it is POST to set request.data on the element. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Thursday, January 17, 2019 at 11:23 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, DirectHttpChannel calls URLLoader.load with */urlRequest /*parameter, which is correct and contains input data. mx.messaging.channels.DirectHTTPChannel.prototype.internalSend = function(msgResp) { var /** @type {mx.messaging.channels.DirectHTTPChannel.DirectHTTPMessageResponder} */ httpMsgResp = org.apache.royale.utils.Language.as(msgResp, mx.messaging.channels.DirectHTTPChannel.DirectHTTPMessageResponder, true); var /** @type {org.apache.royale.net.URLRequest} */ urlRequest; try { urlRequest = this.http_$$www_adobe_com$2006$flex$mx$internal__createURLRequest(httpMsgResp.message); } catch (e) { httpMsgResp.agent.fault(e.fault, httpMsgResp.message); return; } var /** @type {org.apache.royale.net.URLLoader} */ urlLoader = httpMsgResp.urlLoader; urlLoader.addEventListener(mx.events.ErrorEvent.ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.errorHandler, httpMsgResp, 'errorHandler')); urlLoader.addEventListener(mx.events.IOErrorEvent.IO_ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.errorHandler, httpMsgResp, 'errorHandler')); urlLoader.addEventListener(mx.events.SecurityErrorEvent.SECURITY_ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.securityErrorHandler, httpMsgResp, 'securityErrorHandler')); urlLoader.addEventListener(org.apache.royale.events.Event.COMPLETE, org.apache.royale.utils.Language.closure(httpMsgResp.completeHandler, httpMsgResp, 'completeHandler')); urlLoader.addEventListener(mx.events.HTTPStatusEvent.HTTP_STATUS, org.apache.royale.utils.Language.closure(httpMsgResp.httpStatusHandler, httpMsgResp, 'httpStatusHandler')); urlLoader.load(urlRequ
Re: Work on Emulation
Okay I am going to work on the issue, it is over for me tonight. Thanks, Serkan 17.01.2019 22:46 tarihinde Alex Harui yazdı: Sure, and/or you can change the code, make sure it works, and submit a PR. -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Thursday, January 17, 2019 at 11:43 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation May I open an issue on github ? Here is URLLoader; COMPILE::JS { var element:XMLHttpRequest = this.element as XMLHttpRequest; element.onreadystatechange = progressHandler; var url:String = request.url; /* var contentData:String = null; if (_contentData != null) { if (_method == HTTPConstants.GET) { if (url.indexOf('?') != -1) { url += _contentData; } else { url += '?' + _contentData; } } else { contentData = _contentData; } } */ element.open(request.method, request.url, true); // element.timeout = _timeout; var sawContentType:Boolean = false; if (request.requestHeaders) { var n:int = request.requestHeaders.length; for (var i:int = 0; i < n; i++) { var header:HTTPHeader = request.requestHeaders[i]; if (header.name == HTTPHeader.CONTENT_TYPE) { sawContentType = true; } element.setRequestHeader(header.name, header.value); } } /* if (request.method != HTTPConstants.GET && !sawContentType && contentData) { element.setRequestHeader( HTTPHeader.CONTENT_TYPE, _contentType); } */ /* if (contentData) { element.send(contentData); } else {*/ element.send(); /* } */ } dispatchEvent(new Event("postSend")); } 17.01.2019 22:38 tarihinde Alex Harui yazdı: Hi Serkan, I think URLLoader needs to check the method and if it is POST to set request.data on the element. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Thursday, January 17, 2019 at 11:23 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, DirectHttpChannel calls URLLoader.load with */urlRequest /*parameter, which is correct and contains input data. mx.messaging.channels.DirectHTTPChannel.prototype.internalSend = function(msgResp) { var /** @type {mx.messaging.channels.DirectHTTPChannel.DirectHTTPMessageResponder} */ httpMsgResp = org.apache.royale.utils.Language.as(msgResp, mx.messaging.channels.DirectHTTPChannel.DirectHTTPMessageResponder, true); var /** @type {org.apache.royale.net.URLRequest} */ urlRequest; try { urlRequest = this.http_$$www_adobe_com$2006$flex$mx$internal__createURLRequest(httpMsgResp.message); } catch (e) { httpMsgResp.agent.fault(e.fault, httpMsgResp.message); return; } var /** @type {org.apache.royale.net.URLLoader} */ urlLoader = httpMsgResp.urlLoader; urlLoader.addEventListener(mx.events.ErrorEvent.ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.errorHandler, httpMsgResp, 'errorHandler')); urlLoader.addEventListener(mx.events.IOErrorEvent.IO_ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.errorHandler, httpMsgResp, 'errorHandler')); urlLoader.addEventListener(mx.events.SecurityErrorEvent.SECURITY_ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.securityErrorHandler, httpMsgResp, 'securityErrorHandler')); urlLoader.addEventListener(org.apache.royale.events.Event.COMPLETE, org.apache.royale.utils.Language.closure(httpMsgResp.completeHandler, httpMsgResp, 'completeHandler')); urlLoader.addEventListener(mx.events.HTTPStatusEvent.HTTP_STATUS, org.apache.royale.utils.Language.closure(httpMsgResp.httpStatusHandler, httpMsgResp, 'httpStatusHandler')); urlLoader.load(urlRequest); }; And URLoader.load is called : org.apache.royale.net.URLLoader.prototype.load = function(req
Re: Work on Emulation
Sure, and/or you can change the code, make sure it works, and submit a PR. -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Thursday, January 17, 2019 at 11:43 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation May I open an issue on github ? Here is URLLoader; COMPILE::JS { var element:XMLHttpRequest = this.element as XMLHttpRequest; element.onreadystatechange = progressHandler; var url:String = request.url; /* var contentData:String = null; if (_contentData != null) { if (_method == HTTPConstants.GET) { if (url.indexOf('?') != -1) { url += _contentData; } else { url += '?' + _contentData; } } else { contentData = _contentData; } } */ element.open(request.method, request.url, true); // element.timeout = _timeout; var sawContentType:Boolean = false; if (request.requestHeaders) { var n:int = request.requestHeaders.length; for (var i:int = 0; i < n; i++) { var header:HTTPHeader = request.requestHeaders[i]; if (header.name == HTTPHeader.CONTENT_TYPE) { sawContentType = true; } element.setRequestHeader(header.name, header.value); } } /* if (request.method != HTTPConstants.GET && !sawContentType && contentData) { element.setRequestHeader( HTTPHeader.CONTENT_TYPE, _contentType); } */ /* if (contentData) { element.send(contentData); } else {*/ element.send(); /* } */ } dispatchEvent(new Event("postSend")); } 17.01.2019 22:38 tarihinde Alex Harui yazdı: Hi Serkan, I think URLLoader needs to check the method and if it is POST to set request.data on the element. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, January 17, 2019 at 11:23 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, DirectHttpChannel calls URLLoader.load with urlRequest parameter, which is correct and contains input data. mx.messaging.channels.DirectHTTPChannel.prototype.internalSend = function(msgResp) { var /** @type {mx.messaging.channels.DirectHTTPChannel.DirectHTTPMessageResponder} */ httpMsgResp = org.apache.royale.utils.Language.as(msgResp, mx.messaging.channels.DirectHTTPChannel.DirectHTTPMessageResponder, true); var /** @type {org.apache.royale.net.URLRequest} */ urlRequest; try { urlRequest = this.http_$$www_adobe_com$2006$flex$mx$internal__createURLRequest(httpMsgResp.message); } catch (e) { httpMsgResp.agent.fault(e.fault, httpMsgResp.message); return; } var /** @type {org.apache.royale.net.URLLoader} */ urlLoader = httpMsgResp.urlLoader; urlLoader.addEventListener(mx.events.ErrorEvent.ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.errorHandler, httpMsgResp, 'errorHandler')); urlLoader.addEventListener(mx.events.IOErrorEvent.IO_ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.errorHandler, httpMsgResp, 'errorHandler')); urlLoader.addEventListener(mx.events.SecurityErrorEvent.SECURITY_ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.securityErrorHandler, httpMsgResp, 'securityErrorHandler')); urlLoader.addEventListener(org.apache.royale.events.Event.COMPLETE, org.apache.royale.utils.Language.closure(httpMsgResp.completeHandler, httpMsgResp, 'completeHandler')); urlLoader.addEventListener(mx.events.HTTPStatusEvent.HTTP_STATUS, org.apache.royale.utils.Language.closure(httpMsgResp.httpStatusHandler, httpMsgResp, 'httpStatusHandler')); urlLoader.load(urlRequest); }; And URLoader.load is called : org.apache.royale.net.URLLoader.prototype.load = function(request) { var /** @type {XMLHttpRequest} */ element = org.apache.royale.utils.Language.as(this.org_apache_royale_net_URLLoader_element, XMLHttpRequest); element.onreadystatechange = org.apache.royale.utils.Language.closure(this.progressHandler, this, 'progressHandler'); var /** @type {string} */ url = request.url; e
Re: Work on Emulation
May I open an issue on github ? Here is URLLoader; COMPILE::JS { var element:XMLHttpRequest = this.element as XMLHttpRequest; element.onreadystatechange = progressHandler; var url:String = request.url; /* var contentData:String = null; if (_contentData != null) { if (_method == HTTPConstants.GET) { if (url.indexOf('?') != -1) { url += _contentData; } else { url += '?' + _contentData; } } else { contentData = _contentData; } } */ element.open(request.method, request.url, true); // element.timeout = _timeout; var sawContentType:Boolean = false; if (request.requestHeaders) { var n:int = request.requestHeaders.length; for (var i:int = 0; i < n; i++) { var header:HTTPHeader = request.requestHeaders[i]; if (header.name == HTTPHeader.CONTENT_TYPE) { sawContentType = true; } element.setRequestHeader(header.name, header.value); } } /* if (request.method != HTTPConstants.GET && !sawContentType && contentData) { element.setRequestHeader( HTTPHeader.CONTENT_TYPE, _contentType); } */ /* if (contentData) { element.send(contentData); } else {*/ element.send(); /* } */ } dispatchEvent(new Event("postSend")); } 17.01.2019 22:38 tarihinde Alex Harui yazdı: Hi Serkan, I think URLLoader needs to check the method and if it is POST to set request.data on the element. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Thursday, January 17, 2019 at 11:23 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, DirectHttpChannel calls URLLoader.load with */urlRequest /*parameter, which is correct and contains input data. mx.messaging.channels.DirectHTTPChannel.prototype.internalSend = function(msgResp) { var /** @type {mx.messaging.channels.DirectHTTPChannel.DirectHTTPMessageResponder} */ httpMsgResp = org.apache.royale.utils.Language.as(msgResp, mx.messaging.channels.DirectHTTPChannel.DirectHTTPMessageResponder, true); var /** @type {org.apache.royale.net.URLRequest} */ urlRequest; try { urlRequest = this.http_$$www_adobe_com$2006$flex$mx$internal__createURLRequest(httpMsgResp.message); } catch (e) { httpMsgResp.agent.fault(e.fault, httpMsgResp.message); return; } var /** @type {org.apache.royale.net.URLLoader} */ urlLoader = httpMsgResp.urlLoader; urlLoader.addEventListener(mx.events.ErrorEvent.ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.errorHandler, httpMsgResp, 'errorHandler')); urlLoader.addEventListener(mx.events.IOErrorEvent.IO_ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.errorHandler, httpMsgResp, 'errorHandler')); urlLoader.addEventListener(mx.events.SecurityErrorEvent.SECURITY_ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.securityErrorHandler, httpMsgResp, 'securityErrorHandler')); urlLoader.addEventListener(org.apache.royale.events.Event.COMPLETE, org.apache.royale.utils.Language.closure(httpMsgResp.completeHandler, httpMsgResp, 'completeHandler')); urlLoader.addEventListener(mx.events.HTTPStatusEvent.HTTP_STATUS, org.apache.royale.utils.Language.closure(httpMsgResp.httpStatusHandler, httpMsgResp, 'httpStatusHandler')); urlLoader.load(urlRequest); }; And URLoader.load is called : org.apache.royale.net.URLLoader.prototype.load = function(request) { var /** @type {XMLHttpRequest} */ element = org.apache.royale.utils.Language.as(this.org_apache_royale_net_URLLoader_element, XMLHttpRequest); element.onreadystatechange = org.apache.royale.utils.Language.closure(this.progressHandler, this, 'progressHandler'); var /** @type {string} */ url = request.url; element.open(request.method, request.url, true); var /** @type {boolean} */ sawContentType = false; if (request.requestHeaders) { var /** @type {number} */ n = request.requestHeaders.length; for (var /** @type {number} */ i = 0; i < n; i++) { var /** @type {org.apache.royale.net.HTTPHeader} */ header = request.requestHeaders[i]; if (header.name == org.apache.royale.net.HTTPHeader.CONTENT_TYPE) { sawConten
Re: Work on Emulation
Hi Serkan, I think URLLoader needs to check the method and if it is POST to set request.data on the element. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Thursday, January 17, 2019 at 11:23 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, DirectHttpChannel calls URLLoader.load with urlRequest parameter, which is correct and contains input data. mx.messaging.channels.DirectHTTPChannel.prototype.internalSend = function(msgResp) { var /** @type {mx.messaging.channels.DirectHTTPChannel.DirectHTTPMessageResponder} */ httpMsgResp = org.apache.royale.utils.Language.as(msgResp, mx.messaging.channels.DirectHTTPChannel.DirectHTTPMessageResponder, true); var /** @type {org.apache.royale.net.URLRequest} */ urlRequest; try { urlRequest = this.http_$$www_adobe_com$2006$flex$mx$internal__createURLRequest(httpMsgResp.message); } catch (e) { httpMsgResp.agent.fault(e.fault, httpMsgResp.message); return; } var /** @type {org.apache.royale.net.URLLoader} */ urlLoader = httpMsgResp.urlLoader; urlLoader.addEventListener(mx.events.ErrorEvent.ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.errorHandler, httpMsgResp, 'errorHandler')); urlLoader.addEventListener(mx.events.IOErrorEvent.IO_ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.errorHandler, httpMsgResp, 'errorHandler')); urlLoader.addEventListener(mx.events.SecurityErrorEvent.SECURITY_ERROR, org.apache.royale.utils.Language.closure(httpMsgResp.securityErrorHandler, httpMsgResp, 'securityErrorHandler')); urlLoader.addEventListener(org.apache.royale.events.Event.COMPLETE, org.apache.royale.utils.Language.closure(httpMsgResp.completeHandler, httpMsgResp, 'completeHandler')); urlLoader.addEventListener(mx.events.HTTPStatusEvent.HTTP_STATUS, org.apache.royale.utils.Language.closure(httpMsgResp.httpStatusHandler, httpMsgResp, 'httpStatusHandler')); urlLoader.load(urlRequest); }; And URLoader.load is called : org.apache.royale.net.URLLoader.prototype.load = function(request) { var /** @type {XMLHttpRequest} */ element = org.apache.royale.utils.Language.as(this.org_apache_royale_net_URLLoader_element, XMLHttpRequest); element.onreadystatechange = org.apache.royale.utils.Language.closure(this.progressHandler, this, 'progressHandler'); var /** @type {string} */ url = request.url; element.open(request.method, request.url, true); var /** @type {boolean} */ sawContentType = false; if (request.requestHeaders) { var /** @type {number} */ n = request.requestHeaders.length; for (var /** @type {number} */ i = 0; i < n; i++) { var /** @type {org.apache.royale.net.HTTPHeader} */ header = request.requestHeaders[i]; if (header.name == org.apache.royale.net.HTTPHeader.CONTENT_TYPE) { sawContentType = true; } element.setRequestHeader(header.name, header.value); } } element.send(); this.dispatchEvent(new org.apache.royale.events.Event("postSend")); }; element.open is called with correct url and correct method - got from request which correct. element.send() is called, but there is no place in load function that sets the input parameter request.data to element before calling send method. If you prefer I may create a sample project for you to check. Thanks, Serkan 17.01.2019 22:15 tarihinde Alex Harui yazdı: Hi Serkan, I assume your goal is to get DirectHTTPChannel to work? Or maybe I do not understand your scenario. Doesn’t DirectHTTPChannel eventually call URLLoader.load? It looked from your screenshot that the XML data was not handled correctly by createURLRequest. -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, January 17, 2019 at 10:38 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, Do you want me to replace URLLoader.load with DirectHTTPChannel.createURLRequest ? Thanks, Serkan 17.01.2019 06:24 tarihinde Serkan Taş yazdı: I can say that server side does not get data, so I am sure that it is not sent. The point is where it is lost. I am going to check your point. Thanks, Serkan Android için Outlook<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7Cca4c3b81e3ae434fca1008d67cb132b1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636833497864654499=Ux4VBl0Aem626faFOga2pZZ6d2ahopE3tjgmY%2FN%2BQM0%3D=0> uygulamasını edinin On Wed, Jan 16, 2019 at 11:42 PM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Try DirectHTTPChannel’s createURLRequest. From: Alex Harui <mailto:aha...@adobe.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org
Re: Work on Emulation
Hi Serkan, I assume your goal is to get DirectHTTPChannel to work? Or maybe I do not understand your scenario. Doesn’t DirectHTTPChannel eventually call URLLoader.load? It looked from your screenshot that the XML data was not handled correctly by createURLRequest. -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Thursday, January 17, 2019 at 10:38 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, Do you want me to replace URLLoader.load with DirectHTTPChannel.createURLRequest ? Thanks, Serkan 17.01.2019 06:24 tarihinde Serkan Taş yazdı: I can say that server side does not get data, so I am sure that it is not sent. The point is where it is lost. I am going to check your point. Thanks, Serkan Android için Outlook<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7C54620cf7874d4120893108d67caafd5e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636833471172442091=sMOBR4O%2BhyLwdjkd8H0KbfgcLLFLaQxYPd52gnvrGn0%3D=0> uygulamasını edinin On Wed, Jan 16, 2019 at 11:42 PM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Try DirectHTTPChannel’s createURLRequest. From: Alex Harui <mailto:aha...@adobe.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Wednesday, January 16, 2019 at 12:22 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation I haven’t looked at the code, but I would imagine data was set on the request before it got passed into load? Or data is set on the URLLoader by some other code and you can set a breakpoint on the data setter. -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Wednesday, January 16, 2019 at 12:03 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, Sorry for the delay, here is the debug screen-shots. Just trying to recover from flu The picture below show the places where the post request is sent: element.send() [cid:part1.B62196BD.66A79116@likyateknoloji.com] And here are the values of request and the element : [cid:part2.BB4EE043.35BE4B87@likyateknoloji.com] [cid:part3.B23DA06F.5E8F1667@likyateknoloji.com] I can see in the debug view that the method an the url is set correctly for element but can not see where the data is set. Even in URLLoader.as JS compiler section has no setting for request data. May be I am missing something. Thanks, Serkan 14.01.2019 08:08 tarihinde serkan@likyateknoloji.com<mailto:serkan@likyateknoloji.com> yazdı: I drilled in to the DirectChannel apply method and saw the same picture that all the values are as expected. I am going to prepare the case and the screenshot later today. Thanks, Serkan Alinti Alex Harui <mailto:aha...@adobe.com> I think there is a good chance that that AbstractOperation doesn't work (or the AbstractInvoker it calls isn't working). I would recommend that you debug in that area first. -Alex On 1/13/19, 8:36 PM, "serkan@likyateknoloji.com"<mailto:serkan@likyateknoloji.com> <mailto:serkan@likyateknoloji.com> wrote: Sure not Alex, I am going through my application workflow. If you need to know, than I may prepare an application to see if it is or not. I think you are wondering about the emulated classes causing the issue. Thanks, Serkan Alinti Alex Harui <mailto:aha...@adobe.com> > Hi Serkan, > > Have you seen AbstractOperation (for HTTP) work without XML? > > -Alex > > From: Serkan Taş <mailto:serkan@likyateknoloji.com> > Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Date: Sunday, January 13, 2019 at 11:01 AM > To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Subject: Re: Work on Emulation > > Hi Alex, > > Adding the part below worked for text conversion. > > if (ctype == CONTENT_TYPE_XML) > { > paramsToSend = parameters.toXMLString(); > > I am not sure but I guess this time the data is not sent to the > server side. I debugged the code and see that it is all set. > > Here is the capture of the debug, you can see the watch expression > and the parameters which are all correct. > > [cid:part1.6700F27F.BB28F758@liky
Re: Work on Emulation
Hi Alex, Do you want me to replace URLLoader.load with DirectHTTPChannel.createURLRequest ? Thanks, Serkan 17.01.2019 06:24 tarihinde Serkan Taş yazdı: I can say that server side does not get data, so I am sure that it is not sent. The point is where it is lost. I am going to check your point. Thanks, Serkan Android için Outlook <https://aka.ms/ghei36> uygulamasını edinin On Wed, Jan 16, 2019 at 11:42 PM +0300, "Alex Harui" <mailto:aha...@adobe.com>> wrote: Try DirectHTTPChannel’s createURLRequest. *From: *Alex Harui *Reply-To: *"users@royale.apache.org" *Date: *Wednesday, January 16, 2019 at 12:22 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation I haven’t looked at the code, but I would imagine data was set on the request before it got passed into load? Or data is set on the URLLoader by some other code and you can set a breakpoint on the data setter. -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Wednesday, January 16, 2019 at 12:03 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, Sorry for the delay, here is the debug screen-shots. Just trying to recover from flu The picture below show the places where the post request is sent: element.send() cid:part1.B62196BD.66A79116@likyateknoloji.com And here are the values of request and the element : cid:part2.BB4EE043.35BE4B87@likyateknoloji.com cid:part3.B23DA06F.5E8F1667@likyateknoloji.com I can see in the debug view that the method an the url is set correctly for element but can not see where the data is set. Even in URLLoader.as JS compiler section has no setting for request data. May be I am missing something. Thanks, Serkan 14.01.2019 08:08 tarihinde serkan@likyateknoloji.com <mailto:serkan@likyateknoloji.com> yazdı: I drilled in to the DirectChannel apply method and saw the same picture that all the values are as expected. I am going to prepare the case and the screenshot later today. Thanks, Serkan Alinti Alex Harui <mailto:aha...@adobe.com> I think there is a good chance that that AbstractOperation doesn't work (or the AbstractInvoker it calls isn't working). I would recommend that you debug in that area first. -Alex On 1/13/19, 8:36 PM, "serkan@likyateknoloji.com" <mailto:serkan@likyateknoloji.com> <mailto:serkan@likyateknoloji.com> wrote: Sure not Alex, I am going through my application workflow. If you need to know, than I may prepare an application to see if it is or not. I think you are wondering about the emulated classes causing the issue. Thanks, Serkan Alinti Alex Harui <mailto:aha...@adobe.com> > Hi Serkan, > > Have you seen AbstractOperation (for HTTP) work without XML? > > -Alex > > From: Serkan Taş <mailto:serkan@likyateknoloji.com> > Reply-To: "users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Date: Sunday, January 13, 2019 at 11:01 AM > To: "users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Subject: Re: Work on Emulation > > Hi Alex, > > Adding the part below worked for text conversion. > > if (ctype == CONTENT_TYPE_XML) > { > paramsToSend = parameters.toXMLString(); > > I am not sure but I guess this time the data is not sent to the > server side. I debugged the code and see that it is all set. > > Here is the capture of the debug, you can see the watch expression > and the parameters which are all correct. > > [cid:part1.6700F27F.BB28F758@likyateknoloji.com] > > > 13.01.2019 14:35 tarihinde Serkan Taş yazdı: > Hi Alex, > > parameters is XML. It
Re: Work on Emulation
I can say that server side does not get data, so I am sure that it is not sent. The point is where it is lost. I am going to check your point. Thanks, Serkan Android için Outlook uygulamasını edinin On Wed, Jan 16, 2019 at 11:42 PM +0300, "Alex Harui" wrote: Try DirectHTTPChannel’s createURLRequest. From: Alex Harui Reply-To: "users@royale.apache.org" Date: Wednesday, January 16, 2019 at 12:22 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation I haven’t looked at the code, but I would imagine data was set on the request before it got passed into load? Or data is set on the URLLoader by some other code and you can set a breakpoint on the data setter. -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Wednesday, January 16, 2019 at 12:03 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, Sorry for the delay, here is the debug screen-shots. Just trying to recover from flu The picture below show the places where the post request is sent: element.send() And here are the values of request and the element : I can see in the debug view that the method an the url is set correctly for element but can not see where the data is set. Even in URLLoader.as JS compiler section has no setting for request data. May be I am missing something. Thanks, Serkan 14.01.2019 08:08 tarihinde serkan@likyateknoloji.com yazdı: I drilled in to the DirectChannel apply method and saw the same picture that all the values are as expected. I am going to prepare the case and the screenshot later today. Thanks, Serkan Alinti Alex Harui I think there is a good chance that that AbstractOperation doesn't work (or the AbstractInvoker it calls isn't working). I would recommend that you debug in that area first. -Alex On 1/13/19, 8:36 PM, "serkan@likyateknoloji.com" wrote: Sure not Alex, I am going through my application workflow. If you need to know, than I may prepare an application to see if it is or not. I think you are wondering about the emulated classes causing the issue. Thanks, Serkan Alinti Alex Harui > Hi Serkan, > > Have you seen AbstractOperation (for HTTP) work without XML? > > -Alex > > From: Serkan Taş > Reply-To: "users@royale.apache.org" > Date: Sunday, January 13, 2019 at 11:01 AM > To: "users@royale.apache.org" > Subject: Re: Work on Emulation > > Hi Alex, > > Adding the part below worked for text conversion. > > if (ctype == CONTENT_TYPE_XML) > { > paramsToSend = parameters.toXMLString(); > > I am not sure but I guess this time the data is not sent to the > server side. I debugged the code and see that it is all set. > > Here is the capture of the debug, you can see the watch expression > and the parameters which are all correct. > > [cid:part1.6700F27F.BB28F758@likyateknoloji.com] > > > 13.01.2019 14:35 tarihinde Serkan Taş yazdı: > Hi Alex, > > parameters is XML. It is the return of > > XML.conversion("username=" + > com.likya.pinara.model.ModelLocator.getInstance().currentUser.username); > > Yes the request use POST. I am going to try toXMLString. > > Thanks, > Serkan > > 13.01.2019 10:01 tarihinde Alex Harui yazdı: > Hi Serkan, > > What is parameters? Isn’t it XML or an Array with one XML element? > If so, “as String” will return null since neither XML or Array is a > String. I think the commented code calls toXMLString on an XML > instance, I think that’s what you want to do. I think the code > also switches to POST as well. > > HTH, > -Alex -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.comdata=02%7C01%7Caharui%40adobe.com%7Cf63c32d6d50541ee5e4708d679d9e4db%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636830374110739512sdata=gD5MNvTJP%2FrA5DjVt3RFnfHzZHRLOCvb9%2BM1o%2BkKOqQ%3Dreserved=0 -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini
Re: Work on Emulation
Try DirectHTTPChannel’s createURLRequest. From: Alex Harui Reply-To: "users@royale.apache.org" Date: Wednesday, January 16, 2019 at 12:22 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation I haven’t looked at the code, but I would imagine data was set on the request before it got passed into load? Or data is set on the URLLoader by some other code and you can set a breakpoint on the data setter. -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Wednesday, January 16, 2019 at 12:03 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, Sorry for the delay, here is the debug screen-shots. Just trying to recover from flu The picture below show the places where the post request is sent: element.send() [cid:part1.B62196BD.66A79116@likyateknoloji.com] And here are the values of request and the element : [cid:part2.BB4EE043.35BE4B87@likyateknoloji.com] [cid:part3.B23DA06F.5E8F1667@likyateknoloji.com] I can see in the debug view that the method an the url is set correctly for element but can not see where the data is set. Even in URLLoader.as JS compiler section has no setting for request data. May be I am missing something. Thanks, Serkan 14.01.2019 08:08 tarihinde serkan@likyateknoloji.com<mailto:serkan@likyateknoloji.com> yazdı: I drilled in to the DirectChannel apply method and saw the same picture that all the values are as expected. I am going to prepare the case and the screenshot later today. Thanks, Serkan Alinti Alex Harui <mailto:aha...@adobe.com> I think there is a good chance that that AbstractOperation doesn't work (or the AbstractInvoker it calls isn't working). I would recommend that you debug in that area first. -Alex On 1/13/19, 8:36 PM, "serkan@likyateknoloji.com"<mailto:serkan@likyateknoloji.com> <mailto:serkan@likyateknoloji.com> wrote: Sure not Alex, I am going through my application workflow. If you need to know, than I may prepare an application to see if it is or not. I think you are wondering about the emulated classes causing the issue. Thanks, Serkan Alinti Alex Harui <mailto:aha...@adobe.com> > Hi Serkan, > > Have you seen AbstractOperation (for HTTP) work without XML? > > -Alex > > From: Serkan Taş <mailto:serkan@likyateknoloji.com> > Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Date: Sunday, January 13, 2019 at 11:01 AM > To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Subject: Re: Work on Emulation > > Hi Alex, > > Adding the part below worked for text conversion. > > if (ctype == CONTENT_TYPE_XML) > { > paramsToSend = parameters.toXMLString(); > > I am not sure but I guess this time the data is not sent to the > server side. I debugged the code and see that it is all set. > > Here is the capture of the debug, you can see the watch expression > and the parameters which are all correct. > > [cid:part1.6700F27F.BB28F758@likyateknoloji.com] > > > 13.01.2019 14:35 tarihinde Serkan Taş yazdı: > Hi Alex, > > parameters is XML. It is the return of > > XML.conversion("username=" + > com.likya.pinara.model.ModelLocator.getInstance().currentUser.username); > > Yes the request use POST. I am going to try toXMLString. > > Thanks, > Serkan > > 13.01.2019 10:01 tarihinde Alex Harui yazdı: > Hi Serkan, > > What is parameters? Isn’t it XML or an Array with one XML element? > If so, “as String” will return null since neither XML or Array is a > String. I think the commented code calls toXMLString on an XML > instance, I think that’s what you want to do. I think the code > also switches to POST as well. > > HTH, > -Alex -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.comdata=02%7C01%7Caharui%40adobe.com%7Cf63c32d6d50541ee5e4708d679d9e4db%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636830374110739512sdata=gD5MNvTJP%2FrA5DjVt3RFnfHzZHRLOCvb9%2BM1o%2BkKOqQ%3Dreserved=0<https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.com=02%7C01%7Caharui%40adobe.com%7Cd786c9b9f4c34d2c714608d67bf052e6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636832669447736144=KXjFo358QdgwFSn2wdPpNRrJr6xCtYfa%2BvuPDe2e5UA%3D=0> ---
Re: Work on Emulation
Hi Alex, Sorry for the delay, here is the debug screen-shots. Just trying to recover from flu The picture below show the places where the post request is sent: element.send() And here are the values of request and the element : I can see in the debug view that the method an the url is set correctly for element but can not see where the data is set. Even in URLLoader.as JS compiler section has no setting for request data. May be I am missing something. Thanks, Serkan 14.01.2019 08:08 tarihinde serkan@likyateknoloji.com yazdı: I drilled in to the DirectChannel apply method and saw the same picture that all the values are as expected. I am going to prepare the case and the screenshot later today. Thanks, Serkan Alinti Alex Harui I think there is a good chance that that AbstractOperation doesn't work (or the AbstractInvoker it calls isn't working). I would recommend that you debug in that area first. -Alex On 1/13/19, 8:36 PM, "serkan@likyateknoloji.com" wrote: Sure not Alex, I am going through my application workflow. If you need to know, than I may prepare an application to see if it is or not. I think you are wondering about the emulated classes causing the issue. Thanks, Serkan Alinti Alex Harui > Hi Serkan, > > Have you seen AbstractOperation (for HTTP) work without XML? > > -Alex > > From: Serkan Taş > Reply-To: "users@royale.apache.org" > Date: Sunday, January 13, 2019 at 11:01 AM > To: "users@royale.apache.org" > Subject: Re: Work on Emulation > > Hi Alex, > > Adding the part below worked for text conversion. > > if (ctype == CONTENT_TYPE_XML) > { > paramsToSend = parameters.toXMLString(); > > I am not sure but I guess this time the data is not sent to the > server side. I debugged the code and see that it is all set. > > Here is the capture of the debug, you can see the watch expression > and the parameters which are all correct. > > [cid:part1.6700F27F.BB28F758@likyateknoloji.com] > > > 13.01.2019 14:35 tarihinde Serkan Taş yazdı: > Hi Alex, > > parameters is XML. It is the return of > > XML.conversion("username=" + > com.likya.pinara.model.ModelLocator.getInstance().currentUser.username); > > Yes the request use POST. I am going to try toXMLString. > > Thanks, > Serkan > > 13.01.2019 10:01 tarihinde Alex Harui yazdı: > Hi Serkan, > > What is parameters? Isn’t it XML or an Array with one XML element? > If so, “as String” will return null since neither XML or Array is a > String. I think the commented code calls toXMLString on an XML > instance, I think that’s what you want to do. I think the code > also switches to POST as well. > > HTH, > -Alex -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.comdata=02%7C01%7Caharui%40adobe.com%7Cf63c32d6d50541ee5e4708d679d9e4db%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636830374110739512sdata=gD5MNvTJP%2FrA5DjVt3RFnfHzZHRLOCvb9%2BM1o%2BkKOqQ%3Dreserved=0 -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. --
Re: Work on Emulation
I drilled in to the DirectChannel apply method and saw the same picture that all the values are as expected. I am going to prepare the case and the screenshot later today. Thanks, Serkan Alinti Alex Harui I think there is a good chance that that AbstractOperation doesn't work (or the AbstractInvoker it calls isn't working). I would recommend that you debug in that area first. -Alex On 1/13/19, 8:36 PM, "serkan@likyateknoloji.com" wrote: Sure not Alex, I am going through my application workflow. If you need to know, than I may prepare an application to see if it is or not. I think you are wondering about the emulated classes causing the issue. Thanks, Serkan Alinti Alex Harui > Hi Serkan, > > Have you seen AbstractOperation (for HTTP) work without XML? > > -Alex > > From: Serkan Taş > Reply-To: "users@royale.apache.org" > Date: Sunday, January 13, 2019 at 11:01 AM > To: "users@royale.apache.org" > Subject: Re: Work on Emulation > > Hi Alex, > > Adding the part below worked for text conversion. > > if (ctype == CONTENT_TYPE_XML) > { > paramsToSend = parameters.toXMLString(); > > I am not sure but I guess this time the data is not sent to the > server side. I debugged the code and see that it is all set. > > Here is the capture of the debug, you can see the watch expression > and the parameters which are all correct. > > [cid:part1.6700F27F.BB28F758@likyateknoloji.com] > > > 13.01.2019 14:35 tarihinde Serkan Taş yazdı: > Hi Alex, > > parameters is XML. It is the return of > > XML.conversion("username=" + > com.likya.pinara.model.ModelLocator.getInstance().currentUser.username); > > Yes the request use POST. I am going to try toXMLString. > > Thanks, > Serkan > > 13.01.2019 10:01 tarihinde Alex Harui yazdı: > Hi Serkan, > > What is parameters? Isn’t it XML or an Array with one XML element? > If so, “as String” will return null since neither XML or Array is a > String. I think the commented code calls toXMLString on an XML > instance, I think that’s what you want to do. I think the code > also switches to POST as well. > > HTH, > -Alex -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.comdata=02%7C01%7Caharui%40adobe.com%7Cf63c32d6d50541ee5e4708d679d9e4db%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636830374110739512sdata=gD5MNvTJP%2FrA5DjVt3RFnfHzZHRLOCvb9%2BM1o%2BkKOqQ%3Dreserved=0 -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. -- -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. www.likyateknoloji.com -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. --
Re: Work on Emulation
I think there is a good chance that that AbstractOperation doesn't work (or the AbstractInvoker it calls isn't working). I would recommend that you debug in that area first. -Alex On 1/13/19, 8:36 PM, "serkan@likyateknoloji.com" wrote: Sure not Alex, I am going through my application workflow. If you need to know, than I may prepare an application to see if it is or not. I think you are wondering about the emulated classes causing the issue. Thanks, Serkan Alinti Alex Harui > Hi Serkan, > > Have you seen AbstractOperation (for HTTP) work without XML? > > -Alex > > From: Serkan Taş > Reply-To: "users@royale.apache.org" > Date: Sunday, January 13, 2019 at 11:01 AM > To: "users@royale.apache.org" > Subject: Re: Work on Emulation > > Hi Alex, > > Adding the part below worked for text conversion. > > if (ctype == CONTENT_TYPE_XML) > { > paramsToSend = parameters.toXMLString(); > > I am not sure but I guess this time the data is not sent to the > server side. I debugged the code and see that it is all set. > > Here is the capture of the debug, you can see the watch expression > and the parameters which are all correct. > > [cid:part1.6700F27F.BB28F758@likyateknoloji.com] > > > 13.01.2019 14:35 tarihinde Serkan Taş yazdı: > Hi Alex, > > parameters is XML. It is the return of > > XML.conversion("username=" + > com.likya.pinara.model.ModelLocator.getInstance().currentUser.username); > > Yes the request use POST. I am going to try toXMLString. > > Thanks, > Serkan > > 13.01.2019 10:01 tarihinde Alex Harui yazdı: > Hi Serkan, > > What is parameters? Isn’t it XML or an Array with one XML element? > If so, “as String” will return null since neither XML or Array is a > String. I think the commented code calls toXMLString on an XML > instance, I think that’s what you want to do. I think the code > also switches to POST as well. > > HTH, > -Alex -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.comdata=02%7C01%7Caharui%40adobe.com%7Cf63c32d6d50541ee5e4708d679d9e4db%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636830374110739512sdata=gD5MNvTJP%2FrA5DjVt3RFnfHzZHRLOCvb9%2BM1o%2BkKOqQ%3Dreserved=0 -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. --
Re: Work on Emulation
Sure not Alex, I am going through my application workflow. If you need to know, than I may prepare an application to see if it is or not. I think you are wondering about the emulated classes causing the issue. Thanks, Serkan Alinti Alex Harui Hi Serkan, Have you seen AbstractOperation (for HTTP) work without XML? -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Sunday, January 13, 2019 at 11:01 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, Adding the part below worked for text conversion. if (ctype == CONTENT_TYPE_XML) { paramsToSend = parameters.toXMLString(); I am not sure but I guess this time the data is not sent to the server side. I debugged the code and see that it is all set. Here is the capture of the debug, you can see the watch expression and the parameters which are all correct. [cid:part1.6700F27F.BB28F758@likyateknoloji.com] 13.01.2019 14:35 tarihinde Serkan Taş yazdı: Hi Alex, parameters is XML. It is the return of XML.conversion("username=" + com.likya.pinara.model.ModelLocator.getInstance().currentUser.username); Yes the request use POST. I am going to try toXMLString. Thanks, Serkan 13.01.2019 10:01 tarihinde Alex Harui yazdı: Hi Serkan, What is parameters? Isn’t it XML or an Array with one XML element? If so, “as String” will return null since neither XML or Array is a String. I think the commented code calls toXMLString on an XML instance, I think that’s what you want to do. I think the code also switches to POST as well. HTH, -Alex -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. www.likyateknoloji.com -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. --
Re: Work on Emulation
Hi Alex, Adding the part below worked for text conversion. if (ctype == CONTENT_TYPE_XML) { paramsToSend = parameters.toXMLString(); I am not sure but I guess this time the data is not sent to the server side. I debugged the code and see that it is all set. Here is the capture of the debug, you can see the watch expression and the parameters which are all correct. 13.01.2019 14:35 tarihinde Serkan Taş yazdı: Hi Alex, parameters is XML. It is the return of XML.conversion("username=" + com.likya.pinara.model.ModelLocator.getInstance().currentUser.username); Yes the request use POST. I am going to try toXMLString. Thanks, Serkan 13.01.2019 10:01 tarihinde Alex Harui yazdı: Hi Serkan, What is parameters? Isn’t it XML or an Array with one XML element? If so, “as String” will return null since neither XML or Array is a String. I think the commented code calls toXMLString on an XML instance, I think that’s what you want to do. I think the code also switches to POST as well. HTH, -Alex
Re: Work on Emulation
Hi Alex, parameters is XML. It is the return of XML.conversion("username=" + com.likya.pinara.model.ModelLocator.getInstance().currentUser.username); Yes the request use POST. I am going to try toXMLString. Thanks, Serkan 13.01.2019 10:01 tarihinde Alex Harui yazdı: Hi Serkan, What is parameters? Isn’t it XML or an Array with one XML element? If so, “as String” will return null since neither XML or Array is a String. I think the commented code calls toXMLString on an XML instance, I think that’s what you want to do. I think the code also switches to POST as well. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Saturday, January 12, 2019 at 1:29 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, Your welcome, happy to help improving the framework. I changed the code AbstractOperations method sendBody and added the line below for XML content which is all commented-out : paramsToSend = parameters as String; Unfortunately, the generated javascript can not convert the text to string. Here is the js piece preparing XML data and sending the XML to the service call : packedResponse = XML.conversion("username=" + com.likya.pinara.model.ModelLocator.getInstance().currentUser.username); com.likya.pinara.utils.BasicAuthenticationHandler.authAndCall(this.userOpsService, "userread", packedResponse); In AbstractOperaiton js : if (ctype == mx.rpc.http.AbstractOperation.CONTENT_TYPE_XML) { paramsToSend = org.apache.royale.utils.Language.as(parameters, String); } org.apache.royale.utils.Language.as(parameters, String) returns null for the packedResponse whch is set to parameters in javascript function. I thought that getting XML as string will work but did not. Let me knıow what you think, what should I do next. Thanks, Serkan 11.01.2019 20:16 tarihinde Alex Harui yazdı: I had time to investigate this afternoon. I just pushed a fix for it. Thanks for finding it. -Alex On 1/10/19, 9:20 PM,"serkan@likyateknoloji.com" <mailto:serkan@likyateknoloji.com> <mailto:serkan@likyateknoloji.com> wrote: Alinti Alex Harui <mailto:aha...@adobe.com> > Congratulations on getting that far. Are you still having the issue > with states and the login form looking wrong? Thank you Alex. But I am still having the issue and may open a bug on github, can you check my previous mail which has the details and the sample code ? > > In order to help with what to do for CONTENT_TYPE_XML, can you tell > us what you want to have happen? From the code, it looks like it > should POST the XML as a string. If that’s true, then just run the > last part that calls toXMLString() and see if that works. If not, > compare that string with what you do want and we try to help figure > out what else needs to be changed. That part is commented out > mainly because there were conditions in there that required > XMLDocument and we didn’t want to get into emulating that right now. As emulated the the class, I remeber its complexity for implementing XMLDocument. I think just passing the xml as string to the rest call may solve my issue. I will try and let you know. Thanks, Serkan > > -Alex > > From: Serkan Taş <mailto:serkan@likyateknoloji.com> > Reply-To:"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Date: Thursday, January 10, 2019 at 2:58 AM > To:"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Subject: Re: Work on Emulation > > Hi all, > > At last, I am able to display the login window and authenticate my > application through backend server. > > After from here, I have to implement the missing part of the method > sendBody in mx.rpc.http.AbstractOperation class. > > The part; > > if (ctype == CONTENT_TYPE_XML) > > is all commented-out and is related with http post with XML content. > > Any help kindly appreciated. > > Thanks, > Serkan -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Lt
Re: Work on Emulation
Hi Serkan, What is parameters? Isn’t it XML or an Array with one XML element? If so, “as String” will return null since neither XML or Array is a String. I think the commented code calls toXMLString on an XML instance, I think that’s what you want to do. I think the code also switches to POST as well. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Saturday, January 12, 2019 at 1:29 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, Your welcome, happy to help improving the framework. I changed the code AbstractOperations method sendBody and added the line below for XML content which is all commented-out : paramsToSend = parameters as String; Unfortunately, the generated javascript can not convert the text to string. Here is the js piece preparing XML data and sending the XML to the service call : packedResponse = XML.conversion("username=" + com.likya.pinara.model.ModelLocator.getInstance().currentUser.username); com.likya.pinara.utils.BasicAuthenticationHandler.authAndCall(this.userOpsService, "userread", packedResponse); In AbstractOperaiton js : if (ctype == mx.rpc.http.AbstractOperation.CONTENT_TYPE_XML) { paramsToSend = org.apache.royale.utils.Language.as(parameters, String); } org.apache.royale.utils.Language.as(parameters, String) returns null for the packedResponse whch is set to parameters in javascript function. I thought that getting XML as string will work but did not. Let me knıow what you think, what should I do next. Thanks, Serkan 11.01.2019 20:16 tarihinde Alex Harui yazdı: I had time to investigate this afternoon. I just pushed a fix for it. Thanks for finding it. -Alex On 1/10/19, 9:20 PM, "serkan@likyateknoloji.com"<mailto:serkan@likyateknoloji.com> <mailto:serkan@likyateknoloji.com> wrote: Alinti Alex Harui <mailto:aha...@adobe.com> > Congratulations on getting that far. Are you still having the issue > with states and the login form looking wrong? Thank you Alex. But I am still having the issue and may open a bug on github, can you check my previous mail which has the details and the sample code ? > > In order to help with what to do for CONTENT_TYPE_XML, can you tell > us what you want to have happen? From the code, it looks like it > should POST the XML as a string. If that’s true, then just run the > last part that calls toXMLString() and see if that works. If not, > compare that string with what you do want and we try to help figure > out what else needs to be changed. That part is commented out > mainly because there were conditions in there that required > XMLDocument and we didn’t want to get into emulating that right now. As emulated the the class, I remeber its complexity for implementing XMLDocument. I think just passing the xml as string to the rest call may solve my issue. I will try and let you know. Thanks, Serkan > > -Alex > > From: Serkan Taş <mailto:serkan@likyateknoloji.com> > Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Date: Thursday, January 10, 2019 at 2:58 AM > To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> > Subject: Re: Work on Emulation > > Hi all, > > At last, I am able to display the login window and authenticate my > application through backend server. > > After from here, I have to implement the missing part of the method > sendBody in mx.rpc.http.AbstractOperation class. > > The part; > > if (ctype == CONTENT_TYPE_XML) > > is all commented-out and is related with http post with XML content. > > Any help kindly appreciated. > > Thanks, > Serkan -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.comdata=02%7C01%7Caharui%40adobe.com%7C0ea14e9f54cc4931010f08d67784910a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636827808586507558sdata=Bgq4iG8Imj0O%2FBWeQHDsSYoa33x07aNwrmPJC7Tz48o%3Dreserved=0<https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.com=02%7C01%7Caharui%40adobe.com%7C68a22a10778542f5b1d608d678705346%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636828821197241534=YqigddWBi%2BWaNZeKxKKceMCmmJxrfHwEv0RwkZkTekI%3D=0> -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen k
Re: Work on Emulation
Hi Alex, Your welcome, happy to help improving the framework. I changed the code AbstractOperations method sendBody and added the line below for XML content which is all commented-out : paramsToSend = parameters as String; Unfortunately, the generated javascript can not convert the text to string. Here is the js piece preparing XML data and sending the XML to the service call : packedResponse = XML.conversion("username=" + com.likya.pinara.model.ModelLocator.getInstance().currentUser.username); com.likya.pinara.utils.BasicAuthenticationHandler.authAndCall(this.userOpsService, "userread", packedResponse); In AbstractOperaiton js : if (ctype == mx.rpc.http.AbstractOperation.CONTENT_TYPE_XML) { paramsToSend = org.apache.royale.utils.Language.as(parameters, String); } org.apache.royale.utils.Language.as(parameters, String) returns null for the packedResponse whch is set to parameters in javascript function. I thought that getting XML as string will work but did not. Let me knıow what you think, what should I do next. Thanks, Serkan 11.01.2019 20:16 tarihinde Alex Harui yazdı: I had time to investigate this afternoon. I just pushed a fix for it. Thanks for finding it. -Alex On 1/10/19, 9:20 PM, "serkan@likyateknoloji.com" wrote: Alinti Alex Harui > Congratulations on getting that far. Are you still having the issue > with states and the login form looking wrong? Thank you Alex. But I am still having the issue and may open a bug on github, can you check my previous mail which has the details and the sample code ? > > In order to help with what to do for CONTENT_TYPE_XML, can you tell > us what you want to have happen? From the code, it looks like it > should POST the XML as a string. If that’s true, then just run the > last part that calls toXMLString() and see if that works. If not, > compare that string with what you do want and we try to help figure > out what else needs to be changed. That part is commented out > mainly because there were conditions in there that required > XMLDocument and we didn’t want to get into emulating that right now. As emulated the the class, I remeber its complexity for implementing XMLDocument. I think just passing the xml as string to the rest call may solve my issue. I will try and let you know. Thanks, Serkan > > -Alex > > From: Serkan Taş > Reply-To: "users@royale.apache.org" > Date: Thursday, January 10, 2019 at 2:58 AM > To: "users@royale.apache.org" > Subject: Re: Work on Emulation > > Hi all, > > At last, I am able to display the login window and authenticate my > application through backend server. > > After from here, I have to implement the missing part of the method > sendBody in mx.rpc.http.AbstractOperation class. > > The part; > > if (ctype == CONTENT_TYPE_XML) > > is all commented-out and is related with http post with XML content. > > Any help kindly appreciated. > > Thanks, > Serkan -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.comdata=02%7C01%7Caharui%40adobe.com%7C0ea14e9f54cc4931010f08d67784910a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636827808586507558sdata=Bgq4iG8Imj0O%2FBWeQHDsSYoa33x07aNwrmPJC7Tz48o%3Dreserved=0 -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. --
Re: Work on Emulation
I had time to investigate this afternoon. I just pushed a fix for it. Thanks for finding it. -Alex On 1/10/19, 9:20 PM, "serkan@likyateknoloji.com" wrote: Alinti Alex Harui > Congratulations on getting that far. Are you still having the issue > with states and the login form looking wrong? Thank you Alex. But I am still having the issue and may open a bug on github, can you check my previous mail which has the details and the sample code ? > > In order to help with what to do for CONTENT_TYPE_XML, can you tell > us what you want to have happen? From the code, it looks like it > should POST the XML as a string. If that’s true, then just run the > last part that calls toXMLString() and see if that works. If not, > compare that string with what you do want and we try to help figure > out what else needs to be changed. That part is commented out > mainly because there were conditions in there that required > XMLDocument and we didn’t want to get into emulating that right now. As emulated the the class, I remeber its complexity for implementing XMLDocument. I think just passing the xml as string to the rest call may solve my issue. I will try and let you know. Thanks, Serkan > > -Alex > > From: Serkan Taş > Reply-To: "users@royale.apache.org" > Date: Thursday, January 10, 2019 at 2:58 AM > To: "users@royale.apache.org" > Subject: Re: Work on Emulation > > Hi all, > > At last, I am able to display the login window and authenticate my > application through backend server. > > After from here, I have to implement the missing part of the method > sendBody in mx.rpc.http.AbstractOperation class. > > The part; > > if (ctype == CONTENT_TYPE_XML) > > is all commented-out and is related with http post with XML content. > > Any help kindly appreciated. > > Thanks, > Serkan -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.comdata=02%7C01%7Caharui%40adobe.com%7C0ea14e9f54cc4931010f08d67784910a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636827808586507558sdata=Bgq4iG8Imj0O%2FBWeQHDsSYoa33x07aNwrmPJC7Tz48o%3Dreserved=0 -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. --
Re: Work on Emulation
Alinti Alex Harui Congratulations on getting that far. Are you still having the issue with states and the login form looking wrong? Thank you Alex. But I am still having the issue and may open a bug on github, can you check my previous mail which has the details and the sample code ? In order to help with what to do for CONTENT_TYPE_XML, can you tell us what you want to have happen? From the code, it looks like it should POST the XML as a string. If that’s true, then just run the last part that calls toXMLString() and see if that works. If not, compare that string with what you do want and we try to help figure out what else needs to be changed. That part is commented out mainly because there were conditions in there that required XMLDocument and we didn’t want to get into emulating that right now. As emulated the the class, I remeber its complexity for implementing XMLDocument. I think just passing the xml as string to the rest call may solve my issue. I will try and let you know. Thanks, Serkan -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Thursday, January 10, 2019 at 2:58 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi all, At last, I am able to display the login window and authenticate my application through backend server. After from here, I have to implement the missing part of the method sendBody in mx.rpc.http.AbstractOperation class. The part; if (ctype == CONTENT_TYPE_XML) is all commented-out and is related with http post with XML content. Any help kindly appreciated. Thanks, Serkan -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. www.likyateknoloji.com -- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. --
Re: Work on Emulation
Congratulations on getting that far. Are you still having the issue with states and the login form looking wrong? In order to help with what to do for CONTENT_TYPE_XML, can you tell us what you want to have happen? From the code, it looks like it should POST the XML as a string. If that’s true, then just run the last part that calls toXMLString() and see if that works. If not, compare that string with what you do want and we try to help figure out what else needs to be changed. That part is commented out mainly because there were conditions in there that required XMLDocument and we didn’t want to get into emulating that right now. -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Thursday, January 10, 2019 at 2:58 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi all, At last, I am able to display the login window and authenticate my application through backend server. After from here, I have to implement the missing part of the method sendBody in mx.rpc.http.AbstractOperation class. The part; if (ctype == CONTENT_TYPE_XML) is all commented-out and is related with http post with XML content. Any help kindly appreciated. Thanks, Serkan
Re: Work on Emulation
Hi all, At last, I am able to display the login window and authenticate my application through backend server. After from here, I have to implement the missing part of the method sendBody in mx.rpc.http.AbstractOperation class. The part; if (ctype == CONTENT_TYPE_XML) is all commented-out and is related with http post with XML content. Any help kindly appreciated. Thanks, Serkan
Re: Work on Emulation
Note : Source and graphical view are in reverse order, the upper login panel has the lower source in mxml. 10.01.2019 09:43 tarihinde Serkan Taş yazdı: Hi Alex, Here is the view and dom in same page, And the source code : http://ns.adobe.com/mxml/2009; xmlns:s="library://ns.apache.org/royale/spark" xmlns:mx="library://ns.apache.org/royale/mx" currentState="loggedOutState" height="100%" width="100%"> [ResourceBundle("messages")] paddingTop="10" paddingBottom="20" /> click="changeLocale('tr_TR')" icon="{trIcon}" toolTip="Türkçe"/> click="changeLocale('en_US')" icon="{enIcon}" toolTip="English"/> label="{resourceManager.getString('messages', 'userName')}"> label="{resourceManager.getString('messages', 'password')}"> displayAsPassword="true" width="200"/> label="{resourceManager.getString('messages', 'login')}" click="button_clickHandler(event)"/> click="changeLocale('tr_TR')" icon="{trIcon}" toolTip="Türkçe"/> click="changeLocale('en_US')" icon="{enIcon}" toolTip="English"/> label="{resourceManager.getString('messages', 'userName')}"> label="{resourceManager.getString('messages', 'password')}"> displayAsPassword="true" width="200"/> label="{resourceManager.getString('messages', 'login')}" click="button_clickHandler(event)"/> Would like me to create a test project or the source is enough for the github issue ? Thanks, Serkan 10.01.2019 00:36 tarihinde Alex Harui yazdı: Hi Serkan, Compare the DOM Element trees in the debugger. Is the Group getting the same size in both cases? How about the login form’s size? My guess is that some component somewhere needs to kick off another layout when the group is added to the DOM. You can dispatch a “layoutNeeded” event and force a re-layout of the parent of the component that has the wrong size. If you can build a simple test case, open a GitHub issue and we’ll take a look. -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Wednesday, January 9, 2019 at 1:17 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, It seems like the form elements without an id is rendered correctly from the locale resource after your fix. But, now I have another issue. When using state with includein for a component, the layout is rendered ugly beside the one without state definition. The one has definition below (it is the part of the code not all source): cid:part1.71359BC1.059A3FA6@likyateknoloji.com And this is the one with state (the default state is defined in application header as loggedOutState): cid:part2.FEB67879.166CA048@likyateknoloji.com Thanks, Serkan 3.01.2019 11:34 tarihinde Serkan Taş yazdı: Thanks Alex, I am going to work on. Thanks,
Re: Work on Emulation
Hi Alex, Here is the view and dom in same page, And the source code : http://ns.adobe.com/mxml/2009; xmlns:s="library://ns.apache.org/royale/spark" xmlns:mx="library://ns.apache.org/royale/mx" currentState="loggedOutState" height="100%" width="100%"> [ResourceBundle("messages")] paddingTop="10" paddingBottom="20" /> click="changeLocale('tr_TR')" icon="{trIcon}" toolTip="Türkçe"/> click="changeLocale('en_US')" icon="{enIcon}" toolTip="English"/> label="{resourceManager.getString('messages', 'userName')}"> label="{resourceManager.getString('messages', 'password')}"> width="200"/> label="{resourceManager.getString('messages', 'login')}" click="button_clickHandler(event)"/> click="changeLocale('tr_TR')" icon="{trIcon}" toolTip="Türkçe"/> click="changeLocale('en_US')" icon="{enIcon}" toolTip="English"/> label="{resourceManager.getString('messages', 'userName')}"> label="{resourceManager.getString('messages', 'password')}"> displayAsPassword="true" width="200"/> label="{resourceManager.getString('messages', 'login')}" click="button_clickHandler(event)"/> Would like me to create a test project or the source is enough for the github issue ? Thanks, Serkan 10.01.2019 00:36 tarihinde Alex Harui yazdı: Hi Serkan, Compare the DOM Element trees in the debugger. Is the Group getting the same size in both cases? How about the login form’s size? My guess is that some component somewhere needs to kick off another layout when the group is added to the DOM. You can dispatch a “layoutNeeded” event and force a re-layout of the parent of the component that has the wrong size. If you can build a simple test case, open a GitHub issue and we’ll take a look. -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Wednesday, January 9, 2019 at 1:17 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, It seems like the form elements without an id is rendered correctly from the locale resource after your fix. But, now I have another issue. When using state with includein for a component, the layout is rendered ugly beside the one without state definition. The one has definition below (it is the part of the code not all source): cid:part1.71359BC1.059A3FA6@likyateknoloji.com And this is the one with state (the default state is defined in application header as loggedOutState): cid:part2.FEB67879.166CA048@likyateknoloji.com Thanks, Serkan 3.01.2019 11:34 tarihinde Serkan Taş yazdı: Thanks Alex, I am going to work on. Thanks,
Re: Work on Emulation
Hi Alex, This bug is not related with the thing that Greg done before, as had mailing with him. So this issue is still active. For your info. Thanks, Serkan 31.12.2018 10:16 tarihinde Alex Harui yazdı: That’s a bug. I thought Greg made changes to fix that. -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Sunday, December 30, 2018 at 1:10 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Giving id makes it work. How should we call it bug or miss usage ? 29.12.2018 19:14 tarihinde Alex Harui yazdı: Try giving the formItem and id. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Saturday, December 29, 2018 at 1:13 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Addition : During the debug, you can see in the image, the value is retrieved from resource bundle but I think because that obj is null, value is not set. js file : GenericBinding.js cid:part1.26037E2D.2E17F47F@likyateknoloji.com Thanks, Serkan
Re: Work on Emulation
Hi Greg, Hope you are well. Alex sent mail about the issue being fixed by you. How can I trace when it is going to be available ? Thanks, Serkan 31.12.2018 10:16 tarihinde Alex Harui yazdı: That’s a bug. I thought Greg made changes to fix that. -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Sunday, December 30, 2018 at 1:10 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Giving id makes it work. How should we call it bug or miss usage ? 29.12.2018 19:14 tarihinde Alex Harui yazdı: Try giving the formItem and id. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Saturday, December 29, 2018 at 1:13 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Addition : During the debug, you can see in the image, the value is retrieved from resource bundle but I think because that obj is null, value is not set. js file : GenericBinding.js cid:part1.26037E2D.2E17F47F@likyateknoloji.com Thanks, Serkan 29.12.2018 11:18 tarihinde Serkan Taş yazdı: I see, Mobile layout is not letting you see the whole mail. I debugged the code, and can say that the resource is loaded from bundle but not displayed and even not in the html output/content : Somewhere in code, it is lost and the output is : As you can see, the label is no in span tag. I am going to try to figure out where the text is lost. Thanks, Serkan 29.12.2018 11:00 tarihinde Alex Harui yazdı: Serkan, I am not a computer so I will not always see how the source code maps to the output. Plus, you didn’t post [ResourceBundle] which was a problem earlier. I suggest that you look at the Elements in the browser and see if the label has been created but has a width of zero or some other bad value. Bindings are applied a bit later than literals so the label might get sized before it gets set and needs to get sized again when the label is set. I added similar code to Menu/MenuBar last night. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Friday, December 28, 2018 at 11:32 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Alex, The button is getting resource bundle correctly bur form not. They are in same code. Can you see the capture image ? Android için Outlook <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7C46b6dbc395a043ea5ff508d66e9b30a2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818010152407360=8XBR8mTVziQQNIjFhNj6iSv1%2BpVYciowlK1%2F1IpDzrQ%3D=0> uygulamasını edinin On Sat, Dec 29, 2018 at 10:24 AM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Verify that you are using [ResourceBundle] correctly, then verify that the resources are being added to the output. You can compare to the simpler example we got working recently to see where the resource bundles end up in the output. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Friday, December 28, 2018 at 11:48 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, I moved the content of toutdeflexmodule to my project and it is working as expected except the ones coming
Re: Work on Emulation
Okay, Thanks, Serkan 31.12.2018 10:16 tarihinde Alex Harui yazdı: That’s a bug. I thought Greg made changes to fix that. -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Sunday, December 30, 2018 at 1:10 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Giving id makes it work. How should we call it bug or miss usage ? 29.12.2018 19:14 tarihinde Alex Harui yazdı: Try giving the formItem and id. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Saturday, December 29, 2018 at 1:13 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Addition : During the debug, you can see in the image, the value is retrieved from resource bundle but I think because that obj is null, value is not set. js file : GenericBinding.js cid:part1.26037E2D.2E17F47F@likyateknoloji.com Thanks, Serkan 29.12.2018 11:18 tarihinde Serkan Taş yazdı: I see, Mobile layout is not letting you see the whole mail. I debugged the code, and can say that the resource is loaded from bundle but not displayed and even not in the html output/content : Somewhere in code, it is lost and the output is : As you can see, the label is no in span tag. I am going to try to figure out where the text is lost. Thanks, Serkan 29.12.2018 11:00 tarihinde Alex Harui yazdı: Serkan, I am not a computer so I will not always see how the source code maps to the output. Plus, you didn’t post [ResourceBundle] which was a problem earlier. I suggest that you look at the Elements in the browser and see if the label has been created but has a width of zero or some other bad value. Bindings are applied a bit later than literals so the label might get sized before it gets set and needs to get sized again when the label is set. I added similar code to Menu/MenuBar last night. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Friday, December 28, 2018 at 11:32 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Alex, The button is getting resource bundle correctly bur form not. They are in same code. Can you see the capture image ? Android için Outlook <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7C46b6dbc395a043ea5ff508d66e9b30a2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818010152407360=8XBR8mTVziQQNIjFhNj6iSv1%2BpVYciowlK1%2F1IpDzrQ%3D=0> uygulamasını edinin On Sat, Dec 29, 2018 at 10:24 AM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Verify that you are using [ResourceBundle] correctly, then verify that the resources are being added to the output. You can compare to the simpler example we got working recently to see where the resource bundles end up in the output. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Friday, December 28, 2018 at 11:48 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, I moved the content of toutdeflexmodule to my project and it is working as expected except the ones coming
Re: Work on Emulation
That’s a bug. I thought Greg made changes to fix that. -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Sunday, December 30, 2018 at 1:10 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Giving id makes it work. How should we call it bug or miss usage ? 29.12.2018 19:14 tarihinde Alex Harui yazdı: Try giving the formItem and id. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Saturday, December 29, 2018 at 1:13 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Addition : During the debug, you can see in the image, the value is retrieved from resource bundle but I think because that obj is null, value is not set. js file : GenericBinding.js [cid:part1.26037E2D.2E17F47F@likyateknoloji.com] Thanks, Serkan 29.12.2018 11:18 tarihinde Serkan Taş yazdı: I see, Mobile layout is not letting you see the whole mail. I debugged the code, and can say that the resource is loaded from bundle but not displayed and even not in the html output/content : Somewhere in code, it is lost and the output is : As you can see, the label is no in span tag. I am going to try to figure out where the text is lost. Thanks, Serkan 29.12.2018 11:00 tarihinde Alex Harui yazdı: Serkan, I am not a computer so I will not always see how the source code maps to the output. Plus, you didn’t post [ResourceBundle] which was a problem earlier. I suggest that you look at the Elements in the browser and see if the label has been created but has a width of zero or some other bad value. Bindings are applied a bit later than literals so the label might get sized before it gets set and needs to get sized again when the label is set. I added similar code to Menu/MenuBar last night. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Friday, December 28, 2018 at 11:32 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Alex, The button is getting resource bundle correctly bur form not. They are in same code. Can you see the capture image ? Android için Outlook<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7C46b6dbc395a043ea5ff508d66e9b30a2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818010152407360=8XBR8mTVziQQNIjFhNj6iSv1%2BpVYciowlK1%2F1IpDzrQ%3D=0> uygulamasını edinin On Sat, Dec 29, 2018 at 10:24 AM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Verify that you are using [ResourceBundle] correctly, then verify that the resources are being added to the output. You can compare to the simpler example we got working recently to see where the resource bundles end up in the output. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Friday, December 28, 2018 at 11:48 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, I moved the content of toutdeflexmodule to my project and it is working as expected except the ones coming from resource. Here is the output : [cid:part1.358B2100.5175D656@likyateknoloji.com] Here is the source (Part of, not complete) : As you can see, the resource button is working but the ones in formitem does not. The label of the first text field is missing but the same resource for button is working. Thanks, Serkan 28.12.2018 03:35 tarihinde Alex Harui yazdı: The basic process is to debug into the components and propose fixes for them. It is probably wise to check examples/mxroyale/tourdeflexexamples to see if the component is functioning at all. I thought that Form/FormItem was displaying something. It can help you figure out where to debug. -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, Dece
Re: Work on Emulation
Giving id makes it work. How should we call it bug or miss usage ? 29.12.2018 19:14 tarihinde Alex Harui yazdı: Try giving the formItem and id. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Saturday, December 29, 2018 at 1:13 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Addition : During the debug, you can see in the image, the value is retrieved from resource bundle but I think because that obj is null, value is not set. js file : GenericBinding.js cid:part1.26037E2D.2E17F47F@likyateknoloji.com Thanks, Serkan 29.12.2018 11:18 tarihinde Serkan Taş yazdı: I see, Mobile layout is not letting you see the whole mail. I debugged the code, and can say that the resource is loaded from bundle but not displayed and even not in the html output/content : Somewhere in code, it is lost and the output is : As you can see, the label is no in span tag. I am going to try to figure out where the text is lost. Thanks, Serkan 29.12.2018 11:00 tarihinde Alex Harui yazdı: Serkan, I am not a computer so I will not always see how the source code maps to the output. Plus, you didn’t post [ResourceBundle] which was a problem earlier. I suggest that you look at the Elements in the browser and see if the label has been created but has a width of zero or some other bad value. Bindings are applied a bit later than literals so the label might get sized before it gets set and needs to get sized again when the label is set. I added similar code to Menu/MenuBar last night. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Friday, December 28, 2018 at 11:32 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Alex, The button is getting resource bundle correctly bur form not. They are in same code. Can you see the capture image ? Android için Outlook <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7Cc743c368011e440d751f08d66d6ddfd8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636816716041825930=HfQeDJWzFOK4nqtoHDstHBI4dGq2M7QvUisimGwUs10%3D=0> uygulamasını edinin On Sat, Dec 29, 2018 at 10:24 AM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Verify that you are using [ResourceBundle] correctly, then verify that the resources are being added to the output. You can compare to the simpler example we got working recently to see where the resource bundles end up in the output. HTH, -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Friday, December 28, 2018 at 11:48 AM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi Alex, I moved the content of toutdeflexmodule to my project and it is working as expected except the ones coming from resource. Here is the output : cid:part1.358B2100.5175D656@likyateknoloji.com Here is the source (Part of, not complete) : As you can see, the resource button is working but the ones in formitem does not. The label of the first text field is missing but the same resource for button is working. Thanks,
Re: Work on Emulation
Try giving the formItem and id. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Saturday, December 29, 2018 at 1:13 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Addition : During the debug, you can see in the image, the value is retrieved from resource bundle but I think because that obj is null, value is not set. js file : GenericBinding.js [cid:part1.26037E2D.2E17F47F@likyateknoloji.com] Thanks, Serkan 29.12.2018 11:18 tarihinde Serkan Taş yazdı: I see, Mobile layout is not letting you see the whole mail. I debugged the code, and can say that the resource is loaded from bundle but not displayed and even not in the html output/content : Somewhere in code, it is lost and the output is : As you can see, the label is no in span tag. I am going to try to figure out where the text is lost. Thanks, Serkan 29.12.2018 11:00 tarihinde Alex Harui yazdı: Serkan, I am not a computer so I will not always see how the source code maps to the output. Plus, you didn’t post [ResourceBundle] which was a problem earlier. I suggest that you look at the Elements in the browser and see if the label has been created but has a width of zero or some other bad value. Bindings are applied a bit later than literals so the label might get sized before it gets set and needs to get sized again when the label is set. I added similar code to Menu/MenuBar last night. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Friday, December 28, 2018 at 11:32 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Alex, The button is getting resource bundle correctly bur form not. They are in same code. Can you see the capture image ? Android için Outlook<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7Cc743c368011e440d751f08d66d6ddfd8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636816716041825930=HfQeDJWzFOK4nqtoHDstHBI4dGq2M7QvUisimGwUs10%3D=0> uygulamasını edinin On Sat, Dec 29, 2018 at 10:24 AM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Verify that you are using [ResourceBundle] correctly, then verify that the resources are being added to the output. You can compare to the simpler example we got working recently to see where the resource bundles end up in the output. HTH, -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Friday, December 28, 2018 at 11:48 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, I moved the content of toutdeflexmodule to my project and it is working as expected except the ones coming from resource. Here is the output : [cid:part1.358B2100.5175D656@likyateknoloji.com] Here is the source (Part of, not complete) : As you can see, the resource button is working but the ones in formitem does not. The label of the first text field is missing but the same resource for button is working. Thanks, Serkan 28.12.2018 03:35 tarihinde Alex Harui yazdı: The basic process is to debug into the components and propose fixes for them. It is probably wise to check examples/mxroyale/tourdeflexexamples to see if the component is functioning at all. I thought that Form/FormItem was displaying something. It can help you figure out where to debug. -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, December 27, 2018 at 12:32 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi, For the beginning of my project, I am now working on problems with the emulated components :) How should I continue for the emulated components ? Components : mx.containers.From and mx.containers.FromItem Problem : · Layout is not rendered as expected. · FormItem labels are not displayed · FormItem child text is not correctly rendered Test sourc
Re: Work on Emulation
Addition : During the debug, you can see in the image, the value is retrieved from resource bundle but I think because that obj is null, value is not set. js file : GenericBinding.js Thanks, Serkan 29.12.2018 11:18 tarihinde Serkan Taş yazdı: I see, Mobile layout is not letting you see the whole mail. I debugged the code, and can say that the resource is loaded from bundle but not displayed and even not in the html output/content : Somewhere in code, it is lost and the output is : As you can see, the label is no in span tag. I am going to try to figure out where the text is lost. Thanks, Serkan 29.12.2018 11:00 tarihinde Alex Harui yazdı: Serkan, I am not a computer so I will not always see how the source code maps to the output. Plus, you didn’t post [ResourceBundle] which was a problem earlier. I suggest that you look at the Elements in the browser and see if the label has been created but has a width of zero or some other bad value. Bindings are applied a bit later than literals so the label might get sized before it gets set and needs to get sized again when the label is set. I added similar code to Menu/MenuBar last night. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Friday, December 28, 2018 at 11:32 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Alex, The button is getting resource bundle correctly bur form not. They are in same code. Can you see the capture image ? Android için Outlook <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7Cddfe5b0965714d9a56e808d66d5fc38f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636816655443759350=%2FVFp%2FOJHB5sT3rwf7Md7xRC4lNwrInMoc3qhGl9cJ6k%3D=0> uygulamasını edinin On Sat, Dec 29, 2018 at 10:24 AM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Verify that you are using [ResourceBundle] correctly, then verify that the resources are being added to the output. You can compare to the simpler example we got working recently to see where the resource bundles end up in the output. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Friday, December 28, 2018 at 11:48 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, I moved the content of toutdeflexmodule to my project and it is working as expected except the ones coming from resource. Here is the output : cid:part1.358B2100.5175D656@likyateknoloji.com Here is the source (Part of, not complete) : As you can see, the resource button is working but the ones in formitem does not. The label of the first text field is missing but the same resource for button is working. Thanks, Serkan 28.12.2018 03:35 tarihinde Alex Harui yazdı: The basic process is to debug into the components and propose fixes for them. It is probably wise to check examples/mxroyale/tourdeflexexamples to see if the component is functioning at all. I thought that Form/FormItem was displaying something. It can help you figure out where to debug. -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Thursday, December 27, 2018 at 12:32 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi, For the beginning of my project, I am now working on problems with the emulated components :) How should I continue for the emulated components ? Components : mx.containers.From and mx.containers.FromItem Problem : ·Layout is not rendered as expected. ·FormItem labels are not displayed ·FormItem child text is not correctly rendered Test source : http://ns.adobe.com/mxml/2009; <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009=02%7C01%7Caharui%40adobe.com%7Cddfe5b0965714d9a56e808d66d5fc38f%7Cfa7b1b5a7b34438794aed2c1
Re: Work on Emulation
I see, Mobile layout is not letting you see the whole mail. I debugged the code, and can say that the resource is loaded from bundle but not displayed and even not in the html output/content : Somewhere in code, it is lost and the output is : As you can see, the label is no in span tag. I am going to try to figure out where the text is lost. Thanks, Serkan 29.12.2018 11:00 tarihinde Alex Harui yazdı: Serkan, I am not a computer so I will not always see how the source code maps to the output. Plus, you didn’t post [ResourceBundle] which was a problem earlier. I suggest that you look at the Elements in the browser and see if the label has been created but has a width of zero or some other bad value. Bindings are applied a bit later than literals so the label might get sized before it gets set and needs to get sized again when the label is set. I added similar code to Menu/MenuBar last night. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Friday, December 28, 2018 at 11:32 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Alex, The button is getting resource bundle correctly bur form not. They are in same code. Can you see the capture image ? Android için Outlook <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7Cddfe5b0965714d9a56e808d66d5fc38f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636816655443759350=%2FVFp%2FOJHB5sT3rwf7Md7xRC4lNwrInMoc3qhGl9cJ6k%3D=0> uygulamasını edinin On Sat, Dec 29, 2018 at 10:24 AM +0300, "Alex Harui" <mailto:aha...@adobe.com>> wrote: Verify that you are using [ResourceBundle] correctly, then verify that the resources are being added to the output. You can compare to the simpler example we got working recently to see where the resource bundles end up in the output. HTH, -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Friday, December 28, 2018 at 11:48 AM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi Alex, I moved the content of toutdeflexmodule to my project and it is working as expected except the ones coming from resource. Here is the output : cid:part1.358B2100.5175D656@likyateknoloji.com Here is the source (Part of, not complete) : As you can see, the resource button is working but the ones in formitem does not. The label of the first text field is missing but the same resource for button is working. Thanks, Serkan 28.12.2018 03:35 tarihinde Alex Harui yazdı: The basic process is to debug into the components and propose fixes for them. It is probably wise to check examples/mxroyale/tourdeflexexamples to see if the component is functioning at all. I thought that Form/FormItem was displaying something. It can help you figure out where to debug. -Alex *From: *Serkan Taş <mailto:serkan@likyateknoloji.com> *Reply-To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Date: *Thursday, December 27, 2018 at 12:32 PM *To: *"users@royale.apache.org" <mailto:users@royale.apache.org> <mailto:users@royale.apache.org> *Subject: *Re: Work on Emulation Hi, For the beginning of my project, I am now working on problems with the emulated components :) How should I continue for the emulated components ? Components : mx.containers.From and mx.containers.FromItem Problem : ·Layout is not rendered as expected. ·FormItem labels are not displayed ·FormItem child text is not correctly rendered Test source : http://ns.adobe.com/mxml/2009; <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009=02%7C01%7Caharui%40adobe.com%7Cddfe5b0965714d9a56e808d66d5fc38f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636816655443769355=EwWTwJB3l2jDLQJNRrNH0VZcXGQr1Y1GgNZZGAUdr%2BU%3D=0> xmlns:s="library://ns.apache.org/royale/spark" xmlns:mx="library://ns.apache.org/royale/mx"
Re: Work on Emulation
Serkan, I am not a computer so I will not always see how the source code maps to the output. Plus, you didn’t post [ResourceBundle] which was a problem earlier. I suggest that you look at the Elements in the browser and see if the label has been created but has a width of zero or some other bad value. Bindings are applied a bit later than literals so the label might get sized before it gets set and needs to get sized again when the label is set. I added similar code to Menu/MenuBar last night. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Friday, December 28, 2018 at 11:32 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Alex, The button is getting resource bundle correctly bur form not. They are in same code. Can you see the capture image ? Android için Outlook<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7Cddfe5b0965714d9a56e808d66d5fc38f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636816655443759350=%2FVFp%2FOJHB5sT3rwf7Md7xRC4lNwrInMoc3qhGl9cJ6k%3D=0> uygulamasını edinin On Sat, Dec 29, 2018 at 10:24 AM +0300, "Alex Harui" mailto:aha...@adobe.com>> wrote: Verify that you are using [ResourceBundle] correctly, then verify that the resources are being added to the output. You can compare to the simpler example we got working recently to see where the resource bundles end up in the output. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Friday, December 28, 2018 at 11:48 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, I moved the content of toutdeflexmodule to my project and it is working as expected except the ones coming from resource. Here is the output : [cid:part1.358B2100.5175D656@likyateknoloji.com] Here is the source (Part of, not complete) : As you can see, the resource button is working but the ones in formitem does not. The label of the first text field is missing but the same resource for button is working. Thanks, Serkan 28.12.2018 03:35 tarihinde Alex Harui yazdı: The basic process is to debug into the components and propose fixes for them. It is probably wise to check examples/mxroyale/tourdeflexexamples to see if the component is functioning at all. I thought that Form/FormItem was displaying something. It can help you figure out where to debug. -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, December 27, 2018 at 12:32 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi, For the beginning of my project, I am now working on problems with the emulated components :) How should I continue for the emulated components ? Components : mx.containers.From and mx.containers.FromItem Problem : · Layout is not rendered as expected. · FormItem labels are not displayed · FormItem child text is not correctly rendered Test source : http://ns.adobe.com/mxml/2009;<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009=02%7C01%7Caharui%40adobe.com%7Cddfe5b0965714d9a56e808d66d5fc38f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636816655443769355=EwWTwJB3l2jDLQJNRrNH0VZcXGQr1Y1GgNZZGAUdr%2BU%3D=0> xmlns:s="library://ns.apache.org/royale/spark" xmlns:mx="library://ns.apache.org/royale/mx" xmlns:comps="com.likya.pinara.comps.*" width="100%"> [ResourceBundle("messages")] View : [cid:part1.44710608.3B30FC8E@likyateknoloji.com] Original in flex : [cid:part2.3AFF6E98.96331577@likyateknoloji.com] Not : Images are not included in test source, should be disregarded, Thanks, Serkan
Re: Work on Emulation
Alex, The button is getting resource bundle correctly bur form not. They are in same code. Can you see the capture image ? Android için Outlook uygulamasını edinin On Sat, Dec 29, 2018 at 10:24 AM +0300, "Alex Harui" wrote: Verify that you are using [ResourceBundle] correctly, then verify that the resources are being added to the output. You can compare to the simpler example we got working recently to see where the resource bundles end up in the output. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Friday, December 28, 2018 at 11:48 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, I moved the content of toutdeflexmodule to my project and it is working as expected except the ones coming from resource. Here is the output : Here is the source (Part of, not complete) : As you can see, the resource button is working but the ones in formitem does not. The label of the first text field is missing but the same resource for button is working. Thanks, Serkan 28.12.2018 03:35 tarihinde Alex Harui yazdı: The basic process is to debug into the components and propose fixes for them. It is probably wise to check examples/mxroyale/tourdeflexexamples to see if the component is functioning at all. I thought that Form/FormItem was displaying something. It can help you figure out where to debug. -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Thursday, December 27, 2018 at 12:32 PM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi, For the beginning of my project, I am now working on problems with the emulated components :) How should I continue for the emulated components ? Components : mx.containers.From and mx.containers.FromItem Problem : · Layout is not rendered as expected. · FormItem labels are not displayed · FormItem child text is not correctly rendered Test source : http://ns.adobe.com/mxml/2009; xmlns:s="library://ns.apache.org/royale/spark" xmlns:mx="library://ns.apache.org/royale/mx" xmlns:comps="com.likya.pinara.comps.*" width="100%"> [ResourceBundle("messages")] View : Original in flex : Not : Images are not included in test source, should be disregarded, Thanks, Serkan
Re: Work on Emulation
Verify that you are using [ResourceBundle] correctly, then verify that the resources are being added to the output. You can compare to the simpler example we got working recently to see where the resource bundles end up in the output. HTH, -Alex From: Serkan Taş Reply-To: "users@royale.apache.org" Date: Friday, December 28, 2018 at 11:48 AM To: "users@royale.apache.org" Subject: Re: Work on Emulation Hi Alex, I moved the content of toutdeflexmodule to my project and it is working as expected except the ones coming from resource. Here is the output : [cid:part1.358B2100.5175D656@likyateknoloji.com] Here is the source (Part of, not complete) : As you can see, the resource button is working but the ones in formitem does not. The label of the first text field is missing but the same resource for button is working. Thanks, Serkan 28.12.2018 03:35 tarihinde Alex Harui yazdı: The basic process is to debug into the components and propose fixes for them. It is probably wise to check examples/mxroyale/tourdeflexexamples to see if the component is functioning at all. I thought that Form/FormItem was displaying something. It can help you figure out where to debug. -Alex From: Serkan Taş <mailto:serkan@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Date: Thursday, December 27, 2018 at 12:32 PM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi, For the beginning of my project, I am now working on problems with the emulated components :) How should I continue for the emulated components ? Components : mx.containers.From and mx.containers.FromItem Problem : · Layout is not rendered as expected. · FormItem labels are not displayed · FormItem child text is not correctly rendered Test source : http://ns.adobe.com/mxml/2009;<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009=02%7C01%7Caharui%40adobe.com%7C4bfe02e76c3a41956b1e08d66cfd77f3%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636816233267007075=Go3PdJwVyw2ldRwEgaJPS9HI2HBeUACS4sbD6pfqkio%3D=0> xmlns:s="library://ns.apache.org/royale/spark" xmlns:mx="library://ns.apache.org/royale/mx" xmlns:comps="com.likya.pinara.comps.*" width="100%"> [ResourceBundle("messages")] View : [cid:part1.44710608.3B30FC8E@likyateknoloji.com] Original in flex : [cid:part2.3AFF6E98.96331577@likyateknoloji.com] Not : Images are not included in test source, should be disregarded, Thanks, Serkan
Re: Work on Emulation
Hi Alex, I moved the content of toutdeflexmodule to my project and it is working as expected except the ones coming from resource. Here is the output : Here is the source (Part of, not complete) : paddingBottom="10" paddingTop="10" paddingLeft="10" paddingRight="10" height="100%" width="100%"> text="Moving from one form field to another triggers the validator."/> label="{resourceManager.getString('messages', 'login')}" click="button_clickHandler(event)"/> As you can see, the resource button is working but the ones in formitem does not. The label of the first text field is missing but the same resource for button is working. Thanks, Serkan 28.12.2018 03:35 tarihinde Alex Harui yazdı: The basic process is to debug into the components and propose fixes for them. It is probably wise to check examples/mxroyale/tourdeflexexamples to see if the component is functioning at all. I thought that Form/FormItem was displaying something. It can help you figure out where to debug. -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Thursday, December 27, 2018 at 12:32 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi, For the beginning of my project, I am now working on problems with the emulated components :) How should I continue for the emulated components ? Components : mx.containers.From and mx.containers.FromItem Problem : ·Layout is not rendered as expected. ·FormItem labels are not displayed ·FormItem child text is not correctly rendered Test source : http://ns.adobe.com/mxml/2009; <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009=02%7C01%7Caharui%40adobe.com%7C2049dcaa8c5c407bbc0308d66c3a70c4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636815395597232822=ygHY%2Ft1ysNLQ8vGI9OOePuAAOn%2BPTOBtqz02zvvKzB0%3D=0> xmlns:s="library://ns.apache.org/royale/spark" xmlns:mx="library://ns.apache.org/royale/mx" xmlns:comps="com.likya.pinara.comps.*" width="100%"> [ResourceBundle("messages")] click="changeLocale('tr_TR')" icon="{trIcon}" toolTip="Türkçe"/> click="changeLocale('en_US')" icon="{enIcon}" toolTip="English"/> label="{resourceManager.getString('messages', 'userName')}"> label="{resourceManager.getString('messages', 'password')}"> label="{resourceManager.getString('messages', 'login')}" click="button_clickHandler(event)"/> View : cid:part1.44710608.3B30FC8E@likyateknoloji.com Original in flex : cid:part2.3AFF6E98.96331577@likyateknoloji.com Not : Images are not included in test source, should be disregarded, Thanks, Serkan
Re: Work on Emulation
Do I have to build all royale repo or is it possible to build only tourdeflexmodules ? Here is the output : PS D:\dev\royale-emulation-works\github\royale-asjs\examples\mxroyale\tourdeflexmodules> ant Buildfile: D:\dev\royale-emulation-works\github\royale-asjs\examples\mxroyale\tourdeflexmodules\build.xml [taskdef] Could not load definitions from resource flexTasks.tasks. It could not be found. compile-shell: BUILD FAILED D:\dev\royale-emulation-works\github\royale-asjs\examples\mxroyale\tourdeflexmodules\build.xml:158: The following error occurred while executing this line: D:\dev\royale-emulation-works\github\royale-asjs\examples\mxroyale\tourdeflexmodules\build.xml:116: Problem: failed to create task or type mxmlc Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any / declarations have taken place. Thanks, Serkan 28.12.2018 03:35 tarihinde Alex Harui yazdı: The basic process is to debug into the components and propose fixes for them. It is probably wise to check examples/mxroyale/tourdeflexexamples to see if the component is functioning at all. I thought that Form/FormItem was displaying something. It can help you figure out where to debug. -Alex *From: *Serkan Taş *Reply-To: *"users@royale.apache.org" *Date: *Thursday, December 27, 2018 at 12:32 PM *To: *"users@royale.apache.org" *Subject: *Re: Work on Emulation Hi, For the beginning of my project, I am now working on problems with the emulated components :) How should I continue for the emulated components ? Components : mx.containers.From and mx.containers.FromItem Problem : ·Layout is not rendered as expected. ·FormItem labels are not displayed ·FormItem child text is not correctly rendered Test source : http://ns.adobe.com/mxml/2009; <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009=02%7C01%7Caharui%40adobe.com%7C2049dcaa8c5c407bbc0308d66c3a70c4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636815395597232822=ygHY%2Ft1ysNLQ8vGI9OOePuAAOn%2BPTOBtqz02zvvKzB0%3D=0> xmlns:s="library://ns.apache.org/royale/spark" xmlns:mx="library://ns.apache.org/royale/mx" xmlns:comps="com.likya.pinara.comps.*" width="100%"> [ResourceBundle("messages")] click="changeLocale('tr_TR')" icon="{trIcon}" toolTip="Türkçe"/> click="changeLocale('en_US')" icon="{enIcon}" toolTip="English"/> label="{resourceManager.getString('messages', 'userName')}"> label="{resourceManager.getString('messages', 'password')}"> label="{resourceManager.getString('messages', 'login')}" click="button_clickHandler(event)"/> View : cid:part1.44710608.3B30FC8E@likyateknoloji.com Original in flex : cid:part2.3AFF6E98.96331577@likyateknoloji.com Not : Images are not included in test source, should be disregarded, Thanks, Serkan