Re: Horizontal Layout - Actionscript

2021-03-02 Thread Carlos Rovira
Hi Bill,

I built this blog example here:

https://royale.apache.org/using-jewel-tilehorizontallayout/

And I'm seeing the tile layout is not initializing as it worked some months
ago, so I think there's a regression on it.
I need to investigate what's going on


El mar, 2 mar 2021 a las 14:48, Bilbosax ()
escribió:

> Yes, essentially.  If that is a List component with a tile layout, then
> that
> is what I need.  If it is a just a container with objects in it, then that
> won't work.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Jewel Themes

2021-03-02 Thread Carlos Rovira
 Hi David,

If you don't use JewelTheme you go with a combination of three themes
chosen from the 144 themes available (or creating a new one). So
regarding this:

Jewel-Dark-NoFlat-Secondary-Red-Theme

I said "Dark" themes are not ready, so please don't use that yet
"Secondary" is complement, but not the main one. You need to choose a
"Primary" instead
Then "Secondary" and "Emphasized" will be the theme complements.

For example:

- Jewel-Light-NoFlat-Primary-Blue-Theme
- Jewel-Light-NoFlat-Secondary-Topaz-Theme
- Jewel-Light-NoFlat-Emphasized-Emerald-Theme

Using this set, will be the same as using JewelTheme in the current
configuration.

If you change _theme.sass in JewelTheme and compile it using SASS compiler
you can get as well the final CSS combined.

_theme.sass is this code:

//Theme variables (Flat/No Flat - Dark/Light - Primary/Secondary/Emphasized
Color
$flat: false
$dark: false
$primary-color: $blue
$secondary-color: $topaz
$emphasized-color: $emerald

So changing it and compiling SASS generate all 144 combinations.


El mar, 2 mar 2021 a las 16:36, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Thanks Bill and Carlos,
>
> I understand the  emphasis property like "primary", "secondary" or
> "emphasized". That's not the problem,  currently there is NO formatting or
> styles on the Cards, Application Bar etc. I am guessing because I no longer
> point to the JewelTheme folder only the
> Jewel-Dark-NoFlat-Secondary-Red-Theme in my compiler line arguments.
>
> @Carlos, in regards to "but you need to configure SASS variables and
> recompile or you just get the default configuration (Blue+Topaz+Emerald)."
> I don't what to create a new theme, I just want the app Red instead of
> Blue. I am unsure how to continue.
>
> Apologies if I am not explaining my problem adequately.
>
> Cheers,
>
> David
>
>
>
>
>
>
> On Tue, 2 Mar 2021 at 16:23, Carlos Rovira 
> wrote:
>
>> Hi,
>>
>> primary themes has the primary and default colors
>> secondary themes has only secondary styles for components that use that
>> since not all use secondary
>> emphasized themes are the same as secondary but for emphasized. Even less
>> components use it.
>>
>> So, using Jewel theme you have all in one, but you need to configure SASS
>> variables and recompile or you just get the default configuration
>> (Blue+Topaz+Emerald). So to avoid the need for compilation we created all
>> combinations to mix 3 themes. That's 144 project for themes, so you can
>> choose the 3 you want.
>>
>> As Bill says for some components you need to configure emphasis property
>> to "primary", "secondary" or "emphasized".
>>
>> HTH
>>
>>
>>
>> El mar, 2 mar 2021 a las 16:17, Bilbosax ()
>> escribió:
>>
>>> Hi dslotemaker, I certainly am no expert at Royale, but in your
>>> components,
>>> are you using the "emphasis" property?  If you don't, a lot of the
>>> default
>>> colors in some of the themes are grey.  So in a button or combobox, try
>>> adding emphasis="primary" to get components with the theme colors you are
>>> looking for. Like this:
>>>
>>> 
>>>
>>>
>>>
>>> --
>>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>>
>>
>>
>> --
>> Carlos Rovira
>> Apache Member & Apache Royale PMC
>> *Apache Software Foundation*
>> http://about.me/carlosrovira
>>
>>
>
> --
>
> *David Slotemaker de Bruïne*
> *Head of Educational Robotics*
>
>
>
> Av. Sarriá, 130 - 08017 Barcelona
> <https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona=gmail=g>
>
>
> T. +34 932 523 729 ext. 135
>
> dslotema...@vicensvives.com
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Jewel Themes

2021-03-02 Thread Carlos Rovira
Finally

to get app in red as the main color use:

Jewel-Light-NoFlat-Primary-Red-Theme

but choose other two colors for "secondary" and "emphasized" too to get the
most of Jewel in theme capabilities

El mar, 2 mar 2021 a las 16:59, Carlos Rovira ()
escribió:

>  Hi David,
>
> If you don't use JewelTheme you go with a combination of three themes
> chosen from the 144 themes available (or creating a new one). So
> regarding this:
>
> Jewel-Dark-NoFlat-Secondary-Red-Theme
>
> I said "Dark" themes are not ready, so please don't use that yet
> "Secondary" is complement, but not the main one. You need to choose a
> "Primary" instead
> Then "Secondary" and "Emphasized" will be the theme complements.
>
> For example:
>
> - Jewel-Light-NoFlat-Primary-Blue-Theme
> - Jewel-Light-NoFlat-Secondary-Topaz-Theme
> - Jewel-Light-NoFlat-Emphasized-Emerald-Theme
>
> Using this set, will be the same as using JewelTheme in the current
> configuration.
>
> If you change _theme.sass in JewelTheme and compile it using SASS compiler
> you can get as well the final CSS combined.
>
> _theme.sass is this code:
>
> //Theme variables (Flat/No Flat - Dark/Light -
> Primary/Secondary/Emphasized Color
> $flat: false
> $dark: false
> $primary-color: $blue
> $secondary-color: $topaz
> $emphasized-color: $emerald
>
> So changing it and compiling SASS generate all 144 combinations.
>
>
> El mar, 2 mar 2021 a las 16:36, David Slotemaker de Bruine (<
> dslotema...@vicensvives.com>) escribió:
>
>> Thanks Bill and Carlos,
>>
>> I understand the  emphasis property like "primary", "secondary" or
>> "emphasized". That's not the problem,  currently there is NO formatting or
>> styles on the Cards, Application Bar etc. I am guessing because I no longer
>> point to the JewelTheme folder only the
>> Jewel-Dark-NoFlat-Secondary-Red-Theme in my compiler line arguments.
>>
>> @Carlos, in regards to "but you need to configure SASS variables and
>> recompile or you just get the default configuration (Blue+Topaz+Emerald)."
>> I don't what to create a new theme, I just want the app Red instead of
>> Blue. I am unsure how to continue.
>>
>> Apologies if I am not explaining my problem adequately.
>>
>> Cheers,
>>
>> David
>>
>>
>>
>>
>>
>>
>> On Tue, 2 Mar 2021 at 16:23, Carlos Rovira 
>> wrote:
>>
>>> Hi,
>>>
>>> primary themes has the primary and default colors
>>> secondary themes has only secondary styles for components that use that
>>> since not all use secondary
>>> emphasized themes are the same as secondary but for emphasized. Even
>>> less components use it.
>>>
>>> So, using Jewel theme you have all in one, but you need to configure
>>> SASS variables and recompile or you just get the default configuration
>>> (Blue+Topaz+Emerald). So to avoid the need for compilation we created all
>>> combinations to mix 3 themes. That's 144 project for themes, so you can
>>> choose the 3 you want.
>>>
>>> As Bill says for some components you need to configure emphasis property
>>> to "primary", "secondary" or "emphasized".
>>>
>>> HTH
>>>
>>>
>>>
>>> El mar, 2 mar 2021 a las 16:17, Bilbosax ()
>>> escribió:
>>>
>>>> Hi dslotemaker, I certainly am no expert at Royale, but in your
>>>> components,
>>>> are you using the "emphasis" property?  If you don't, a lot of the
>>>> default
>>>> colors in some of the themes are grey.  So in a button or combobox, try
>>>> adding emphasis="primary" to get components with the theme colors you
>>>> are
>>>> looking for. Like this:
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> --
>>>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>>>
>>>
>>>
>>> --
>>> Carlos Rovira
>>> Apache Member & Apache Royale PMC
>>> *Apache Software Foundation*
>>> http://about.me/carlosrovira
>>>
>>>
>>
>> --
>>
>> *David Slotemaker de Bruïne*
>> *Head of Educational Robotics*
>>
>>
>>
>> Av. Sarriá, 130 - 08017 Barcelona
>> <https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona=gmail=g>
>>
>>
>> T. +34 932 523 729 ext. 135
>>
>> dslotema...@vicensvives.com
>>
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Jewel Themes

2021-03-02 Thread Carlos Rovira
Hi,

primary themes has the primary and default colors
secondary themes has only secondary styles for components that use that
since not all use secondary
emphasized themes are the same as secondary but for emphasized. Even less
components use it.

So, using Jewel theme you have all in one, but you need to configure SASS
variables and recompile or you just get the default configuration
(Blue+Topaz+Emerald). So to avoid the need for compilation we created all
combinations to mix 3 themes. That's 144 project for themes, so you can
choose the 3 you want.

As Bill says for some components you need to configure emphasis property to
"primary", "secondary" or "emphasized".

HTH



El mar, 2 mar 2021 a las 16:17, Bilbosax ()
escribió:

> Hi dslotemaker, I certainly am no expert at Royale, but in your components,
> are you using the "emphasis" property?  If you don't, a lot of the default
> colors in some of the themes are grey.  So in a button or combobox, try
> adding emphasis="primary" to get components with the theme colors you are
> looking for. Like this:
>
> 
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Jewel Themes

2021-03-02 Thread Carlos Rovira
Hi David,

I'm checking the nighty and I can see the .css in each theme generated in
/src/main/resources/defaults.css
so I think you have the CSS to be used directly

El mar, 2 mar 2021 a las 13:34, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> In the compile line I changed "JewelTheme" in the path to
> "Jewel-Dark-NoFlat-Secondary-Red-Theme" which exists in the SDK directory,
> but after compiling I get what looks like the basic ApacheRoyal Theme, no
> colors, just grey datagrid headers and grey comboboxes.
>
> Do the themes in the SDK need to be compiled first?
>
> Cheers,
>
> David
>
> On Tue, 2 Mar 2021 at 12:09, Carlos Rovira 
> wrote:
>
>> Hi,
>>
>> I use to work with Maven and themes are added as dependencies. So looking
>> at other sources like TDJ, when I build using VSCode & AS3:
>>
>> https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.json#theme
>>
>> I get this:
>>
>> MXMLJSC
>>
>> +royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
>> --debug=false
>> +configname=royale
>> --targets=JSRoyale
>> --source-path+=src/main/resources
>> --source-map=true
>> --html-template=src/main/resources/jewel-example-index-template.html
>> *--theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css*
>> -js-dynamic-access-unknown-members=true
>>
>> I know Josh added in asconfig the capability to add more than one theme,
>> so I think you can use an array for multiple CSS here, but didn't try it.
>>
>>
>>
>>
>> El mar, 2 mar 2021 a las 11:55, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi Carlos,
>>>
>>> Thanks for the overview, do you have an example of how to use the -theme
>>> compiler argument? I checked here:
>>>
>>> https://apache.github.io/royale-docs/compiler/compiler-options.html
>>>
>>>but there is no mention of -theme.
>>>
>>> Cheers,
>>>
>>> David
>>>
>>>
>>>
>>> On Tue, 2 Mar 2021 at 11:40, Carlos Rovira 
>>> wrote:
>>>
>>>> Hi David,
>>>>
>>>> you use "-theme" compiler option to add one the jewel theme css that
>>>> gives you primary, secondary and emphasized colors all-in-one or choose a
>>>> combination of concrete jewel themes one for each of the three colors
>>>> (separating it with ",").
>>>>
>>>> the loadCSS function allows you to override the default theme at
>>>> runtime you choose so each rule in the browser is override that way.
>>>>
>>>> The exclude-defaults-css-files for MXRoyale is needed since MXRoyale
>>>> has it's own CSS rules that will be mixed with Jewel rules generating
>>>> unexpected results. One day I expect to separate RPC classes from MXRoyale
>>>> so we can not use MX library with CSS included and get rid of that line.
>>>> Other than that, it's ok to use MXRoyale for RPC classes with Jewel since I
>>>> think we all are using it that way.
>>>>
>>>> HTH
>>>>
>>>>
>>>> El mar, 2 mar 2021 a las 10:52, Carlos Rovira ()
>>>> escribió:
>>>>
>>>>> Hi David,
>>>>>
>>>>> just fixed the link to jewel themes in docs [1]
>>>>>
>>>>> I'll answer other points as I have more time
>>>>>
>>>>> HTH
>>>>>
>>>>> [1] https://apache.github.io/royale-docs/component-sets/jewel/themes
>>>>>
>>>>>
>>>>>
>>>>> El mar, 2 mar 2021 a las 8:55, David Slotemaker de Bruine (<
>>>>> dslotema...@vicensvives.com>) escribió:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I want to implement Jewel themes like in TDJ. The docs currently
>>>>>> point to a 404 page:
>>>>>>
>>>>>> https://apache.github.io/royale-docs/component-sets/jewel/jewel-themes
>>>>>>
>>>>>> Looking at the source code of TDJ I see you can call an new theme
>>>>>> with:
>>>>>>
>>>>>> loadCSS("assets/themes/Jewel-Light-" + flatState + "-" + emphasis +
>>>>>> "-" + color + "-Theme/defaults.css")
>>>>>>
>>>>>> Fo

Re: Jewel Themes

2021-03-02 Thread Carlos Rovira
Hi,

I use to work with Maven and themes are added as dependencies. So looking
at other sources like TDJ, when I build using VSCode & AS3:

https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.json#theme

I get this:

MXMLJSC
+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks
--debug=false
+configname=royale
--targets=JSRoyale
--source-path+=src/main/resources
--source-map=true
--html-template=src/main/resources/jewel-example-index-template.html
*--theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css*
-js-dynamic-access-unknown-members=true

I know Josh added in asconfig the capability to add more than one theme, so
I think you can use an array for multiple CSS here, but didn't try it.




El mar, 2 mar 2021 a las 11:55, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> Thanks for the overview, do you have an example of how to use the -theme
> compiler argument? I checked here:
>
> https://apache.github.io/royale-docs/compiler/compiler-options.html
>
>but there is no mention of -theme.
>
> Cheers,
>
> David
>
>
>
> On Tue, 2 Mar 2021 at 11:40, Carlos Rovira 
> wrote:
>
>> Hi David,
>>
>> you use "-theme" compiler option to add one the jewel theme css that
>> gives you primary, secondary and emphasized colors all-in-one or choose a
>> combination of concrete jewel themes one for each of the three colors
>> (separating it with ",").
>>
>> the loadCSS function allows you to override the default theme at runtime
>> you choose so each rule in the browser is override that way.
>>
>> The exclude-defaults-css-files for MXRoyale is needed since MXRoyale has
>> it's own CSS rules that will be mixed with Jewel rules generating
>> unexpected results. One day I expect to separate RPC classes from MXRoyale
>> so we can not use MX library with CSS included and get rid of that line.
>> Other than that, it's ok to use MXRoyale for RPC classes with Jewel since I
>> think we all are using it that way.
>>
>> HTH
>>
>>
>> El mar, 2 mar 2021 a las 10:52, Carlos Rovira ()
>> escribió:
>>
>>> Hi David,
>>>
>>> just fixed the link to jewel themes in docs [1]
>>>
>>> I'll answer other points as I have more time
>>>
>>> HTH
>>>
>>> [1] https://apache.github.io/royale-docs/component-sets/jewel/themes
>>>
>>>
>>>
>>> El mar, 2 mar 2021 a las 8:55, David Slotemaker de Bruine (<
>>> dslotema...@vicensvives.com>) escribió:
>>>
>>>> Hi,
>>>>
>>>> I want to implement Jewel themes like in TDJ. The docs currently point
>>>> to a 404 page:
>>>>
>>>> https://apache.github.io/royale-docs/component-sets/jewel/jewel-themes
>>>>
>>>> Looking at the source code of TDJ I see you can call an new theme with:
>>>>
>>>> loadCSS("assets/themes/Jewel-Light-" + flatState + "-" + emphasis + "-"
>>>> + color + "-Theme/defaults.css")
>>>>
>>>> For some reason this is not available to me when compiling, I think it
>>>> might be due to my compiler settings:
>>>> "-compiler.exclude-defaults-css-files=MXRoyaleJS.swc"
>>>>
>>>> -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 am using mx:RemoteObjects and I think we added that line so there
>>>> isn't any conflict?
>>>>
>>>> What should I do.
>>>>
>>>> David
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> Carlos Rovira
>>> Apache Member & Apache Royale PMC
>>> *Apache Software Foundation*
>>> http://about.me/carlosrovira
>>>
>>>
>>
>> --
>> Carlos Rovira
>> Apache Member & Apache Royale PMC
>> *Apache Software Foundation*
>> http://about.me/carlosrovira
>>
>>
>
> --
>
> *David Slotemaker de Bruïne*
> *Head of Educational Robotics*
>
>
>
> Av. Sarriá, 130 - 08017 Barcelona
> <https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona=gmail=g>
>
>
> T. +34 932 523 729 ext. 135
>
> dslotema...@vicensvives.com
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Jewel Themes

2021-03-02 Thread Carlos Rovira
Hi David,

you use "-theme" compiler option to add one the jewel theme css that gives
you primary, secondary and emphasized colors all-in-one or choose a
combination of concrete jewel themes one for each of the three colors
(separating it with ",").

the loadCSS function allows you to override the default theme at runtime
you choose so each rule in the browser is override that way.

The exclude-defaults-css-files for MXRoyale is needed since MXRoyale has
it's own CSS rules that will be mixed with Jewel rules generating
unexpected results. One day I expect to separate RPC classes from MXRoyale
so we can not use MX library with CSS included and get rid of that line.
Other than that, it's ok to use MXRoyale for RPC classes with Jewel since I
think we all are using it that way.

HTH


El mar, 2 mar 2021 a las 10:52, Carlos Rovira ()
escribió:

> Hi David,
>
> just fixed the link to jewel themes in docs [1]
>
> I'll answer other points as I have more time
>
> HTH
>
> [1] https://apache.github.io/royale-docs/component-sets/jewel/themes
>
>
>
> El mar, 2 mar 2021 a las 8:55, David Slotemaker de Bruine (<
> dslotema...@vicensvives.com>) escribió:
>
>> Hi,
>>
>> I want to implement Jewel themes like in TDJ. The docs currently point to
>> a 404 page:
>>
>> https://apache.github.io/royale-docs/component-sets/jewel/jewel-themes
>>
>> Looking at the source code of TDJ I see you can call an new theme with:
>>
>> loadCSS("assets/themes/Jewel-Light-" + flatState + "-" + emphasis + "-" +
>> color + "-Theme/defaults.css")
>>
>> For some reason this is not available to me when compiling, I think it
>> might be due to my compiler settings:
>> "-compiler.exclude-defaults-css-files=MXRoyaleJS.swc"
>>
>> -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 am using mx:RemoteObjects and I think we added that line so there isn't
>> any conflict?
>>
>> What should I do.
>>
>> David
>>
>>
>>
>>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Jewel Themes

2021-03-02 Thread Carlos Rovira
Hi David,

just fixed the link to jewel themes in docs [1]

I'll answer other points as I have more time

HTH

[1] https://apache.github.io/royale-docs/component-sets/jewel/themes



El mar, 2 mar 2021 a las 8:55, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi,
>
> I want to implement Jewel themes like in TDJ. The docs currently point to
> a 404 page:
>
> https://apache.github.io/royale-docs/component-sets/jewel/jewel-themes
>
> Looking at the source code of TDJ I see you can call an new theme with:
>
> loadCSS("assets/themes/Jewel-Light-" + flatState + "-" + emphasis + "-" +
> color + "-Theme/defaults.css")
>
> For some reason this is not available to me when compiling, I think it
> might be due to my compiler settings:
> "-compiler.exclude-defaults-css-files=MXRoyaleJS.swc"
>
> -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 am using mx:RemoteObjects and I think we added that line so there isn't
> any conflict?
>
> What should I do.
>
> David
>
>
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Horizontal Layout - Actionscript

2021-03-01 Thread Carlos Rovira
Hi Bilbo,

about this, we need to go in chunks to manage all things. First, about
scrollbars, did you try to add this to your group or container?








El sáb, 27 feb 2021 a las 23:48, Bilbosax ()
escribió:

> The second part of the bug report has two issues.  The first is simple.  A
> List with a Jewel HorizontalLayout or a Jewel TileHorizontalLayout has no
> scrollbars.  My users will not be able to scroll to see all of the content:
>
> HorizontalLayout - no Scrollbars in the List
>
> <
> http://apache-royale-users.20374.n8.nabble.com/file/t184/Screenshot_%2881%29.png>
>
>
> TileHorizontalLayout - no Scrollbars in the List
>
> <
> http://apache-royale-users.20374.n8.nabble.com/file/t184/Screenshot_%2882%29.png>
>
>
>
> The second part is a little more complicated.  I can get the Jewel Layout
> to
> change between the two Layouts fine now, but when it goes from
> TileHorizontalLayout to the HorizontalLayout, the images in the horizontal
> List get grouped into groups of two with a big gap between them.  (I added
> a
> "scrolling group" so that I could move the images over so you could see the
> problem since the List did not have a scrollbar to demonstrate my point)
>
> <
> http://apache-royale-users.20374.n8.nabble.com/file/t184/Screenshot_%2883%29.png>
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Getting Started with Crux

2021-02-27 Thread Carlos Rovira
Hi David,

Never happened to me before. I'd need to investigate the project to see
what could be happening.

El sáb, 27 feb 2021 a las 15:18, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> OK.
>
> I will do as you suggest. Regarding the double call issue for the normal
> RemoteObject call,  Any clue why I amb getting the duplicate flex session
> error?
>
> Thanks
>
> David
>
> On Sat., 27 Feb. 2021, 13:11 Carlos Rovira, 
> wrote:
>
>> Hi David,
>>
>> there's no relation. You must revise carefully your project's
>> configuration. If you don't get it you can copy paste the project that
>> works and start transforming it since it could be difficult to find the
>> issue.
>>
>> Also you have a two call issue that's not normal too, so something seems
>> to be wrong.
>>
>>
>>
>> El sáb, 27 feb 2021 a las 12:06, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi Carlos,
>>>
>>> I would agree with you but the code that works in a non Crux project
>>> does work when pasted into the Crux project. This code doesn't use any Crux
>>> calls and returns the same error. Is it possible that the RemoteObject call
>>> is compiled differently depending on the compiler instructions?
>>>
>>> Thanks
>>>
>>> David
>>>
>>> On Fri., 26 Feb. 2021, 18:01 Carlos Rovira, 
>>> wrote:
>>>
>>>> Hi, but that seems a problem in backend, not Royale.
>>>> are you trying to go from very simple initial calls to more complex
>>>> ones?
>>>>
>>>> El vie, 26 feb 2021 a las 16:38, David Slotemaker de Bruine (<
>>>> dslotema...@vicensvives.com>) escribió:
>>>>
>>>>> There was an unhandled failure on the server.
>>>>> java.lang.NullPointerException
>>>>>
>>>>> Not really helpful :)
>>>>>
>>>>> On Fri, 26 Feb 2021 at 16:18, Carlos Rovira 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> we need to see the NPE you refer
>>>>>> thanks
>>>>>>
>>>>>> El vie, 26 feb 2021 a las 11:49, David Slotemaker de Bruine (<
>>>>>> dslotema...@vicensvives.com>) escribió:
>>>>>>
>>>>>>> Hi Carlos,
>>>>>>>
>>>>>>> OK. Thanks.
>>>>>>>
>>>>>>> I think there is something wrong with the QuickStart project for
>>>>>>> Crux for RemoteObjects and BlazeDS.
>>>>>>>
>>>>>>> I can now call the server but get NullPointer Exceptions as a
>>>>>>> result.
>>>>>>>
>>>>>>> So I tried in another project to make the same call having
>>>>>>> everything in the same mxml (RemoteObject, Handles etc). This call works
>>>>>>> fine with the exception of duplicate HTTP errors on the first call.
>>>>>>>
>>>>>>> When I take the same code and compile it in the crux project I still
>>>>>>> get NullPointer exceptions. Could it be the compiler arguments?
>>>>>>>
>>>>>>> The project that works has:
>>>>>>>
>>>>>>> -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
>>>>>>>
>>>>>>> The Crux project has:
>>>>>>> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
>>>>>>> -html-template=src/main/resources/crux-jewel-example-index-template.html
>>>>>>> -js-default-initializers=true
>>>>>>> -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient
>>>>>>> -keep-code-with-metadata=Inject +configname=flex
>>>>>>>  -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc
>>>>>>>
>>>>>>> Any tips would be great,
>>>>>>>
>>>>>>> 

Re: Getting Started with Crux

2021-02-27 Thread Carlos Rovira
Hi David,

there's no relation. You must revise carefully your project's
configuration. If you don't get it you can copy paste the project that
works and start transforming it since it could be difficult to find the
issue.

Also you have a two call issue that's not normal too, so something seems to
be wrong.



El sáb, 27 feb 2021 a las 12:06, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> I would agree with you but the code that works in a non Crux project does
> work when pasted into the Crux project. This code doesn't use any Crux
> calls and returns the same error. Is it possible that the RemoteObject call
> is compiled differently depending on the compiler instructions?
>
> Thanks
>
> David
>
> On Fri., 26 Feb. 2021, 18:01 Carlos Rovira, 
> wrote:
>
>> Hi, but that seems a problem in backend, not Royale.
>> are you trying to go from very simple initial calls to more complex ones?
>>
>> El vie, 26 feb 2021 a las 16:38, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> There was an unhandled failure on the server.
>>> java.lang.NullPointerException
>>>
>>> Not really helpful :)
>>>
>>> On Fri, 26 Feb 2021 at 16:18, Carlos Rovira 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> we need to see the NPE you refer
>>>> thanks
>>>>
>>>> El vie, 26 feb 2021 a las 11:49, David Slotemaker de Bruine (<
>>>> dslotema...@vicensvives.com>) escribió:
>>>>
>>>>> Hi Carlos,
>>>>>
>>>>> OK. Thanks.
>>>>>
>>>>> I think there is something wrong with the QuickStart project for Crux
>>>>> for RemoteObjects and BlazeDS.
>>>>>
>>>>> I can now call the server but get NullPointer Exceptions as a result.
>>>>>
>>>>> So I tried in another project to make the same call having everything
>>>>> in the same mxml (RemoteObject, Handles etc). This call works fine with 
>>>>> the
>>>>> exception of duplicate HTTP errors on the first call.
>>>>>
>>>>> When I take the same code and compile it in the crux project I still
>>>>> get NullPointer exceptions. Could it be the compiler arguments?
>>>>>
>>>>> The project that works has:
>>>>>
>>>>> -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
>>>>>
>>>>> The Crux project has:
>>>>> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
>>>>> -html-template=src/main/resources/crux-jewel-example-index-template.html
>>>>> -js-default-initializers=true
>>>>> -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient
>>>>> -keep-code-with-metadata=Inject +configname=flex
>>>>>  -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc
>>>>>
>>>>> Any tips would be great,
>>>>>
>>>>> David
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Thu, 25 Feb 2021 at 18:14, Carlos Rovira 
>>>>> wrote:
>>>>>
>>>>>> Hi David,
>>>>>>
>>>>>> the class to be used on the Service class should be:
>>>>>>
>>>>>> mx.rpc.remoting.RemoteObject;
>>>>>>
>>>>>> while the class used when you add in bean provider mxml file is
>>>>>> mx.rpc.remoting.mxml.RemoteObject;
>>>>>> although is transparent to you since you use 
>>>>>> without the need of any import.
>>>>>>
>>>>>> HTH
>>>>>>
>>>>>> Carlos
>>>>>>
>>>>>>
>>>>>> El jue, 25 feb 2021 a las 18:08, David Slotemaker de Bruine (<
>>>>>> dslotema...@vicensvives.com>) escribió:
>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>> So after talking with Piotr I found my problem was I hadn't added
>>

Re: Horizontal Layout - Actionscript

2021-02-27 Thread Carlos Rovira
Hi Bill,

about browser orientation, you have a bead in Basic: BrowserOrientation
- if orientation is portratit it dispatches: 'orientationPortrait'
- if orientation is landspace it dispatches: 'orientationLandscape'
It's exemplified in TDJ's MainContent.mxml

Regarding mixing layouts from Basic and Jewel. That's not supported since
both work differently and can lead to unexpected results.

Jewel uses class names in layouts, so you can inspect with the browser the
html tag and see what class names are assigned and how it changes when you
set another jewel layout.

So I think you have two paths here:
1.- see why jewel tile layout doesn't fit for your needs, if it's a bug in
it or what's going on. It's based on Flex spark tile layout, but still can
have bugs. I recommend this path since Tile layout should work fully. I
have it in a production app here [1].
2.- try to stick with basic one, but then I think you need to remove the
bead and also clean the class names of that layout before adding the basic
layout. But since Basic and Jewel are different, I can't say if it will
work fully. You need to try and see if that works, but having into account
that's not something to be supported.

HTH

Carlos

[1] https://avant2.es/productos-y-companias/

El sáb, 27 feb 2021 a las 2:18, Bilbosax ()
escribió:

> Getting closer Carlos, but still struggling.  The only TileLayout that
> looks
> good and behaves how I need is the Basic TileLayout. I am changing the
> layout of an image gallery based on whether the browser is wider than it's
> height.  If it is in a landscape mode, I want the layout to use a Basic
> TileLayout.  If it is in portrait mode, I want it to use a Jewel
> HorizontalLayout.  Based on what you said above, I am not trying to remove
> the previous layout bead before setting a new one, just trying to change it
> in actionscript on the fly.  I can get it to go from the Jewel
> HorizontalLayout to the Basic TileLayout, but I can't get it to go from the
> Basic TileLayout back to the Jewel HorizontalLayout, it stays in Basic
> TileLayout.  You'll notice that I'm using a different itemrenderer for each
> layout.  Here is a simplified version of what I have:
>
> import org.apache.royale.html.beads.layouts.TileLayout;
> import org.apache.royale.jewel.beads.layouts.HorizontalLayout;
>
> if (appWidth > appHeight) {
>
> imageList.className = "imageListItemRenderer";
> var tile:TileLayout = new TileLayout();
> tile.columnWidth = 200;
> tile.rowHeight = 150;
> tile.numColumns = 3;
> imageList.addBead(tile);
> imageList.dispatchEvent(new Event("layoutNeeded"));
>
> } else {
>
> imageList.className = "imageListItemRendererHorizontal";
> var hl2:HorizontalLayout = new HorizontalLayout();
> imageList.addBead(hl2);
> imageList.dispatchEvent(new Event("layoutNeeded"));
>
> }
>
>
>  click="preparePhotos(event)">
> 
> 
> 
> 
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Horizontal Layout - Actionscript

2021-02-26 Thread Carlos Rovira
Hi Bill,

first, there's no TileLayout in Jewel. There's "TileHorizontalLayout" and "
TileVerticalLayout", and the second has some little flaws due to browser
bugs depending on the browser and version used. So better to use the first
when possible.

second not always is needed to remove the old layout bead in this case you
can do just the following code (but this made me think in implement some
kind of bead to tear down the old one when a developer plans to switch
layouts at runtime):

var tile:TileHorizontalLayout = new TileHorizontalLayout();
tile.horizontalGap = 6;
tile.columnWidth = 100;
tile.requestedColumnCount = 3;
list.addBead(tile);

// this is needed for now as a workaround
list.dispatchEvent(new Event("layoutNeeded"));

I detect there's a problem with tile layout since it's not triggering
layout as you add it on the fly.  I committed a fix some minutes ago. So if
you are up to date with the repo remove the last line!, then until you
update you can use that line

This layout works a bit differently than the rest of jewel layouts, since
that can't be done just with CSS like other layouts, it requires JS
calculations. Maybe if we implement it with the new css grid layout... but
that will mean it will not work in IE11.

HTH

Carlos


El vie, 26 feb 2021 a las 3:46, Bilbosax ()
escribió:

> I'm having trouble changing the layout of a list using actionscript on the
> fly.  For instance, if I want to change the layout from a horizontal layout
> to a tile layout in actionscript, this is not working:
>
>
> var hl:HorizontalLayout = new HorizontalLayout();
> imageList.removeBead(hl);
> var tile:TileLayout = new TileLayout();
> imageList.addBead(tile);
>
>  click="preparePhotos(event)">
> 
> 
> 
> 
>
>
> Any suggestions?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Getting Started with Crux

2021-02-26 Thread Carlos Rovira
Hi, but that seems a problem in backend, not Royale.
are you trying to go from very simple initial calls to more complex ones?

El vie, 26 feb 2021 a las 16:38, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> There was an unhandled failure on the server.
> java.lang.NullPointerException
>
> Not really helpful :)
>
> On Fri, 26 Feb 2021 at 16:18, Carlos Rovira 
> wrote:
>
>> Hi,
>>
>> we need to see the NPE you refer
>> thanks
>>
>> El vie, 26 feb 2021 a las 11:49, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi Carlos,
>>>
>>> OK. Thanks.
>>>
>>> I think there is something wrong with the QuickStart project for Crux
>>> for RemoteObjects and BlazeDS.
>>>
>>> I can now call the server but get NullPointer Exceptions as a result.
>>>
>>> So I tried in another project to make the same call having everything in
>>> the same mxml (RemoteObject, Handles etc). This call works fine with the
>>> exception of duplicate HTTP errors on the first call.
>>>
>>> When I take the same code and compile it in the crux project I still get
>>> NullPointer exceptions. Could it be the compiler arguments?
>>>
>>> The project that works has:
>>>
>>> -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
>>>
>>> The Crux project has:
>>> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
>>> -html-template=src/main/resources/crux-jewel-example-index-template.html
>>> -js-default-initializers=true
>>> -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient
>>> -keep-code-with-metadata=Inject +configname=flex
>>>  -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc
>>>
>>> Any tips would be great,
>>>
>>> David
>>>
>>>
>>>
>>>
>>> On Thu, 25 Feb 2021 at 18:14, Carlos Rovira 
>>> wrote:
>>>
>>>> Hi David,
>>>>
>>>> the class to be used on the Service class should be:
>>>>
>>>> mx.rpc.remoting.RemoteObject;
>>>>
>>>> while the class used when you add in bean provider mxml file is
>>>> mx.rpc.remoting.mxml.RemoteObject;
>>>> although is transparent to you since you use  without
>>>> the need of any import.
>>>>
>>>> HTH
>>>>
>>>> Carlos
>>>>
>>>>
>>>> El jue, 25 feb 2021 a las 18:08, David Slotemaker de Bruine (<
>>>> dslotema...@vicensvives.com>) escribió:
>>>>
>>>>> Hi All,
>>>>>
>>>>> So after talking with Piotr I found my problem was I hadn't added the
>>>>> new Controller Component to the Beans.mxml. That is the key so that Crux
>>>>> knows where to assign the events the app dispatches.
>>>>>
>>>>> One issue we did run into was that the definition of the RemoteObjects
>>>>> weren't detected when they where defined in a seperate ServicesConfig.mxml
>>>>> within the config directory. Even though this file was referenced in
>>>>> .
>>>>>
>>>>> Adding the remote object definitions directly to Beans.mxl was the key.
>>>>>
>>>>> Also when Injecting the RemoteObject into the new XXXService.as file
>>>>> it is of type:
>>>>>
>>>>> mx.rpc.remoting.mxml.RemoteObject;
>>>>>
>>>>> I now have issues getting the correct response from the server, but
>>>>> that will be another post :)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Thu, 25 Feb 2021 at 08:42, David Slotemaker de Bruine <
>>>>> dslotema...@vicensvives.com> wrote:
>>>>>
>>>>>> Hi Piotr, I will send you a link with the code, cheers! I will then
>>>>>> post the solution back here when we find it!
>>>>>>
>>>>>> David
>>>>>>
>>>>>> On Wed, 24 Feb 2021 at 17:23, Pio

Re: Getting Started with Crux

2021-02-26 Thread Carlos Rovira
Hi,

we need to see the NPE you refer
thanks

El vie, 26 feb 2021 a las 11:49, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> OK. Thanks.
>
> I think there is something wrong with the QuickStart project for Crux for
> RemoteObjects and BlazeDS.
>
> I can now call the server but get NullPointer Exceptions as a result.
>
> So I tried in another project to make the same call having everything in
> the same mxml (RemoteObject, Handles etc). This call works fine with the
> exception of duplicate HTTP errors on the first call.
>
> When I take the same code and compile it in the crux project I still get
> NullPointer exceptions. Could it be the compiler arguments?
>
> The project that works has:
>
> -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
>
> The Crux project has:
> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
> -html-template=src/main/resources/crux-jewel-example-index-template.html
> -js-default-initializers=true
> -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient
> -keep-code-with-metadata=Inject +configname=flex
>  -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc
>
> Any tips would be great,
>
> David
>
>
>
>
> On Thu, 25 Feb 2021 at 18:14, Carlos Rovira 
> wrote:
>
>> Hi David,
>>
>> the class to be used on the Service class should be:
>>
>> mx.rpc.remoting.RemoteObject;
>>
>> while the class used when you add in bean provider mxml file is
>> mx.rpc.remoting.mxml.RemoteObject;
>> although is transparent to you since you use  without
>> the need of any import.
>>
>> HTH
>>
>> Carlos
>>
>>
>> El jue, 25 feb 2021 a las 18:08, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi All,
>>>
>>> So after talking with Piotr I found my problem was I hadn't added the
>>> new Controller Component to the Beans.mxml. That is the key so that Crux
>>> knows where to assign the events the app dispatches.
>>>
>>> One issue we did run into was that the definition of the RemoteObjects
>>> weren't detected when they where defined in a seperate ServicesConfig.mxml
>>> within the config directory. Even though this file was referenced in
>>> .
>>>
>>> Adding the remote object definitions directly to Beans.mxl was the key.
>>>
>>> Also when Injecting the RemoteObject into the new XXXService.as file  it
>>> is of type:
>>>
>>> mx.rpc.remoting.mxml.RemoteObject;
>>>
>>> I now have issues getting the correct response from the server, but that
>>> will be another post :)
>>>
>>>
>>>
>>>
>>> On Thu, 25 Feb 2021 at 08:42, David Slotemaker de Bruine <
>>> dslotema...@vicensvives.com> wrote:
>>>
>>>> Hi Piotr, I will send you a link with the code, cheers! I will then
>>>> post the solution back here when we find it!
>>>>
>>>> David
>>>>
>>>> On Wed, 24 Feb 2021 at 17:23, Piotr Zarzycki 
>>>> wrote:
>>>>
>>>>> David,
>>>>>
>>>>> You can send me code of your project and I will take a look at it. I
>>>>> don't see any connection to Moonshine here. We need more data to help you.
>>>>> The best would be if you could provide source code by uploading on some
>>>>> server - if you can of course.
>>>>>
>>>>> Thanks,
>>>>> Piotr
>>>>>
>>>>> śr., 24 lut 2021 o 17:13 Carlos Rovira 
>>>>> napisał(a):
>>>>>
>>>>>> Hi David,
>>>>>>
>>>>>> the two lines refers to 2 injects in UserController. Since I don't
>>>>>> know the code I guess you have 2 injections there.
>>>>>> You talk then about a "usuarioController", but I don't know what is.
>>>>>> Is not UserController? is other controller? then you need to add as well 
>>>>>> to
>>>>>> your beanprovider.
>>>>>>
>>>>>> About Moonshine, maybe @Piotr Zarzycki  can
>>>>>> help yo

Re: MaterialIcon binding

2021-02-25 Thread Carlos Rovira
Hi David,

you need always one binding bead at "mxml file level", so if you add a mxml
file to the structure for any subpart and you have binding in the main app
file and also in that mxml subpart separated file, you need to add binding
beads in both. If a mxml sub part doesn't have binding you don't add
anything and Royale will be work faster and will be more light weight since
don't have that code processing in that part ;)

we have more that one type because of PAYG principle, If we add all cases
in the same code, we'll be adding weight and you could or not use it. So
the principle is to compose just what you really use, that makes your app
lighter and faster. Please read in our docs about PAYG:

https://apache.github.io/royale-docs/features-and-concepts#pay-as-you-go-payg

Beads: in each jewel component page I'm trying to add the beads, but is
still on the works. For example:

https://apache.github.io/royale-docs/component-sets/jewel/list



El jue, 25 feb 2021 a las 8:37, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> That was it! Great. Thank you.
>
> Questions:
>
> Does using js:ApplicationDataBinding  mean you dont have to use
> js:ContainerDataBinding in any child containiers?
>
> Why are there two different types of "binding" Beads? Wouldn't it be
> simple with just one type?
>
> Do we have documentation outlining all beads?
>
> Cheers,
>
> David
>
>
>
> On Wed, 24 Feb 2021 at 17:33, Carlos Rovira 
> wrote:
>
>> Hi David,
>>
>> I thought anyone can paste there, sorry. Anyway, I think there's other
>> sites where you can share code. For example github gist.
>>
>> Anyway following code works ok. Explanation: That mxml is Application, so
>> you need to use "ApplicationDataBinding", sin ce it will affect all that
>> mxml unit. Notice that I commented inner "js:ContainerDataBinding".
>>
>> If you separate the view to another file you must use in that mxml
>> "ViewDataBinding" (but we have currently a bug there so instead you need to
>> use ContainerDataBinding).
>>
>> Last, for any other mxml file use js:ContainerDataBinding
>>
>> http://ns.adobe.com/mxml/2009;
>> xmlns:js="library://ns.apache.org/royale/basic"
>> xmlns:j="library://ns.apache.org/royale/jewel"
>> xmlns:html="library://ns.apache.org/royale/html">
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>>
>> HTH
>>
>> Carlos
>>
>>
>> El mar, 23 feb 2021 a las 9:37, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi Carlos,
>>>
>>> What user should I use? I can't see on the apache website how to create
>>> a user.
>>>
>>> I have reduced the example file greatly, I will paste it below:
>>>
>>> 
>>> http://ns.adobe.com/mxml/2009;
>>>xmlns:js="library://ns.apache.org/royale/basic"
>>>xmlns:j="library://ns.apache.org/royale/jewel"
>>>xmlns:html="library://ns.apache.org/royale/html"
>>>   >
>>>
>>>
>>>
>>> 
>>> 
>>> 
>>>
>>>  
>>>   
>>>  
>>>
>>>  
>>> 
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>>
>>> 
>>> 
>>> 
>>>     
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> >> wideScreenVisible="false" />
>>> 
>>> 
>>> >> />
>>> 
>>> 
>>> 
>>> 

Re: Horizontal Layout - Actionscript

2021-02-25 Thread Carlos Rovira
Bill,

I think you want to do in AS3.

that will be:

var hl:HorizontalLayout = new HorizontalLayout();
list.addBead(hl);

HTH





El jue, 25 feb 2021 a las 20:36, Carlos Rovira ()
escribió:

> Hi Bill,
>
> here's an example from TDJ:
>
> 
> 
> 
> 
> 
> 
>
>
> El jue, 25 feb 2021 a las 1:44, Bilbosax ()
> escribió:
>
>> How do you set the layout for a list in actionscript?  Specifically, how
>> do
>> you set a List to a horizontal layout??
>>
>>
>>
>> --
>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Horizontal Layout - Actionscript

2021-02-25 Thread Carlos Rovira
Hi Bill,

here's an example from TDJ:









El jue, 25 feb 2021 a las 1:44, Bilbosax ()
escribió:

> How do you set the layout for a list in actionscript?  Specifically, how do
> you set a List to a horizontal layout??
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: States - EnterState event?

2021-02-25 Thread Carlos Rovira
Hi Bill,

Checking "SimpleStatesImpl", you have "currentStateChange" and "
stateChangeComplete" dispatched by the strand so you can listen to it.
I think that will be what you need.

HTH


El mié, 24 feb 2021 a las 4:40, Bilbosax ()
escribió:

> In Flex, states had an enterState event that allowed you to react to the
> state change.  Does Royale offer this in a bead or something I'm not
> seeing?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Getting Started with Crux

2021-02-25 Thread Carlos Rovira
Hi David,

the class to be used on the Service class should be:

mx.rpc.remoting.RemoteObject;

while the class used when you add in bean provider mxml file is
mx.rpc.remoting.mxml.RemoteObject;
although is transparent to you since you use  without the
need of any import.

HTH

Carlos


El jue, 25 feb 2021 a las 18:08, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi All,
>
> So after talking with Piotr I found my problem was I hadn't added the new
> Controller Component to the Beans.mxml. That is the key so that Crux knows
> where to assign the events the app dispatches.
>
> One issue we did run into was that the definition of the RemoteObjects
> weren't detected when they where defined in a seperate ServicesConfig.mxml
> within the config directory. Even though this file was referenced in
> .
>
> Adding the remote object definitions directly to Beans.mxl was the key.
>
> Also when Injecting the RemoteObject into the new XXXService.as file  it
> is of type:
>
> mx.rpc.remoting.mxml.RemoteObject;
>
> I now have issues getting the correct response from the server, but that
> will be another post :)
>
>
>
>
> On Thu, 25 Feb 2021 at 08:42, David Slotemaker de Bruine <
> dslotema...@vicensvives.com> wrote:
>
>> Hi Piotr, I will send you a link with the code, cheers! I will then post
>> the solution back here when we find it!
>>
>> David
>>
>> On Wed, 24 Feb 2021 at 17:23, Piotr Zarzycki 
>> wrote:
>>
>>> David,
>>>
>>> You can send me code of your project and I will take a look at it. I
>>> don't see any connection to Moonshine here. We need more data to help you.
>>> The best would be if you could provide source code by uploading on some
>>> server - if you can of course.
>>>
>>> Thanks,
>>> Piotr
>>>
>>> śr., 24 lut 2021 o 17:13 Carlos Rovira 
>>> napisał(a):
>>>
>>>> Hi David,
>>>>
>>>> the two lines refers to 2 injects in UserController. Since I don't know
>>>> the code I guess you have 2 injections there.
>>>> You talk then about a "usuarioController", but I don't know what is. Is
>>>> not UserController? is other controller? then you need to add as well to
>>>> your beanprovider.
>>>>
>>>> About Moonshine, maybe @Piotr Zarzycki  can
>>>> help you I don't have many experience, sorry
>>>>
>>>>
>>>> El mar, 23 feb 2021 a las 15:18, David Slotemaker de Bruine (<
>>>> dslotema...@vicensvives.com>) escribió:
>>>>
>>>>> Hi Carlos,
>>>>>
>>>>> OK,
>>>>>
>>>>> I created everything you said, a new:
>>>>>
>>>>> ServicesConfig.mxml in the config folder and pointed to it
>>>>> in 
>>>>>
>>>>> Then I created:
>>>>> UsuarioController
>>>>> UsuarioEvent
>>>>> UsusarioService
>>>>>
>>>>> for my "usuario" needs.
>>>>>
>>>>> The thing is, It does seem that the new controller is being referenced
>>>>> during compile time. I Get the following:
>>>>>
>>>>> Activating JSStageEvents
>>>>> : InjectProcessor set up [Inject] on Bean{ source: [object Object],
>>>>> name: userController }
>>>>> : InjectProcessor set up [Inject] on Bean{ source: [object Object],
>>>>> name: userController }
>>>>> : [PostConstruct] executing createDefaultUser in UserController
>>>>> : [JS] application setUp stub
>>>>>
>>>>> 2 for userController but none for usuarioController.
>>>>>
>>>>> When I call the UsuarioEvent, it dispatchers but doesn't get sent to
>>>>> the UsuarioController. The userEvent dispatch correctly and is sent to the
>>>>> UserContoller without a problem.
>>>>>
>>>>> 2 additional points of information.
>>>>>
>>>>> 1. Breakpoints (In Moonshine) are not working in the project, but they
>>>>> are in others.
>>>>> 2. There is a blue squiggle at the start of some of the files stating
>>>>> that the files are not within the source directory, but they are.
>>>>>
>>>>>  Any ideas?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Thu, 18 Feb 2021 at 17:42, David S

Re: MaterialIcon binding

2021-02-24 Thread Carlos Rovira
Hi David,

I thought anyone can paste there, sorry. Anyway, I think there's other
sites where you can share code. For example github gist.

Anyway following code works ok. Explanation: That mxml is Application, so
you need to use "ApplicationDataBinding", sin ce it will affect all that
mxml unit. Notice that I commented inner "js:ContainerDataBinding".

If you separate the view to another file you must use in that mxml
"ViewDataBinding" (but we have currently a bug there so instead you need to
use ContainerDataBinding).

Last, for any other mxml file use js:ContainerDataBinding

http://ns.adobe.com/mxml/2009;
xmlns:js="library://ns.apache.org/royale/basic"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:html="library://ns.apache.org/royale/html">
























HTH

Carlos


El mar, 23 feb 2021 a las 9:37, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> What user should I use? I can't see on the apache website how to create a
> user.
>
> I have reduced the example file greatly, I will paste it below:
>
> 
> http://ns.adobe.com/mxml/2009;
>xmlns:js="library://ns.apache.org/royale/basic"
>xmlns:j="library://ns.apache.org/royale/jewel"
>xmlns:html="library://ns.apache.org/royale/html"
>   >
>
>
>
> 
> 
> 
>
>  
>   
>  
>
>  
> 
> 
>
> 
>
> 
>
> 
> 
> 
> 
> 
>
>
> 
> 
> 
> 
> 
> 
> 
>
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
>  wideScreenVisible="false" />
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
>      text="{MaterialIconType.VISIBILITY}"
> selectedText="{MaterialIconType.VISIBILITY_OFF}" />
> 
> 
> 
> 
> 
>
>  hasFooterBar="true">
> 
> 
> 
> 
> 
> 
> 
> 
>
> D
>
>
>
> On Mon, 22 Feb 2021 at 19:05, Carlos Rovira 
> wrote:
>
>> Hi, if that works, means icon lib is right and I think is the binding not
>> working
>> I need to see the file. You can to a paste of the file [1]
>>
>> [1] https://paste.apache.org/
>>
>> El lun, 22 feb 2021 a las 17:55, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi Carlos,
>>>
>>> OK! that worked, using just menu shows the correct icon. What could it
>>> be?
>>>
>>> David
>>>
>>> On Mon, 22 Feb 2021 at 16:13, Carlos Rovira 
>>> wrote:
>>>
>>>> Hi David,
>>>>
>>>> I mean to add the value of the MENU constant, sin that text is what the
>>>> icon needs to be shown
>>>> The constant are only for convenience and error checking
>>>>
>>>> El lun, 22 feb 2021 a las 14:25, David Slotemaker de Bruine (<
>>>> dslotema...@vicensvives.com>) escribió:
>>>>
>>>>> If I remove the { , ie:
>>>>>
>>>>>
>>>>>
>>>>> The browser shows the character [ when the menu is hidden. The tool
>>>>> tips also no longer work.
>>>>>
>>>>> Shall I send you a zip version of the project?
>>>>>
>>>>> D
>>>>>
>>>>>
>>>>>
>>>>> On Mon, 22 Feb 2021 at 09:59, Carlos Rovira 
>>>>> wrote:
>>>>>
>>>>>> Hi David,
>>>>>>
>>>>>> if you remove the binding and put the string directly it works?
>>>>>> If so, the library is ok. So it must be something in the bind and I
>>>>>> need you to copy a bit of code you're using since I have no idea
>>>>>>
>>>>

Re: Getting Started with Crux

2021-02-24 Thread Carlos Rovira
Hi David,

the two lines refers to 2 injects in UserController. Since I don't know the
code I guess you have 2 injections there.
You talk then about a "usuarioController", but I don't know what is. Is not
UserController? is other controller? then you need to add as well to your
beanprovider.

About Moonshine, maybe @Piotr Zarzycki  can help
you I don't have many experience, sorry


El mar, 23 feb 2021 a las 15:18, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> OK,
>
> I created everything you said, a new:
>
> ServicesConfig.mxml in the config folder and pointed to it
> in 
>
> Then I created:
> UsuarioController
> UsuarioEvent
> UsusarioService
>
> for my "usuario" needs.
>
> The thing is, It does seem that the new controller is being referenced
> during compile time. I Get the following:
>
> Activating JSStageEvents
> : InjectProcessor set up [Inject] on Bean{ source: [object Object], name:
> userController }
> : InjectProcessor set up [Inject] on Bean{ source: [object Object], name:
> userController }
> : [PostConstruct] executing createDefaultUser in UserController
> : [JS] application setUp stub
>
> 2 for userController but none for usuarioController.
>
> When I call the UsuarioEvent, it dispatchers but doesn't get sent to the
> UsuarioController. The userEvent dispatch correctly and is sent to the
> UserContoller without a problem.
>
> 2 additional points of information.
>
> 1. Breakpoints (In Moonshine) are not working in the project, but they are
> in others.
> 2. There is a blue squiggle at the start of some of the files stating that
> the files are not within the source directory, but they are.
>
>  Any ideas?
>
>
>
>
>
> On Thu, 18 Feb 2021 at 17:42, David Slotemaker de Bruine <
> dslotema...@vicensvives.com> wrote:
>
>> Great! Thank you!
>>
>> I will give it a shot!
>>
>> On Thu, 18 Feb 2021 at 17:07, Carlos Rovira 
>> wrote:
>>
>>> Hi,
>>>
>>> ok, let's go:
>>>
>>> 1.- REMOTEOBJECTS: You will have a mxml file that extends from Crux
>>> BeanProvider. Let's call it ServicesConfig.mxml. There you have all you
>>> mx:RemoteObject objects. So this object will provide all remote objects to
>>> the rest of your app:
>>>
>>> >> destination="loginService"
>>> channelSet="{loginChannel}"
>>> showBusyCursor="true"/>
>>>
>>> 2.- SERVICE: Then you have a "delegate" like in Cairngorm where you
>>> inject the remote object:
>>>
>>> [Inject(source="loginService", required="true")]
>>> public var service :RemoteObject = null;
>>>
>>> So the remoteobject with name "loginService" will be injected in the
>>> public var service. In this delegate you can do things like this:
>>>
>>> public function recoverPassword(username :String, password :String) :
>>> AsyncToken {
>>> return service.recoverPassword(username, password);
>>> }
>>>
>>> 3.- CONTROLLER: Here you have controller methods that will be called
>>> with events and this will in the end call service methods in the delegate
>>> layer:
>>>
>>> [EventHandler(event="LoginEvent.RECOVER_PASSWORD", properties="password"
>>> )]
>>> public function passwordRecovery(password :String) :void {
>>> executeServiceCall(loginDelegate.recoverPassword(model.recoverUsername,
>>> password), passwordRecoveryHandler);
>>> }
>>>
>>> executeServiceCall is a Crux function that allow you to call a service
>>> method and attach a result and fault handlers that will be on this
>>> controller. So in a controller you have that method plus two handlers
>>> (result and fault, but probably just the first since the second use to be
>>> the same reusable for all)
>>>
>>> 4.- EVENT: You extend from CruxEvent and have things like this:
>>>
>>> public static const RECOVER_PASSWORD:String = "login.recoverPassword";
>>>
>>> that match with the one in the controller.
>>>
>>> 5.- VIEW: Here you send the event:
>>>
>>> var event :LoginEvent = new LoginEvent(LoginEvent.RECOVER_PASSWORD);
>>> event.password = newpassword.text;
>>> dispatchEvent(event);
>>>
>>> And that's all
>>>
>>> I think this is a very simple but powerful arquitecture that allows to
>>> organize code in a very good way, while using p

Re: MaterialIcon binding

2021-02-22 Thread Carlos Rovira
Hi, if that works, means icon lib is right and I think is the binding not
working
I need to see the file. You can to a paste of the file [1]

[1] https://paste.apache.org/

El lun, 22 feb 2021 a las 17:55, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> OK! that worked, using just menu shows the correct icon. What could it be?
>
> David
>
> On Mon, 22 Feb 2021 at 16:13, Carlos Rovira 
> wrote:
>
>> Hi David,
>>
>> I mean to add the value of the MENU constant, sin that text is what the
>> icon needs to be shown
>> The constant are only for convenience and error checking
>>
>> El lun, 22 feb 2021 a las 14:25, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> If I remove the { , ie:
>>>
>>>
>>>
>>> The browser shows the character [ when the menu is hidden. The tool tips
>>> also no longer work.
>>>
>>> Shall I send you a zip version of the project?
>>>
>>> D
>>>
>>>
>>>
>>> On Mon, 22 Feb 2021 at 09:59, Carlos Rovira 
>>> wrote:
>>>
>>>> Hi David,
>>>>
>>>> if you remove the binding and put the string directly it works?
>>>> If so, the library is ok. So it must be something in the bind and I
>>>> need you to copy a bit of code you're using since I have no idea
>>>>
>>>> El lun, 22 feb 2021 a las 8:53, David Slotemaker de Bruine (<
>>>> dslotema...@vicensvives.com>) escribió:
>>>>
>>>>> Hi Carlos,
>>>>>
>>>>> I have it at both the Application tag level and the ResponsiveView
>>>>> Level. No dice.
>>>>>
>>>>> I had it like the TDJ example (only at the ResponsiveView Level) and
>>>>> also no dice. I think binding is working because the tool tips still
>>>>> display.
>>>>>
>>>>> I must be missing somthing else, but I dont know what. Any pointers?
>>>>>
>>>>> Cheers,
>>>>>
>>>>> D
>>>>>
>>>>> On Sat, 20 Feb 2021 at 16:19, Carlos Rovira 
>>>>> wrote:
>>>>>
>>>>>> Hi David,
>>>>>>
>>>>>> Remember that binding requires to be composed in Royale (PAYG main
>>>>>> principle).
>>>>>> Do you have this bead at mxml file level?
>>>>>>
>>>>>> 
>>>>>>
>>>>>>
>>>>>>
>>>>>> El vie, 19 feb 2021 a las 11:13, David Slotemaker de Bruine (<
>>>>>> dslotema...@vicensvives.com>) escribió:
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I am trying to recreate the Tour de Jewel Responsive Design. I have
>>>>>>> almost everything working but I am stuck with the following issue:
>>>>>>>
>>>>>>> 1)The MaterialIcon components that use binding (  >>>>>> text="{MaterialIconType.MENU}" />) to decide their image show blank, but
>>>>>>> the tool tips still work which seems to say it isn't a problem with the
>>>>>>> binding. Other Material Items that are set via code show correctly (eg
>>>>>>> ResponsiveIcon and the MenuNav Icons.)
>>>>>>>
>>>>>>> Any ideas?
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Carlos Rovira
>>>>>> Apache Member & Apache Royale PMC
>>>>>> *Apache Software Foundation*
>>>>>> http://about.me/carlosrovira
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *David Slotemaker de Bruïne*
>>>>> *Head of Educational Robotics*
>>>>>
>>>>>
>>>>>
>>>>> Av. Sarriá, 130 - 08017 Barcelona
>>>>> <https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona=gmail=g>
>>>>>
>>>>>
>>>>> T. +34 932 523 729 ext. 135
>>>>>
>>>>> dslotema...@vicensvives.com
>>>>>
>>>>
>>>>
>>>> --
>>>> Carlos Rovira
>>>> Apache Member & Apache Royale PMC
>>>> *Apache Software Foundation*
>>>> http://about.me/carlosrovira
>>>>
>>>>
>>>
>>> --
>>>
>>> *David Slotemaker de Bruïne*
>>> *Head of Educational Robotics*
>>>
>>>
>>>
>>> Av. Sarriá, 130 - 08017 Barcelona
>>> <https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona=gmail=g>
>>>
>>>
>>> T. +34 932 523 729 ext. 135
>>>
>>> dslotema...@vicensvives.com
>>>
>>
>>
>> --
>> Carlos Rovira
>> Apache Member & Apache Royale PMC
>> *Apache Software Foundation*
>> http://about.me/carlosrovira
>>
>>
>
> --
>
> *David Slotemaker de Bruïne*
> *Head of Educational Robotics*
>
>
>
> Av. Sarriá, 130 - 08017 Barcelona
> <https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona=gmail=g>
>
>
> T. +34 932 523 729 ext. 135
>
> dslotema...@vicensvives.com
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: MaterialIcon binding

2021-02-22 Thread Carlos Rovira
Hi David,

I mean to add the value of the MENU constant, sin that text is what the
icon needs to be shown
The constant are only for convenience and error checking

El lun, 22 feb 2021 a las 14:25, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> If I remove the { , ie:
>
>
>
> The browser shows the character [ when the menu is hidden. The tool tips
> also no longer work.
>
> Shall I send you a zip version of the project?
>
> D
>
>
>
> On Mon, 22 Feb 2021 at 09:59, Carlos Rovira 
> wrote:
>
>> Hi David,
>>
>> if you remove the binding and put the string directly it works?
>> If so, the library is ok. So it must be something in the bind and I need
>> you to copy a bit of code you're using since I have no idea
>>
>> El lun, 22 feb 2021 a las 8:53, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi Carlos,
>>>
>>> I have it at both the Application tag level and the ResponsiveView
>>> Level. No dice.
>>>
>>> I had it like the TDJ example (only at the ResponsiveView Level) and
>>> also no dice. I think binding is working because the tool tips still
>>> display.
>>>
>>> I must be missing somthing else, but I dont know what. Any pointers?
>>>
>>> Cheers,
>>>
>>> D
>>>
>>> On Sat, 20 Feb 2021 at 16:19, Carlos Rovira 
>>> wrote:
>>>
>>>> Hi David,
>>>>
>>>> Remember that binding requires to be composed in Royale (PAYG main
>>>> principle).
>>>> Do you have this bead at mxml file level?
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> El vie, 19 feb 2021 a las 11:13, David Slotemaker de Bruine (<
>>>> dslotema...@vicensvives.com>) escribió:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I am trying to recreate the Tour de Jewel Responsive Design. I have
>>>>> almost everything working but I am stuck with the following issue:
>>>>>
>>>>> 1)The MaterialIcon components that use binding (  >>>> text="{MaterialIconType.MENU}" />) to decide their image show blank, but
>>>>> the tool tips still work which seems to say it isn't a problem with the
>>>>> binding. Other Material Items that are set via code show correctly (eg
>>>>> ResponsiveIcon and the MenuNav Icons.)
>>>>>
>>>>> Any ideas?
>>>>>
>>>>>
>>>>
>>>> --
>>>> Carlos Rovira
>>>> Apache Member & Apache Royale PMC
>>>> *Apache Software Foundation*
>>>> http://about.me/carlosrovira
>>>>
>>>>
>>>
>>> --
>>>
>>> *David Slotemaker de Bruïne*
>>> *Head of Educational Robotics*
>>>
>>>
>>>
>>> Av. Sarriá, 130 - 08017 Barcelona
>>> <https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona=gmail=g>
>>>
>>>
>>> T. +34 932 523 729 ext. 135
>>>
>>> dslotema...@vicensvives.com
>>>
>>
>>
>> --
>> Carlos Rovira
>> Apache Member & Apache Royale PMC
>> *Apache Software Foundation*
>> http://about.me/carlosrovira
>>
>>
>
> --
>
> *David Slotemaker de Bruïne*
> *Head of Educational Robotics*
>
>
>
> Av. Sarriá, 130 - 08017 Barcelona
> <https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona=gmail=g>
>
>
> T. +34 932 523 729 ext. 135
>
> dslotema...@vicensvives.com
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: MXRoyaleJS.swc could not be found

2021-02-22 Thread Carlos Rovira
Hi Jason,

Chris fixed now Maven distribution and I check the RO example and as well
it need a tweak in asconfigc that I just commit.

"targets": ["SWF","JSRoyale"],
need to be
"targets": ["JSRoyale"],

That means that SWF still need some changes that need to be done, but I
think is ok for you since you want JS.

I build and seems ok now. Please take a look



El lun, 22 feb 2021 a las 10:03, Carlos Rovira ()
escribió:

> Hi Jason,
>
> Are you saying that running maven from sources is making the same error.
> In my test that worked.
> You fyi
>
> El lun, 22 feb 2021 a las 4:15, Jason Fillman ()
> escribió:
>
>> Hi Carlos,
>>
>>
>>
>> Definitely NOT urgent.
>>
>>
>>
>> Yes, doing CTRL+Shift+B for the AS compile (Release and Debug produce
>> these errors, Clean never seems to finish), but reading the README said I
>> needed a clean Maven build so tried that as well with the Maven Visual Code
>> plug-in, with the error noted in my prior email.
>>
>>
>>
>> Of note, I get the same result against the current 0.9.7 stable build.
>> For both, I downloaded the JS only version.
>>
>>
>>
>> Jason
>>
>>
>>
>> *From:* Carlos Rovira 
>> *Sent:* Sunday, February 21, 2021 3:20 PM
>> *To:* users@royale.apache.org
>> *Subject:* Re: MXRoyaleJS.swc could not be found
>>
>>
>>
>> Hi Jason,
>>
>>
>>
>> if I load in VSCode + AS3 the folder
>> "/examples/mxroyale/RemoteObjectAMFTest" and build with CMD+SHIFT+B, then
>> select "Debug with ActionScript extension (this is what I guess you are
>> doing) I can reproduce the problem with a nightly.
>>
>>
>>
>>  Also today I was fixing Maven SDK distribution so I'll wait for the next
>> nightly build to check what's going on. I tried building with Maven and
>> seems to work, also building with a fixed Maven distribution SDK seems to
>> pass but I see some warning that I need to investigate further. For now if
>> you are in a hurry can only say that your only path right now is to build
>> with Maven instead with IDE. If you choose that path you can use this gist
>> [1] to build from scratch all repos with Maven and then with ANT (you can
>> just use one of them, I build both to ensure all is ok as an SDK developer).
>>
>>
>>
>> [1] https://gist.github.com/carlosrovira/200753108de263fa43e80d3228213509
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fcarlosrovira%2F200753108de263fa43e80d3228213509=04%7C01%7C%7C0047beb2cb4b4cff18e508d8d6bf423d%7C84df9e7fe9f640afb435%7C1%7C0%7C637495464223534895%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=HS2k5pL5jRmmP6YEHXsnIAc7ALC7QR4txZoliH8YufI%3D=0>
>>
>>
>>
>>
>>
>> El lun, 22 feb 2021 a las 0:00, Jason Fillman ()
>> escribió:
>>
>> Hi Carlos,
>>
>>
>>
>> I found the more recent builds. FYI, the link to the nightly Royale build
>> here: https://royale.apache.org/get-involved/
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Froyale.apache.org%2Fget-involved%2F=04%7C01%7C%7C0047beb2cb4b4cff18e508d8d6bf423d%7C84df9e7fe9f640afb435%7C1%7C0%7C637495464223544850%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=NWA5Ri0uD%2BdjebLAksCA8t3ZOL49mE0mt9erSk3Gbb8%3D=0>
>> resolves to build #2276 vs the most recent list.
>>
>>
>>
>> I did search both lists and the only threads I found that seemed to
>> address this issue indicated to add the below code to the asconfig.json
>> file, however, this exact code is already in the file, so seems to be
>> something else/something I am doing wrong…
>>
>>
>>
>> "library-path": [
>>
>> "${royalelib}/js/libs/MXRoyaleJS.swc"
>>
>> ],
>>
>> "js-library-path": [
>>
>> "${royalelib}/js/libs/MXRoyaleJS.swc"
>>
>> ]
>>
>>
>>
>> Still unclear to me is if I am compiling using the AS compiler or Maven,
>> within VS, however, neither seem to work. Using AS, I get these SWC not
>> found errors. Using a clean Maven build, I get the following:
>>
>>
>>
>> *PS C:\...\royale-asjs\examples\mxroyale\RemoteObjectAMFTest> &
>> "c:\...\royale-asjs\mvnw.cmd" clean -f
>> "c:\...\royale-asjs\examples\mxroyale\RemoteObjectAMFTest\pom.xml"*
>>
>> *Files was unexpected at 

Re: MXRoyaleJS.swc could not be found

2021-02-22 Thread Carlos Rovira
Hi Jason,

Are you saying that running maven from sources is making the same error. In
my test that worked.
You fyi

El lun, 22 feb 2021 a las 4:15, Jason Fillman ()
escribió:

> Hi Carlos,
>
>
>
> Definitely NOT urgent.
>
>
>
> Yes, doing CTRL+Shift+B for the AS compile (Release and Debug produce
> these errors, Clean never seems to finish), but reading the README said I
> needed a clean Maven build so tried that as well with the Maven Visual Code
> plug-in, with the error noted in my prior email.
>
>
>
> Of note, I get the same result against the current 0.9.7 stable build. For
> both, I downloaded the JS only version.
>
>
>
> Jason
>
>
>
> *From:* Carlos Rovira 
> *Sent:* Sunday, February 21, 2021 3:20 PM
> *To:* users@royale.apache.org
> *Subject:* Re: MXRoyaleJS.swc could not be found
>
>
>
> Hi Jason,
>
>
>
> if I load in VSCode + AS3 the folder
> "/examples/mxroyale/RemoteObjectAMFTest" and build with CMD+SHIFT+B, then
> select "Debug with ActionScript extension (this is what I guess you are
> doing) I can reproduce the problem with a nightly.
>
>
>
>  Also today I was fixing Maven SDK distribution so I'll wait for the next
> nightly build to check what's going on. I tried building with Maven and
> seems to work, also building with a fixed Maven distribution SDK seems to
> pass but I see some warning that I need to investigate further. For now if
> you are in a hurry can only say that your only path right now is to build
> with Maven instead with IDE. If you choose that path you can use this gist
> [1] to build from scratch all repos with Maven and then with ANT (you can
> just use one of them, I build both to ensure all is ok as an SDK developer).
>
>
>
> [1] https://gist.github.com/carlosrovira/200753108de263fa43e80d3228213509
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fcarlosrovira%2F200753108de263fa43e80d3228213509=04%7C01%7C%7C0047beb2cb4b4cff18e508d8d6bf423d%7C84df9e7fe9f640afb435%7C1%7C0%7C637495464223534895%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=HS2k5pL5jRmmP6YEHXsnIAc7ALC7QR4txZoliH8YufI%3D=0>
>
>
>
>
>
> El lun, 22 feb 2021 a las 0:00, Jason Fillman ()
> escribió:
>
> Hi Carlos,
>
>
>
> I found the more recent builds. FYI, the link to the nightly Royale build
> here: https://royale.apache.org/get-involved/
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Froyale.apache.org%2Fget-involved%2F=04%7C01%7C%7C0047beb2cb4b4cff18e508d8d6bf423d%7C84df9e7fe9f640afb435%7C1%7C0%7C637495464223544850%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=NWA5Ri0uD%2BdjebLAksCA8t3ZOL49mE0mt9erSk3Gbb8%3D=0>
> resolves to build #2276 vs the most recent list.
>
>
>
> I did search both lists and the only threads I found that seemed to
> address this issue indicated to add the below code to the asconfig.json
> file, however, this exact code is already in the file, so seems to be
> something else/something I am doing wrong…
>
>
>
> "library-path": [
>
> "${royalelib}/js/libs/MXRoyaleJS.swc"
>
> ],
>
> "js-library-path": [
>
> "${royalelib}/js/libs/MXRoyaleJS.swc"
>
> ]
>
>
>
> Still unclear to me is if I am compiling using the AS compiler or Maven,
> within VS, however, neither seem to work. Using AS, I get these SWC not
> found errors. Using a clean Maven build, I get the following:
>
>
>
> *PS C:\...\royale-asjs\examples\mxroyale\RemoteObjectAMFTest> &
> "c:\...\royale-asjs\mvnw.cmd" clean -f
> "c:\...\royale-asjs\examples\mxroyale\RemoteObjectAMFTest\pom.xml"*
>
> *Files was unexpected at this time.*
>
>
>
> I get the same type of result with the SAMPLEAMFWEBAPP project using Maven
> clean build (see included image), so wondering if I need to install Maven
> outside of VS instead of the VS plug-in or maybe some other environment
> setup issues I am missing.
>
>
>
>
>
> *From:* Carlos Rovira 
> *Sent:* Sunday, February 21, 2021 5:46 AM
> *To:* users@royale.apache.org
> *Subject:* Re: MXRoyaleJS.swc could not be found
>
>
>
> Hi Jason,
>
>
>
> since this question was solved more than one time in user and dev lists,
> please search for it on how to solve it.
>
> Mainly MXRoyale is not included in royale config by default but is in flex
> config, so you need to add it specifically to it.
>
> Also if you're using a nightly please use the newer one and keep up to
> date if possible.
>
>
>
>
>
>
>
>

Re: MaterialIcon binding

2021-02-22 Thread Carlos Rovira
Hi David,

if you remove the binding and put the string directly it works?
If so, the library is ok. So it must be something in the bind and I need
you to copy a bit of code you're using since I have no idea

El lun, 22 feb 2021 a las 8:53, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> I have it at both the Application tag level and the ResponsiveView Level.
> No dice.
>
> I had it like the TDJ example (only at the ResponsiveView Level) and also
> no dice. I think binding is working because the tool tips still display.
>
> I must be missing somthing else, but I dont know what. Any pointers?
>
> Cheers,
>
> D
>
> On Sat, 20 Feb 2021 at 16:19, Carlos Rovira 
> wrote:
>
>> Hi David,
>>
>> Remember that binding requires to be composed in Royale (PAYG main
>> principle).
>> Do you have this bead at mxml file level?
>>
>> 
>>
>>
>>
>> El vie, 19 feb 2021 a las 11:13, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi all,
>>>
>>> I am trying to recreate the Tour de Jewel Responsive Design. I have
>>> almost everything working but I am stuck with the following issue:
>>>
>>> 1)The MaterialIcon components that use binding (  >> text="{MaterialIconType.MENU}" />) to decide their image show blank, but
>>> the tool tips still work which seems to say it isn't a problem with the
>>> binding. Other Material Items that are set via code show correctly (eg
>>> ResponsiveIcon and the MenuNav Icons.)
>>>
>>> Any ideas?
>>>
>>>
>>
>> --
>> Carlos Rovira
>> Apache Member & Apache Royale PMC
>> *Apache Software Foundation*
>> http://about.me/carlosrovira
>>
>>
>
> --
>
> *David Slotemaker de Bruïne*
> *Head of Educational Robotics*
>
>
>
> Av. Sarriá, 130 - 08017 Barcelona
> <https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona=gmail=g>
>
>
> T. +34 932 523 729 ext. 135
>
> dslotema...@vicensvives.com
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: MXRoyaleJS.swc could not be found

2021-02-21 Thread Carlos Rovira
Hi Jason,

if I load in VSCode + AS3 the folder
"/examples/mxroyale/RemoteObjectAMFTest" and build with CMD+SHIFT+B, then
select "Debug with ActionScript extension (this is what I guess you are
doing) I can reproduce the problem with a nightly.

 Also today I was fixing Maven SDK distribution so I'll wait for the next
nightly build to check what's going on. I tried building with Maven and
seems to work, also building with a fixed Maven distribution SDK seems to
pass but I see some warning that I need to investigate further. For now if
you are in a hurry can only say that your only path right now is to build
with Maven instead with IDE. If you choose that path you can use this gist
[1] to build from scratch all repos with Maven and then with ANT (you can
just use one of them, I build both to ensure all is ok as an SDK developer).

[1] https://gist.github.com/carlosrovira/200753108de263fa43e80d3228213509


El lun, 22 feb 2021 a las 0:00, Jason Fillman ()
escribió:

> Hi Carlos,
>
>
>
> I found the more recent builds. FYI, the link to the nightly Royale build
> here: https://royale.apache.org/get-involved/  resolves to build #2276 vs
> the most recent list.
>
>
>
> I did search both lists and the only threads I found that seemed to
> address this issue indicated to add the below code to the asconfig.json
> file, however, this exact code is already in the file, so seems to be
> something else/something I am doing wrong…
>
>
>
> "library-path": [
>
> "${royalelib}/js/libs/MXRoyaleJS.swc"
>
> ],
>
> "js-library-path": [
>
> "${royalelib}/js/libs/MXRoyaleJS.swc"
>
> ]
>
>
>
> Still unclear to me is if I am compiling using the AS compiler or Maven,
> within VS, however, neither seem to work. Using AS, I get these SWC not
> found errors. Using a clean Maven build, I get the following:
>
>
>
> *PS C:\...\royale-asjs\examples\mxroyale\RemoteObjectAMFTest> &
> "c:\...\royale-asjs\mvnw.cmd" clean -f
> "c:\...\royale-asjs\examples\mxroyale\RemoteObjectAMFTest\pom.xml"*
>
> *Files was unexpected at this time.*
>
>
>
> I get the same type of result with the SAMPLEAMFWEBAPP project using Maven
> clean build (see included image), so wondering if I need to install Maven
> outside of VS instead of the VS plug-in or maybe some other environment
> setup issues I am missing.
>
>
>
>
>
> *From:* Carlos Rovira 
> *Sent:* Sunday, February 21, 2021 5:46 AM
> *To:* users@royale.apache.org
> *Subject:* Re: MXRoyaleJS.swc could not be found
>
>
>
> Hi Jason,
>
>
>
> since this question was solved more than one time in user and dev lists,
> please search for it on how to solve it.
>
> Mainly MXRoyale is not included in royale config by default but is in flex
> config, so you need to add it specifically to it.
>
> Also if you're using a nightly please use the newer one and keep up to
> date if possible.
>
>
>
>
>
>
>
> El sáb, 20 feb 2021 a las 20:30, Jason Fillman ()
> escribió:
>
> Compiling RemoteObjectAMFTest against 097 and the Jan 1 098 nightly, I get
> a bunch of errors: …\MXRoyaleJS.swc could not be found
>
>
>
> One example output:
>
> c:\...\royale-asjs\frameworks\js\libs\MXRoyaleJS.swc Warning: The
> definition org.apache.royale.events.Event depended on by
> mx.core.ScrollControlBase in the SWC
> c:\...\royale-asjs\frameworks\js\libs\MXRoyaleJS.swc could not be found
>
>
>
> The terminal process "C:\Program Files (x86)\Common
> Files\Oracle\Java\javapath\java.exe '-jar',
> 'c:\Users\jmfil\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.6.0\bin\asconfigc.jar',
> '--sdk', 'c:\...\royale-asjs', '--debug=false', '--project',
> 'c:\...\royale-asjs\examples\mxroyale\RemoteObjectAMFTest\asconfig.json'"
> terminated with exit code: 3.
>
>
>
> I checked the file path referenced and the swc file is there, so not sure…
>
>
>
> Visual Studio Code; JDK 8u281
>
>
>
>
> --
>
> Carlos Rovira
>
> Apache Member & Apache Royale PMC
>
> *Apache Software Foundation*
>
> http://about.me/carlosrovira
> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira=04%7C01%7C%7C2fe1458319b0485f86eb08d8d66f1a3e%7C84df9e7fe9f640afb435%7C1%7C0%7C637495119956814499%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=GchqT3Q2c5yrJ1UCs0iVOxMtmfiRyV%2FBKK0gROsbrXw%3D=0>
>
>
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: MXRoyaleJS.swc could not be found

2021-02-21 Thread Carlos Rovira
Hi Jason,

since this question was solved more than one time in user and dev lists,
please search for it on how to solve it.
Mainly MXRoyale is not included in royale config by default but is in flex
config, so you need to add it specifically to it.
Also if you're using a nightly please use the newer one and keep up to date
if possible.



El sáb, 20 feb 2021 a las 20:30, Jason Fillman ()
escribió:

> Compiling RemoteObjectAMFTest against 097 and the Jan 1 098 nightly, I get
> a bunch of errors: …\MXRoyaleJS.swc could not be found
>
>
>
> One example output:
>
> c:\...\royale-asjs\frameworks\js\libs\MXRoyaleJS.swc Warning: The
> definition org.apache.royale.events.Event depended on by
> mx.core.ScrollControlBase in the SWC
> c:\...\royale-asjs\frameworks\js\libs\MXRoyaleJS.swc could not be found
>
>
>
> The terminal process "C:\Program Files (x86)\Common
> Files\Oracle\Java\javapath\java.exe '-jar',
> 'c:\Users\jmfil\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.6.0\bin\asconfigc.jar',
> '--sdk', 'c:\...\royale-asjs', '--debug=false', '--project',
> 'c:\...\royale-asjs\examples\mxroyale\RemoteObjectAMFTest\asconfig.json'"
> terminated with exit code: 3.
>
>
>
> I checked the file path referenced and the swc file is there, so not sure…
>
>
>
> Visual Studio Code; JDK 8u281
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: New Jewel Switch controls

2021-02-21 Thread Carlos Rovira
Glad you liked it!

Take into account that now names are "Switch" and "SwitchRadio", and since
Switch is more like a CheckBox is more Square, while the radio version is
more curved.

Enjoy!

El dom, 21 feb 2021 a las 3:22, Bilbosax ()
escribió:

> Really nice work Carlos and Royale Team.  Those are beautiful!
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: MaterialIcon binding

2021-02-20 Thread Carlos Rovira
Hi David,

Remember that binding requires to be composed in Royale (PAYG main
principle).
Do you have this bead at mxml file level?





El vie, 19 feb 2021 a las 11:13, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi all,
>
> I am trying to recreate the Tour de Jewel Responsive Design. I have almost
> everything working but I am stuck with the following issue:
>
> 1)The MaterialIcon components that use binding (   text="{MaterialIconType.MENU}" />) to decide their image show blank, but
> the tool tips still work which seems to say it isn't a problem with the
> binding. Other Material Items that are set via code show correctly (eg
> ResponsiveIcon and the MenuNav Icons.)
>
> Any ideas?
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Getting Started with Crux

2021-02-18 Thread Carlos Rovira
Hi,

ok, let's go:

1.- REMOTEOBJECTS: You will have a mxml file that extends from Crux
BeanProvider. Let's call it ServicesConfig.mxml. There you have all you
mx:RemoteObject objects. So this object will provide all remote objects to
the rest of your app:



2.- SERVICE: Then you have a "delegate" like in Cairngorm where you inject
the remote object:

[Inject(source="loginService", required="true")]
public var service :RemoteObject = null;

So the remoteobject with name "loginService" will be injected in the public
var service. In this delegate you can do things like this:

public function recoverPassword(username :String, password :String) :
AsyncToken {
return service.recoverPassword(username, password);
}

3.- CONTROLLER: Here you have controller methods that will be called with
events and this will in the end call service methods in the delegate layer:

[EventHandler(event="LoginEvent.RECOVER_PASSWORD", properties="password")]
public function passwordRecovery(password :String) :void {
executeServiceCall(loginDelegate.recoverPassword(model.recoverUsername,
password), passwordRecoveryHandler);
}

executeServiceCall is a Crux function that allow you to call a service
method and attach a result and fault handlers that will be on this
controller. So in a controller you have that method plus two handlers
(result and fault, but probably just the first since the second use to be
the same reusable for all)

4.- EVENT: You extend from CruxEvent and have things like this:

public static const RECOVER_PASSWORD:String = "login.recoverPassword";

that match with the one in the controller.

5.- VIEW: Here you send the event:

var event :LoginEvent = new LoginEvent(LoginEvent.RECOVER_PASSWORD);
event.password = newpassword.text;
dispatchEvent(event);

And that's all

I think this is a very simple but powerful arquitecture that allows to
organize code in a very good way, while using plain objects without the
need of extensions and more, since objects are injected.

HTH

Carlos

El jue, 18 feb 2021 a las 16:51, Carlos Rovira ()
escribió:

> Hi David,
>
> we have it here [1], but anyway I'll try to give a bit more info.
>
> [1] https://apache.github.io/royale-docs/libraries/crux/service-layer
>
> El jue, 18 feb 2021 a las 16:49, Carlos Rovira ()
> escribió:
>
>> Hi David,
>>
>> I'll try to write this on a wiki, since I don't think we have a working
>> example. Hope to come back to you soon.
>>
>> El jue, 18 feb 2021 a las 15:54, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi All,
>>>
>>> I come from a Flex Cairngorm background and I am trying to get my head
>>> around Crux and the Crux example.
>>>
>>> I have gone through the tutorial and read the documentation. But I am
>>> stuck on where to place my RemoteObject tags and how to reference/call them.
>>>
>>> The first code snippet from:
>>>
>>> https://apache.github.io/royale-docs/libraries/crux/service-layer
>>>
>>> Shows the injection of a "userService" RemoteObject and a
>>> "ServiceHelper". Where should these code if I am using the CruxQuickStart
>>> as a base? In UserService.as? Where should the  be defined
>>> so it can be injected?
>>>
>>> Any help would be great!
>>>
>>> David
>>>
>>
>>
>> --
>> Carlos Rovira
>> Apache Member & Apache Royale PMC
>> *Apache Software Foundation*
>> http://about.me/carlosrovira
>>
>>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Getting Started with Crux

2021-02-18 Thread Carlos Rovira
Hi David,

we have it here [1], but anyway I'll try to give a bit more info.

[1] https://apache.github.io/royale-docs/libraries/crux/service-layer

El jue, 18 feb 2021 a las 16:49, Carlos Rovira ()
escribió:

> Hi David,
>
> I'll try to write this on a wiki, since I don't think we have a working
> example. Hope to come back to you soon.
>
> El jue, 18 feb 2021 a las 15:54, David Slotemaker de Bruine (<
> dslotema...@vicensvives.com>) escribió:
>
>> Hi All,
>>
>> I come from a Flex Cairngorm background and I am trying to get my head
>> around Crux and the Crux example.
>>
>> I have gone through the tutorial and read the documentation. But I am
>> stuck on where to place my RemoteObject tags and how to reference/call them.
>>
>> The first code snippet from:
>>
>> https://apache.github.io/royale-docs/libraries/crux/service-layer
>>
>> Shows the injection of a "userService" RemoteObject and a
>> "ServiceHelper". Where should these code if I am using the CruxQuickStart
>> as a base? In UserService.as? Where should the  be defined
>> so it can be injected?
>>
>> Any help would be great!
>>
>> David
>>
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Getting Started with Crux

2021-02-18 Thread Carlos Rovira
Hi David,

I'll try to write this on a wiki, since I don't think we have a working
example. Hope to come back to you soon.

El jue, 18 feb 2021 a las 15:54, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi All,
>
> I come from a Flex Cairngorm background and I am trying to get my head
> around Crux and the Crux example.
>
> I have gone through the tutorial and read the documentation. But I am
> stuck on where to place my RemoteObject tags and how to reference/call them.
>
> The first code snippet from:
>
> https://apache.github.io/royale-docs/libraries/crux/service-layer
>
> Shows the injection of a "userService" RemoteObject and a "ServiceHelper".
> Where should these code if I am using the CruxQuickStart as a base? In
> UserService.as? Where should the  be defined so it can be
> injected?
>
> Any help would be great!
>
> David
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Royale/AMF For Healthcare Apps

2021-02-18 Thread Carlos Rovira
Hi Jason,

Maven and ANT are Build systems that you can use to build locally or in a
server. Those can generate an SDK from scratch.
VSCode+AS3 and Moonshine are IDEs (like Flash Builder was in Flex
days), they can consume an SDK
Also, try to use latest nightly builds in this page at the end of it:
https://royale.apache.org/get-involved/
(0.9.7 is very old, so better 0.9.8)

You can start from a nightly SDK and use it in an IDE and then evolve over
time to your own build from sources if you want. That is not required and
depends on your relation with the technology and the way you want to use it.


El mié, 17 feb 2021 a las 22:45, Jason Fillman ()
escribió:

> Hi Carlos,
>
>
>
> Thank you for the response! I’ve noted the Royale and AMF example projects
> and will see how far I get.
>
>
>
> A point of clarity, if I need to compile any Royale project where I want
> to use AMF, I have to use Maven vs other development tools, to compile the
> Royale project? I ask because Maven isn’t listed as an IDE tool on the
> Royale website.
>
>
>
> Jason
>
>
>
>
>
> *From:* Carlos Rovira 
> *Sent:* Wednesday, February 17, 2021 2:53 AM
> *To:* users@royale.apache.org
> *Subject:* Re: Royale/AMF For Healthcare Apps
>
>
>
> Hi Jason,
>
>
>
> Royale offers AMF since it is a very good way to send and receive data.
> The security layer can be https as it was before. I also could say that
> since AMF is not as popular as other communication ways, it's more secure.
>
>
>
> Benign said that Royale offers the rest of usual formats in Flex (like
> HTTPService), but also other more compliant with web standards like
> REST/JSON. So you can choose things more "actual" or going with AMF if you
> want.
>
>
>
> In the end I think you have more options.
>
>
>
> is AMF the way to go? My opinion is: it depends... If I'd go with a huge
> system, I'd invest in AMF since is very good. For me it continue to be the
> best. But if I'm going to do some mash up with other services, then
> probably will go with REST/JSON or HTTPService since I'd only be a
> "consumer" of info from another source and they probably will put on that
> format.
>
>
>
> You have a java blazeds example in our repo /examples/amf and a client
> (use MXRoyale version). And also there's lots of emails in user and dev
> lists here from people asking mostly the same all time, so you can learn
> from the start of many others with Royale and AMF
>
>
>
> HTH
>
>
>
> Carlos
>
>
>
>
>
>
>
> El mié, 17 feb 2021 a las 3:52, Jason Fillman ()
> escribió:
>
> Nearly a decade ago I stepped away from Flex, and all programming, and
> went another way.
>
>
>
> I have long had an interest to produce apps in the healthcare space and
> really felt the broad device support that Flex offerred could address many
> challenges with players in that space, but the changes to support and
> unclear future of Flash and Flex, really changed things.
>
>
>
> I have recently started looking around again, finding Royale, compiling a
> couple sample apps and trying to see what I could learn, but basically
> starting over, having forgotten most things.
>
>
>
> My question to the group, realizing this is really an opinion question, is
> the appropriateness of Royale and AMF for solutions that require very
> strong data security and encryption.
>
>
>
> Seems like AMF is the preferred choice for data integration, but doesn't
> seem to have been updated in several years. Is AMF the way to go?
>
>
>
> I found essentially no instructions on getting a BlazeDS environment setup
> locally or hosted. (AWS/Azure??). Looking for baby steps with examples,
> maybe paired with some e-learning recommendations.
>
>
>
> Hoping to dust off the skills or, more accurately, start over, and would
> appreciate some feedback, thoughts, and suggestions from this group.
>
>
>
>
> --
>
> Carlos Rovira
>
> Apache Member & Apache Royale PMC
>
> *Apache Software Foundation*
>
> http://about.me/carlosrovira
> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira=04%7C01%7C%7C206dd390290d4439b49c08d8d3324109%7C84df9e7fe9f640afb435%7C1%7C0%7C637491560073171762%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=ho2Nt7iFasRVbnO%2BtztIH1%2Bxv2WhJO0Wx7woRew1WPQ%3D=0>
>
>
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: [EXTERNAL] Crux - binding model between views

2021-02-17 Thread Carlos Rovira
Hi Brian,

is double binding working?

thanks

El mar, 16 feb 2021 a las 22:11, Maria Jose Esteve ()
escribió:

> Double binding? she hadn't thought about it ...
>
> I will try it. Thanks Brian.
>
>
>
> Hiedra.
>
>
>
> *De:* Brian Raymes 
> *Enviado el:* sábado, 13 de febrero de 2021 20:04
> *Para:* users@royale.apache.org
> *Asunto:* RE: [EXTERNAL] Crux - binding model between views
>
>
>
> You might be missing either of the following:
>
> One way binding:
>
>
>
> [*Bindable*]
>
> [*Inject*(source="customerModel", bind="true")]
>
> *public* *var* customerModel:CustomerModel;
>
>
>
> Two way binding:
>
>
>
> [*Bindable*]
>
> [*Inject*(source="customerModel", twoWay="true")]
>
> *public* *var* customerModel:CustomerModel;
>
>
>
> Brian
>
>
>
> *From:* Maria Jose Esteve 
> *Sent:* Wednesday, February 10, 2021 5:25 AM
> *To:* users@royale.apache.org
> *Subject:* [EXTERNAL] 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)
>
>
>
> 
>
> 
> *xmlns:fx*=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;}
>
> …
>
> 
>
>   
>
>   "{(isOnAddingMode) ? FontAwesome5IconType.PLUS_CIRCLE : 'edit'}"
>
>*relativeSize*="{FontAwesomeIcon.SIZE_LG}" *faStyle*=
> "{FontAwesomeIcon.DUOTONE}" />
>
> 
>
>   
>
> …
>
>
>
>
>
> Implementation, example, *CustomerView.mxml*:
>
>
>
> 
>
> 
> *xmlns:fx*="http://ns.adobe.com/mxml/2009;
>
> *xmlns:j*="library://ns.apache.org/royale/jewel"
>
> …
>
> *isOnAddingMode*=
> "{customerModel.currentState == UtilConstants.STATE_ADDING}"
>
> >
>
> 
>
> 

Re: Royale/AMF For Healthcare Apps

2021-02-17 Thread Carlos Rovira
Hi Jason,

Royale offers AMF since it is a very good way to send and receive data. The
security layer can be https as it was before. I also could say that since
AMF is not as popular as other communication ways, it's more secure.

Benign said that Royale offers the rest of usual formats in Flex (like
HTTPService), but also other more compliant with web standards like
REST/JSON. So you can choose things more "actual" or going with AMF if you
want.

In the end I think you have more options.

is AMF the way to go? My opinion is: it depends... If I'd go with a huge
system, I'd invest in AMF since is very good. For me it continue to be the
best. But if I'm going to do some mash up with other services, then
probably will go with REST/JSON or HTTPService since I'd only be a
"consumer" of info from another source and they probably will put on that
format.

You have a java blazeds example in our repo /examples/amf and a client (use
MXRoyale version). And also there's lots of emails in user and dev lists
here from people asking mostly the same all time, so you can learn from the
start of many others with Royale and AMF

HTH

Carlos



El mié, 17 feb 2021 a las 3:52, Jason Fillman ()
escribió:

> Nearly a decade ago I stepped away from Flex, and all programming, and
> went another way.
>
> I have long had an interest to produce apps in the healthcare space and
> really felt the broad device support that Flex offerred could address many
> challenges with players in that space, but the changes to support and
> unclear future of Flash and Flex, really changed things.
>
> I have recently started looking around again, finding Royale, compiling a
> couple sample apps and trying to see what I could learn, but basically
> starting over, having forgotten most things.
>
> My question to the group, realizing this is really an opinion question, is
> the appropriateness of Royale and AMF for solutions that require very
> strong data security and encryption.
>
> Seems like AMF is the preferred choice for data integration, but doesn't
> seem to have been updated in several years. Is AMF the way to go?
>
> I found essentially no instructions on getting a BlazeDS environment setup
> locally or hosted. (AWS/Azure??). Looking for baby steps with examples,
> maybe paired with some e-learning recommendations.
>
> Hoping to dust off the skills or, more accurately, start over, and would
> appreciate some feedback, thoughts, and suggestions from this group.
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Charts

2021-02-17 Thread Carlos Rovira
Hi MJ,

I think is this link: https://www.npmjs.com/package/dts2as



El mié, 17 feb 2021 a las 11:20, Maria Jose Esteve ()
escribió:

> Hi,
>
> that was my first choice but I didn't find any utility that generates as3
> from TypeScript, I've just found the opposite "from as3 to TypeScript" ...
> I'll look again. If Josh had something and could share it, it would be nice.
>
>
>
> Thanks Carlos, I'm still here.
>
>
>
> Hiedra
>
>
>
> *De:* Carlos Rovira 
> *Enviado el:* miércoles, 17 de febrero de 2021 10:20
> *Para:* users@royale.apache.org
> *Asunto:* Re: Charts
>
>
>
> Hi Maria Jose
>
>
>
> I think there are some projects out there that allow generate as3 from
> typescript (one by Josh Tynjala), but I didn't use it so can't say much
> more. If you can generate an @extern library from that would be great.
>
>
>
>
>
>
>
> El mar, 16 feb 2021 a las 19:58, Maria Jose Esteve ()
> escribió:
>
> Hi,
>
> @Piotr, @Carlos, I have the ECharts typedefs in TypeScript, could we
> create an assembly that we can use directly in Royale?
>
> Could I try to create it?
>
>
>
> Hiedra
>
>
>
> *De:* Piotr Zarzycki 
> *Enviado el:* lunes, 27 de julio de 2020 17:31
> *Para:* users@royale.apache.org
> *Asunto:* Re: Charts
>
>
>
> Hi Carlos,
>
>
>
> I didn't create typedefs and I won't have time for that - unless I will
> get some direct task to do that. I have simply injected library trough
> index.html and created AS3 classes which wrap up ECharts library. - Anyone
> can do that in their app. - I just wanted to get information out that -
> ECharts is working nicely with Royale.
>
>
>
> Thanks,
>
> Piotr
>
>
>
>
>
>
>
> pon., 27 lip 2020 o 17:18 Carlos Rovira 
> napisał(a):
>
> Hi Piotr, Maria,
>
>
>
> I think we should have an ECharts library in Royale. In this case, I don't
> see the point for old Flex charts, and others here (like Chris Dutz)
> already showed interest in it. What do you think about adding your current
> library effort to Royale? I think many others here could be interested in
> contributing to it.
>
>
>
> If there's some client restrictions, I think we should plan to add our own.
>
>
>
> Thanks!
>
>
>
> Carlos
>
>
>
>
>
>
>
> El lun., 27 jul. 2020 a las 15:25, Piotr Zarzycki (<
> piotrzarzyck...@gmail.com>) escribió:
>
> Hi Maria,
>
>
>
> I don't think that anyone put effort to emulate mx Charts. What's more it
> will be difficult to mix them with Jewel, due to CSS conflicts - it's
> probably doable, but I doubt anyone tried.
>
>
>
> In our application I didn't even consider using any Charts from Royale -
> I went with usage of Apache ECharts [1] - I have finished integrating it
> with our Jewel app - it's not released yet, but in terms of integration it
> wasn't too difficult. Maybe this could be your solution.
>
>
>
> [1] https://echarts.apache.org/
>
>
>
> Thanks,
>
> Piotr
>
>
>
> pon., 27 lip 2020 o 13:12 Maria Jose Esteve 
> napisał(a):
>
> Hello,
>
> I have to make several Charts (bar and pie) and I was looking at the
> examples included in the SDK.
>
>
>
> I am doing tests, in my Jewel Application implementing crux, with the
> Basic Chart controls but I have problems with the dataproviders. Before
> continuing I wanted to ask you a question ... could you use the mx charts?
>
>
>
> Thank you
>
>
>
>
> --
>
> *Piotr Zarzycki *
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>
>
>
>
> --
>
> Carlos Rovira
>
> http://about.me/carlosrovira
>
>
>
>
>
>
> --
>
> *Piotr Zarzycki *
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>
>
>
>
> --
>
> Carlos Rovira
>
> Apache Member & Apache Royale PMC
>
> *Apache Software Foundation*
>
> http://about.me/carlosrovira
>
>
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Jewel List Question

2021-02-17 Thread Carlos Rovira
Hi Bilbo,

ok I'll try to do it, since I find it interesting and worth the effort. But
I'm so bloated with many things that it is difficult to get to all for just
one man.

One thing you can do is to apply the CSS selectors I give you. Read about
it on how to use it and apply in Royale creating a CSS style and applying
to your component using "className" property. The Royale world is more open
and easy to work than flex so while you're using AS3/MXML you have access
to all the browser things available.

El mar, 16 feb 2021 a las 21:28, Bilbosax ()
escribió:

> Carlos, at this point, I'm going to have to let you get to adding this
> feature when you can find some spare time.  I do think that it would be
> worth the effort though, because people on the web definitely utilize
> scrollable image galleries that snap from image to image.  I want to use it
> for a real estate app.  Until then, I will try to find an acceptable
> workaround.
>
> I would be more than happy to contribute at some point, but I believe
> documentation might be a better way for me to contribute.  When the water
> gets deep, I am somewhat of an amateur.  I have never had any formal
> software training in school, and so I am more of a "user" of software tools
> than a developer of software tools.  I have never had to make my own class
> for anything yet.  So I know enough to get work done, but just enough to be
> dangerous.  I wouldn't have a clue how to get started on a regular class,
> let alone how to start a bead that interfaces with CSS and Javascript
> somehow, and using all the implementations and code practices that you pros
> use.  You would get something from me that looked like tornado hit it and
> have to rework it yourself anyway ;)
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Charts

2021-02-17 Thread Carlos Rovira
Hi Maria Jose

I think there are some projects out there that allow generate as3 from
typescript (one by Josh Tynjala), but I didn't use it so can't say much
more. If you can generate an @extern library from that would be great.



El mar, 16 feb 2021 a las 19:58, Maria Jose Esteve ()
escribió:

> Hi,
>
> @Piotr, @Carlos, I have the ECharts typedefs in TypeScript, could we
> create an assembly that we can use directly in Royale?
>
> Could I try to create it?
>
>
>
> Hiedra
>
>
>
> *De:* Piotr Zarzycki 
> *Enviado el:* lunes, 27 de julio de 2020 17:31
> *Para:* users@royale.apache.org
> *Asunto:* Re: Charts
>
>
>
> Hi Carlos,
>
>
>
> I didn't create typedefs and I won't have time for that - unless I will
> get some direct task to do that. I have simply injected library trough
> index.html and created AS3 classes which wrap up ECharts library. - Anyone
> can do that in their app. - I just wanted to get information out that -
> ECharts is working nicely with Royale.
>
>
>
> Thanks,
>
> Piotr
>
>
>
>
>
>
>
> pon., 27 lip 2020 o 17:18 Carlos Rovira 
> napisał(a):
>
> Hi Piotr, Maria,
>
>
>
> I think we should have an ECharts library in Royale. In this case, I don't
> see the point for old Flex charts, and others here (like Chris Dutz)
> already showed interest in it. What do you think about adding your current
> library effort to Royale? I think many others here could be interested in
> contributing to it.
>
>
>
> If there's some client restrictions, I think we should plan to add our own.
>
>
>
> Thanks!
>
>
>
> Carlos
>
>
>
>
>
>
>
> El lun., 27 jul. 2020 a las 15:25, Piotr Zarzycki (<
> piotrzarzyck...@gmail.com>) escribió:
>
> Hi Maria,
>
>
>
> I don't think that anyone put effort to emulate mx Charts. What's more it
> will be difficult to mix them with Jewel, due to CSS conflicts - it's
> probably doable, but I doubt anyone tried.
>
>
>
> In our application I didn't even consider using any Charts from Royale -
> I went with usage of Apache ECharts [1] - I have finished integrating it
> with our Jewel app - it's not released yet, but in terms of integration it
> wasn't too difficult. Maybe this could be your solution.
>
>
>
> [1] https://echarts.apache.org/
>
>
>
> Thanks,
>
> Piotr
>
>
>
> pon., 27 lip 2020 o 13:12 Maria Jose Esteve 
> napisał(a):
>
> Hello,
>
> I have to make several Charts (bar and pie) and I was looking at the
> examples included in the SDK.
>
>
>
> I am doing tests, in my Jewel Application implementing crux, with the
> Basic Chart controls but I have problems with the dataproviders. Before
> continuing I wanted to ask you a question ... could you use the mx charts?
>
>
>
> Thank you
>
>
>
>
> --
>
> *Piotr Zarzycki *
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>
>
>
>
> --
>
> Carlos Rovira
>
> http://about.me/carlosrovira
>
>
>
>
>
>
> --
>
> *Piotr Zarzycki *
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Graphing

2021-02-16 Thread Carlos Rovira
Hi,

There are many js Chart libraries out there that are amazing. One is
ECharts, but I discover one that I like even more and is called D3.JS [1].
ECharts put standard charts easy to use on Royale, but D3.JS allows to use
SVG to paint data graphs of any kind in a very cool low level way. So you
can paint almost what you want.

I think it could be very cool to create a D3.JS Royale library, but I have
no time currently to do so... I'm planning a Royale project that will use
graphs extensively and maybe could be a good time for this.

I recently used d3js in our new site here [2], if you want to see it in
action.

HTH

[1] https://d3js.org/
[2] https://codeoscopic.com/en/ (near the end of the page content) or
https://codeoscopic.com/en/investors/ (at the start)

El mar, 16 feb 2021 a las 12:14, Piotr Zarzycki ()
escribió:

> I believe Maria can help to provide you more information. She has examples
> outhere somewhere. I hope she respond here soon. :)
>
> I'm using ECharts in a different way a bit in Royale.
>
> wt., 16 lut 2021 o 11:52 Bilbosax  napisał(a):
>
>> Yes. Charting is exactly what I am talking about. I can't seem to find any
>> Royale examples. Are these mx or spark emulations  that I can look back to
>> older flex documentation to learn?
>>
>>
>>
>> --
>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>
>
>
> --
>
> Piotr Zarzycki
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Jewel List Question

2021-02-16 Thread Carlos Rovira
Hi Bilbo,

there's no scroll snapping actually, but I think it could be somehow easy
to implement it in a bead, so people wanting that just need to add the bead
to the list. Searching over the internet I see this [1], but I need to take
a look. Maybe it would need some tweak of "scrollArea.scrollTop" in the
ListView.

"scrollSnappingMode" could be as well a bead that add "scroll-snap-type"
and "scroll-snap-align"

"pageScrollingEnabled" is to scroll exactly "a page", and a page is the
current list view height?
We could create a bead called "ListPageScrolling" that add "
scroll-snap-points-y" maybe in combination of the other bead or as an
extension...

Would you want to try to implement this yourself and contribute to the
project as a Pull Request (PR) ?
Maybe it could sound complicated, but it seems that is more a work of
thinking about the correct structure and just use what is implemented in
browsers right now. If you can't I could see when I could give some time.
But we need to understand that this is OS and as users become contributors,
we'll make this project grow and be more rock solid over time. It's
important to get more users on board knowing how things are done and
contributing :)

The good thing in Royale is that we can combine Flex things with modern
browsers adventages (that are many) and get best of both worlds, that's
personally what I like from Royale.

[1] https://css-tricks.com/practical-css-scroll-snapping/

El mar, 16 feb 2021 a las 2:17, Bilbosax ()
escribió:

> Is there a way to provide scroll snapping in a Jewel List? Flex's list
> controls have parameters like pageScrollingEnabled and scrollSnappingMode
> so
> that when a user is scrolling a list, it will snap from one list item to
> another, like flipping through a photo gallery.  Is this possible in
> Royale?
>
> I see that there is a scrollToIndex property that could be useful, but in
> that case, you would have to have a way to remove the scrollbar or make it
> "stick" in position until you chose to increment the scrollToIndex property
> with perhaps a "next" button.
>
> Any thoughts?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: List - Selectable

2021-02-14 Thread Carlos Rovira
Hi Bilbo, use instead a j:DataContainer. List is an extension that
implements selection.

El dom, 14 feb 2021 a las 20:25, Bilbosax ()
escribió:

> I have a list that I just want to show data, but I do not want it to
> highlight when moused-over or clicked.  I tried adding a selectablebead to
> it and setting selectable to false with no luck.  Is it possible to have a
> list that is not selectable and will not highlight?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Best choice for Responsive Jewel App using forms.

2021-02-14 Thread Carlos Rovira
Forgot to said that ApplicationResponsiveView was renamed to ResponsiveView,
Responsive in Jewel use to mean width is 100% by default since you want
width be managed by the app container (in this case the browser)

About source code do you mean the "View source code" link adobe use to add
to the context menu? Yes, I remember see that in earlier example, but can't
say so much about it. I made a search over the code and found this bead:



Check in /examples for some uses of it in example apps




El dom, 14 feb 2021 a las 19:58, Carlos Rovira ()
escribió:

> Hi David,
>
> I think you're looking to the wrong file version. You must always point to
> the latest.
>
>
> https://github.com/apache/royale-asjs/blob/7910e4f59ecaf691f5e16f7e40ee526245c977e7/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml#L307
>
>
> https://github.com/apache/royale-asjs/blob/7910e4f59ecaf691f5e16f7e40ee526245c977e7/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml#L56
>
>
>
> El dom, 14 feb 2021 a las 12:38, David Slotemaker de Bruine (<
> dslotema...@vicensvives.com>) escribió:
>
>> Hi Carlos,
>>
>> I have looked at MainContent.mxml  in TDJ and can see there is
>> a BrowserOrientation bead (really cool) and that it is
>> using ApplicationResponsiveView as the parent container instead of
>> the Application tag (what "Responsive" things does this this tag do?)
>>
>> But I can't find any reference to ResponsiveResizeListener in the file.
>>
>> Additional question, can you save source code for a view to an external
>> .as file like you could in Flex? I can't see a "src" property.
>>
>> Cheers,
>>
>> David
>>
>>
>>
>>
>> On Fri, 12 Feb 2021 at 20:34, Carlos Rovira 
>> wrote:
>>
>>> Hi David,
>>>
>>> About the example cool!, if you want to make a Blog example to be added
>>> that will be great! It should be a minimum code (just one file will the
>>> simple example). You can send me and I can transform.
>>>
>>> About "ResponsiveResizeListener" you can see it working in TDJ's
>>> MainContent.mxml
>>>
>>>
>>>
>>> El vie, 12 feb 2021 a las 17:08, David Slotemaker de Bruine (<
>>> dslotema...@vicensvives.com>) escribió:
>>>
>>>> Hi Carlos,
>>>>
>>>> Excellent, I have the grid view doing exactly as I need, once I get the
>>>> datagrid at the bottom of the resizing I could send you the app to use as
>>>> an example on the site if you like.
>>>>
>>>> I am having trouble finding any info about: ResponsiveResizeListener
>>>>
>>>>   I need to add it as a bead I guess? How do I go about listening for
>>>> the different events? Where can I find documentation about this?
>>>>
>>>> Cheers,
>>>>
>>>> David
>>>>
>>>>
>>>>
>>>> On Fri, 12 Feb 2021 at 11:43, Carlos Rovira 
>>>> wrote:
>>>>
>>>>> Ok David,
>>>>>
>>>>> So think on Grid as a "row", then you add inside GridCells, 1 per
>>>>> column
>>>>> Since you want 3 columns on desktop and tablet you must put the
>>>>> numerator/denominator for both to 1/3 while for mobile will be 1/1 ok?
>>>>> That's just for main responsiveness of columns in different devices
>>>>> Now you need to add to each GridCell the content. As I said, don't use
>>>>> FormItem for now, use here HGroup or VGroup and inside a Label and a
>>>>> control.
>>>>>
>>>>> You need to start playing with it to see how it looks and then start
>>>>> to find the best layout that fits what you want. You'll see that
>>>>> responsiveness is a world itself, but the main thing is to try to find a
>>>>> few things that work for your use case.
>>>>>
>>>>> HTH
>>>>>
>>>>>
>>>>> El vie, 12 feb 2021 a las 11:06, David Slotemaker de Bruine (<
>>>>> dslotema...@vicensvives.com>) escribió:
>>>>>
>>>>>> Hi Carlos,
>>>>>>
>>>>>> Thanks, yes I meant column instead of row. I will have a look at the
>>>>>> examples you sent and try them out!
>>>>>>
>>>>>> David
>>>>>>
>>>>>> On Fri, 12 Feb 2021 at 10:10, Carlos Rovira 
>>>>>> wrote:
>>

Re: Best choice for Responsive Jewel App using forms.

2021-02-14 Thread Carlos Rovira
Hi David,

I think you're looking to the wrong file version. You must always point to
the latest.

https://github.com/apache/royale-asjs/blob/7910e4f59ecaf691f5e16f7e40ee526245c977e7/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml#L307

https://github.com/apache/royale-asjs/blob/7910e4f59ecaf691f5e16f7e40ee526245c977e7/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml#L56



El dom, 14 feb 2021 a las 12:38, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> I have looked at MainContent.mxml  in TDJ and can see there is
> a BrowserOrientation bead (really cool) and that it is
> using ApplicationResponsiveView as the parent container instead of
> the Application tag (what "Responsive" things does this this tag do?)
>
> But I can't find any reference to ResponsiveResizeListener in the file.
>
> Additional question, can you save source code for a view to an external
> .as file like you could in Flex? I can't see a "src" property.
>
> Cheers,
>
> David
>
>
>
>
> On Fri, 12 Feb 2021 at 20:34, Carlos Rovira 
> wrote:
>
>> Hi David,
>>
>> About the example cool!, if you want to make a Blog example to be added
>> that will be great! It should be a minimum code (just one file will the
>> simple example). You can send me and I can transform.
>>
>> About "ResponsiveResizeListener" you can see it working in TDJ's
>> MainContent.mxml
>>
>>
>>
>> El vie, 12 feb 2021 a las 17:08, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi Carlos,
>>>
>>> Excellent, I have the grid view doing exactly as I need, once I get the
>>> datagrid at the bottom of the resizing I could send you the app to use as
>>> an example on the site if you like.
>>>
>>> I am having trouble finding any info about: ResponsiveResizeListener
>>>
>>>   I need to add it as a bead I guess? How do I go about listening for
>>> the different events? Where can I find documentation about this?
>>>
>>> Cheers,
>>>
>>> David
>>>
>>>
>>>
>>> On Fri, 12 Feb 2021 at 11:43, Carlos Rovira 
>>> wrote:
>>>
>>>> Ok David,
>>>>
>>>> So think on Grid as a "row", then you add inside GridCells, 1 per column
>>>> Since you want 3 columns on desktop and tablet you must put the
>>>> numerator/denominator for both to 1/3 while for mobile will be 1/1 ok?
>>>> That's just for main responsiveness of columns in different devices
>>>> Now you need to add to each GridCell the content. As I said, don't use
>>>> FormItem for now, use here HGroup or VGroup and inside a Label and a
>>>> control.
>>>>
>>>> You need to start playing with it to see how it looks and then start to
>>>> find the best layout that fits what you want. You'll see that
>>>> responsiveness is a world itself, but the main thing is to try to find a
>>>> few things that work for your use case.
>>>>
>>>> HTH
>>>>
>>>>
>>>> El vie, 12 feb 2021 a las 11:06, David Slotemaker de Bruine (<
>>>> dslotema...@vicensvives.com>) escribió:
>>>>
>>>>> Hi Carlos,
>>>>>
>>>>> Thanks, yes I meant column instead of row. I will have a look at the
>>>>> examples you sent and try them out!
>>>>>
>>>>> David
>>>>>
>>>>> On Fri, 12 Feb 2021 at 10:10, Carlos Rovira 
>>>>> wrote:
>>>>>
>>>>>> Hi David,
>>>>>>
>>>>>> First, please avoid FormItem use for now, I still need to do a major
>>>>>> refactor since the actual layout is not ok from many points of view. As a
>>>>>> temporal solution you can yse better a VGroup or HGroup for now.
>>>>>>
>>>>>> HorizontalFlow should be only be used for layouts like "tag clouds"
>>>>>> or similar where you want to "cascade" things to the next row or column,
>>>>>> but gaps are not usable for that kind of layout. TileHorizonalLayout is a
>>>>>> better implementation since is based on Flex Tile Layout and I think 
>>>>>> works
>>>>>> ok. I used it here [1]
>>>>>>
>>>>>> About "I would like the form take up 2 (or 3 rows)  on the desktop
>>>>>> and 1 on

Re: Flex Shrink...

2021-02-13 Thread Carlos Rovira
Hi Brian,

in order to understand better I'll need some kind of visual example to see
how it's affecting. Also, since this seems a bug that need to be discussed
and fixes, probably better to do this on a Github issue. Also if you have a
suggestion to try, that would be great. I think there we need to try over
TDJ to see if we see some side effects and also in any other examples we
can (like blog examples, todomvc,...)

Thanks Brian for show this flaw.

El sáb, 13 feb 2021 a las 0:48, Brian Raymes ()
escribió:

> I need some assistance with layouts. I think we have a problem with
> vertical layouts where it is applying flex-shrink to all children – which
> is breaking many of my views (especially on Mac/iOS) browsers.
>
>
>
> I keep finding this style on components that I don’t think it should
> belong, all because of some parent, or parent’s … parent’s .. component:
>
>
>
> .layout.vertical>* {
>
> flex: 0 1 auto;
>
> }
>
>
>
> This shrink causes item renderers and subcomponents to lose proper sizing
> and essentially collapse. Scroll bars stop working, etc.
>
>
>
> I’ve been continually fighting this and finding strange style overrides to
> stop it as I haven’t had time to dive in, but I am now starting to think
> this is a bigger bug.
>
>
>
> Thoughts?
>
>
>
>
>
> Brian
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Best choice for Responsive Jewel App using forms.

2021-02-12 Thread Carlos Rovira
Hi David,

About the example cool!, if you want to make a Blog example to be added
that will be great! It should be a minimum code (just one file will the
simple example). You can send me and I can transform.

About "ResponsiveResizeListener" you can see it working in TDJ's
MainContent.mxml



El vie, 12 feb 2021 a las 17:08, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> Excellent, I have the grid view doing exactly as I need, once I get the
> datagrid at the bottom of the resizing I could send you the app to use as
> an example on the site if you like.
>
> I am having trouble finding any info about: ResponsiveResizeListener
>
>   I need to add it as a bead I guess? How do I go about listening for the
> different events? Where can I find documentation about this?
>
> Cheers,
>
> David
>
>
>
> On Fri, 12 Feb 2021 at 11:43, Carlos Rovira 
> wrote:
>
>> Ok David,
>>
>> So think on Grid as a "row", then you add inside GridCells, 1 per column
>> Since you want 3 columns on desktop and tablet you must put the
>> numerator/denominator for both to 1/3 while for mobile will be 1/1 ok?
>> That's just for main responsiveness of columns in different devices
>> Now you need to add to each GridCell the content. As I said, don't use
>> FormItem for now, use here HGroup or VGroup and inside a Label and a
>> control.
>>
>> You need to start playing with it to see how it looks and then start to
>> find the best layout that fits what you want. You'll see that
>> responsiveness is a world itself, but the main thing is to try to find a
>> few things that work for your use case.
>>
>> HTH
>>
>>
>> El vie, 12 feb 2021 a las 11:06, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi Carlos,
>>>
>>> Thanks, yes I meant column instead of row. I will have a look at the
>>> examples you sent and try them out!
>>>
>>> David
>>>
>>> On Fri, 12 Feb 2021 at 10:10, Carlos Rovira 
>>> wrote:
>>>
>>>> Hi David,
>>>>
>>>> First, please avoid FormItem use for now, I still need to do a major
>>>> refactor since the actual layout is not ok from many points of view. As a
>>>> temporal solution you can yse better a VGroup or HGroup for now.
>>>>
>>>> HorizontalFlow should be only be used for layouts like "tag clouds" or
>>>> similar where you want to "cascade" things to the next row or column, but
>>>> gaps are not usable for that kind of layout. TileHorizonalLayout is a
>>>> better implementation since is based on Flex Tile Layout and I think works
>>>> ok. I used it here [1]
>>>>
>>>> About "I would like the form take up 2 (or 3 rows)  on the desktop and
>>>> 1 on Mobile.", maybe you want to say "columns" instead of "rows"?
>>>>
>>>> About Grid/GridCell. Please check this [2].
>>>>
>>>> About hiding columns in DataGrid, check [3]  at the end "Column
>>>> swapping", to remove a column or add it. So I think you could combine with
>>>> a "ResponsiveResizeListener" in order to add/remove columns at a
>>>> certain screen break point (mobile, tablet, desktop,...)
>>>>
>>>> HTH
>>>>
>>>> Carlos
>>>>
>>>> [1] https://github.com/codeoscopic/avant2-website
>>>> [2] https://github.com/apache/royale-asjs/issues/1070
>>>> [3] https://royale.apache.org/tourdejewel/#!datagrid_panel
>>>>
>>>>
>>>>
>>>> El jue, 11 feb 2021 a las 17:24, David Slotemaker de Bruine (<
>>>> dslotema...@vicensvives.com>) escribió:
>>>>
>>>>> Hi All,
>>>>>
>>>>> The app I am building has a lot of states and most states contain a
>>>>> large form, I am using Jewel.
>>>>>
>>>>> I would like to have a app header and footer and I would like the form
>>>>> take up 2 (or 3 rows)  on the desktop and 1 on Mobile.
>>>>>
>>>>> Looking at Tour de Jewel I see that there is a HorizontalFlow and
>>>>> HorizontalTile Containers, also the example seems to use a GridCell tag
>>>>> with some properties:
>>>>>
>>>>>  >>>> tabletNumerator="1" tabletDenominator="2" phoneNumerator="1"
>>>>>

Re: Best choice for Responsive Jewel App using forms.

2021-02-12 Thread Carlos Rovira
Ok David,

So think on Grid as a "row", then you add inside GridCells, 1 per column
Since you want 3 columns on desktop and tablet you must put the
numerator/denominator for both to 1/3 while for mobile will be 1/1 ok?
That's just for main responsiveness of columns in different devices
Now you need to add to each GridCell the content. As I said, don't use
FormItem for now, use here HGroup or VGroup and inside a Label and a
control.

You need to start playing with it to see how it looks and then start to
find the best layout that fits what you want. You'll see that
responsiveness is a world itself, but the main thing is to try to find a
few things that work for your use case.

HTH


El vie, 12 feb 2021 a las 11:06, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi Carlos,
>
> Thanks, yes I meant column instead of row. I will have a look at the
> examples you sent and try them out!
>
> David
>
> On Fri, 12 Feb 2021 at 10:10, Carlos Rovira 
> wrote:
>
>> Hi David,
>>
>> First, please avoid FormItem use for now, I still need to do a major
>> refactor since the actual layout is not ok from many points of view. As a
>> temporal solution you can yse better a VGroup or HGroup for now.
>>
>> HorizontalFlow should be only be used for layouts like "tag clouds" or
>> similar where you want to "cascade" things to the next row or column, but
>> gaps are not usable for that kind of layout. TileHorizonalLayout is a
>> better implementation since is based on Flex Tile Layout and I think works
>> ok. I used it here [1]
>>
>> About "I would like the form take up 2 (or 3 rows)  on the desktop and 1
>> on Mobile.", maybe you want to say "columns" instead of "rows"?
>>
>> About Grid/GridCell. Please check this [2].
>>
>> About hiding columns in DataGrid, check [3]  at the end "Column
>> swapping", to remove a column or add it. So I think you could combine with
>> a "ResponsiveResizeListener" in order to add/remove columns at a certain
>> screen break point (mobile, tablet, desktop,...)
>>
>> HTH
>>
>> Carlos
>>
>> [1] https://github.com/codeoscopic/avant2-website
>> [2] https://github.com/apache/royale-asjs/issues/1070
>> [3] https://royale.apache.org/tourdejewel/#!datagrid_panel
>>
>>
>>
>> El jue, 11 feb 2021 a las 17:24, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> Hi All,
>>>
>>> The app I am building has a lot of states and most states contain a
>>> large form, I am using Jewel.
>>>
>>> I would like to have a app header and footer and I would like the form
>>> take up 2 (or 3 rows)  on the desktop and 1 on Mobile.
>>>
>>> Looking at Tour de Jewel I see that there is a HorizontalFlow and
>>> HorizontalTile Containers, also the example seems to use a GridCell tag
>>> with some properties:
>>>
>>>  >> tabletNumerator="1" tabletDenominator="2" phoneNumerator="1"
>>> phoneDenominator="1">
>>>
>>>  are these specific to different user system (desktop, tablet, mobil)?
>>> How does it work?
>>>
>>> I tried putting the FormItems first in aHorizontalFlow and then in a
>>> HorizontalTile container, but didn't get the result I wanted (nothing
>>> flowed). I then tried putting the FormItems in two different Card
>>> Containers and this flowed well, but when there was a lot of horizontal
>>> space available the cards didn't expand to fill them.
>>>
>>> Below some of the forms is a Datagrid, is there a way to hide columns
>>> based on the size of the screen?
>>>
>>> Any pointers?
>>>
>>> Cheers,
>>>
>>> David
>>>
>>
>>
>> --
>>
>> Carlos Rovira
>>
>> Presidente Ejecutivo
>>
>> M: +34 607 22 60 05
>>
>> http://www.codeoscopic.com
>>
>>
>> AVISO LEGAL: La información contenida en este correo electrónico, y en su
>> caso en los documentos adjuntos, es información privilegiada para uso
>> exclusivo de la persona y/o personas a las que va dirigido. No está
>> permitido el acceso a este mensaje a cualquier otra persona distinta a los
>> indicados. Si Usted no es uno de los destinatarios, cualquier duplicación,
>> reproducción, distribución, así como cualquier uso de la información
>> contenida en él o cualquiera otra acción u omisión tomada en relación con
>> el mismo, está prohibida y puede

Re: Best choice for Responsive Jewel App using forms.

2021-02-12 Thread Carlos Rovira
Hi David,

First, please avoid FormItem use for now, I still need to do a major
refactor since the actual layout is not ok from many points of view. As a
temporal solution you can yse better a VGroup or HGroup for now.

HorizontalFlow should be only be used for layouts like "tag clouds" or
similar where you want to "cascade" things to the next row or column, but
gaps are not usable for that kind of layout. TileHorizonalLayout is a
better implementation since is based on Flex Tile Layout and I think works
ok. I used it here [1]

About "I would like the form take up 2 (or 3 rows)  on the desktop and 1 on
Mobile.", maybe you want to say "columns" instead of "rows"?

About Grid/GridCell. Please check this [2].

About hiding columns in DataGrid, check [3]  at the end "Column swapping",
to remove a column or add it. So I think you could combine with a "
ResponsiveResizeListener" in order to add/remove columns at a certain
screen break point (mobile, tablet, desktop,...)

HTH

Carlos

[1] https://github.com/codeoscopic/avant2-website
[2] https://github.com/apache/royale-asjs/issues/1070
[3] https://royale.apache.org/tourdejewel/#!datagrid_panel



El jue, 11 feb 2021 a las 17:24, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hi All,
>
> The app I am building has a lot of states and most states contain a large
> form, I am using Jewel.
>
> I would like to have a app header and footer and I would like the form
> take up 2 (or 3 rows)  on the desktop and 1 on Mobile.
>
> Looking at Tour de Jewel I see that there is a HorizontalFlow and
> HorizontalTile Containers, also the example seems to use a GridCell tag
> with some properties:
>
>   tabletNumerator="1" tabletDenominator="2" phoneNumerator="1"
> phoneDenominator="1">
>
>  are these specific to different user system (desktop, tablet, mobil)? How
> does it work?
>
> I tried putting the FormItems first in aHorizontalFlow and then in a
> HorizontalTile container, but didn't get the result I wanted (nothing
> flowed). I then tried putting the FormItems in two different Card
> Containers and this flowed well, but when there was a lot of horizontal
> space available the cards didn't expand to fill them.
>
> Below some of the forms is a Datagrid, is there a way to hide columns
> based on the size of the screen?
>
> Any pointers?
>
> Cheers,
>
> David
>


-- 

Carlos Rovira

Presidente Ejecutivo

M: +34 607 22 60 05

http://www.codeoscopic.com


AVISO LEGAL: La información contenida en este correo electrónico, y en su
caso en los documentos adjuntos, es información privilegiada para uso
exclusivo de la persona y/o personas a las que va dirigido. No está
permitido el acceso a este mensaje a cualquier otra persona distinta a los
indicados. Si Usted no es uno de los destinatarios, cualquier duplicación,
reproducción, distribución, así como cualquier uso de la información
contenida en él o cualquiera otra acción u omisión tomada en relación con
el mismo, está prohibida y puede ser ilegal. En dicho caso, por favor,
notifíquelo al remitente y proceda a la eliminación de este correo
electrónico, así como de sus adjuntos si los hubiere. En cumplimiento de la
legislación española vigente en materia de protección de datos de carácter
personal y del RGPD 679/2016 le informamos que sus datos están siendo
objeto de tratamiento por parte de CODEOSCOPIC S.A. con CIF A85677342, con
la finalidad del mantenimiento y gestión de relaciones comerciales y
administrativas. La base jurídica del tratamiento es el interés legítimo de
la empresa. No se prevén cesiones de sus datos, salvo que exista una
obligación legal. Para ejercitar sus derechos puede dirigirse a CODEOSCOPIC
S.A., domiciliada en Paseo de la Habana, 9-11, 28036 de Madrid (MADRID), o
bien por email a d...@codeoscopic.com, con el fin de ejercer sus derechos de
acceso, rectificación, supresión (derecho al olvido), limitación de
tratamiento, portabilidad de los datos, oposición, y a no ser objeto de
decisiones automatizadas, indicando como Asunto: “Derechos Ley Protección
de Datos”, y adjuntando fotocopia de su DNI. Delegado de protección de
datos: d...@codeoscopic.com


Re: Jewel Label with Icon

2021-02-12 Thread Carlos Rovira
Hi Safrizal,

no. You can create composing an icon and a label, or create the component
you suggest and submit a PR to add to Jewel. Also you can do a separate PR
to add a simple example in TDJ's LabelPlayGround.mxml . I'll be glad to add
it.

Thanks

El vie, 12 feb 2021 a las 7:12, Safrizal () escribió:

> Hi CR2,
>
> is there jewel component like a Label with Icon ?
>
> public class IconLabel extends Label implements IIconSupport
> {
> }
>
>
> 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


Re: Remote Object Call Performance and Fault Event

2021-02-10 Thread Carlos Rovira
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


Re: Remote Object Call Performance and Fault Event

2021-02-10 Thread Carlos Rovira
XRoyaleJS.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 nee

Re: Remote Object Call Performance and Fault Event

2021-02-10 Thread Carlos Rovira
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 se

Re: Remote Object Call Performance and Fault Event

2021-02-09 Thread Carlos Rovira
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 
>>>> 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 using JS only version of SDK ? Did you
>>>>>> download
>>>>>> > it trough Moonshine SDK Installer ?
>>>>>> >
>>>>>> > wt., 9 lut 2021 o 10:32 David Slotemaker de Bruine <
>>&

Re: Remote Object Call Performance and Fault Event

2021-02-09 Thread Carlos Rovira
t;>
>>>> > >>>
>>>> > >>> On Tue, 9 Feb 2021 at 09:57, Piotr Zarzycki <
>>>> piotrzarzyck...@gmail.com>
>>>> > >>> wrote:
>>>> > >>>
>>>> > >>>> Hi David,
>>>> > >>>>
>>>> > >>>> This is weird. Could you check in project Settings - section
>>>> “Run” that
>>>> > >>>> you have selected Platform - “JS”
>>>> > >>>>
>>>> > >>>> Piotr
>>>> > >>>>
>>>> > >>>> On Tue, 9 Feb 2021 at 08:57, David Slotemaker de Bruine <
>>>> > >>>> dslotema...@vicensvives.com> wrote:
>>>> > >>>>
>>>> > >>>>> Hi Carlos, Thanks,
>>>> > >>>>>
>>>> > >>>>> I have download the SWF and JS verison of .98 and changed the
>>>> paths in
>>>> > >>>>> Moonshine.
>>>> > >>>>>
>>>> > >>>>> Moonshine is giving me "Definition cannot be found" source
>>>> errors for
>>>> > >>>>> the mx imports and on building
>>>> > >>>>> I am getting:
>>>> > >>>>>
>>>> > >>>>> This SDK does not contains playerglobal.swc in
>>>> > >>>>> frameworks\libs\player\11.7\playerglobal.swc.
>>>> > >>>>>
>>>> > >>>>> The download think has been removed by Adobe. Where can I get
>>>> the .swc
>>>> > >>>>> and where do I put it so I can compile?
>>>> > >>>>>
>>>> > >>>>> Cheers.
>>>> > >>>>>
>>>> > >>>>> David
>>>> > >>>>>
>>>> > >>>>> On 2021/02/08 16:21:22, Carlos Rovira 
>>>> > >>>>> wrote:
>>>> > >>>>> > Hi David,
>>>> > >>>>> >
>>>> > >>>>> > don't use js:RemoteObject, use mx:RemoteObject from MXRoyale.
>>>> The
>>>> > >>>>> emulation
>>>> > >>>>> > version is far more complete while the first one still
>>>> requires more
>>>> > >>>>> work
>>>> > >>>>> > to be done. mx:RemoteObject can be considered 96% or so
>>>> completed ;)
>>>> > >>>>> >
>>>> > >>>>> > About the timing issue, please first use mx version and then
>>>> we
>>>> > >>>>> could see
>>>> > >>>>> > if the problem continues.
>>>> > >>>>> >
>>>> > >>>>> > Also, think that we have "Virtual" layout versions, although
>>>> Jewel
>>>> > >>>>> > VirtualDataGrid is still not complete.
>>>> > >>>>> > If you don't need things like item renderer editing or column
>>>> > >>>>> ordering, I
>>>> > >>>>> > always recommend to use a simple Jewel List or VirtualList
>>>> with an
>>>> > >>>>> item
>>>> > >>>>> > renderer and a header, since is far simpler and performant.
>>>> In Flex
>>>> > >>>>> we used
>>>> > >>>>> > to overuse DataGrids.
>>>> > >>>>> >
>>>> > >>>>> > HTH
>>>> > >>>>> >
>>>> > >>>>> > El lun, 8 feb 2021 a las 16:54, David Slotemaker de Bruine (<
>>>> > >>>>> > dslotema...@vicensvives.com>) escribió:
>>>> > >>>>> >
>>>> > >>>>> > > Hey Guys,
>>>> > >>>>> > >
>>>> > >>>>> > > I have managed to get a Remote Object Call working to our
>>>> current
>>>> > >>>>> BlazeDS
>>>> > >>>>> > > backend using Jewel UI and js:RemoteObject, Great work
>>>> getting
>>>> > >>>>> that done!
>>>> >

Re: Remote Object Call Performance and Fault Event

2021-02-08 Thread Carlos Rovira
Hi David,

don't use js:RemoteObject, use mx:RemoteObject from MXRoyale. The emulation
version is far more complete while the first one still requires more work
to be done. mx:RemoteObject can be considered 96% or so completed ;)

About the timing issue, please first use mx version and then we could see
if the problem continues.

Also, think that we have "Virtual" layout versions, although Jewel
VirtualDataGrid is still not complete.
If you don't need things like item renderer editing or column ordering, I
always recommend to use a simple Jewel List or VirtualList with an item
renderer and a header, since is far simpler and performant. In Flex we used
to overuse DataGrids.

HTH

El lun, 8 feb 2021 a las 16:54, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Hey Guys,
>
> I have managed to get a Remote Object Call working to our current BlazeDS
> backend using Jewel UI and js:RemoteObject, Great work getting that done!
>
> Some questions:
>
> I have make the call twice, the first one always returns a Error message
> with the fault string "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.". I also noticed
> this event doesn't map the same way to the Fault event in Flex. The Fault
> event in Flex has a faultString and rootCause property but the Royal
> version doesn't have those 2 properties. How can I avoid the double call
> and get the faultString property to show to the user?
>
> The drawing of the result to the datagrid takes a massive amount of time,
> the result is 500 object long, but it takes upwards of 40 seconds to fill
> the datagrid, its mxml is:
>
>   
> 
>  label="Codigo" dataField="notesCliente" columnWidth="100"/>
>  label="Nombre" dataField="nombre" columnWidth="200"/>
>  label="Poblacion" dataField="poblacionNombre" columnWidth="200"/>
>  label="GPS" dataField="direccionLatLong" columnWidth="100"/>
>  label="Mail" dataField="mail" columnWidth="100"/>
>  label="Tlfno" dataField="tlfno" columnWidth="100"/>
>  label="Cod.Admin" dataField="adminCliente" columnWidth="100"/>
> 
> 
>
> Anything I can do to speed it up?
>
> Cheers,
>
> David
>
>
>
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: ArrayCollection

2021-02-08 Thread Carlos Rovira
Hi David,
if you use Jewel UI set you need to use ArrayList instead of
ArrayCollection, and you need to run the following line at the start of
your app: registerClassAlias("flex.messaging.io.ArrayCollection",
ArrayList);
If you use Emulation (MXRoyale) you can stick with ArrayCollection, and you
don't needed that line.

HTH



El lun, 8 feb 2021 a las 9:27, Maria Jose Esteve ()
escribió:

> Hello david,
> You have to use ArrayList
>
> Hiedra
>
> -Mensaje original-
> De: David Slotemaker de Bruine 
> Enviado el: lunes, 8 de febrero de 2021 8:34
> Para: users@royale.apache.org
> Asunto: ArrayCollection
>
> Hi All,
>
> I did a search on the new group but only came up with suggestions as to
> what I have already.
>
> In the Flex app I am (semi) porting I have a constants file (and others)
> that have vars pf type ArrayCollection declared.
>
> During the initialize event in my main Royal app I am calling:
>
> registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
>
>  I have
>
> 
>
> declared in the J beads in the main app.
>
> But I am getting:
>
>  68 Error: Call to a possibly undefined method ArrayCollection for the
> constants.as file.
>
> Do I need to register that alias in each file? Can I even use Array
> Collection in .as files or do I need to replace them with ArrayList?
>
> Cheers.
>
> David
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Garbage Collection Problem

2021-02-06 Thread Carlos Rovira
Hi Brian,

The "RemoveAllItemRendererForArrayListData" is a bead in charge of the
removal of all renderers when use "removeAll()" method. So if you don't
plan to do a removeAll, you can remove it. In early days each method (add,
remove, removeAll and update) was in a bead, but removeAll never was
refactored since it is not used always.

The rest commented can be removed since are for Basic version, Jewel will
not use it (But you already have commented).

Regarding your problem. It's clear that there's a memory leak, and some
listeners are hanging, so the items you remove are still there, and you're
creating new ones. To locate the source of the problem you change
temporarily to a basic renderer, to see if the problem persists. If that's
the case, the problem will be in some of the components in Jewel or Basic
in place. If not, the problem will be in your custom renderer. Another
thing to try is to avoid in your test ArrayListView and go with ArrayList
to see if the ALV can be the cause of the problem. As well check if the use
of "CollectionChangeUpdateForArrayListData" with ArrayListView, if that's
completely compatible or we need to do a new one for the later.

IOW, in these kinds of situations try to reduce to the most basic case
where the problem does not appear and grow up until you get the problem
again to localize the source of the problem.

HTH


El sáb, 6 feb 2021 a las 3:34, Brian Raymes ()
escribió:

> Hi all,
>
>
>
> I’m having an issue that I can’t seem to wrap my head around related to
> the *lack* of garbage collection.
>
>
>
> I have a status screen that displays a somewhat complicated list of items
> in a DataContainer.
>
>
>
> When this screen is viewed, it polls the backend (every second) for an
> updated list of data that is converted into an ArrayListView and bound to a
> DataContainer with a custom renderer.
>
>
>
> The view updates exactly as expected, but the problem is, the application
> memory footprint grows very fast (several MB per second), and never seems
> to perform any garbage collection what-so-ever. Even when I stop the
> polling.
>
>
>
> As for code, here is a small snippet. It’s fairly simple.
>
>
>
> private function onFindAllAgents(event:ResultEvent):void
>
> {
>
> agents = new ArrayListView(event.result as ArrayList);
>
> agents.sort = new Sort([new SortField("sortLevel", false,
> false, true)]);
>
> agents.refresh();
>
> }
>
>
>
>
>
> 
> dataProvider="{agents}"
>
> itemRenderer=
> "com.teo.view.acdsupervisor.renderers.AgentItemRenderer">
>
>
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> 
>
>
>
> As you can see, I’ve been playing around with other beads, but I’m quite
> sure what they do, or if they are even necessary.
> CollectionChangeUpdateForArrayListData  is necessary for ArrayListView
> (probably should be renamed…), but I don’t understand the others.
>
>
>
> Is there something I am missing?
>
>
>
> Any help will be greatly appreciated!
>
>
>
> Brian
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Error in extension -AS3 & MXML for VSCode- after upgrading VSCode to version 1.53.0

2021-02-06 Thread Carlos Rovira
Hi,
all pointers goes to something in your environment, since the rest of us
are not having any issues (for what others say). So you should try to avoid
anything on your side that are custom personalization. Maybe you have
something interfering that you don't think its the problem. You should put
the minimum and then grow up your environment until the problem shows up
again

El vie, 5 feb 2021 a las 20:38, Maria Jose Esteve ()
escribió:

> Hi Carlos. I'm still the same. I have uninstalled all the extensions, I
> have uninstalled the vscode, I have installed it in another location, I
> have updated java ... I don't know what happens to me, but I can't work. (I
> can compile the project with maven without problems, but of course ... it
> is a mess to work like this)
>
> I've been looking for information in forums all day but nothing works.
>
>
>
> I'm going to put an issue in bowlerhatllc to see if someone can help me or
> give me a clue.
>
>
>
> I have the PR of the bead BadgeWithMouseClick ready to send but I wanted
> to check everything before (I propose an example in the TDJ as well) 
>
>
>
> Thank you.
>
> Hiedra
>
>
>
> *De:* Carlos Rovira 
> *Enviado el:* viernes, 5 de febrero de 2021 19:47
> *Para:* users@royale.apache.org
> *Asunto:* Re: Error in extension -AS3 & MXML for VSCode- after upgrading
> VSCode to version 1.53.0
>
>
>
> HI,
>
>
>
> I upgrade too and I'm not finding any issue. If that helps...
>
>
>
> El vie, 5 feb 2021 a las 10:54, Maria Jose Esteve ()
> escribió:
>
> In case the same thing happens to someone, ...
>
> I have discovered something else ...
>
> Opening the developer tools, in vscode, I see the following errors: [
> https://drive.google.com/file/d/1Qbtut5EYNBPe5e0OmUs89LIEg2k2ON86/view?usp=sharing
> ]
>
>
>
> Some messages have been moved to the Issues panel.
> View issues
>
> notificationsAlerts.ts:40 Internal error.
>
> notificationsAlerts.ts:40 The ActionScript & MXML extension failed to
> start.
>
> notificationsAlerts.ts:40 Couldn't start client ActionScript & MXML
> Language Server
>
> onDidChangeNotification @notificationsAlerts.ts:40
>
> DevTools failed to load SourceMap: Could not load content for
> https://ticino.blob.core.windows.net/sourcemaps/8490d3d…/node_modules/windows-process-tree/lib/index.js.map:
> HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
>
> 
>
> << placing me in “View issues”:
>
> ​
>
> Indicate whether to send a cookie in a cross-site request by specifying
> its SameSite attribute
>
> Because a cookie's SameSite attribute was not set or is invalid, it
> defaults to SameSite=Lax, which will prevent the cookie from being sent in
> a cross-site request in a future version of the browser. This behavior
> protects user data from accidentally leaking to third parties and
> cross-site request forgery.
>
>
>
> Resolve this issue by updating the attributes of the cookie:
>
> Specify SameSite=None and Secure if the cookie should be sent in
> cross-site requests. This enables third-party use.
>
> Specify SameSite=Strict or SameSite=Lax if the cookie should not be sent
> in cross-site requests
>
>
>
> 1 cookie
>
> NameDomain & Path
>
> VstsSession  .visualstudio.com/
>
> Learn more: SameSite cookies explained
>
>
>
> I don't know what could have changed in my system from one minute to the
> next ... I'm still investigating
>
>
>
> Hiedra
>
>
>
> -Mensaje original-
> De: Maria Jose Esteve
> Enviado el: viernes, 5 de febrero de 2021 9:23
> Para: users@royale.apache.org
> Asunto: RE: Error in extension -AS3 & MXML for VSCode- after upgrading
> VSCode to version 1.53.0
>
>
>
> Hi Bilbosax, I'm still the same, with the same error. I'm going to
> reinstall the vscode to see if it solves. The truth is that I don't
> understand what happened, he has gone crazy.
>
>
>
> Hiedra
>
>
>
> -Mensaje original-
>
> De: Bilbosax 
>
> Enviado el: viernes, 5 de febrero de 2021 4:02
>
> Para: users@royale.apache.org
>
> Asunto: Re: Error in extension -AS3 & MXML for VSCode- after upgrading
> VSCode to version 1.53.0
>
>
>
> My VS Code updated to 1.53.0 today.  I have been using it all day with no
> issues.  Restarted it once and it still seems stable.
>
>
>
>
>
>
>
> --
>
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
>
>
>
> --
>
> Carlos Rovira
>
> Apache Member & Apache Royale PMC
>
> *Apache Software Foundation*
>
> http://about.me/carlosrovira
>
>
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Error in extension -AS3 & MXML for VSCode- after upgrading VSCode to version 1.53.0

2021-02-05 Thread Carlos Rovira
HI,

I upgrade too and I'm not finding any issue. If that helps...

El vie, 5 feb 2021 a las 10:54, Maria Jose Esteve ()
escribió:

> In case the same thing happens to someone, ...
>
> I have discovered something else ...
>
> Opening the developer tools, in vscode, I see the following errors: [
> https://drive.google.com/file/d/1Qbtut5EYNBPe5e0OmUs89LIEg2k2ON86/view?usp=sharing
> ]
>
>
>
> Some messages have been moved to the Issues panel.
> View issues
>
> notificationsAlerts.ts:40 Internal error.
>
> notificationsAlerts.ts:40 The ActionScript & MXML extension failed to
> start.
>
> notificationsAlerts.ts:40 Couldn't start client ActionScript & MXML
> Language Server
>
> onDidChangeNotification @notificationsAlerts.ts:40
>
> DevTools failed to load SourceMap: Could not load content for
> https://ticino.blob.core.windows.net/sourcemaps/8490d3d…/node_modules/windows-process-tree/lib/index.js.map:
> HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
>
> 
>
> << placing me in “View issues”:
>
> ​
>
> Indicate whether to send a cookie in a cross-site request by specifying
> its SameSite attribute
>
> Because a cookie's SameSite attribute was not set or is invalid, it
> defaults to SameSite=Lax, which will prevent the cookie from being sent in
> a cross-site request in a future version of the browser. This behavior
> protects user data from accidentally leaking to third parties and
> cross-site request forgery.
>
>
>
> Resolve this issue by updating the attributes of the cookie:
>
> Specify SameSite=None and Secure if the cookie should be sent in
> cross-site requests. This enables third-party use.
>
> Specify SameSite=Strict or SameSite=Lax if the cookie should not be sent
> in cross-site requests
>
>
>
> 1 cookie
>
> NameDomain & Path
>
> VstsSession  .visualstudio.com/
>
> Learn more: SameSite cookies explained
>
>
>
> I don't know what could have changed in my system from one minute to the
> next ... I'm still investigating
>
>
>
> Hiedra
>
>
>
> -Mensaje original-
> De: Maria Jose Esteve
> Enviado el: viernes, 5 de febrero de 2021 9:23
> Para: users@royale.apache.org
> Asunto: RE: Error in extension -AS3 & MXML for VSCode- after upgrading
> VSCode to version 1.53.0
>
>
>
> Hi Bilbosax, I'm still the same, with the same error. I'm going to
> reinstall the vscode to see if it solves. The truth is that I don't
> understand what happened, he has gone crazy.
>
>
>
> Hiedra
>
>
>
> -Mensaje original-
>
> De: Bilbosax 
>
> Enviado el: viernes, 5 de febrero de 2021 4:02
>
> Para: users@royale.apache.org
>
> Asunto: Re: Error in extension -AS3 & MXML for VSCode- after upgrading
> VSCode to version 1.53.0
>
>
>
> My VS Code updated to 1.53.0 today.  I have been using it all day with no
> issues.  Restarted it once and it still seems stable.
>
>
>
>
>
>
>
> --
>
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: mx:RemoteObject

2021-02-05 Thread Carlos Rovira
Hi David,

0.9.7 is too old. As Piotr says, is highly recommended to use a nightly
build until we release 0.9.8 at least. Many things where changed and fixed
since 0.9.7, so going that way you'll find that next SDK released will
break for sure your app.

About MX namespace: xmlns:mx="library://ns.apache.org/royale/mx"
If it doesn't work is because MXRoyale is not used in you config. For
example royale standard projects doesn't have MXRoyale by default and you
need to add depending on how you'r building (Maven, ANT, SDK, IDE,...)

Nightlys are here: https://royale.apache.org/get-involved/

About MX example please check this one:

https://github.com/apache/royale-asjs/tree/develop/examples/mxroyale/RemoteObjectAMFTest

and java:
https://github.com/apache/royale-asjs/tree/develop/examples/amf/SampleAmfWebApp

always start with a simple call to the back requesting a string, avoid
trying complex calls until you get the first one done.

Again please, search the dev and user list for many important clues to make
AMF work since we solve it for many others that came before you and most of
the time are the same problems that need to be known in order to succeed.

If you still have problems, then feel free to continue asking for help.

Best


El vie, 5 feb 2021 a las 17:47, Piotr Zarzycki ()
escribió:

> Royale is in beta state, so in order to be the most efficient and have all
> feature changes, fixes I would suggest you to try 0.9.8. Once we reach
> stable 1.0 you could switch to that and freeze your version on it.
>
> pt., 5 lut 2021 o 17:33 David Slotemaker de Bruine <
> dslotema...@vicensvives.com> napisał(a):
>
>> Thanks Piotr,
>>
>> I see where I am going wrong, I was using an example of the web which
>> uses mx:tags, but the one in the examples folder of the SDK uses js:tags. I
>> assumed (wrongly I guess) that the two SDKs where the same except that the
>> JS version only compiled to JS. I see this is not the case.
>>
>> As I am working with Flex 3 code and a BlazeDS backend is there any
>> advantage/disadvantage with working with the different SDK versions? Which
>> one would you suggest for me (I only want to output JS  HTML apps).
>>
>>
>>
>>
>>
>> On Fri, 5 Feb 2021 at 17:24, Piotr Zarzycki 
>> wrote:
>>
>>> And example which you are running is inside downloaded folder of 0.9.7 ?
>>>
>>> Can you try Nightly build ? You can easly download it trough the
>>> Moonshine SDK Installer and try example which comes with that ?
>>>
>>> pt., 5 lut 2021 o 17:22 David Slotemaker de Bruine <
>>> dslotema...@vicensvives.com> napisał(a):
>>>
>>>> 9.7 (js only)
>>>>
>>>> On Fri., 5 Feb. 2021, 17:17 Piotr Zarzycki, 
>>>> wrote:
>>>>
>>>>> Hi David,
>>>>>
>>>>> What version of SDK are you using ?
>>>>>
>>>>> pt., 5 lut 2021 o 17:14 David Slotemaker de Bruine <
>>>>> dslotema...@vicensvives.com> napisał(a):
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I am trying the RemoteObject example. I only have the JS version of
>>>>>> the SDK installed, and I am getting:
>>>>>>
>>>>>> >>>>>
>>>>>> and "Definition not found" for:
>>>>>>
>>>>>> import mx.rpc.AsyncToken;
>>>>>> import mx.rpc.Responder;
>>>>>> import mx.rpc.events.FaultEvent;
>>>>>> import mx.rpc.events.ResultEvent;
>>>>>>
>>>>>> I have "xmlns:mx="library://ns.apache.org/royale/mx" declared in the
>>>>>> Application tag.
>>>>>>
>>>>>> Is the reason it wont compile because I need the Flex version of the
>>>>>> SDK?? I am trying to connect to a BlazeDS backend,
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> David
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Piotr Zarzycki
>>>>>
>>>>
>>>
>>> --
>>>
>>> Piotr Zarzycki
>>>
>>
>>
>> --
>>
>> *David Slotemaker de Bruïne*
>> *Head of Educational Robotics*
>>
>>
>>
>> Av. Sarriá, 130 - 08017 Barcelona
>> <https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona=gmail=g>
>>
>>
>> T. +34 932 523 729 ext. 135
>>
>> dslotema...@vicensvives.com
>>
>
>
> --
>
> Piotr Zarzycki
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Getting started and issues

2021-02-05 Thread Carlos Rovira
For BlazeDS I recommend you to start checking the java backend example (in
examples/amf folder) and the mxroyale front.
Please search this list for AMF since we solved many issues and give many
clues for others starting with it.
Always start with a very simple call and then grow from there to more
complex things.

good luck!

El vie, 5 feb 2021 a las 16:18, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> Great! Thanks Carlos.
>
> I ended up doing it in Jewel, I like it better too! I am well on my way to
> creating a basic call to a BlazeDS backend.
>
> Wish me luck!
>
> David
>
> On Fri, 5 Feb 2021 at 16:10, Carlos Rovira 
> wrote:
>
>> Hi David,
>>
>> I just updated docs with your error reports. About the stacking of
>> components in js:View I think Basic View should be using absolute/basic
>> layout, so probably you'll need to wrap the inner components inside a
>> VGroup. Sorry not help mucho here since my domain is Jewel components and
>> although I know Basic I just can figure it out.
>>
>> Happy Royaling! :)
>>
>> El vie, 5 feb 2021 a las 14:17, David Slotemaker de Bruine (<
>> dslotema...@vicensvives.com>) escribió:
>>
>>> OK, the data wasn't showing up as I had js:DataGridColumns inside
>>> aj:DataGrid.
>>>
>>> I still sometimes get a "unkown property error for the datagrid
>>> component when assigning values but it now works.
>>>
>>> Thanks.
>>>
>>>
>>> On 2021/02/05 11:19:41, David Slotemaker de Bruine <
>>> dslotema...@vicensvives.com> wrote:
>>> > Thanks for the instructions on Moonshine, I can now debug! Cheers.
>>> >
>>> > The data was arriving OK (Currently the server is returning 403) to
>>> the datagrid (the scroll bar showed there is data) no text was shown in any
>>> of the cells nor the name of the project before the datagrid. What am I
>>> missing? . Is it a styles issue?
>>> >
>>> > Also on the last page of the tutorial you can view what the App should
>>> look like, but you can't see what the source should be. Who should I
>>> message abut that?
>>> >
>>> > Cheers,
>>> >
>>> > David
>>> >
>>> >
>>> > On 2021/02/05 10:22:03, Piotr Zarzycki 
>>> wrote:
>>> > > Hi David,
>>> > >
>>> > > If you do in Moonshine Build & Run - server is running - it's done.
>>> Next
>>> > > you can just do Build and refresh page which is opened. Sometimes it
>>> > > requires to have cache off.
>>> > >
>>> > > I would consider also using Nightly build of Royale. Maybe it is
>>> also worth
>>> > > to try Nightly build of Moonshine cause we are close to have release
>>> and
>>> > > it's quite stable now.
>>> > >
>>> > > I'm part of the team who is working on Moonshine IDE, so if you have
>>> any
>>> > > problems let me know.
>>> > >
>>> > > Thanks,
>>> > > Piotr
>>> > >
>>> > > pt., 5 lut 2021 o 11:06 David Slotemaker de Bruine <
>>> > > dslotema...@vicensvives.com> napisał(a):
>>> > >
>>> > > > Hi all,
>>> > > >
>>> > > > I hope this is the right place to post.  I have used Flex 3 and
>>> BlazeDS
>>> > > > extensively and would like to learn Royal, I am having a few issues
>>> > > > following the tutorial, I am using 0.9.7 with Moonshine as the IDE:
>>> > > >
>>> > > >
>>> > > >
>>> https://apache.github.io/royale-docs/create-an-application/application-tutorial
>>> > > >
>>> > > > Issues I have found:
>>> > > > I think the code here:
>>> > > >
>>> > > >
>>> > > >
>>> https://apache.github.io/royale-docs/create-an-application/application-tutorial/data-model
>>> > > >
>>> > > > needs to be updated as it refers to commitService.source instead of
>>> > > > commitService.url.
>>> > > > on the same page the url value should be:
>>> > > >
>>> > > >  commitsService.url = "https://api.github.com/repos/; +
>>> > > > repos[currentIndex] + "/commits";
>>> > > >
>>> > > > On this page:
>>> 

Re: Getting started and issues

2021-02-05 Thread Carlos Rovira
Hi David,

I just updated docs with your error reports. About the stacking of
components in js:View I think Basic View should be using absolute/basic
layout, so probably you'll need to wrap the inner components inside a
VGroup. Sorry not help mucho here since my domain is Jewel components and
although I know Basic I just can figure it out.

Happy Royaling! :)

El vie, 5 feb 2021 a las 14:17, David Slotemaker de Bruine (<
dslotema...@vicensvives.com>) escribió:

> OK, the data wasn't showing up as I had js:DataGridColumns inside
> aj:DataGrid.
>
> I still sometimes get a "unkown property error for the datagrid component
> when assigning values but it now works.
>
> Thanks.
>
>
> On 2021/02/05 11:19:41, David Slotemaker de Bruine <
> dslotema...@vicensvives.com> wrote:
> > Thanks for the instructions on Moonshine, I can now debug! Cheers.
> >
> > The data was arriving OK (Currently the server is returning 403) to the
> datagrid (the scroll bar showed there is data) no text was shown in any of
> the cells nor the name of the project before the datagrid. What am I
> missing? . Is it a styles issue?
> >
> > Also on the last page of the tutorial you can view what the App should
> look like, but you can't see what the source should be. Who should I
> message abut that?
> >
> > Cheers,
> >
> > David
> >
> >
> > On 2021/02/05 10:22:03, Piotr Zarzycki 
> wrote:
> > > Hi David,
> > >
> > > If you do in Moonshine Build & Run - server is running - it's done.
> Next
> > > you can just do Build and refresh page which is opened. Sometimes it
> > > requires to have cache off.
> > >
> > > I would consider also using Nightly build of Royale. Maybe it is also
> worth
> > > to try Nightly build of Moonshine cause we are close to have release
> and
> > > it's quite stable now.
> > >
> > > I'm part of the team who is working on Moonshine IDE, so if you have
> any
> > > problems let me know.
> > >
> > > Thanks,
> > > Piotr
> > >
> > > pt., 5 lut 2021 o 11:06 David Slotemaker de Bruine <
> > > dslotema...@vicensvives.com> napisał(a):
> > >
> > > > Hi all,
> > > >
> > > > I hope this is the right place to post.  I have used Flex 3 and
> BlazeDS
> > > > extensively and would like to learn Royal, I am having a few issues
> > > > following the tutorial, I am using 0.9.7 with Moonshine as the IDE:
> > > >
> > > >
> > > >
> https://apache.github.io/royale-docs/create-an-application/application-tutorial
> > > >
> > > > Issues I have found:
> > > > I think the code here:
> > > >
> > > >
> > > >
> https://apache.github.io/royale-docs/create-an-application/application-tutorial/data-model
> > > >
> > > > needs to be updated as it refers to commitService.source instead of
> > > > commitService.url.
> > > > on the same page the url value should be:
> > > >
> > > >  commitsService.url = "https://api.github.com/repos/; +
> > > > repos[currentIndex] + "/commits";
> > > >
> > > > On this page:
> > > >
> > > >
> https://apache.github.io/royale-docs/create-an-application/application-tutorial/build
> > > >
> > > > the mxml says the datagrid should be within a  tag, this
> gives
> > > > me a compiler error, I changed it to js:View but this makes all the
> > > > components sit on top of each other.
> > > >
> > > > My problems start when trying run the app from Moonshine, the first
> time
> > > > it opens correctly but fails to load any data and shows no error on
> the
> > > > console (using Chrome). The second time I compile I Moonshine says
> the HTTP
> > > > server is already running and I have to manually kill the Node
> server.
> > > >
> > > > Any tips for moving forward??
> > > >
> > > > Thank you
> > > >
> > > > David
> > > >
> > >
> > >
> > > --
> > >
> > > Piotr Zarzycki
> > >
> >
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: HorizontalScrollPolicy

2021-02-04 Thread Carlos Rovira
Hi Bilbo,

can you share a minimum code App that I can copy-paste in a local project
and try?


El mié, 3 feb 2021 a las 4:44, Bilbosax () escribió:

> I am laying out a lot of components inside of a ScrollableGrid.  I need it
> to
> scroll vertically, but not horizontally.  None of the components inside of
> the ScrollableGrid extend past the edge of the grid, but the horizontal
> scroller is displaying anyway.  Is there something like in Flex where you
> can turn of the horizontalScrollPolicy of the ScrollableGrid?
>
> Thanks!
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: EventListeners - Communicate Between Components

2021-01-31 Thread Carlos Rovira
I think the response I just did a few minutes ago is valid for this too.
In the end all views and components are hanging in a DOM tree (*ALL*), and
although you can listen for concrete components and methods, I think if you
go in a manual mode, you'll end doing some spaghetti code in the end. So I
recommend you add Crux to the mix, it's an amazing way to structure and
organize code with metodologic and communicate different parts. Far simpler
than other microframeworks like Cairngorm, and less invasive in your code.
Check the TODOMVC-CRUX example where the code is a very good way to see a
full small app with all things.

If you also use AMF and RemoteObject Crux gives you a very good way to
handle calls and responses from back end services too. That part is not
implemented in TodoMVC but if you go that way I can give you some code for
you to use

HTH

Carlos



El dom, 31 ene 2021 a las 8:20, Bilbosax ()
escribió:

> Or how about components that aren’t related in a tree at all, components
> that
> exists side by side? For instance, my app will have several central
> components that exist in several states in the main app. One has the job of
> collecting search criteria and calling remoteobject services. Another
> component will be an image and data viewer for the data. Once the first
> component collects the data, it will dispatch an event that the data is
> collected and processed. The main app will switch states to the viewer
> component, and the viewer component will download the images and format the
> appropriate data displays. But the data component and the viewer are
> totally
> separate and an event sent by one would not bubble up through the other.
> How
> can I send an event DOWN, or to an unrelated component that will not share
> “bubbling” with the sending component?
>
> In Flex it was simple, every component could just listened to the stage.
> What can I do in Royale to hear events from unrelated components?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: EventListeners - Communicate Between Components

2021-01-31 Thread Carlos Rovira
Hi,

For that you need to add a listener that uses capture. Remember the 3
phases in event processing "capture-target-bubble"
But use to add a concrete listener for a concrete event from a component,
instead of use capture.

Moreover, in real apps, we really don't do that either, we use frameworks
like Crux. Please check presentations here:

https://apache.github.io/royale-docs/presentations/presentations.html

in Concrete this:


   - Starting from a blank file <https://youtu.be/E-Fg5V5DxbY> - How to
   build a brand-new application using Royale’s off-the-shelf resources. PDF
   of the slide presentation
   
<https://apache.github.io/royale-docs/presentations/StartingFromABlankFile-ApacheCon2020.pdf>

Where I talk about using Crux

https://apache.github.io/royale-docs/presentations/StartingFromABlankFile-ApacheCon2020.pdf

In "Event Handling" and "The Controller" slides, you can see the Crux
style through metadata:

[EventHandler(event="TodoEvent.ADD_TODO_ITEM", properties="todo")]
public function addTodoItem(todo:TodoVO):void {
model.allItems.addItem(todo);
   saveDataToLocal();
   updateInterface();
}

So in short, you have a Controller (MVC typical app design), where you have
the controller methods that are "annotated" with metadata. Crux know about
that events and is capable to listen from views (since crux knows about the
views and can listen). So when a concrete event is thrown from a view the
controller is capable to run a particular method.

HTH


El vie, 29 ene 2021 a las 21:26, Bilbosax ()
escribió:

> Brilliant, Carlos.  Thanks.
>
> I ran a little test and was easily able to catch events that bubbled up
> from
> a component to the Main.mxml.  But what if I wanted to dispatch an event
> from Main.mxml that I want a component below it to catch?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: EventListeners - Communicate Between Components

2021-01-29 Thread Carlos Rovira
Hi Bilbo,

You need to send events with bubble param to true. That will make the event
go up all the dom chain and reach Main.mxml
But you don't need a system manager anymore like in Flex. In Flex we had
things hanging from a root component, but also popupmanager was
disconnected from root.
In Royale all hangs from root and simplifies that.

You can see our TodoMVC example that use that extensively from differente
subcomponents or from item renderers:

Jewel version:
https://github.com/apache/royale-asjs/tree/develop/examples/jewel/todomvc

Jewel+Crux version:
https://github.com/apache/royale-asjs/tree/develop/examples/crux/todomvc-jewel-crux

TodoMVC Running version:
https://royale.apache.org/todomvc-jewel/

HTH


El mié, 27 ene 2021 a las 20:26, Bilbosax ()
escribió:

> So say I have an MXML component called Main.mxml and another called
> Customers.mxml.  From Customers.mxml, I dispatch an event like so:
>
>  var f:Event = new Event("newCustomerRegistered", true);
>  dispatchEvent(f);
>
> In my Flex way of doing things, if I wanted to catch that event in the
> Main.mxml, I attached a listener to the  systemManager.stage like so:
>
>  systemManager.stage.addEventListener("newCustomerRegistered",
> updateDatabase);
>
>
> systemManager.stage was a base that all events from all components could be
> heard as they bubbled up and I loved it.  But I don't find it in Royale.
> How can I attach a listener to my Main.mxml in Royale so that it can hear
> events dispatched from all other components?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: [EXTERNAL] Popup and Databinding with Crux (RE: Popup and Databinding)

2021-01-24 Thread Carlos Rovira
Hi Maria Jose,

I think that could be probably a false positive due to some catching. If
there's no code the problem should arise.
Can't see other explanation.

Thanks

El sáb, 23 ene 2021 a las 19:47, Maria Jose Esteve ()
escribió:

> Hi, "I have an X-file"
>
> Yesterday, after spending all afternoon with this problem, following
> Brian's directions, he added the dispatchers "ADD_BEAN" and "REMOVE_BEAN"
> and everything worked. Then he created a bead [1] for Jewel Popup and
> everything worked fine too.
>
> At night, after compiling the SDK, I cleaned up the bead code so that I
> could share it with you, but before that I did one last test: I unloaded
> the new bead (addBead) and tried again, “surprisingly” EVERYTHING WORKED
> WELL. Without bead, without ADD_BEAN, ...
>
>
>
> Does this have any explanation for you?
>
> @Brian could you verify in your code that the ADD_BEAN is indeed missing?
>
>
>
> I will be attentive to your opinions.
>
> [1]
>
> *public* *class* PopUpContentActiveCrux *extends* DispatcherBead
>
> {
>
> *public* *function* PopUpContentActiveCrux() {}
>
>
>
> *private* *var* viewBead:PopUpView;
>
> *override* *public* *function* *set* strand(value:IStrand):void
>
> {
>
> *super*.strand = value;
>
> viewBead = _strand.getBeadByType(PopUpView) *as* PopUpView;
>
> listenOnStrand("closePopUp", closePopUpHandler);
>
> listenOnStrand("showingPopUp", addContentListeners);
>
> }
>
>
>
> *public* *function* addContentListeners(event:Event):void
>
> {
>
> *if*(viewBead && viewBead.content)
>
> {
>
> dispatchEvent(*new* BeanEvent(BeanEvent.ADD_BEAN,viewBead.
> content));
>
> viewBead.content.addEventListener("closePopUp"
> , closePopUpHandler);
>
> }
>
> }
>
>
>
> *protected* *function* closePopUpHandler(event:Event = null):void
>
> {
>
> *if*(viewBead && viewBead.content)
>
> {
>
> dispatchEvent(*new* BeanEvent(BeanEvent.
> REMOVE_BEAN,viewBead.content));
>
> viewBead.content.removeEventListener("closePopUp"
> , closePopUpHandler);
>
> }
>
> }
>
>
>
> Thx
>
> Hiedra.
>
>
>
> *De:* Carlos Rovira 
> *Enviado el:* sábado, 23 de enero de 2021 16:35
> *Para:* users@royale.apache.org
> *Asunto:* Re: [EXTERNAL] Popup and Databinding with Crux (RE: Popup and
> Databinding)
>
>
>
> Yeah, that would be very cool Maria Jose :)
>
>
>
>
>
> El vie, 22 ene 2021 a las 21:11, Maria Jose Esteve ()
> escribió:
>
> Yes, it seemed to me too . I will clean the code and share it (maybe
> tomorrow).
>
>
>
> Hiedra.
>
>
>
> *De:* Carlos Rovira 
> *Enviado el:* viernes, 22 de enero de 2021 20:09
> *Para:* users@royale.apache.org
> *Asunto:* Re: [EXTERNAL] Popup and Databinding with Crux (RE: Popup and
> Databinding)
>
>
>
> Cool, thanks Brian :)
>
>
>
> Maybe we could create a bead for PopUp to make if you use Crux to
> streamline the use...
>
> someone is encouraged to create this and contribute? :)
>
>
>
> El vie, 22 ene 2021 a las 20:03, Maria Jose Esteve ()
> escribió:
>
> It works perfect for me.
>
> I have another mxml that I dynamically load in with the same problem, I'm
> going to try it there too but it sure works.
>
>
>
> Thanks for the help Brian.
>
> Hiedra
>
>
>
> *De:* Brian Raymes 
> *Enviado el:* viernes, 22 de enero de 2021 18:02
> *Para:* users@royale.apache.org
> *Asunto:* RE: [EXTERNAL] Popup and Databinding with Crux (RE: Popup and
> Databinding)
>
>
>
> Here is how I’m making that work. Dispatch an ADD_BEAN before adding the
> content to the PopUp. This wires it up for crux.
>
>
>
> I’m also dispatching REMOVE_BEAN when the popup is closed to ensure it is
> removed when not needed.
>
> var searchPopup:SearchPopup = new SearchPopup();
>
> . . .
> dispatchEvent(new BeanEvent(BeanEvent.ADD_BEAN, searchPopup));
> . . .
> popup = new PopUp();
>
> popup.content = searchPopup;
>
> addElement(popup);
>
> popup.open = true;
>
>
>
>
>
> Hope this helps.
>
>
>
> Brian
>
>
>
> *From:* Maria Jose Esteve 
> *Sent:* Friday, January 22, 2021 2:40 AM
> *To:* users@royale.apache.org
> *Subject:* [EXTERNAL] Popup and Databinding with Crux (RE: Popup and
> 

Re: Showing Local HTML

2021-01-24 Thread Carlos Rovira
Hi,

some of the things you need to do in Flex due to Flash Player are not
needed anymore in Royale. The Player was very good in many things but had
the problem that it was a sandbox that needed special ways to interact with
the browser and js. You need to change your mindset and take advantage of
that, while keeping the good things we still get from the Flex world that
are not outside of Royale in other js technologies ;). Think on Royale as
the "best of both worlds".

So, since Royale compiles to js, you can interact directly with html and
use for example IFrame (there's an implementation in HTML.swc lib), also
you can use native js libraries in many ways.

Some links to help you:

1.- This is a project for a small product browser integrated in a webpage.
The royale app use a js library with @externs (a good way to put a js lib
to play in Royale with AS3). The library is for create a PDF from a web
page. Also the project shows how to integrate the app in the webpage to
adapt its width and height to the web page so you don't know it's a royale
app:

https://github.com/codeoscopic/avant2-website

2.- Externs:

https://apache.github.io/royale-docs/features/externs

3.- ExternalInterface (But I think you should go with Externs since this
seems to me and old Flex concept not needed in Royale)

https://apache.github.io/royale-docs/features/external-interface

HTH

Carlos


El vie, 22 ene 2021 a las 22:31, Bilbosax ()
escribió:

> In my AIR app that I am converting to Royale, I have a Google Map html file
> that I would display using an ANE by Distriqt called NativeWebView.  It
> created a webView on the mobile device that you could upload your local
> html
> file to, and it created an AirBridge that allowed actionscript to call
> Javascript functions or vice versa.  A beautiful and useful piece of code.
>
> How would I do something like this on Royale?  Is there a component that
> allows you to load local html files and pass information back and forth
> with
> Javascript (like the old stageWebView or htmlLoader)?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: [EXTERNAL] Popup and Databinding with Crux (RE: Popup and Databinding)

2021-01-23 Thread Carlos Rovira
Yeah, that would be very cool Maria Jose :)


El vie, 22 ene 2021 a las 21:11, Maria Jose Esteve ()
escribió:

> Yes, it seemed to me too . I will clean the code and share it (maybe
> tomorrow).
>
>
>
> Hiedra.
>
>
>
> *De:* Carlos Rovira 
> *Enviado el:* viernes, 22 de enero de 2021 20:09
> *Para:* users@royale.apache.org
> *Asunto:* Re: [EXTERNAL] Popup and Databinding with Crux (RE: Popup and
> Databinding)
>
>
>
> Cool, thanks Brian :)
>
>
>
> Maybe we could create a bead for PopUp to make if you use Crux to
> streamline the use...
>
> someone is encouraged to create this and contribute? :)
>
>
>
> El vie, 22 ene 2021 a las 20:03, Maria Jose Esteve ()
> escribió:
>
> It works perfect for me.
>
> I have another mxml that I dynamically load in with the same problem, I'm
> going to try it there too but it sure works.
>
>
>
> Thanks for the help Brian.
>
> Hiedra
>
>
>
> *De:* Brian Raymes 
> *Enviado el:* viernes, 22 de enero de 2021 18:02
> *Para:* users@royale.apache.org
> *Asunto:* RE: [EXTERNAL] Popup and Databinding with Crux (RE: Popup and
> Databinding)
>
>
>
> Here is how I’m making that work. Dispatch an ADD_BEAN before adding the
> content to the PopUp. This wires it up for crux.
>
>
>
> I’m also dispatching REMOVE_BEAN when the popup is closed to ensure it is
> removed when not needed.
>
> var searchPopup:SearchPopup = new SearchPopup();
>
> . . .
> dispatchEvent(new BeanEvent(BeanEvent.ADD_BEAN, searchPopup));
> . . .
> popup = new PopUp();
>
> popup.content = searchPopup;
>
> addElement(popup);
>
> popup.open = true;
>
>
>
>
>
> Hope this helps.
>
>
>
> Brian
>
>
>
> *From:* Maria Jose Esteve 
> *Sent:* Friday, January 22, 2021 2:40 AM
> *To:* users@royale.apache.org
> *Subject:* [EXTERNAL] Popup and Databinding with Crux (RE: Popup and
> Databinding)
>
>
>
> Hi,
>
> I am experiencing an error similar to wkoch, the Databinding in a Popup
> does not work, in my case using crux.
>
> I have an mxml, TopesDetPerson, that shows the detail of a record. My mvc
> model is injected and binded and it works perfectly if we insert it into
> the main mxml (SectionContent) but stops working if I create it
> programmatically. This is an excerpt from the build and upload code:
>
>
>
> private var popupLimitsDetail:PopUp;
>
> public function viewLimitsDetail():void
>
> {
>
> var pp:TopesDetPerson;
>
> if(!popupLimitsDetail)
>
> {
>
> popupLimitsDetail = new PopUp();
>
> popupLimitsDetail.modal = true;
>
> pp = new TopesDetPerson();
>
> popupLimitsDetail.content = pp;
>
> addElement(popupLimitsDetail);
>
> }
>
>
>
> if(!popupLimitsDetail.open)
>
> popupLimitsDetail.open = true;
>
> }
>
>
>
> In TopesDetPerson.mxml:
>
>
>
> [Bindable]
>
> [Inject(source="personalModel", required="true")]
>
> public var personalModel:PersonalModel;
>
> ...
>
> 
>
> 
>
> 
>
>
>
> The model is not injected, the [PostConstruct] is not received, does it
> not exist for crux if it is not on the canvas? Is there a way to "refresh
> crux" so that it recognizes the links that are added after its initial
> configuration?
>
> I hope I have explained clearly 
>
>
>
> Thx.
>
> Hiedra
>
>
>
> -Mensaje original-
>
> De: wkoch 
>
> Enviado el: lunes, 18 de enero de 2021 18:21
>
> Para: users@royale.apache.org
>
> Asunto: Re: Popup and Databinding
>
>
>
> Sorry -- I wasn't clear -- both the ItemRendererDataBinding and
> ContainerDataBinding beads worked.  I went with ContainerDataBinding as
> Harbs is right.  It's a better fit.
>
>
>
>
>
>
>
> --
>
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
>
>
>
> --
>
> Carlos Rovira
>
> Apache Member & Apache Royale PMC
>
> *Apache Software Foundation*
>
> http://about.me/carlosrovira
>
>
>


-- 

Carlos Rovira

Presidente Ejecutivo

M: +34 607 22 60 05

http://www.codeoscopic.com


Conócenos en 1 minuto! <https://avant2.es/#video>


AVISO LEGAL: La información contenida en este correo electrónico, y en su
caso en los documentos adjuntos, es información privilegiada para uso
exclusivo de la persona y/o personas a las que va dirigido. No está
permitido el acceso a este mensaje a

Re: [EXTERNAL] Popup and Databinding with Crux (RE: Popup and Databinding)

2021-01-22 Thread Carlos Rovira
Cool, thanks Brian :)

Maybe we could create a bead for PopUp to make if you use Crux to
streamline the use...
someone is encouraged to create this and contribute? :)

El vie, 22 ene 2021 a las 20:03, Maria Jose Esteve ()
escribió:

> It works perfect for me.
>
> I have another mxml that I dynamically load in with the same problem, I'm
> going to try it there too but it sure works.
>
>
>
> Thanks for the help Brian.
>
> Hiedra
>
>
>
> *De:* Brian Raymes 
> *Enviado el:* viernes, 22 de enero de 2021 18:02
> *Para:* users@royale.apache.org
> *Asunto:* RE: [EXTERNAL] Popup and Databinding with Crux (RE: Popup and
> Databinding)
>
>
>
> Here is how I’m making that work. Dispatch an ADD_BEAN before adding the
> content to the PopUp. This wires it up for crux.
>
>
>
> I’m also dispatching REMOVE_BEAN when the popup is closed to ensure it is
> removed when not needed.
>
> var searchPopup:SearchPopup = new SearchPopup();
>
> . . .
> dispatchEvent(new BeanEvent(BeanEvent.ADD_BEAN, searchPopup));
> . . .
> popup = new PopUp();
>
> popup.content = searchPopup;
>
> addElement(popup);
>
> popup.open = true;
>
>
>
>
>
> Hope this helps.
>
>
>
> Brian
>
>
>
> *From:* Maria Jose Esteve 
> *Sent:* Friday, January 22, 2021 2:40 AM
> *To:* users@royale.apache.org
> *Subject:* [EXTERNAL] Popup and Databinding with Crux (RE: Popup and
> Databinding)
>
>
>
> Hi,
>
> I am experiencing an error similar to wkoch, the Databinding in a Popup
> does not work, in my case using crux.
>
> I have an mxml, TopesDetPerson, that shows the detail of a record. My mvc
> model is injected and binded and it works perfectly if we insert it into
> the main mxml (SectionContent) but stops working if I create it
> programmatically. This is an excerpt from the build and upload code:
>
>
>
> private var popupLimitsDetail:PopUp;
>
> public function viewLimitsDetail():void
>
> {
>
> var pp:TopesDetPerson;
>
> if(!popupLimitsDetail)
>
> {
>
> popupLimitsDetail = new PopUp();
>
> popupLimitsDetail.modal = true;
>
> pp = new TopesDetPerson();
>
> popupLimitsDetail.content = pp;
>
> addElement(popupLimitsDetail);
>
> }
>
>
>
> if(!popupLimitsDetail.open)
>
> popupLimitsDetail.open = true;
>
> }
>
>
>
> In TopesDetPerson.mxml:
>
>
>
> [Bindable]
>
> [Inject(source="personalModel", required="true")]
>
> public var personalModel:PersonalModel;
>
> ...
>
> 
>
> 
>
> 
>
>
>
> The model is not injected, the [PostConstruct] is not received, does it
> not exist for crux if it is not on the canvas? Is there a way to "refresh
> crux" so that it recognizes the links that are added after its initial
> configuration?
>
> I hope I have explained clearly 
>
>
>
> Thx.
>
> Hiedra
>
>
>
> -Mensaje original-
>
> De: wkoch 
>
> Enviado el: lunes, 18 de enero de 2021 18:21
>
> Para: users@royale.apache.org
>
> Asunto: Re: Popup and Databinding
>
>
>
> Sorry -- I wasn't clear -- both the ItemRendererDataBinding and
> ContainerDataBinding beads worked.  I went with ContainerDataBinding as
> Harbs is right.  It's a better fit.
>
>
>
>
>
>
>
> --
>
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Screen Layout

2021-01-22 Thread Carlos Rovira
H Bilbo,

try this:











the slide will change btn height and the style will "bind" to the height
doing the operation.
We are using the style to override the jewel theme default setup to change
that particular button instance

remember that you need to add data binding (in Royale we "compose" almost
all instead of having it by default like in flex, the PAYG principe is key).





Anyway, while you can do things like this in Royale as you use to do in
Flex, I don't recommend it.
Since we are adding code and listeners for something that CSS is capable to
do itself: You can create a CSS class style that uses the css calc()
function and apply via "className" property.

HTH

Carlos

El jue, 21 ene 2021 a las 21:21, Bilbosax ()
escribió:

> Thanks for the insight Carlos. I have been studying your Tour De Jewel
> app, a
> beautiful piece of demonstration.
>
> So I have a deeper question about CSS.  Let's say I have a Jewel button
> that
> I need to style on the fly and cannot hardwire it into CSS code.  Let's say
> I have a button that I am going to create at runtime that I won't know it's
> dimensions until I know the size of the container it is in, but I want it
> to
> be a "pill" button so I need to style the "border-radius" in CSS to half
> the
> height of the button once the button is created.  I don't see a way to do
> this with Jewel.  I don't see a bead like SimpleCSSStyles for Jewel that
> will allow me to style in Actionscript during execution.
>
> Is there a way to make a rounded corner button in Jewel using Actionscript
> at runtime to change CSS of a component??
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Screen Layout

2021-01-21 Thread Carlos Rovira
Hi Bilbo,

since Royale is more "agnostic" from a concrete runtime, is more oriented
toward "beads", so you have :

BrowserResizeApplicationListener
and BrowserResizeListener

The first one can be added to the main Application, while the other is to
be added to a concrete component.
The second one has only JS implementation while SWF is still TODO

But, if you focus on HTML/JS/CSS, you should take advantage of CSS
responsive engine. So this is all mostly "outside" royale itself, and you
need to learn the principles.

Also, in Jewel and JewelTheme, you have responsiveness implemented, as you
can see in Tour De Jewel [1]
There you have CSS implemented breakpoints and also some beads to manage
things like responsive layouts (Grid with GridLayout and GridCell with
GridCellLayout), or beads for visibility (ResponsiveVisibility,
ResponsiveSize,...) or a view for Application with that in mind
(ResponsiveView), also components like Drawer, or TopAppBar are implemented
with responsiveness in mind, and of course doesn't have a Flex
correspondence since in Flex there wasn't that concept.

In short, it's not recommended to use always listeners in Royale but depend
on CSS built-in responsiveness and just use listeners to resize events when
you really need it since with some AS3 script logic

HTH

Carlos




El mié, 20 ene 2021 a las 21:27, Bilbosax ()
escribió:

> Today is my first day using Royale.  I am trying to migrate a mobile and
> desktop app to the web, and I have a question about screen layout.  I am
> concerned about how to make the components lay out correctly across all
> devices that might browse to the app.
>
> In the desktop version of the app, if the resize the window, I listen for
> the Event.RESIZE event and I get the stage.stageWidth and
> stage.stageHeight,
> and then I manually set the layout of all my visual components based on
> these two dimensions.
>
> Can you use this approach in a web app as well, or is there a better way?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Popup and Databinding

2021-01-18 Thread Carlos Rovira
Ok! great you got it working :)

El lun, 18 ene 2021 a las 18:21, wkoch ()
escribió:

> Sorry -- I wasn't clear -- both the ItemRendererDataBinding and
> ContainerDataBinding beads worked.  I went with ContainerDataBinding as
> Harbs is right.  It's a better fit.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Popup and Databinding

2021-01-18 Thread Carlos Rovira
Hi Warren,

Can you share a minimum code for the Popup with some binding that is not
working. The code you shared doesn't show that part.
And as well the part of the code in your app where you declare and use that
popup. I'll try both pieces of code in a local project.
thanks

El lun, 18 ene 2021 a las 16:01, wkoch ()
escribió:

> Correction.  Now either of them work.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: [EXTERNAL] CSS & JS file versioning

2021-01-14 Thread Carlos Rovira
Thanks Brian,

very useful!

Not related, but as well useful, I use maven's build timestamp with defines
to get it in AS3 in the following way:

https://github.com/codeoscopic/avant2-website/blob/b97c62fb583e850e7190b28396e75adb3e7bf22a/avant2-products-companies/pom.xml#L169

Best,

Carlos

El mar, 12 ene 2021 a las 19:01, Brian Raymes ()
escribió:

> As others have stated, there are other ways to do this. Here is how I’m
> doing it with maven:
>
>
>
> In my case, I’m currently using a timestamp to try to avoid caching. Feel
> free to replace with a version, etc.
>
>
>
> This will update the template and build time.
>
>
>
>   
>
> ${maven.build.timestamp}
>
>   
>
>
>
>
>
>   
>
> com.google.code.maven-replacer-plugin
>
> replacer
>
> 1.5.3
>
> 
>
>   
>
> package
>
> 
>
>   replace
>
> 
>
>   
>
> 
>
> 
>
>   false
>
>   ${basedir}/target/javascript/bin/js-debug/index.html >
>
>   
>
> 
>
>   
>
>   
>
> 
>
> 
>
>   
>
>   
>
> 
>
>   
>
> 
>
>   
>
>
>
> Brian
>
>
>
> *From:* lol lol 
> *Sent:* Tuesday, January 12, 2021 1:47 AM
> *To:* users@royale.apache.org
> *Subject:* [EXTERNAL] CSS & JS file versioning
>
>
>
> Hi All,
>
>
>
> Is there any possibility defined that lets me define my own placeholders
> in the html-template?
>
> For example im using an html template with the following line
>
>
>
> 
>
>
>
> Is there anything helpful already existing in the compiler so I can add a
> version to my css like so:
>
>
>
> href="${application}?v=12345678" />
>
>
>
> Thank!
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: setting color for js:MaterialIcon

2021-01-13 Thread Carlos Rovira
You have theme colors too. Since is just text, you can use for example

className="primary-normal"

check this: https://royale.apache.org/tourdejewel/#!text_panel

HTH

Carlos






El mié, 13 ene 2021 a las 11:03, Maria Jose Esteve ()
escribió:

> Hi, define text color in CSS
>
> Hiedra.
>
> -Mensaje original-
> De: choirul anam 
> Enviado el: miércoles, 13 de enero de 2021 10:52
> Para: users@royale.apache.org
> Asunto: setting color for js:MaterialIcon
>
> Dear All,
>
> How to setting the color of js:MaterialIcon ?
>
> Thanks
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: CSS & JS file versioning

2021-01-12 Thread Carlos Rovira
Hi,

I think you need "htmlTemplate" compiler option. This is how to use in
Maven:

${basedir}/target/javascript/bin/js-debug/jewel-example-index-template.html

in command line:

-html-template=src/main/resources/jewel-example-index-template.html

or in asconfig:

"html-template": "src/main/resources/jewel-example-index-template.html"

HTH

Carlos



El mar, 12 ene 2021 a las 10:47, lol lol () escribió:

> Hi All,
>
> Is there any possibility defined that lets me define my own placeholders
> in the html-template?
> For example im using an html template with the following line
>
> 
>
> Is there anything helpful already existing in the compiler so I can add a
> version to my css like so:
>
>
> href="${application}?v=12345678" />
>
>
> Thank!
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Apache Royale reach 700 followers on Twitter!

2021-01-06 Thread Carlos Rovira
Hi,

congrats to all here at Apache Royale. We reached 700 followers on Twitter!
:)

https://twitter.com/ApacheRoyale/status/1346765239782678528

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Apache Royale was the third project with most active developer mailing lists in 2020

2021-01-05 Thread Carlos Rovira
Hi,

as reported by The ASF here [1] check this tweet:

https://twitter.com/ApacheRoyale/status/1346387146601619457

Best regards


[1] https://blogs.apache.org/foundation/entry/apache-in-2020-by-the
-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


New Jewel Switch controls

2021-01-04 Thread Carlos Rovira
Hi,

today added new Jewel Switch controls to our repo, you can see it working
here:

https://twitter.com/ApacheRoyale/status/1346163509239947265

As always, don't forget to share, follow (if you already don't do it) on
twitter, facebook and linkedin

Best Regards


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: [EXTERNAL] Re: Grid Sort issues

2021-01-03 Thread Carlos Rovira
Great you get the issue solved Warren! :)


El dom, 3 ene 2021 a las 20:38, wkoch () escribió:

> I went ahead and loaded moonshine with today's build.
>
> I did a Clean Project and re-compiled.  And now the error is gone.  The
> only
> thing I can think of was something was trapped in the CSS.
>
> Now I can get back to actually coding after I verify all the build changes
> since October didn't change something else...
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: [EXTERNAL] Re: Grid Sort issues

2021-01-03 Thread Carlos Rovira
Hi Warren,

it's ok to find "org.apache.royale.html.beads.models.ButtonBarModel" in the
frameworks folder since is the bead for Basic and probably used in Express
and even could be used in emulation (MX/Spark), but you should not find a
single match in Jewel.

If you reduced the problem to DG thats very good. You know need to do the
same putting back a single DG little by little until you find where is the
issue. Think that TDJ is working. Another thing could be to ensure the
nightly build is used correctly and there's no tries to use the older
version, also use the latest, or build locally.

I guess you should be very near to find where is the issue

Thanks

El dom, 3 ene 2021 a las 16:51, wkoch () escribió:

> I took apart my code bit by bit as you suggested, including stripping all
> the
> beads and renderers off the datagrid.  The problem went away when I finally
> removed the datagrid completely.
>
> I did a scan across the royale-asjs\frameworks folder in the SDK and found
> many places where org.apache.royale.html.beads.models.ButtonBarModel  is
> called out.
>
> So I would say No all is not ok in the SDK.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: [EXTERNAL] Re: Grid Sort issues

2021-01-03 Thread Carlos Rovira
Hi Warren,

sorry but SDK is checked, the older bead is used in Basic and the new in
Jewel. All is ok.
One way to find issues is comment or disconnect parts of your app to reach
a working state, then add up to the mix until you get the fail and isolate
the point where you have the problem. I did this lots of times to find
issues and fix my code.
Eventually you can find an issue in Royale, if that's the case isolate and
report.

Thanks

El sáb, 2 ene 2021 a las 19:08, wkoch () escribió:

> I have no place in my code that directly references that bead.  I don't use
> the ButtonBar anywhere.  I suspect it's coming in indirectly from the
> datagrid.
>
> Should I be looking in the SDK?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: [EXTERNAL] Re: Grid Sort issues

2021-01-02 Thread Carlos Rovira
ntListener(xd,G.j(this.handleItemAdded,this,Uc));this.Ye.addEventListener(Ad,G.j(this.handleItemRemoved,this,Wc));G.is(this.model,Ir)?G.as(this.model,Ir,!0).dispatcher=a:(this.model.addEventListener(il,G.j(this.modelChangeHandler,this,Xd)),this.model.addEventListener(vc,G.j(this.modelChangeHandler,this,Xd)))};Object.defineProperties(jt.prototype,{strand:{set:jt.prototype.m}});
>
> jt.prototype.g={names:[{name:'DropDownListController',i:ti,kind:t}],l:[po]};function
>
> kt(){}D(tf,kt);kt.prototype.applyImageData=z();kt.prototype.g={names:[{name:'IImage',i:tf,kind:v}],l:[Qp]};function
>
> lt(){O.call(this)}E(lt,O);D(Kg,lt);lt.prototype.applyImageData=z();D('org.apache.royale.core.supportClasses.StyledImageBase.prototype.applyImageData',lt.prototype.applyImageData);lt.prototype.Dl=function(){return
>
> this.model.url};lt.prototype.bq=function(a){this.model.url=a};lt.prototype.Qb=Rl(null);Object.defineProperties(lt.prototype,{src:{get:lt.prototype.Dl,set:lt.prototype.bq},imageElement:{get:lt.prototype.Qb}});lt.prototype.g={names:[{name:'StyledImageBase',i:Kg,kind:t}],l:[kt]};function
> mt(a,b,d){a='undefined'!==typeof a?a:null;b='undefined'!==typeof
> b?b:null;d='undefined'!==typeof
>
> d?d:!1;J.call(this);this.fields=a;this.compareFunction=b;this.unique=d}E(mt,J);D(Ee,mt);mt.ANY_INDEX_MODE='any';D('org.apache.royale.collections.Sort.ANY_INDEX_MODE',mt.ANY_INDEX_MODE);mt.FIRST_INDEX_MODE='first';D('org.apache.royale.collections.Sort.FIRST_INDEX_MODE',mt.FIRST_INDEX_MODE);mt.LAST_INDEX_MODE='last';D('org.apache.royale.collections.Sort.LAST_INDEX_MODE',mt.LAST_INDEX_MODE);
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Happy New Year 2021!

2020-12-31 Thread Carlos Rovira
Hi all!

just want to wish you a happy new year!!

https://twitter.com/ApacheRoyale/status/1344688339832725504

See you next year!! :D

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: [EXTERNAL] Re: Grid Sort issues

2020-12-31 Thread Carlos Rovira
Hi,

I need more context to help you since "buttonWidths" can refer to some
different components.


El jue, 31 dic 2020 a las 16:34, wkoch ()
escribió:

> I just downloaded the nightly build.  My application broke.  It compiled
> but
> in the browser console I see:
>
> SCRIPT5007: Unable to get property 'buttonWidths' of undefined or null
> reference
>
> How do I fix that?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: [EXTERNAL] Re: Datagrid - wordwrap a column

2020-12-31 Thread Carlos Rovira
Hi Warren,

to add scroll to the j:View you just need to add the bead:



That will allow you to scroll if the content is out the screen




El mié, 30 dic 2020 a las 21:18, Koch (US), Warren R (<
warren.r.k...@boeing.com>) escribió:

> View
>
>
>
> 
>
> 
>
> 
>
>
>
> I put everything in the Group.  Seems to work better that way
>
>
>
> *From:* Carlos Rovira [mailto:carlosrov...@apache.org]
> *Sent:* Wednesday, December 30, 2020 1:59 PM
> *To:* users@royale.apache.org
> *Subject:* [EXTERNAL] Re: Datagrid - wordwrap a column
>
>
>
> EXT email: be mindful of links/attachments.
>
>
>
>
> Hi,
>
>
>
> if you need at app level I think we can create a bead for j:View and not
> j:ResponsiveView.
>
> Jewel is done with responsivity in mind to fit different screens and
> rearrange items as needed depending if users are on Desktop, Tablet,
> Phone,...
>
> So we usually deal with vertical scrolls but not with horizontal.
>
> Instead if we use a simple j:View that will be more like a Flex App. I'm
> just thinking loud and maybe I could find something as I dig and try on
> real code.
>
> So are you using View? or ResponsiveView?
>
>
>
>
>
> El mié, 30 dic 2020 a las 17:46, wkoch ()
> escribió:
>
> I don't like horizontal scroll bars either which is why I wanted wrapping
> and
> column visibility.
>
> Since I have to make a wide grid wide enough to display the data elements I
> musthave one on the application.  That's probably what I need -- on the
> whole application not the grid.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
>
>
>
> --
>
> Carlos Rovira
>
> Apache Member & Apache Royale PMC
>
> *Apache Software Foundation*
>
> http://about.me/carlosrovira
>
>
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: [EXTERNAL] Re: Grid Sort issues

2020-12-31 Thread Carlos Rovira
Hi Warren,

The problem with sticking with an older build is that you're not getting
the new enhancements we're doing to fix the issues you found or others that
people are working on. For example, the sort bead changed a lot thanks to
your report and is not dispatching the same events after my fixes to
refresh data on item updates. I even had to change things in other parts.

When I was migrating my apps, and even nowadays, I use to build daily at
the start of my day to find possible regression issues and be able to
respond as quickly as possible to them. I think after a 1.0 that will be
easier to stick in a release version, but we're still doing so much work,
so my perception is that it is better to try to keep in the cycle. I'm
seeing great improvements these days at all levels (bindings, compiler,...)
and all of that will help you find less issues.

For example, if you create an example that is not working referring to an
older state of the SDK, it can be working in the actual state, so I'll be
not able to help you on that.

about refreshing in DataGridSort, with my fix, I just need to do "
collection.refresh();", but that's because the bead now extends
EasyDataProviderChangeNotifier and we're overriding
handleDataProviderChanges() to operate for CollectionEvent.
COLLECTION_CHANGED events.

just my 2...



El mié, 30 dic 2020 a las 21:35, wkoch ()
escribió:

> I did notice one thing.  I can set the columnWidth=0 and then fire a Sort
> on
> the headerbar.  I can set the column back to the original value and sort
> again.  It all works.
>
> So I'm wondering if there is something in the Sort bead that we could
> hijack
> into a forced refresh.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Datagrid - wordwrap a column

2020-12-30 Thread Carlos Rovira
Hi,

if you need at app level I think we can create a bead for j:View and not
j:ResponsiveView.
Jewel is done with responsivity in mind to fit different screens and
rearrange items as needed depending if users are on Desktop, Tablet,
Phone,...
So we usually deal with vertical scrolls but not with horizontal.
Instead if we use a simple j:View that will be more like a Flex App. I'm
just thinking loud and maybe I could find something as I dig and try on
real code.
So are you using View? or ResponsiveView?


El mié, 30 dic 2020 a las 17:46, wkoch ()
escribió:

> I don't like horizontal scroll bars either which is why I wanted wrapping
> and
> column visibility.
>
> Since I have to make a wide grid wide enough to display the data elements I
> musthave one on the application.  That's probably what I need -- on the
> whole application not the grid.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Grid Sort issues

2020-12-30 Thread Carlos Rovira
Hi Warren,

I mean that using visible in the column will hide the column but not header
button for that column will remain since is part of the header buttonbar,
so the for the right way I mean to use the implementation that Greg did.
Sorry to not be of much help on this since I don't know much more of that
code. But the Column Swapping is working in TDJ, so if it's not working for
you we should investigate where is the issue, if is a bug in the code or is
something about the way you're using it

Thanks


El mié, 30 dic 2020 a las 17:40, wkoch ()
escribió:

> I'm not sure what you mean by "not doing it right".  DataGridColumn has a
> visible attribute. I just gave it a localId and added buttons to control
> visibility.
>
> Yes it was the ColumnSwapping one.  The HeaderBar did not resize properly.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Datagrid - wordwrap a column

2020-12-30 Thread Carlos Rovira
Hi,

for horizontal scrolling I tried something locally that worked. I'll try
later to craft a bead for you.

Anyway, for usability, I recommend not using horizontal scroll bars, if the
data doesn't fit the space, better to show only what can be viewed
naturally, and then trigger some popup or open data in another part of the
screen with the rest. But this is just my opinion.


El mié, 30 dic 2020 a las 17:03, wkoch ()
escribió:

> without the variable how height there really is no point in making a
> multi-line custom renderer. I did play with multi-line a bit but didn't
> work.
>
> It really needs to stay column oriented so as to display data in a form
> most
> users are used to (think Excel).
>
> I ended up making the columns wider to handle most of the data.  And that
> brings me to another issue.  How do I add a horizontal scroll bar to either
> the datagrid?  Another bead?
>
> Or better yet the whole application.  Right now there is no horizontal
> scrolling on my page.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Grid Sort issues

2020-12-30 Thread Carlos Rovira
Hi,

just checked and the way you are doing is not right. I must admit that I'm
not familiar with that code since it was done by Greg Dove not me. But I'm
looking at the end of that page and there's an example that works ok. The
one called "Column Swapping". I think it is the one you refer to
"toggleColumn". It's working for me right in my latest local build. So you
should check it and if not workin identify why it is not working for you.



El mié, 30 dic 2020 a las 16:26, wkoch ()
escribió:

> I tried your toggleColumn function on the "old" SDK.  Did not work properly
> on my DG.  the Header columns didn't resize properly.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Datagrid - wordwrap a column

2020-12-30 Thread Carlos Rovira
Hi Warren,

there's no actual support in Jewel DataGrid for different row heights. That
was the final layout problem to solve. We debated about changing the actual
"column oriented" layout to a "row oriented" layout to better manage this
problem. But since we had many things built on the actual approach, no one
worked in that variation.

I think the only way right now is to set the height of the renderer to have
enough room for the content. That can mean some cells have more height than
needed.

About wrapping, in labels and buttons there's a bead called "MultiLine"
that wraps content, so you can apply header buttons or datagrid custom cell
renderers if needed. Don't remember if default DGRenderer already wraps
label content.

HTH

Carlos


El mar, 29 dic 2020 a las 23:18, wkoch ()
escribió:

> In the FLEX datagrid there was a word wrap property than would
> automatically
> increase the height of a single row and "wrap" the contents if the column
> width limit is exceeded.
>
> I can't find this option anywhere.  Has this functionality been moved to a
> bead?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Grid Sort issues

2020-12-25 Thread Carlos Rovira
Hi Warren,

Can I check that in TDJ examples? or adding some code to understand how to
reproduce?
I don't know that part of the code since it was done by Greg Dove but can
try to see if there's some similarity.

Thanks



El jue, 24 dic 2020 a las 19:03, wkoch ()
escribió:

> I just noticed that other things on the DataGridColumn are having refresh
> issues as well.
>
> Example: Doesn't work if i try to change the visibility of a column or the
> width of a column
>
> I'm guessing it's all tied up in the same issue.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Grid Sort issues

2020-12-21 Thread Carlos Rovira
Hi Warren

I get to fix the refresh issue. It was not easy at all. I just committed
the solution now, and while it is working I want to talk with @Harbs in
another thread to see if there's a better solution. Anyway, the current one
is an improvement since :


   - DataGridSort now extends from EasyDataProviderChangeNotifier (a bead
   from Basic)
   - DataGridSort now uses collection.refresh(); instead to create a new
   event "sortChanged"
   - We now use the CollectionEvent.COLLECTION_CHANGED
   - DataGridview is not managing COLLECTION_CHANGED events

The main problem here is this line from ArrayListSelectionModel (the model
used in column lists):

public function set dataProvider(value:Object):void
{
if (value == _dataProvider) return;

This check, that is needed clearly, is preventing the collections to be
refreshed. Since we update just a bit of information in one object, that
prevents the whole collection from refreshing. I added a new
"setDataProvider__NoCheck()"
that skip the previous check, but while this is ok, want to see if there's a
better solution (for that reason talk with Harbs about it).

So I think that should fix your problem. I already added the example in
another commit to Tour De Jewel, so just this code is working ok:

private function updateSelectedItem():void
{
var selectedProduct:Product = (dg2.dataProvider as
IArrayListView).getItemAt(dg2.selectedIndex)
as Product;
selectedProduct.title = "NEW-" + (Math.floor(Math.random()*1000));
(dg2.dataProvider as IArrayListView).itemUpdated(selectedProduct);
}

HTH

Carlos



El dom, 20 dic 2020 a las 16:42, Carlos Rovira ()
escribió:

> j:DataGridColumnLabelsChange is a bead used when you want to change the
> labels in the column header at runtime.
>
> El dom, 20 dic 2020 a las 16:15, wkoch ()
> escribió:
>
>> Interesting.  My grid (with renderers) is exactly the opposite response -
>> I
>> have to sort to get the new values to appear.
>>
>> I noticed you have a bead () in your grid
>> that I don't.  I added it to my grid -- no change.
>>
>> There has to be an issue with the refresh method as well.  In Flex it
>> redrew
>> everything (with sort if inovked).  Doesn't seem to be doing anything
>> here.
>>
>> Also - If i take the renderers out of the datagrid it still doesn't
>> update.
>>
>>
>>
>> --
>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Grid Sort issues

2020-12-20 Thread Carlos Rovira
j:DataGridColumnLabelsChange is a bead used when you want to change the
labels in the column header at runtime.

El dom, 20 dic 2020 a las 16:15, wkoch ()
escribió:

> Interesting.  My grid (with renderers) is exactly the opposite response - I
> have to sort to get the new values to appear.
>
> I noticed you have a bead () in your grid
> that I don't.  I added it to my grid -- no change.
>
> There has to be an issue with the refresh method as well.  In Flex it
> redrew
> everything (with sort if inovked).  Doesn't seem to be doing anything here.
>
> Also - If i take the renderers out of the datagrid it still doesn't update.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Grid Sort issues

2020-12-20 Thread Carlos Rovira
Hi Warren,

I'm trying the following in TDJ datasort example (the one with
localId="dg2"), and I can reproduce what you said:

private function updateSelectedItem():void
{
var selectedProduct:Product = (dg2.dataProvider as
IArrayList).getItemAt(dg2.selectedIndex)
as Product;
selectedProduct.title = "NEW-" + (Math.random()*100);
productModel.productList.itemUpdated(selectedProduct);
}

the DG is this :
















(just added the button below)

so if I don't sort, the change can be seen, but when I do a sort and do a
change the change is not reflected.

going to see what could be the problem

Thanks


El dom, 20 dic 2020 a las 3:28, Piotr Zarzycki ()
escribió:

> Any error in browsers console?
>
> On Sat, 19 Dec 2020 at 23:14, wkoch  wrote:
>
>> I downloaded the latest nightly build.  I guess there were a lot of
>> changes
>> since 10/26.  It completely killed my application.  grids, lists, etc.
>> gone,
>> most other functionality gone.  So it looks like I'm stuck at a specific
>> build. Luckily I kept a copy of the old SDK
>>
>>
>>
>> --
>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>
> --
>
> Piotr Zarzycki
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Grid Sort issues

2020-12-19 Thread Carlos Rovira
Hi,

I think that's the problem.
ArrayList and ArrayListView are collection classes that throw
"CollectionEvent" events (check the Collection library code for that
classes).
You're doing changes using bracket notation instead to call the collection
"addItem"or "itemupdated" function that will throw the CollectionEvent
ITEM_ADDED or ITEM_UPDATED. doing that way the collection can't react. For
that reason Jewel use ArrayList as the default collection class instead
Array based data.
so the "dataChange" event is never fired in the item renderer is never
fired and the renderer is not updated.

HTH

Carlos


El sáb, 19 dic 2020 a las 17:45, wkoch ()
escribió:

> My apologies.  I really need to give you simple complete code packages
> rather
> than snippets.
>
> Yes -- The data is being changed as part of a JSON return handler.
>
> DP_EA_Items is the ALV for the dg_EA_Items datagrid.
>
> I update using:
>
> DP_EA_Items[dg_EA_Items.selectedIndex].AUTHORITY_GROUP = "TheNewGroup";
>
> which I follow with a:
>
> DP_EA_Items.refresh();
>
> I thought the refresh() would force the grid to display the new value.
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


Re: Grid Sort issues

2020-12-19 Thread Carlos Rovira
Hi Warren,

I think I start to understand the problem. You are changing the ALV
collection "outside" the component right?
Can you share the line of code you're using to update the data in the
record?


El sáb, 19 dic 2020 a las 14:50, wkoch ()
escribió:

> No you missed nothing.
>
> I will try a new nightly build when the downloader comes back up.  I'm
> somewhat reluctant to to that since I don't know how to track build numbers
> and I have code in production.  I'll figure something out.
>
> What's bothering me is that when I sort the grid the grid the values render
> properly which leads me to believe that an event is missing.  I dug into
> the
> DataGridSort.as file and see that is just firing 2 events.  I'm wondering
> if
> I need to manually send the dataProviderChanged event.  I just can't figure
> out how to dispatch it...
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira


  1   2   3   4   5   6   >