Re: Remote Object Call Performance and Fault Event
Please upload to some dropbox, onedrive or something like that and send me to my email - do you see my email here ? śr., 10 lut 2021 o 09:25 David Slotemaker de Bruine < dslotema...@vicensvives.com> napisał(a): > Hi Piotr, > > How can I send the project to you, I can't attached files to the post? If > I change the SDK back to 9.7 -JS Moonshine no longer shows the: > > The IDE highlights "J:initialView" with a red underline stating: "Cannot > parse a value of type org.apache.royal.core.IApplicationView" > > error, nor the .swc error. So something is messed up with the 9.8 JS-SWF > version. Could the nightly I have not be installed correctly? How do I > automate the nightlys into Moonshine? > > Cheers, > > David > > > > > > On Tue, 9 Feb 2021 at 21:53, Piotr Zarzycki > wrote: > >> Carlos, >> >> Above errors are nothing to do with Moonshine at all. >> >> David, >> >> Can you zip your project and send me off the list - I will look what is >> your problems and guide you to resolve it. - If it's possible of course. >> >> Thanks, >> Piotr >> >> wt., 9 lut 2021 o 17:25 Carlos Rovira >> napisał(a): >> >>> Hi David, >>> >>> sorry but I'm not an expert in Moonshine, to set up a project hope Piotr >>> could give you a hand. Since you're doing from scratch it should be fairly >>> straight forward. >>> >>> El mar, 9 feb 2021 a las 16:07, David Slotemaker de Bruine (< >>> dslotema...@vicensvives.com>) escribió: >>> Hi Carlos, I have installed the nightly of Moonshine (3.1.0) and it is point to the nightly of Royal (9.8 - swf-js). I created a new ApacheRoyal Project with platform set to JS. I created the frameworks folder in: C:\IDE\ApacheRoyalNightlyAll which contains the royal-* folders, package.json etc. When I build I get the : "This SDK does not contains playerglobal.swc in frameworks\libs\player\11.7\playerglobal.swc". error. So where should I place the folder? The IDE highlights "J:initialView" with a red underline stating: "Cannot parse a value of type org.apache.royal.core.IApplicationView" Where to from here? Thanks, David On Tue, 9 Feb 2021 at 15:23, Carlos Rovira wrote: > Hi, if I understand correctly, you just need to create a folder 11.7 > and copy the playerglobal.swc you have there. Although it is not that > version, I think Royale just wants to find it there. Even though you > really > use SWF, I think that will work, but more over you just want to compile to > JS. > > Apart from that. I think starting from Royale 0.9.7 is normal that > your app breaks. There's lots of changes! 0.9.7 is from May 2020. So in > two > months that will be a complete year of changes, fixes, and refactors. > > You should remove 9.7 completely and go with the latest nightly and > update at least each week until we release 0.9.8 > Then start from scratch with an empty project that compiles with a > hello world. Then start adding your current code little by little and > fixing and updating things as you get errors until you get to the actual > state. > > Sorry, but there's no better way to do this. Royale is still young and > many things are still changing and is important to stay on the loop and > upgrade as we improve it. > > HTH > > > El mar, 9 feb 2021 a las 11:49, Piotr Zarzycki (< > piotrzarzyck...@gmail.com>) escribió: > >> You should use in my opinion Nightly build of Royale 0.9.8 - JS >> version - Carlos should provide you compiler options which builds his >> project >> In case if you have problems with Moonshine try Nightly build of it. >> It is available on Moonshine's website by clicking small arrow near >> Download button. >> >> wt., 9 lut 2021 o 11:34 David Slotemaker de Bruine < >> dslotema...@vicensvives.com> napisał(a): >> >>> A Nightly build of moonshine or Royal? How do I go about setting >>> that up automatically like you mentioned before. >>> >>> Cheers, >>> >>> David >>> >>> On Tue, 9 Feb 2021 at 11:16, Piotr Zarzycki < >>> piotrzarzyck...@gmail.com> wrote: >>> I don't think you need that version. I think you should use JS version with some compiler options for your project. I would leave Carlos clarification. If you think that you will have problem with Moonshine try Nightly build of it to see if it's the same. wt., 9 lut 2021 o 11:00 David Slotemaker de Bruine < dslotema...@vicensvives.com> napisał(a): > No, I have download the SWF and JS Version as Carlos says I need > the mx:RemoteObject implementation to call BlazeDS Remote objects > correctly. > > All sorts of weird things are
Re: Remote Object Call Performance and Fault Event
Hi Piotr, How can I send the project to you, I can't attached files to the post? If I change the SDK back to 9.7 -JS Moonshine no longer shows the: The IDE highlights "J:initialView" with a red underline stating: "Cannot parse a value of type org.apache.royal.core.IApplicationView" error, nor the .swc error. So something is messed up with the 9.8 JS-SWF version. Could the nightly I have not be installed correctly? How do I automate the nightlys into Moonshine? Cheers, David On Tue, 9 Feb 2021 at 21:53, Piotr Zarzycki wrote: > Carlos, > > Above errors are nothing to do with Moonshine at all. > > David, > > Can you zip your project and send me off the list - I will look what is > your problems and guide you to resolve it. - If it's possible of course. > > Thanks, > Piotr > > wt., 9 lut 2021 o 17:25 Carlos Rovira > napisał(a): > >> Hi David, >> >> sorry but I'm not an expert in Moonshine, to set up a project hope Piotr >> could give you a hand. Since you're doing from scratch it should be fairly >> straight forward. >> >> El mar, 9 feb 2021 a las 16:07, David Slotemaker de Bruine (< >> dslotema...@vicensvives.com>) escribió: >> >>> Hi Carlos, >>> >>> I have installed the nightly of Moonshine (3.1.0) and it is point to the >>> nightly of Royal (9.8 - swf-js). >>> >>> I created a new ApacheRoyal Project with platform set to JS. >>> >>> I created the frameworks folder in: >>> >>> C:\IDE\ApacheRoyalNightlyAll >>> >>> which contains the royal-* folders, package.json etc. >>> >>> When I build I get the : >>> >>> "This SDK does not contains playerglobal.swc in >>> frameworks\libs\player\11.7\playerglobal.swc". error. >>> >>> So where should I place the folder? >>> >>> The IDE highlights "J:initialView" with a red underline stating: "Cannot >>> parse a value of type org.apache.royal.core.IApplicationView" >>> >>> Where to from here? >>> >>> Thanks, >>> >>> David >>> >>> >>> >>> >>> >>> On Tue, 9 Feb 2021 at 15:23, Carlos Rovira >>> wrote: >>> Hi, if I understand correctly, you just need to create a folder 11.7 and copy the playerglobal.swc you have there. Although it is not that version, I think Royale just wants to find it there. Even though you really use SWF, I think that will work, but more over you just want to compile to JS. Apart from that. I think starting from Royale 0.9.7 is normal that your app breaks. There's lots of changes! 0.9.7 is from May 2020. So in two months that will be a complete year of changes, fixes, and refactors. You should remove 9.7 completely and go with the latest nightly and update at least each week until we release 0.9.8 Then start from scratch with an empty project that compiles with a hello world. Then start adding your current code little by little and fixing and updating things as you get errors until you get to the actual state. Sorry, but there's no better way to do this. Royale is still young and many things are still changing and is important to stay on the loop and upgrade as we improve it. HTH El mar, 9 feb 2021 a las 11:49, Piotr Zarzycki (< piotrzarzyck...@gmail.com>) escribió: > You should use in my opinion Nightly build of Royale 0.9.8 - JS > version - Carlos should provide you compiler options which builds his > project > In case if you have problems with Moonshine try Nightly build of it. > It is available on Moonshine's website by clicking small arrow near > Download button. > > wt., 9 lut 2021 o 11:34 David Slotemaker de Bruine < > dslotema...@vicensvives.com> napisał(a): > >> A Nightly build of moonshine or Royal? How do I go about setting that >> up automatically like you mentioned before. >> >> Cheers, >> >> David >> >> On Tue, 9 Feb 2021 at 11:16, Piotr Zarzycki < >> piotrzarzyck...@gmail.com> wrote: >> >>> I don't think you need that version. I think you should use JS >>> version with some compiler options for your project. I would leave >>> Carlos >>> clarification. >>> >>> If you think that you will have problem with Moonshine try Nightly >>> build of it to see if it's the same. >>> >>> wt., 9 lut 2021 o 11:00 David Slotemaker de Bruine < >>> dslotema...@vicensvives.com> napisał(a): >>> No, I have download the SWF and JS Version as Carlos says I need the mx:RemoteObject implementation to call BlazeDS Remote objects correctly. All sorts of weird things are happening now with the IDE, I get build errors and mark-up warnings on all my projects even if I go back to the standard JS only version of 9.8. frustrating :( Nothing compiles now. Not even starting an Empty App! D On 2021/02/09 09:40:28, Piotr Zarzycki wrote: > Just o be clear - you are
Re: Remote Object Call Performance and Fault Event
In order to download Nightly build of Royale trough Moonshine you should go to menu Help -> Getting Started -> Download Third Party Software In launched application choose from Drop down list 0.9.8 in Royale section - click Download. - Once it's done you can choose for your project downloaded Nightly build of SDK. Path of downloaded SDK will be: c:\MoonshineSDKs\Royale_SDK\apache-royale-0.9.8-bin-js\ - make sure that you are seeing this for selected SDK. On Mac that path is different. śr., 10 lut 2021 o 09:53 Piotr Zarzycki napisał(a): > Please upload to some dropbox, onedrive or something like that and send me > to my email - do you see my email here ? > > > > śr., 10 lut 2021 o 09:25 David Slotemaker de Bruine < > dslotema...@vicensvives.com> napisał(a): > >> Hi Piotr, >> >> How can I send the project to you, I can't attached files to the post? If >> I change the SDK back to 9.7 -JS Moonshine no longer shows the: >> >> The IDE highlights "J:initialView" with a red underline stating: "Cannot >> parse a value of type org.apache.royal.core.IApplicationView" >> >> error, nor the .swc error. So something is messed up with the 9.8 JS-SWF >> version. Could the nightly I have not be installed correctly? How do I >> automate the nightlys into Moonshine? >> >> Cheers, >> >> David >> >> >> >> >> >> On Tue, 9 Feb 2021 at 21:53, Piotr Zarzycki >> wrote: >> >>> Carlos, >>> >>> Above errors are nothing to do with Moonshine at all. >>> >>> David, >>> >>> Can you zip your project and send me off the list - I will look what is >>> your problems and guide you to resolve it. - If it's possible of course. >>> >>> Thanks, >>> Piotr >>> >>> wt., 9 lut 2021 o 17:25 Carlos Rovira >>> napisał(a): >>> Hi David, sorry but I'm not an expert in Moonshine, to set up a project hope Piotr could give you a hand. Since you're doing from scratch it should be fairly straight forward. El mar, 9 feb 2021 a las 16:07, David Slotemaker de Bruine (< dslotema...@vicensvives.com>) escribió: > Hi Carlos, > > I have installed the nightly of Moonshine (3.1.0) and it is point to > the nightly of Royal (9.8 - swf-js). > > I created a new ApacheRoyal Project with platform set to JS. > > I created the frameworks folder in: > > C:\IDE\ApacheRoyalNightlyAll > > which contains the royal-* folders, package.json etc. > > When I build I get the : > > "This SDK does not contains playerglobal.swc in > frameworks\libs\player\11.7\playerglobal.swc". error. > > So where should I place the folder? > > The IDE highlights "J:initialView" with a red underline stating: > "Cannot parse a value of type org.apache.royal.core.IApplicationView" > > Where to from here? > > Thanks, > > David > > > > > > On Tue, 9 Feb 2021 at 15:23, Carlos Rovira > wrote: > >> Hi, if I understand correctly, you just need to create a folder 11.7 >> and copy the playerglobal.swc you have there. Although it is not that >> version, I think Royale just wants to find it there. Even though you >> really >> use SWF, I think that will work, but more over you just want to compile >> to >> JS. >> >> Apart from that. I think starting from Royale 0.9.7 is normal that >> your app breaks. There's lots of changes! 0.9.7 is from May 2020. So in >> two >> months that will be a complete year of changes, fixes, and refactors. >> >> You should remove 9.7 completely and go with the latest nightly and >> update at least each week until we release 0.9.8 >> Then start from scratch with an empty project that compiles with a >> hello world. Then start adding your current code little by little and >> fixing and updating things as you get errors until you get to the actual >> state. >> >> Sorry, but there's no better way to do this. Royale is still young >> and many things are still changing and is important to stay on the loop >> and >> upgrade as we improve it. >> >> HTH >> >> >> El mar, 9 feb 2021 a las 11:49, Piotr Zarzycki (< >> piotrzarzyck...@gmail.com>) escribió: >> >>> You should use in my opinion Nightly build of Royale 0.9.8 - JS >>> version - Carlos should provide you compiler options which builds his >>> project >>> In case if you have problems with Moonshine try Nightly build of it. >>> It is available on Moonshine's website by clicking small arrow near >>> Download button. >>> >>> wt., 9 lut 2021 o 11:34 David Slotemaker de Bruine < >>> dslotema...@vicensvives.com> napisał(a): >>> A Nightly build of moonshine or Royal? How do I go about setting that up automatically like you mentioned before. Cheers, David On Tue, 9 Feb 2021 at 11:16, Piotr Zarzycki <
Re: Remote Object Call Performance and Fault Event
Hi Hiedra, Thank you for your response. Please do share the paging component you have been working on, that will be a good stop gap until the datagrid component acts more like the old Flex one. Any idea about the dual http sessions error? Cheers. David On Wed, 10 Feb 2021 at 16:29, Maria Jose Esteve wrote: > Hi David, > > We experience the same behavior as you. Waiting for time to be spent > debugging the VirtualDataGrid we use a List with a custom itemRenderer for > each row. > > In any case, with the List we cannot load a lot of data at once, so we > have opted for pagination of the data. > > > > When you have to load a lot of data you will have to use the "Virtual" > components: VirtualDataGrid, VirtualList and VirtualComboBox, although as I > said, they still need some work. > > > > I would check if there is a problem with the received data: filter the > return and load only 10 or 20 records and if it works for you, implement a > paging process. (I could share with you a little PaginatorNav control that > I implemented. It is not finished and needs work but maybe it will help you > continue) > > > > Anyway, wait for another colleague to give us their opinion. > > > > Hiedra. > > > > *De:* David Slotemaker de Bruine > *Enviado el:* miércoles, 10 de febrero de 2021 15:59 > *Para:* users@royale.apache.org > *Asunto:* Re: Remote Object Call Performance and Fault Event > > > > 520, the response from the server is immediate. The objects inherit from a > base object, could that be the cause? > > > > On Wed., 10 Feb. 2021, 15:57 Maria Jose Esteve, wrote: > > Hi David, > > How many records do you have? > > > > Hiedra > > > > *De:* David Slotemaker de Bruine > *Enviado el:* miércoles, 10 de febrero de 2021 15:27 > *Para:* users@royale.apache.org > *Asunto:* Re: Remote Object Call Performance and Fault Event > > > > Hey Guys, > > > > Thank you both! That compile string works a treat, I can now send and > receive using the mx:Remote object instead of js:Remote Object. > > > > @Carlos I am still getting > > "Detected duplicate HTTP-based FlexSessions, generally due to the remote > host disabling session cookies. Session cookies must be enabled to manage > the client connection correctly." > > > > Fault calls every second request. > > > > Once the second call completes (rapidly from the server) it takes 30 > seconds to "paint" the results to the datagrid using the following result > Handler. > > > > private function clientesResultHandler(e:ResultEvent):void > { > if(e.result is ArrayList) > { > dg.dataProvider = e.result as ArrayList; > } > } > > > > Am I assigning it the right way? Do I need to cast the individual items in > the ArrayList? > > > > Cheers, > > > > David > > > > > > > > > > On Wed, 10 Feb 2021 at 14:03, Piotr Zarzycki > wrote: > > I bit of an explanation why in Maven build we are using: > > > > > -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css > > > > Instead: > > > > -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css > > > > Each Maven swc which has been generated are having following signature > MXRoyale-0.9.8-js.swc - when you binaries distribution of SDK which you can > use in IDE all MX royale library doesn't have framework version in name - > it's just MXRoyaleJS.swc > > > > śr., 10 lut 2021 o 13:55 Piotr Zarzycki > napisał(a): > > David, > > > > I think this should be your compiler options: > > > > -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css > -html-template=src/resources/jewel-index-template.html > -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc > -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css > +configname=flex > > > > -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc - I believe also > instead of equality sign it should be used here +=, because with equality > we completely override our js-library-path instead adding something to it. > > > > Thanks, > > Piotr > > > > śr., 10 lut 2021 o 13:44 Piotr Zarzycki > napisał(a): > > Sorry I missed your email I see your options. Give me a second I will > provide you correct stuff > > > > śr., 10 lut 2021 o 13:43 Piotr Zarzycki > napisał(a): > > David, > > > > Show me screenshot with your compiler options. Carlos provided you correct > stuff now you just need to place in a proper way. > > > > śr., 10 lut 2021 o 13:35 David Slotemaker de Bruine < > dslotema...@vicensvives.com> napisał(a): > > : command line Error: configuration variable > 'compiler.exclude-defaults-css-files' value contains unknown token > 'royale.framework.version'. > > > > On Wed, 10 Feb 2021 at 13:34, David Slotemaker de Bruine < > dslotema...@vicensvives.com> wrote: > > Hi guys, > > > > @Carlos I am using Moonshine to compile, I guess it uses maven under the > hood?? > > > > This is the string I am using: > > > > -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css > -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc >
Re: Remote Object Call Performance and Fault Event
Hi David, the problem with sessions seems to be off the Royale scope. I remember hear about it in the Flex days, but don't remember the cause. I think you need to give more info about your server configuration. Also check this to see if it helps [1] Did you start from scratch we very simple call to a java backend to request a simple String? It's important to start to work on AMF with very simple calls and then receive a string, if all goes well, you can go to the next step and try objects, class objects, custom class objects and finally collections. If you try the latest as your first use case, you¡ll probably will have many problems and hard to debug. [1] https://stackoverflow.com/questions/14254469/detected-duplicate-http-based-flexsessions-generally-due-to-the-remote-host-dis El mié, 10 feb 2021 a las 17:35, David Slotemaker de Bruine (< dslotema...@vicensvives.com>) escribió: > Hi Hiedra, > > Thank you for your response. Please do share the paging component you have > been working on, that will be a good stop gap until the datagrid component > acts more like the old Flex one. > > Any idea about the dual http sessions error? > > Cheers. > > David > > On Wed, 10 Feb 2021 at 16:29, Maria Jose Esteve wrote: > >> Hi David, >> >> We experience the same behavior as you. Waiting for time to be spent >> debugging the VirtualDataGrid we use a List with a custom itemRenderer for >> each row. >> >> In any case, with the List we cannot load a lot of data at once, so we >> have opted for pagination of the data. >> >> >> >> When you have to load a lot of data you will have to use the "Virtual" >> components: VirtualDataGrid, VirtualList and VirtualComboBox, although as I >> said, they still need some work. >> >> >> >> I would check if there is a problem with the received data: filter the >> return and load only 10 or 20 records and if it works for you, implement a >> paging process. (I could share with you a little PaginatorNav control that >> I implemented. It is not finished and needs work but maybe it will help you >> continue) >> >> >> >> Anyway, wait for another colleague to give us their opinion. >> >> >> >> Hiedra. >> >> >> >> *De:* David Slotemaker de Bruine >> *Enviado el:* miércoles, 10 de febrero de 2021 15:59 >> *Para:* users@royale.apache.org >> *Asunto:* Re: Remote Object Call Performance and Fault Event >> >> >> >> 520, the response from the server is immediate. The objects inherit from >> a base object, could that be the cause? >> >> >> >> On Wed., 10 Feb. 2021, 15:57 Maria Jose Esteve, >> wrote: >> >> Hi David, >> >> How many records do you have? >> >> >> >> Hiedra >> >> >> >> *De:* David Slotemaker de Bruine >> *Enviado el:* miércoles, 10 de febrero de 2021 15:27 >> *Para:* users@royale.apache.org >> *Asunto:* Re: Remote Object Call Performance and Fault Event >> >> >> >> Hey Guys, >> >> >> >> Thank you both! That compile string works a treat, I can now send and >> receive using the mx:Remote object instead of js:Remote Object. >> >> >> >> @Carlos I am still getting >> >> "Detected duplicate HTTP-based FlexSessions, generally due to the >> remote host disabling session cookies. Session cookies must be enabled to >> manage the client connection correctly." >> >> >> >> Fault calls every second request. >> >> >> >> Once the second call completes (rapidly from the server) it takes 30 >> seconds to "paint" the results to the datagrid using the following result >> Handler. >> >> >> >> private function clientesResultHandler(e:ResultEvent):void >> { >> if(e.result is ArrayList) >> { >> dg.dataProvider = e.result as ArrayList; >> } >> } >> >> >> >> Am I assigning it the right way? Do I need to cast the individual items >> in the ArrayList? >> >> >> >> Cheers, >> >> >> >> David >> >> >> >> >> >> >> >> >> >> On Wed, 10 Feb 2021 at 14:03, Piotr Zarzycki >> wrote: >> >> I bit of an explanation why in Maven build we are using: >> >> >> >> >> -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css >> >> >> >> Instead: >> >> >> >> -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css >> >> >> >> Each Maven swc which has been generated are having following signature >> MXRoyale-0.9.8-js.swc - when you binaries distribution of SDK which you can >> use in IDE all MX royale library doesn't have framework version in name - >> it's just MXRoyaleJS.swc >> >> >> >> śr., 10 lut 2021 o 13:55 Piotr Zarzycki >> napisał(a): >> >> David, >> >> >> >> I think this should be your compiler options: >> >> >> >> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css >> -html-template=src/resources/jewel-index-template.html >> -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc >> -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css >> +configname=flex >> >> >> >> -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc - I believe also >> instead of equality sign it should be used here +=, because with equality >> we completely override
Re: Remote Object Call Performance and Fault Event
do not use cookies, use stateless session. if you still have to use cookies, you should check blazeDS AppendToGatewayUrl message, after command message PING / Operation 5, executed. check message.headers, if name == 'AppendToGatewayUrl' and mustUnderstand == true, save jsession value. and use jsession value, requestQueue.push( { url: url + jsession, targetURI: command, responder: responder, args: params } ); then our friendly message, "Detected duplicate HTTP-based FlexSessions, generally due to ..." gone, and no double call. but, if you want to use stateless session, ignore jsession, then you can force null to royale header. protected function setRoyaleClientIdOnMessage(message:IMessage):void { //var id:String = RoyaleClient.getInstance().id; //trace("[*setRoyaleClientIdOnMessage] RoyaleClient.getInstance().id: " + RoyaleClient.getInstance().id); //message.headers[AbstractMessage.ROYALE_CLIENT_ID_HEADER] = (id != null) ? id : RoyaleClient.NULL_ROYALECLIENT_ID; message.headers[AbstractMessage.ROYALE_CLIENT_ID_HEADER] = RoyaleClient.NULL_ROYALECLIENT_ID; } and there is no "Detected duplicate HTTP-based FlexSessions, ...", no double call. use jwt or paseto or macaroons or others.( I use JPaseto) and of course, you should aware about session housekeeping, caused by too many BlazeDS flexSessions creation, hdr(DSId) always null. i use JS::RemoteObject, because MX::RemoteObject is very "mbulet" (in Indonesian, meanings Complicated), there are Channels, Channelset, Operation, AsyncToken and Responders, just to call a function. i build latest royale-asjs develop branch using maven, and code with VSCode. Salam, Rizal -- Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: Remote Object Call Performance and Fault Event
Hi Safrizal, cool :) Thanks for your response. I think js:RemoteObject could be an option if you're starting a project from scratch. For people coming from a full mx:RemoteObject implementation, wil be more difficult since I think there's still some issues. Great you have a solution to sessions, I searched and this problem didn't arise before here, so we have now a good starting point with you shared knowledge about the issues :) Best El mié, 10 feb 2021 a las 17:49, Safrizal () escribió: > do not use cookies, use stateless session. > > if you still have to use cookies, you should check blazeDS > AppendToGatewayUrl message, > after command message PING / Operation 5, executed. > > check message.headers, if name == 'AppendToGatewayUrl' and mustUnderstand > == > true, > save jsession value. > > and use jsession value, > > requestQueue.push( > { > url: url + jsession, > targetURI: command, > responder: responder, > args: params > } > ); > > then our friendly message, "Detected duplicate HTTP-based FlexSessions, > generally due to ..." gone, and no double call. > > but, if you want to use stateless session, ignore jsession, then you can > force null to royale header. > > protected function setRoyaleClientIdOnMessage(message:IMessage):void > { > //var id:String = RoyaleClient.getInstance().id; > //trace("[*setRoyaleClientIdOnMessage] RoyaleClient.getInstance().id: > " > + RoyaleClient.getInstance().id); > //message.headers[AbstractMessage.ROYALE_CLIENT_ID_HEADER] = (id != > null) ? id : RoyaleClient.NULL_ROYALECLIENT_ID; > > message.headers[AbstractMessage.ROYALE_CLIENT_ID_HEADER] = > RoyaleClient.NULL_ROYALECLIENT_ID; > } > > and there is no "Detected duplicate HTTP-based FlexSessions, ...", no > double > call. > > use jwt or paseto or macaroons or others.( I use JPaseto) > and of course, you should aware about session housekeeping, > caused by too many BlazeDS flexSessions creation, hdr(DSId) always null. > > i use JS::RemoteObject, because MX::RemoteObject is very "mbulet" (in > Indonesian, meanings Complicated), > there are Channels, Channelset, Operation, AsyncToken and Responders, just > to call a function. > > i build latest royale-asjs develop branch using maven, and code with > VSCode. > > > > Salam, > > > Rizal > > > > > -- > Sent from: http://apache-royale-users.20374.n8.nabble.com/ > -- Carlos Rovira Apache Member & Apache Royale PMC *Apache Software Foundation* http://about.me/carlosrovira
AS3 & MXML for VSCode and Mac M1
Hi, Could you share your experience about Mac M1 with a project compiling with AS3 & MXML for VSCode. Best regards
Re: Remote Object Call Performance and Fault Event
Hi David, so you have the old ApplicationResponsiveView and must be changed to ResponsiveView right? That's the reason I was telling to start a project from scratch, so having a j:Application file alone from the hello world (for example) will start with a successful compilation. Then adding the older tag, will make you find that is not valid, and code hinting or searching on mailing list or asking here will give you the clue. That's the reason I said it's important to keep on the loop at least until we get 1.0 and freeze APIs so changes of this kind will be much less frequent. MXRoyale is added directly if you use +configname=flex, but that will remove jewel that is in your current config +configname=royale that is default. So we need to add MXRoyale SWC to the mix. In VSCode you use to add this: "library-path": [ "${royalelib}/js/libs/MXRoyaleJS.swc" ], "js-library-path": [ "${royalelib}/js/libs/MXRoyaleJS.swc" ] (probably just the later since you're only interested in JS) So if you're creating a command line that will be probably -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc Take into account that I use Maven build since I prefer depend on a build system instead of any IDE or just the compiler to ensure my build is consistent from my desktop development environment to any CI server out there, so think as a suggestion since the line could be not usable directly, but that's the info you need to build yours for sure. One more thing you'll need is to avoid CSS from MXRoyale until we separate RPC from visual mx/spark components: -compiler.exclude-defaults-css-files=MXRoyale-${ royale.framework.version}-js.swc:defaults.css Thanks El mié, 10 feb 2021 a las 12:03, David Slotemaker de Bruine (< dslotema...@vicensvives.com>) escribió: > Hi Carlos, > > Piotr helped me out fixing the template for a new project. For others > finding this post you have to change a tag in the MXML: > > [1] https://github.com/prominic/Moonshine-IDE/issues/778 > > I still have issues with mx.rpc imports. I am only using the JS version of > the SDK nightly build which Piotr says should be ok for using the mx.rpc.* > imports but I might be missing a compiler instruction. Can you help me out > with what I need to add to the compiler? > > The compiler lines I have (the default) are: > > -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css > -html-template=src/resources/jewel-index-template.html > > Cheers, > > David > > On 2021/02/10 08:57:45, Piotr Zarzycki wrote: > > In order to download Nightly build of Royale trough Moonshine you should > go > > to menu Help -> Getting Started -> Download Third Party Software > > > > In launched application choose from Drop down list 0.9.8 in Royale > section > > - click Download. - Once it's done you can choose for your project > > downloaded Nightly build of SDK. > > > > Path of downloaded SDK will > > be: c:\MoonshineSDKs\Royale_SDK\apache-royale-0.9.8-bin-js\ - make sure > > that you are seeing this for selected SDK. On Mac that path is different. > > > > > > śr., 10 lut 2021 o 09:53 Piotr Zarzycki > > napisał(a): > > > > > Please upload to some dropbox, onedrive or something like that and > send me > > > to my email - do you see my email here ? > > > > > > > > > > > > śr., 10 lut 2021 o 09:25 David Slotemaker de Bruine < > > > dslotema...@vicensvives.com> napisał(a): > > > > > >> Hi Piotr, > > >> > > >> How can I send the project to you, I can't attached files to the > post? If > > >> I change the SDK back to 9.7 -JS Moonshine no longer shows the: > > >> > > >> The IDE highlights "J:initialView" with a red underline stating: > "Cannot > > >> parse a value of type org.apache.royal.core.IApplicationView" > > >> > > >> error, nor the .swc error. So something is messed up with the 9.8 > JS-SWF > > >> version. Could the nightly I have not be installed correctly? How do I > > >> automate the nightlys into Moonshine? > > >> > > >> Cheers, > > >> > > >> David > > >> > > >> > > >> > > >> > > >> > > >> On Tue, 9 Feb 2021 at 21:53, Piotr Zarzycki < > piotrzarzyck...@gmail.com> > > >> wrote: > > >> > > >>> Carlos, > > >>> > > >>> Above errors are nothing to do with Moonshine at all. > > >>> > > >>> David, > > >>> > > >>> Can you zip your project and send me off the list - I will look what > is > > >>> your problems and guide you to resolve it. - If it's possible of > course. > > >>> > > >>> Thanks, > > >>> Piotr > > >>> > > >>> wt., 9 lut 2021 o 17:25 Carlos Rovira > > >>> napisał(a): > > >>> > > Hi David, > > > > sorry but I'm not an expert in Moonshine, to set up a project > > hope Piotr could give you a hand. Since you're doing from scratch > it should > > be fairly straight forward. > > > > El mar, 9 feb 2021 a las 16:07, David Slotemaker de Bruine (< > > dslotema...@vicensvives.com>) escribió: > > > > > Hi Carlos, > > > > > > I have installed the nightly of Moonshine (3.1.0) and it is point > to > >
Re: Remote Object Call Performance and Fault Event
Sorry I missed your email I see your options. Give me a second I will provide you correct stuff śr., 10 lut 2021 o 13:43 Piotr Zarzycki napisał(a): > David, > > Show me screenshot with your compiler options. Carlos provided you correct > stuff now you just need to place in a proper way. > > śr., 10 lut 2021 o 13:35 David Slotemaker de Bruine < > dslotema...@vicensvives.com> napisał(a): > >> : command line Error: configuration variable >> 'compiler.exclude-defaults-css-files' value contains unknown token >> 'royale.framework.version'. >> >> On Wed, 10 Feb 2021 at 13:34, David Slotemaker de Bruine < >> dslotema...@vicensvives.com> wrote: >> >>> Hi guys, >>> >>> @Carlos I am using Moonshine to compile, I guess it uses maven under the >>> hood?? >>> >>> This is the string I am using: >>> >>> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css >>> -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc >>> -html-template=src/resources/jewel-index-template.html >>> -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css >>> +configname=flex >>> >>> I am getting the following error: >>> >>> >>> >>> >>> On Wed, 10 Feb 2021 at 13:24, Carlos Rovira >>> wrote: >>> Hi David, so you have the old ApplicationResponsiveView and must be changed to ResponsiveView right? That's the reason I was telling to start a project from scratch, so having a j:Application file alone from the hello world (for example) will start with a successful compilation. Then adding the older tag, will make you find that is not valid, and code hinting or searching on mailing list or asking here will give you the clue. That's the reason I said it's important to keep on the loop at least until we get 1.0 and freeze APIs so changes of this kind will be much less frequent. MXRoyale is added directly if you use +configname=flex, but that will remove jewel that is in your current config +configname=royale that is default. So we need to add MXRoyale SWC to the mix. In VSCode you use to add this: "library-path": [ "${royalelib}/js/libs/MXRoyaleJS.swc" ], "js-library-path": [ "${royalelib}/js/libs/MXRoyaleJS.swc" ] (probably just the later since you're only interested in JS) So if you're creating a command line that will be probably -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc Take into account that I use Maven build since I prefer depend on a build system instead of any IDE or just the compiler to ensure my build is consistent from my desktop development environment to any CI server out there, so think as a suggestion since the line could be not usable directly, but that's the info you need to build yours for sure. One more thing you'll need is to avoid CSS from MXRoyale until we separate RPC from visual mx/spark components: -compiler.exclude-defaults-css-files=MXRoyale-${ royale.framework.version}-js.swc:defaults.css Thanks El mié, 10 feb 2021 a las 12:03, David Slotemaker de Bruine (< dslotema...@vicensvives.com>) escribió: > Hi Carlos, > > Piotr helped me out fixing the template for a new project. For others > finding this post you have to change a tag in the MXML: > > [1] https://github.com/prominic/Moonshine-IDE/issues/778 > > I still have issues with mx.rpc imports. I am only using the JS > version of the SDK nightly build which Piotr says should be ok for using > the mx.rpc.* imports but I might be missing a compiler instruction. Can > you > help me out with what I need to add to the compiler? > > The compiler lines I have (the default) are: > > -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css > -html-template=src/resources/jewel-index-template.html > > Cheers, > > David > > On 2021/02/10 08:57:45, Piotr Zarzycki > wrote: > > In order to download Nightly build of Royale trough Moonshine you > should go > > to menu Help -> Getting Started -> Download Third Party Software > > > > In launched application choose from Drop down list 0.9.8 in Royale > section > > - click Download. - Once it's done you can choose for your project > > downloaded Nightly build of SDK. > > > > Path of downloaded SDK will > > be: c:\MoonshineSDKs\Royale_SDK\apache-royale-0.9.8-bin-js\ - make > sure > > that you are seeing this for selected SDK. On Mac that path is > different. > > > > > > śr., 10 lut 2021 o 09:53 Piotr Zarzycki > > napisał(a): > > > > > Please upload to some dropbox, onedrive or something like that and > send me > > > to my email - do you see my email here ? > > > > > > > > > > > > śr., 10 lut 2021 o 09:25 David Slotemaker de Bruine < > >
Re: Remote Object Call Performance and Fault Event
I bit of an explanation why in Maven build we are using: -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css Instead: -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css Each Maven swc which has been generated are having following signature MXRoyale-0.9.8-js.swc - when you binaries distribution of SDK which you can use in IDE all MX royale library doesn't have framework version in name - it's just MXRoyaleJS.swc śr., 10 lut 2021 o 13:55 Piotr Zarzycki napisał(a): > David, > > I think this should be your compiler options: > > -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css > -html-template=src/resources/jewel-index-template.html > -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc > -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css > +configname=flex > > -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc - I believe also > instead of equality sign it should be used here +=, because with equality > we completely override our js-library-path instead adding something to it. > > Thanks, > Piotr > > śr., 10 lut 2021 o 13:44 Piotr Zarzycki > napisał(a): > >> Sorry I missed your email I see your options. Give me a second I will >> provide you correct stuff >> >> śr., 10 lut 2021 o 13:43 Piotr Zarzycki >> napisał(a): >> >>> David, >>> >>> Show me screenshot with your compiler options. Carlos provided you >>> correct stuff now you just need to place in a proper way. >>> >>> śr., 10 lut 2021 o 13:35 David Slotemaker de Bruine < >>> dslotema...@vicensvives.com> napisał(a): >>> : command line Error: configuration variable 'compiler.exclude-defaults-css-files' value contains unknown token 'royale.framework.version'. On Wed, 10 Feb 2021 at 13:34, David Slotemaker de Bruine < dslotema...@vicensvives.com> wrote: > Hi guys, > > @Carlos I am using Moonshine to compile, I guess it uses maven under > the hood?? > > This is the string I am using: > > -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css > -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc > -html-template=src/resources/jewel-index-template.html > -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css > +configname=flex > > I am getting the following error: > > > > > On Wed, 10 Feb 2021 at 13:24, Carlos Rovira > wrote: > >> Hi David, >> >> so you have the old ApplicationResponsiveView and must be changed to >> ResponsiveView right? That's the reason I was telling to start a project >> from scratch, so having a j:Application file alone from the hello world >> (for example) will start with a successful compilation. Then adding the >> older tag, will make you find that is not valid, and code hinting or >> searching on mailing list or asking here will give you the clue. That's >> the >> reason I said it's important to keep on the loop at least until we get >> 1.0 >> and freeze APIs so changes of this kind will be much less frequent. >> >> MXRoyale is added directly if you use +configname=flex, but that will >> remove jewel that is in your current config +configname=royale that is >> default. So we need to add MXRoyale SWC to the mix. >> >> In VSCode you use to add this: >> >> "library-path": [ >> "${royalelib}/js/libs/MXRoyaleJS.swc" >> ], >> "js-library-path": [ >> "${royalelib}/js/libs/MXRoyaleJS.swc" >> ] >> >> (probably just the later since you're only interested in JS) >> >> So if you're creating a command line that will be probably >> -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc >> >> Take into account that I use Maven build since I prefer depend on a >> build system instead of any IDE or just the compiler to ensure my build >> is >> consistent from my desktop development environment to any CI server out >> there, so think as a suggestion since the line could be not usable >> directly, but that's the info you need to build yours for sure. >> >> One more thing you'll need is to avoid CSS from MXRoyale until we >> separate RPC from visual mx/spark components: >> -compiler.exclude-defaults-css-files=MXRoyale-${ >> royale.framework.version}-js.swc:defaults.css >> >> Thanks >> >> >> El mié, 10 feb 2021 a las 12:03, David Slotemaker de Bruine (< >> dslotema...@vicensvives.com>) escribió: >> >>> Hi Carlos, >>> >>> Piotr helped me out fixing the template for a new project. For >>> others finding this post you have to change a tag in the MXML: >>> >>> [1] https://github.com/prominic/Moonshine-IDE/issues/778 >>> >>> I still have issues with mx.rpc imports. I am only using the JS >>> version of the SDK nightly build which Piotr says should be
Crux - binding model between views
Hi, let's see if someone can help me or give me some clue to follow. In the application in which I am working there are many maintenance, mvc, whose management is identical. We have created a component SectionContent, ModuleSectionContent.as, with the idea of encapsulating in it all the processes and / or common components (navigation between the records, detail view-list view, toolbars according to the edition status, ...). In this template, for example, we add a header (mxml component) as a "Toolbar" that, as you can imagine, will need a bindable reference to the "model" that is assigned to the component and, at this point, is WHERE I NEED HELP: I can't make the automatic binding of the model work, from the main view to the header. (Everything works perfectly if I create a set in the template and hence a call to the bindable set of the header subcomponent) We use crux and all the models implement the same interface, IModelArqManager; currently this is the implementation: Component “ModuleSectionContent.as” (Template) [Bindable] public class ModuleSectionContent extends SectionContent { … public var header:HeaderModule = new HeaderModule(); … public function set isOnAddingMode(value:Boolean):void { header.isOnAddingMode = value; } … Componente “HeaderModule.mxml” (var header) http://ns.adobe.com/mxml/2009 … private var _isOnAddingMode:Boolean; [Bindable] public function get isOnAddingMode():Boolean{ return _isOnAddingMode;} public function set isOnAddingMode(value:Boolean):void{ _isOnAddingMode = value;} … … Implementation, example, CustomerView.mxml: http://ns.adobe.com/mxml/2009; xmlns:j="library://ns.apache.org/royale/jewel" … isOnAddingMode="{customerModel.currentState == UtilConstants.STATE_ADDING}" >
Re: Remote Object Call Performance and Fault Event
: command line Error: configuration variable 'compiler.exclude-defaults-css-files' value contains unknown token 'royale.framework.version'. On Wed, 10 Feb 2021 at 13:34, David Slotemaker de Bruine < dslotema...@vicensvives.com> wrote: > Hi guys, > > @Carlos I am using Moonshine to compile, I guess it uses maven under the > hood?? > > This is the string I am using: > > -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css > -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc > -html-template=src/resources/jewel-index-template.html > -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css > +configname=flex > > I am getting the following error: > > > > > On Wed, 10 Feb 2021 at 13:24, Carlos Rovira > wrote: > >> Hi David, >> >> so you have the old ApplicationResponsiveView and must be changed to >> ResponsiveView right? That's the reason I was telling to start a project >> from scratch, so having a j:Application file alone from the hello world >> (for example) will start with a successful compilation. Then adding the >> older tag, will make you find that is not valid, and code hinting or >> searching on mailing list or asking here will give you the clue. That's the >> reason I said it's important to keep on the loop at least until we get 1.0 >> and freeze APIs so changes of this kind will be much less frequent. >> >> MXRoyale is added directly if you use +configname=flex, but that will >> remove jewel that is in your current config +configname=royale that is >> default. So we need to add MXRoyale SWC to the mix. >> >> In VSCode you use to add this: >> >> "library-path": [ >> "${royalelib}/js/libs/MXRoyaleJS.swc" >> ], >> "js-library-path": [ >> "${royalelib}/js/libs/MXRoyaleJS.swc" >> ] >> >> (probably just the later since you're only interested in JS) >> >> So if you're creating a command line that will be probably >> -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc >> >> Take into account that I use Maven build since I prefer depend on a build >> system instead of any IDE or just the compiler to ensure my build is >> consistent from my desktop development environment to any CI server out >> there, so think as a suggestion since the line could be not usable >> directly, but that's the info you need to build yours for sure. >> >> One more thing you'll need is to avoid CSS from MXRoyale until we >> separate RPC from visual mx/spark components: >> -compiler.exclude-defaults-css-files=MXRoyale-${ >> royale.framework.version}-js.swc:defaults.css >> >> Thanks >> >> >> El mié, 10 feb 2021 a las 12:03, David Slotemaker de Bruine (< >> dslotema...@vicensvives.com>) escribió: >> >>> Hi Carlos, >>> >>> Piotr helped me out fixing the template for a new project. For others >>> finding this post you have to change a tag in the MXML: >>> >>> [1] https://github.com/prominic/Moonshine-IDE/issues/778 >>> >>> I still have issues with mx.rpc imports. I am only using the JS version >>> of the SDK nightly build which Piotr says should be ok for using the >>> mx.rpc.* imports but I might be missing a compiler instruction. Can you >>> help me out with what I need to add to the compiler? >>> >>> The compiler lines I have (the default) are: >>> >>> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css >>> -html-template=src/resources/jewel-index-template.html >>> >>> Cheers, >>> >>> David >>> >>> On 2021/02/10 08:57:45, Piotr Zarzycki >>> wrote: >>> > In order to download Nightly build of Royale trough Moonshine you >>> should go >>> > to menu Help -> Getting Started -> Download Third Party Software >>> > >>> > In launched application choose from Drop down list 0.9.8 in Royale >>> section >>> > - click Download. - Once it's done you can choose for your project >>> > downloaded Nightly build of SDK. >>> > >>> > Path of downloaded SDK will >>> > be: c:\MoonshineSDKs\Royale_SDK\apache-royale-0.9.8-bin-js\ - make sure >>> > that you are seeing this for selected SDK. On Mac that path is >>> different. >>> > >>> > >>> > śr., 10 lut 2021 o 09:53 Piotr Zarzycki >>> > napisał(a): >>> > >>> > > Please upload to some dropbox, onedrive or something like that and >>> send me >>> > > to my email - do you see my email here ? >>> > > >>> > > >>> > > >>> > > śr., 10 lut 2021 o 09:25 David Slotemaker de Bruine < >>> > > dslotema...@vicensvives.com> napisał(a): >>> > > >>> > >> Hi Piotr, >>> > >> >>> > >> How can I send the project to you, I can't attached files to the >>> post? If >>> > >> I change the SDK back to 9.7 -JS Moonshine no longer shows the: >>> > >> >>> > >> The IDE highlights "J:initialView" with a red underline stating: >>> "Cannot >>> > >> parse a value of type org.apache.royal.core.IApplicationView" >>> > >> >>> > >> error, nor the .swc error. So something is messed up with the 9.8 >>> JS-SWF >>> > >> version. Could the nightly I have not be installed correctly? How >>> do I >>> > >> automate the nightlys into Moonshine? >>> > >> >>> > >> Cheers,
Re: Remote Object Call Performance and Fault Event
Hi guys, @Carlos I am using Moonshine to compile, I guess it uses maven under the hood?? This is the string I am using: -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc -html-template=src/resources/jewel-index-template.html -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css +configname=flex I am getting the following error: On Wed, 10 Feb 2021 at 13:24, Carlos Rovira wrote: > Hi David, > > so you have the old ApplicationResponsiveView and must be changed to > ResponsiveView right? That's the reason I was telling to start a project > from scratch, so having a j:Application file alone from the hello world > (for example) will start with a successful compilation. Then adding the > older tag, will make you find that is not valid, and code hinting or > searching on mailing list or asking here will give you the clue. That's the > reason I said it's important to keep on the loop at least until we get 1.0 > and freeze APIs so changes of this kind will be much less frequent. > > MXRoyale is added directly if you use +configname=flex, but that will > remove jewel that is in your current config +configname=royale that is > default. So we need to add MXRoyale SWC to the mix. > > In VSCode you use to add this: > > "library-path": [ > "${royalelib}/js/libs/MXRoyaleJS.swc" > ], > "js-library-path": [ > "${royalelib}/js/libs/MXRoyaleJS.swc" > ] > > (probably just the later since you're only interested in JS) > > So if you're creating a command line that will be probably > -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc > > Take into account that I use Maven build since I prefer depend on a build > system instead of any IDE or just the compiler to ensure my build is > consistent from my desktop development environment to any CI server out > there, so think as a suggestion since the line could be not usable > directly, but that's the info you need to build yours for sure. > > One more thing you'll need is to avoid CSS from MXRoyale until we separate > RPC from visual mx/spark components: > -compiler.exclude-defaults-css-files=MXRoyale-${ > royale.framework.version}-js.swc:defaults.css > > Thanks > > > El mié, 10 feb 2021 a las 12:03, David Slotemaker de Bruine (< > dslotema...@vicensvives.com>) escribió: > >> Hi Carlos, >> >> Piotr helped me out fixing the template for a new project. For others >> finding this post you have to change a tag in the MXML: >> >> [1] https://github.com/prominic/Moonshine-IDE/issues/778 >> >> I still have issues with mx.rpc imports. I am only using the JS version >> of the SDK nightly build which Piotr says should be ok for using the >> mx.rpc.* imports but I might be missing a compiler instruction. Can you >> help me out with what I need to add to the compiler? >> >> The compiler lines I have (the default) are: >> >> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css >> -html-template=src/resources/jewel-index-template.html >> >> Cheers, >> >> David >> >> On 2021/02/10 08:57:45, Piotr Zarzycki >> wrote: >> > In order to download Nightly build of Royale trough Moonshine you >> should go >> > to menu Help -> Getting Started -> Download Third Party Software >> > >> > In launched application choose from Drop down list 0.9.8 in Royale >> section >> > - click Download. - Once it's done you can choose for your project >> > downloaded Nightly build of SDK. >> > >> > Path of downloaded SDK will >> > be: c:\MoonshineSDKs\Royale_SDK\apache-royale-0.9.8-bin-js\ - make sure >> > that you are seeing this for selected SDK. On Mac that path is >> different. >> > >> > >> > śr., 10 lut 2021 o 09:53 Piotr Zarzycki >> > napisał(a): >> > >> > > Please upload to some dropbox, onedrive or something like that and >> send me >> > > to my email - do you see my email here ? >> > > >> > > >> > > >> > > śr., 10 lut 2021 o 09:25 David Slotemaker de Bruine < >> > > dslotema...@vicensvives.com> napisał(a): >> > > >> > >> Hi Piotr, >> > >> >> > >> How can I send the project to you, I can't attached files to the >> post? If >> > >> I change the SDK back to 9.7 -JS Moonshine no longer shows the: >> > >> >> > >> The IDE highlights "J:initialView" with a red underline stating: >> "Cannot >> > >> parse a value of type org.apache.royal.core.IApplicationView" >> > >> >> > >> error, nor the .swc error. So something is messed up with the 9.8 >> JS-SWF >> > >> version. Could the nightly I have not be installed correctly? How do >> I >> > >> automate the nightlys into Moonshine? >> > >> >> > >> Cheers, >> > >> >> > >> David >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> On Tue, 9 Feb 2021 at 21:53, Piotr Zarzycki < >> piotrzarzyck...@gmail.com> >> > >> wrote: >> > >> >> > >>> Carlos, >> > >>> >> > >>> Above errors are nothing to do with Moonshine at all. >> > >>> >> > >>> David, >> > >>> >> > >>> Can you zip your project and send me off the list - I will look >> what is >> > >>>
Re: Remote Object Call Performance and Fault Event
David, Show me screenshot with your compiler options. Carlos provided you correct stuff now you just need to place in a proper way. śr., 10 lut 2021 o 13:35 David Slotemaker de Bruine < dslotema...@vicensvives.com> napisał(a): > : command line Error: configuration variable > 'compiler.exclude-defaults-css-files' value contains unknown token > 'royale.framework.version'. > > On Wed, 10 Feb 2021 at 13:34, David Slotemaker de Bruine < > dslotema...@vicensvives.com> wrote: > >> Hi guys, >> >> @Carlos I am using Moonshine to compile, I guess it uses maven under the >> hood?? >> >> This is the string I am using: >> >> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css >> -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc >> -html-template=src/resources/jewel-index-template.html >> -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css >> +configname=flex >> >> I am getting the following error: >> >> >> >> >> On Wed, 10 Feb 2021 at 13:24, Carlos Rovira >> wrote: >> >>> Hi David, >>> >>> so you have the old ApplicationResponsiveView and must be changed to >>> ResponsiveView right? That's the reason I was telling to start a project >>> from scratch, so having a j:Application file alone from the hello world >>> (for example) will start with a successful compilation. Then adding the >>> older tag, will make you find that is not valid, and code hinting or >>> searching on mailing list or asking here will give you the clue. That's the >>> reason I said it's important to keep on the loop at least until we get 1.0 >>> and freeze APIs so changes of this kind will be much less frequent. >>> >>> MXRoyale is added directly if you use +configname=flex, but that will >>> remove jewel that is in your current config +configname=royale that is >>> default. So we need to add MXRoyale SWC to the mix. >>> >>> In VSCode you use to add this: >>> >>> "library-path": [ >>> "${royalelib}/js/libs/MXRoyaleJS.swc" >>> ], >>> "js-library-path": [ >>> "${royalelib}/js/libs/MXRoyaleJS.swc" >>> ] >>> >>> (probably just the later since you're only interested in JS) >>> >>> So if you're creating a command line that will be probably >>> -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc >>> >>> Take into account that I use Maven build since I prefer depend on a >>> build system instead of any IDE or just the compiler to ensure my build is >>> consistent from my desktop development environment to any CI server out >>> there, so think as a suggestion since the line could be not usable >>> directly, but that's the info you need to build yours for sure. >>> >>> One more thing you'll need is to avoid CSS from MXRoyale until we >>> separate RPC from visual mx/spark components: >>> -compiler.exclude-defaults-css-files=MXRoyale-${ >>> royale.framework.version}-js.swc:defaults.css >>> >>> Thanks >>> >>> >>> El mié, 10 feb 2021 a las 12:03, David Slotemaker de Bruine (< >>> dslotema...@vicensvives.com>) escribió: >>> Hi Carlos, Piotr helped me out fixing the template for a new project. For others finding this post you have to change a tag in the MXML: [1] https://github.com/prominic/Moonshine-IDE/issues/778 I still have issues with mx.rpc imports. I am only using the JS version of the SDK nightly build which Piotr says should be ok for using the mx.rpc.* imports but I might be missing a compiler instruction. Can you help me out with what I need to add to the compiler? The compiler lines I have (the default) are: -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css -html-template=src/resources/jewel-index-template.html Cheers, David On 2021/02/10 08:57:45, Piotr Zarzycki wrote: > In order to download Nightly build of Royale trough Moonshine you should go > to menu Help -> Getting Started -> Download Third Party Software > > In launched application choose from Drop down list 0.9.8 in Royale section > - click Download. - Once it's done you can choose for your project > downloaded Nightly build of SDK. > > Path of downloaded SDK will > be: c:\MoonshineSDKs\Royale_SDK\apache-royale-0.9.8-bin-js\ - make sure > that you are seeing this for selected SDK. On Mac that path is different. > > > śr., 10 lut 2021 o 09:53 Piotr Zarzycki > napisał(a): > > > Please upload to some dropbox, onedrive or something like that and send me > > to my email - do you see my email here ? > > > > > > > > śr., 10 lut 2021 o 09:25 David Slotemaker de Bruine < > > dslotema...@vicensvives.com> napisał(a): > > > >> Hi Piotr, > >> > >> How can I send the project to you, I can't attached files to the post? If > >> I change the SDK back to 9.7 -JS Moonshine no longer shows the: > >> > >> The IDE highlights
Re: Remote Object Call Performance and Fault Event
David, I think this should be your compiler options: -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css -html-template=src/resources/jewel-index-template.html -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css +configname=flex -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc - I believe also instead of equality sign it should be used here +=, because with equality we completely override our js-library-path instead adding something to it. Thanks, Piotr śr., 10 lut 2021 o 13:44 Piotr Zarzycki napisał(a): > Sorry I missed your email I see your options. Give me a second I will > provide you correct stuff > > śr., 10 lut 2021 o 13:43 Piotr Zarzycki > napisał(a): > >> David, >> >> Show me screenshot with your compiler options. Carlos provided you >> correct stuff now you just need to place in a proper way. >> >> śr., 10 lut 2021 o 13:35 David Slotemaker de Bruine < >> dslotema...@vicensvives.com> napisał(a): >> >>> : command line Error: configuration variable >>> 'compiler.exclude-defaults-css-files' value contains unknown token >>> 'royale.framework.version'. >>> >>> On Wed, 10 Feb 2021 at 13:34, David Slotemaker de Bruine < >>> dslotema...@vicensvives.com> wrote: >>> Hi guys, @Carlos I am using Moonshine to compile, I guess it uses maven under the hood?? This is the string I am using: -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc -html-template=src/resources/jewel-index-template.html -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css +configname=flex I am getting the following error: On Wed, 10 Feb 2021 at 13:24, Carlos Rovira wrote: > Hi David, > > so you have the old ApplicationResponsiveView and must be changed to > ResponsiveView right? That's the reason I was telling to start a project > from scratch, so having a j:Application file alone from the hello world > (for example) will start with a successful compilation. Then adding the > older tag, will make you find that is not valid, and code hinting or > searching on mailing list or asking here will give you the clue. That's > the > reason I said it's important to keep on the loop at least until we get 1.0 > and freeze APIs so changes of this kind will be much less frequent. > > MXRoyale is added directly if you use +configname=flex, but that will > remove jewel that is in your current config +configname=royale that is > default. So we need to add MXRoyale SWC to the mix. > > In VSCode you use to add this: > > "library-path": [ > "${royalelib}/js/libs/MXRoyaleJS.swc" > ], > "js-library-path": [ > "${royalelib}/js/libs/MXRoyaleJS.swc" > ] > > (probably just the later since you're only interested in JS) > > So if you're creating a command line that will be probably > -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc > > Take into account that I use Maven build since I prefer depend on a > build system instead of any IDE or just the compiler to ensure my build is > consistent from my desktop development environment to any CI server out > there, so think as a suggestion since the line could be not usable > directly, but that's the info you need to build yours for sure. > > One more thing you'll need is to avoid CSS from MXRoyale until we > separate RPC from visual mx/spark components: > -compiler.exclude-defaults-css-files=MXRoyale-${ > royale.framework.version}-js.swc:defaults.css > > Thanks > > > El mié, 10 feb 2021 a las 12:03, David Slotemaker de Bruine (< > dslotema...@vicensvives.com>) escribió: > >> Hi Carlos, >> >> Piotr helped me out fixing the template for a new project. For others >> finding this post you have to change a tag in the MXML: >> >> [1] https://github.com/prominic/Moonshine-IDE/issues/778 >> >> I still have issues with mx.rpc imports. I am only using the JS >> version of the SDK nightly build which Piotr says should be ok for using >> the mx.rpc.* imports but I might be missing a compiler instruction. Can >> you >> help me out with what I need to add to the compiler? >> >> The compiler lines I have (the default) are: >> >> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css >> -html-template=src/resources/jewel-index-template.html >> >> Cheers, >> >> David >> >> On 2021/02/10 08:57:45, Piotr Zarzycki >> wrote: >> > In order to download Nightly build of Royale trough Moonshine you >> should go >> > to menu Help -> Getting Started -> Download Third Party Software >> > >> > In launched
Re: AS3 & MXML for VSCode and Mac M1
I got an M1 machine for testing, but I have not yet tried to use VS Code for Royale with it. I’ll likely have an opportunity to do that sometime in the next week. Harbs > On Feb 10, 2021, at 11:37 AM, Isabelle LOYER wrote: > > Hi, > > Could you share your experience about Mac M1 with a project compiling with > AS3 & MXML for VSCode. > > Best regards > >
Re: Remote Object Call Performance and Fault Event
Hi Carlos, Piotr helped me out fixing the template for a new project. For others finding this post you have to change a tag in the MXML: [1] https://github.com/prominic/Moonshine-IDE/issues/778 I still have issues with mx.rpc imports. I am only using the JS version of the SDK nightly build which Piotr says should be ok for using the mx.rpc.* imports but I might be missing a compiler instruction. Can you help me out with what I need to add to the compiler? The compiler lines I have (the default) are: -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css -html-template=src/resources/jewel-index-template.html Cheers, David On 2021/02/10 08:57:45, Piotr Zarzycki wrote: > In order to download Nightly build of Royale trough Moonshine you should go > to menu Help -> Getting Started -> Download Third Party Software > > In launched application choose from Drop down list 0.9.8 in Royale section > - click Download. - Once it's done you can choose for your project > downloaded Nightly build of SDK. > > Path of downloaded SDK will > be: c:\MoonshineSDKs\Royale_SDK\apache-royale-0.9.8-bin-js\ - make sure > that you are seeing this for selected SDK. On Mac that path is different. > > > śr., 10 lut 2021 o 09:53 Piotr Zarzycki > napisał(a): > > > Please upload to some dropbox, onedrive or something like that and send me > > to my email - do you see my email here ? > > > > > > > > śr., 10 lut 2021 o 09:25 David Slotemaker de Bruine < > > dslotema...@vicensvives.com> napisał(a): > > > >> Hi Piotr, > >> > >> How can I send the project to you, I can't attached files to the post? If > >> I change the SDK back to 9.7 -JS Moonshine no longer shows the: > >> > >> The IDE highlights "J:initialView" with a red underline stating: "Cannot > >> parse a value of type org.apache.royal.core.IApplicationView" > >> > >> error, nor the .swc error. So something is messed up with the 9.8 JS-SWF > >> version. Could the nightly I have not be installed correctly? How do I > >> automate the nightlys into Moonshine? > >> > >> Cheers, > >> > >> David > >> > >> > >> > >> > >> > >> On Tue, 9 Feb 2021 at 21:53, Piotr Zarzycki > >> wrote: > >> > >>> Carlos, > >>> > >>> Above errors are nothing to do with Moonshine at all. > >>> > >>> David, > >>> > >>> Can you zip your project and send me off the list - I will look what is > >>> your problems and guide you to resolve it. - If it's possible of course. > >>> > >>> Thanks, > >>> Piotr > >>> > >>> wt., 9 lut 2021 o 17:25 Carlos Rovira > >>> napisał(a): > >>> > Hi David, > > sorry but I'm not an expert in Moonshine, to set up a project > hope Piotr could give you a hand. Since you're doing from scratch it > should > be fairly straight forward. > > El mar, 9 feb 2021 a las 16:07, David Slotemaker de Bruine (< > dslotema...@vicensvives.com>) escribió: > > > Hi Carlos, > > > > I have installed the nightly of Moonshine (3.1.0) and it is point to > > the nightly of Royal (9.8 - swf-js). > > > > I created a new ApacheRoyal Project with platform set to JS. > > > > I created the frameworks folder in: > > > > C:\IDE\ApacheRoyalNightlyAll > > > > which contains the royal-* folders, package.json etc. > > > > When I build I get the : > > > > "This SDK does not contains playerglobal.swc in > > frameworks\libs\player\11.7\playerglobal.swc". error. > > > > So where should I place the folder? > > > > The IDE highlights "J:initialView" with a red underline stating: > > "Cannot parse a value of type org.apache.royal.core.IApplicationView" > > > > Where to from here? > > > > Thanks, > > > > David > > > > > > > > > > > > On Tue, 9 Feb 2021 at 15:23, Carlos Rovira > > wrote: > > > >> Hi, if I understand correctly, you just need to create a folder 11.7 > >> and copy the playerglobal.swc you have there. Although it is not that > >> version, I think Royale just wants to find it there. Even though you > >> really > >> use SWF, I think that will work, but more over you just want to > >> compile to > >> JS. > >> > >> Apart from that. I think starting from Royale 0.9.7 is normal that > >> your app breaks. There's lots of changes! 0.9.7 is from May 2020. So > >> in two > >> months that will be a complete year of changes, fixes, and refactors. > >> > >> You should remove 9.7 completely and go with the latest nightly and > >> update at least each week until we release 0.9.8 > >> Then start from scratch with an empty project that compiles with a > >> hello world. Then start adding your current code little by little and > >> fixing and updating things as you get errors until you get to the > >> actual > >> state. > >> > >> Sorry, but there's no better way to do this. Royale is still young > >> and many things are
Re: Remote Object Call Performance and Fault Event
Hey Guys, Thank you both! That compile string works a treat, I can now send and receive using the mx:Remote object instead of js:Remote Object. @Carlos I am still getting "Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly." Fault calls every second request. Once the second call completes (rapidly from the server) it takes 30 seconds to "paint" the results to the datagrid using the following result Handler. private function clientesResultHandler(e:ResultEvent):void { if(e.result is ArrayList) { dg.dataProvider = e.result as ArrayList; } } Am I assigning it the right way? Do I need to cast the individual items in the ArrayList? Cheers, David On Wed, 10 Feb 2021 at 14:03, Piotr Zarzycki wrote: > I bit of an explanation why in Maven build we are using: > > > -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css > > Instead: > > -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css > > Each Maven swc which has been generated are having following signature > MXRoyale-0.9.8-js.swc - when you binaries distribution of SDK which you can > use in IDE all MX royale library doesn't have framework version in name - > it's just MXRoyaleJS.swc > > śr., 10 lut 2021 o 13:55 Piotr Zarzycki > napisał(a): > >> David, >> >> I think this should be your compiler options: >> >> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css >> -html-template=src/resources/jewel-index-template.html >> -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc >> -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css >> +configname=flex >> >> -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc - I believe also >> instead of equality sign it should be used here +=, because with equality >> we completely override our js-library-path instead adding something to it. >> >> Thanks, >> Piotr >> >> śr., 10 lut 2021 o 13:44 Piotr Zarzycki >> napisał(a): >> >>> Sorry I missed your email I see your options. Give me a second I will >>> provide you correct stuff >>> >>> śr., 10 lut 2021 o 13:43 Piotr Zarzycki >>> napisał(a): >>> David, Show me screenshot with your compiler options. Carlos provided you correct stuff now you just need to place in a proper way. śr., 10 lut 2021 o 13:35 David Slotemaker de Bruine < dslotema...@vicensvives.com> napisał(a): > : command line Error: configuration variable > 'compiler.exclude-defaults-css-files' value contains unknown token > 'royale.framework.version'. > > On Wed, 10 Feb 2021 at 13:34, David Slotemaker de Bruine < > dslotema...@vicensvives.com> wrote: > >> Hi guys, >> >> @Carlos I am using Moonshine to compile, I guess it uses maven under >> the hood?? >> >> This is the string I am using: >> >> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css >> -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc >> -html-template=src/resources/jewel-index-template.html >> -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css >> +configname=flex >> >> I am getting the following error: >> >> >> >> >> On Wed, 10 Feb 2021 at 13:24, Carlos Rovira >> wrote: >> >>> Hi David, >>> >>> so you have the old ApplicationResponsiveView and must be changed to >>> ResponsiveView right? That's the reason I was telling to start a project >>> from scratch, so having a j:Application file alone from the hello world >>> (for example) will start with a successful compilation. Then adding the >>> older tag, will make you find that is not valid, and code hinting or >>> searching on mailing list or asking here will give you the clue. That's >>> the >>> reason I said it's important to keep on the loop at least until we get >>> 1.0 >>> and freeze APIs so changes of this kind will be much less frequent. >>> >>> MXRoyale is added directly if you use +configname=flex, but that >>> will remove jewel that is in your current config +configname=royale >>> that is >>> default. So we need to add MXRoyale SWC to the mix. >>> >>> In VSCode you use to add this: >>> >>> "library-path": [ >>> "${royalelib}/js/libs/MXRoyaleJS.swc" >>> ], >>> "js-library-path": [ >>> "${royalelib}/js/libs/MXRoyaleJS.swc" >>> ] >>> >>> (probably just the later since you're only interested in JS) >>> >>> So if you're creating a command line that will be probably >>> -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc >>> >>> Take into account that I use Maven build since I prefer depend on a >>> build system instead of any IDE or just the compiler to ensure my build >>> is >>> consistent from my
RE: Remote Object Call Performance and Fault Event
Hi David, How many records do you have? Hiedra De: David Slotemaker de Bruine Enviado el: miércoles, 10 de febrero de 2021 15:27 Para: users@royale.apache.org Asunto: Re: Remote Object Call Performance and Fault Event Hey Guys, Thank you both! That compile string works a treat, I can now send and receive using the mx:Remote object instead of js:Remote Object. @Carlos I am still getting "Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly." Fault calls every second request. Once the second call completes (rapidly from the server) it takes 30 seconds to "paint" the results to the datagrid using the following result Handler. private function clientesResultHandler(e:ResultEvent):void { if(e.result is ArrayList) { dg.dataProvider = e.result as ArrayList; } } Am I assigning it the right way? Do I need to cast the individual items in the ArrayList? Cheers, David On Wed, 10 Feb 2021 at 14:03, Piotr Zarzycki mailto:piotrzarzyck...@gmail.com>> wrote: I bit of an explanation why in Maven build we are using: -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css Instead: -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css Each Maven swc which has been generated are having following signature MXRoyale-0.9.8-js.swc - when you binaries distribution of SDK which you can use in IDE all MX royale library doesn't have framework version in name - it's just MXRoyaleJS.swc śr., 10 lut 2021 o 13:55 Piotr Zarzycki mailto:piotrzarzyck...@gmail.com>> napisał(a): David, I think this should be your compiler options: -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css -html-template=src/resources/jewel-index-template.html -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css +configname=flex -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc - I believe also instead of equality sign it should be used here +=, because with equality we completely override our js-library-path instead adding something to it. Thanks, Piotr śr., 10 lut 2021 o 13:44 Piotr Zarzycki mailto:piotrzarzyck...@gmail.com>> napisał(a): Sorry I missed your email I see your options. Give me a second I will provide you correct stuff śr., 10 lut 2021 o 13:43 Piotr Zarzycki mailto:piotrzarzyck...@gmail.com>> napisał(a): David, Show me screenshot with your compiler options. Carlos provided you correct stuff now you just need to place in a proper way. śr., 10 lut 2021 o 13:35 David Slotemaker de Bruine mailto:dslotema...@vicensvives.com>> napisał(a): : command line Error: configuration variable 'compiler.exclude-defaults-css-files' value contains unknown token 'royale.framework.version'. On Wed, 10 Feb 2021 at 13:34, David Slotemaker de Bruine mailto:dslotema...@vicensvives.com>> wrote: Hi guys, @Carlos I am using Moonshine to compile, I guess it uses maven under the hood?? This is the string I am using: -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc -html-template=src/resources/jewel-index-template.html -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css +configname=flex I am getting the following error: On Wed, 10 Feb 2021 at 13:24, Carlos Rovira mailto:carlosrov...@apache.org>> wrote: Hi David, so you have the old ApplicationResponsiveView and must be changed to ResponsiveView right? That's the reason I was telling to start a project from scratch, so having a j:Application file alone from the hello world (for example) will start with a successful compilation. Then adding the older tag, will make you find that is not valid, and code hinting or searching on mailing list or asking here will give you the clue. That's the reason I said it's important to keep on the loop at least until we get 1.0 and freeze APIs so changes of this kind will be much less frequent. MXRoyale is added directly if you use +configname=flex, but that will remove jewel that is in your current config +configname=royale that is default. So we need to add MXRoyale SWC to the mix. In VSCode you use to add this: "library-path": [ "${royalelib}/js/libs/MXRoyaleJS.swc" ], "js-library-path": [ "${royalelib}/js/libs/MXRoyaleJS.swc" ] (probably just the later since you're only interested in JS) So if you're creating a command line that will be probably -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc Take into account that I use Maven build since I prefer depend on a build system instead of any IDE or just the compiler to ensure my build is consistent from my desktop development environment to any CI server out there, so think as a suggestion since the line could be not usable directly, but that's the info you need to build
Re: Remote Object Call Performance and Fault Event
David, Great to hear that! Thanks for using Moonshine :) śr., 10 lut 2021 o 15:27 David Slotemaker de Bruine < dslotema...@vicensvives.com> napisał(a): > Hey Guys, > > Thank you both! That compile string works a treat, I can now send and > receive using the mx:Remote object instead of js:Remote Object. > > @Carlos I am still getting > "Detected duplicate HTTP-based FlexSessions, generally due to the remote > host disabling session cookies. Session cookies must be enabled to manage > the client connection correctly." > > Fault calls every second request. > > Once the second call completes (rapidly from the server) it takes 30 > seconds to "paint" the results to the datagrid using the following result > Handler. > > private function clientesResultHandler(e:ResultEvent):void > { > if(e.result is ArrayList) > { > dg.dataProvider = e.result as ArrayList; > } > } > > Am I assigning it the right way? Do I need to cast the individual items in > the ArrayList? > > Cheers, > > David > > > > > On Wed, 10 Feb 2021 at 14:03, Piotr Zarzycki > wrote: > >> I bit of an explanation why in Maven build we are using: >> >> >> -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css >> >> Instead: >> >> -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css >> >> Each Maven swc which has been generated are having following signature >> MXRoyale-0.9.8-js.swc - when you binaries distribution of SDK which you can >> use in IDE all MX royale library doesn't have framework version in name - >> it's just MXRoyaleJS.swc >> >> śr., 10 lut 2021 o 13:55 Piotr Zarzycki >> napisał(a): >> >>> David, >>> >>> I think this should be your compiler options: >>> >>> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css >>> -html-template=src/resources/jewel-index-template.html >>> -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc >>> -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css >>> +configname=flex >>> >>> -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc - I believe also >>> instead of equality sign it should be used here +=, because with equality >>> we completely override our js-library-path instead adding something to it. >>> >>> Thanks, >>> Piotr >>> >>> śr., 10 lut 2021 o 13:44 Piotr Zarzycki >>> napisał(a): >>> Sorry I missed your email I see your options. Give me a second I will provide you correct stuff śr., 10 lut 2021 o 13:43 Piotr Zarzycki napisał(a): > David, > > Show me screenshot with your compiler options. Carlos provided you > correct stuff now you just need to place in a proper way. > > śr., 10 lut 2021 o 13:35 David Slotemaker de Bruine < > dslotema...@vicensvives.com> napisał(a): > >> : command line Error: configuration variable >> 'compiler.exclude-defaults-css-files' value contains unknown token >> 'royale.framework.version'. >> >> On Wed, 10 Feb 2021 at 13:34, David Slotemaker de Bruine < >> dslotema...@vicensvives.com> wrote: >> >>> Hi guys, >>> >>> @Carlos I am using Moonshine to compile, I guess it uses maven under >>> the hood?? >>> >>> This is the string I am using: >>> >>> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css >>> -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc >>> -html-template=src/resources/jewel-index-template.html >>> -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css >>> +configname=flex >>> >>> I am getting the following error: >>> >>> >>> >>> >>> On Wed, 10 Feb 2021 at 13:24, Carlos Rovira >>> wrote: >>> Hi David, so you have the old ApplicationResponsiveView and must be changed to ResponsiveView right? That's the reason I was telling to start a project from scratch, so having a j:Application file alone from the hello world (for example) will start with a successful compilation. Then adding the older tag, will make you find that is not valid, and code hinting or searching on mailing list or asking here will give you the clue. That's the reason I said it's important to keep on the loop at least until we get 1.0 and freeze APIs so changes of this kind will be much less frequent. MXRoyale is added directly if you use +configname=flex, but that will remove jewel that is in your current config +configname=royale that is default. So we need to add MXRoyale SWC to the mix. In VSCode you use to add this: "library-path": [ "${royalelib}/js/libs/MXRoyaleJS.swc" ], "js-library-path": [ "${royalelib}/js/libs/MXRoyaleJS.swc" ] (probably just the later since you're only interested in JS)
Re: Remote Object Call Performance and Fault Event
520, the response from the server is immediate. The objects inherit from a base object, could that be the cause? On Wed., 10 Feb. 2021, 15:57 Maria Jose Esteve, wrote: > Hi David, > > How many records do you have? > > > > Hiedra > > > > *De:* David Slotemaker de Bruine > *Enviado el:* miércoles, 10 de febrero de 2021 15:27 > *Para:* users@royale.apache.org > *Asunto:* Re: Remote Object Call Performance and Fault Event > > > > Hey Guys, > > > > Thank you both! That compile string works a treat, I can now send and > receive using the mx:Remote object instead of js:Remote Object. > > > > @Carlos I am still getting > > "Detected duplicate HTTP-based FlexSessions, generally due to the remote > host disabling session cookies. Session cookies must be enabled to manage > the client connection correctly." > > > > Fault calls every second request. > > > > Once the second call completes (rapidly from the server) it takes 30 > seconds to "paint" the results to the datagrid using the following result > Handler. > > > > private function clientesResultHandler(e:ResultEvent):void > { > if(e.result is ArrayList) > { > dg.dataProvider = e.result as ArrayList; > } > } > > > > Am I assigning it the right way? Do I need to cast the individual items in > the ArrayList? > > > > Cheers, > > > > David > > > > > > > > > > On Wed, 10 Feb 2021 at 14:03, Piotr Zarzycki > wrote: > > I bit of an explanation why in Maven build we are using: > > > > > -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css > > > > Instead: > > > > -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css > > > > Each Maven swc which has been generated are having following signature > MXRoyale-0.9.8-js.swc - when you binaries distribution of SDK which you can > use in IDE all MX royale library doesn't have framework version in name - > it's just MXRoyaleJS.swc > > > > śr., 10 lut 2021 o 13:55 Piotr Zarzycki > napisał(a): > > David, > > > > I think this should be your compiler options: > > > > -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css > -html-template=src/resources/jewel-index-template.html > -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc > -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css > +configname=flex > > > > -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc - I believe also > instead of equality sign it should be used here +=, because with equality > we completely override our js-library-path instead adding something to it. > > > > Thanks, > > Piotr > > > > śr., 10 lut 2021 o 13:44 Piotr Zarzycki > napisał(a): > > Sorry I missed your email I see your options. Give me a second I will > provide you correct stuff > > > > śr., 10 lut 2021 o 13:43 Piotr Zarzycki > napisał(a): > > David, > > > > Show me screenshot with your compiler options. Carlos provided you correct > stuff now you just need to place in a proper way. > > > > śr., 10 lut 2021 o 13:35 David Slotemaker de Bruine < > dslotema...@vicensvives.com> napisał(a): > > : command line Error: configuration variable > 'compiler.exclude-defaults-css-files' value contains unknown token > 'royale.framework.version'. > > > > On Wed, 10 Feb 2021 at 13:34, David Slotemaker de Bruine < > dslotema...@vicensvives.com> wrote: > > Hi guys, > > > > @Carlos I am using Moonshine to compile, I guess it uses maven under the > hood?? > > > > This is the string I am using: > > > > -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css > -js-library-path=${royalelib}/js/libs/MXRoyaleJS.swc > -html-template=src/resources/jewel-index-template.html > -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css > +configname=flex > > > > I am getting the following error: > > > > > > > > > > On Wed, 10 Feb 2021 at 13:24, Carlos Rovira > wrote: > > Hi David, > > > > so you have the old ApplicationResponsiveView and must be changed to > ResponsiveView right? That's the reason I was telling to start a project > from scratch, so having a j:Application file alone from the hello world > (for example) will start with a successful compilation. Then adding the > older tag, will make you find that is not valid, and code hinting or > searching on mailing list or asking here will give you the clue. That's the > reason I said it's important to keep on the loop at least until we get 1.0 > and freeze APIs so changes of this kind will be much less frequent. > > > > MXRoyale is added directly if you use +configname=flex, but that will > remove jewel that is in your current config +configname=royale that is > default. So we need to add MXRoyale SWC to the mix. > > > > In VSCode you use to add this: > > > > "library-path": [ > "${royalelib}/js/libs/MXRoyaleJS.swc" > ], > "js-library-path": [ > "${royalelib}/js/libs/MXRoyaleJS.swc" > ] > > > > (probably just the later since you're only interested in JS) > > > > So if you're creating a command line that will be probably >