RE: [EXTERNAL] Configuring rpc end points in royale

2021-11-22 Thread Brian Raymes
Glad it worked! If you need any assistance setting it up, let me know. Here’s 
the basic server block I use to make it work, if others are interested:

server {
listen 80;

location / {

# don't cache it
proxy_no_cache 1;
# even if cached, don't try to use it
proxy_cache_bypass 1;

root "/some/path/to/royale/target/javascript/bin/js-debug";

# This try_files allows you to reach local stuff first before going to 
the @remoteserver, such as the /src location below
try_files $uri $uri/ @remoteserver;
}

location /src {
alias "/some/path/to/src";
}

location @remoteserver {
# Development Servers
proxy_pass http://path/to/dev/server;

# Test, other, etc
#proxy_pass http://something/else/;
}
}

Brian

From: Roman Isitua 
Sent: Monday, November 22, 2021 1:45 PM
To: users@royale.apache.org
Subject: Re: [EXTERNAL] Configuring rpc end points in royale

Thank you very much Brian. It worked.

I would like to know how I can set up a local instance of Nginx that proxies to 
my backend. I see a lot of benefits in having this capability.

Regards,



On Sun, Oct 31, 2021 at 8:43 AM Roman Isitua 
mailto:romanisi...@gmail.com>> wrote:
Thanks for this response. I will certainly try the below configuration and 
revert.


However, I want  to understand your usage of nginx.

My approach is to develop on my local machine then deploy to test server then 
test there.

If I understood you correctly, you are deploying the front end in your local 
machine however you are using nginx to route traffic to your test server ?

I would appreciate if you have links on how to do this. Sounds very interesting.

On Tue, 26 Oct 2021, 23:15 Brian Raymes, 
mailto:brian.ray...@teotech.com>> wrote:
Correct, remove the hostname and IP from your configuration and it will infer 
it at runtime. FYI, I’m using crux as well, although, I have mine configured a 
bit differently.

Example for you:

http://localhost:8080/messagebroker/websocket-amf>"
 destination="genericService">






Then, what I do, is set up my nginx proxy to forward traffic to my test server. 
Have the forward include the “spaceiofm”. Then, your code is deployment 
agnostic.

Hope that helps. Let me know if you need more concrete examples.

Brian

From: Roman Isitua mailto:romanisi...@gmail.com>>
Sent: Monday, October 25, 2021 12:25 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: [EXTERNAL] Configuring rpc end points in royale

Hi Brian,

Thanks for your response. Though I am still not clear how your suggestion will 
work. Formy app I am using crux. There is a beans.xml file where I configured 
my remote end points as follows


 http://localhost:8080/messagebroker/websocket-amf;
 destination="genericService">


 


When running the program on my development pc my server is localhost. So it 
works fine. When I deploy to the test server, the above configuration will not 
work. I have to adjust the ip address to be something like this

 http://192.68.43.22:8080/spaciofm/messagebroker/websocket-amf;
 destination="genericService">


 


If I do this, it works.

My guess is that there should be a way to configure the end point such that it 
defaults to the server host name without any configuration.

Regards,



On Mon, Oct 18, 2021 at 8:49 PM Brian Raymes 
mailto:brian.ray...@teotech.com>> wrote:
Hi Roman,

I do this by running a local instance of Nginx that proxies to my backend (or 
wherever you need as it’s easily changeable).

As for RPC configuration, I have mine all set relatively, as-in, simply:

AMFChannel("my-amf", "messagebroker/amf");

This way, they always look local, but proxy through Nginx to any server I need 
throughout the development/test process.

By doing it this way, I never have to modify a build. They just work in call 
cases, whether that be local for development, or remote when deployed.

If you need any config assistance for Nginx, let me know.

Regards,
Brian

From: Roman Isitua mailto:romanisi...@gmail.com>>
Sent: Monday, October 18, 2021 9:23 AM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: [EXTERNAL] Configuring rpc end points in royale

Hi,

In an app, I am working on. I am using rpc based end points to access my back 
end. On my development machine I use localhost. I intend to start deploying the 
the app to a test server for testing. I realise that each time, I do a 
deployment to the test server, I have to remember to switch from local host to 
the ip address of the test server. I do this via the beans.mxml configuration 
files. (I am using crux). Sometimes I forget to do this,  so I have to redeploy 
again.

My question i

RE: [EXTERNAL] Re: Crux - ItemRenderer

2021-11-22 Thread Brian Raymes
To make Crux work within popups, simply dispatch the ADD_BEAN event for the 
content before opening it. For example:

var somePopupContent:SomePopupContent = new SomePopupContent();
dispatchEvent(new BeanEvent(BeanEvent.ADD_BEAN, somePopupContent));

var popup:PopUp = new PopUp();
popup.modal = true;
popup.content = somePopupContent;

addElement(popup);

popup.open = true;

Then, before closing, remove it:

dispatchEvent(new BeanEvent(BeanEvent.REMOVE_BEAN, this));
dispatchEvent(new Event('closePopUp'));

Hope this helps.

Brian


From: Roman Isitua 
Sent: Monday, November 22, 2021 12:33 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: Crux - ItemRenderer

I can confirm that crux setter injection does not work inside pop up. The work 
around I have come up with is to do the setter injection in the parent view 
then pass the variable to my pop.

By setter injection I mean,

 [Inject( source = "acctController.estateSearchList", bind = "true" )]
public function setEstateSearchList(val:ArrayList):void
{
 trace(" injected estateSearchList. hurray !! ");

this.estateSearchList = val;

trace(" estateSearchList has been set ! ");
}


However, I have noticed this style of injection works

  [Inject]
public var configData:ConfigData;


Regards,



On Sun, Nov 21, 2021 at 1:07 AM Greg Dove 
mailto:greg.d...@gmail.com>> wrote:
I can't say for certain Maria, because it's been some time since I used Crux.

Are your renderers in the main app, or are they in a popup? Crux may not work 
inside a popup, without some tweaking and tuning for JSStageEvents, iirc.

Beyond that I think Crux is not particularly suitable for ItemRenderers. At 
least I would personally try to avoid using it in this case, unless the 
renderer count is always relatively low.

One of the key differences between the JS implementation vs. the Flash 
implementation is when the bean setup is run to support processing the view. 
This is triggered by 'addedToStage' event, which does not have directly 
comparable support in the browser.
JSStageEvents bead creates a simulated 'addedToStage' event. But the way that 
works is asynchronous (delayed) compared to the way it works in flash (which is 
synchronous) as soon as the renderer is added to the stage. So that is one 
possible reason for things not working the same, because often the code that is 
creating the renderers is also explicitly running code in the newly created 
renderer instance (like setting data and possibly other calls). It might be 
doing this after it has been 'addedToStage' and there is no chance for the 
PostConstruct method to run first, because it would be delayed. But if 
PostConstruct is never running at all then it could be related to use in a 
Popup.
Another thing to check is to make sure the package filtering on the 
JSStageEvents is not excluding your renderers from having the simulated events 
being created.





On Sun, Nov 21, 2021 at 11:51 AM Maria Jose Esteve 
mailto:mjest...@iest.com>> wrote:
Hi, Is there any explanation for the fact that "[PostConstruct]" does not work 
in the itemrenderers?

Thx.
Hiedra


RE: [EXTERNAL] Configuring rpc end points in royale

2021-10-26 Thread Brian Raymes
Correct, remove the hostname and IP from your configuration and it will infer 
it at runtime. FYI, I’m using crux as well, although, I have mine configured a 
bit differently.

Example for you:

http://localhost:8080/messagebroker/websocket-amf>"
 destination="genericService">






Then, what I do, is set up my nginx proxy to forward traffic to my test server. 
Have the forward include the “spaceiofm”. Then, your code is deployment 
agnostic.

Hope that helps. Let me know if you need more concrete examples.

Brian

From: Roman Isitua 
Sent: Monday, October 25, 2021 12:25 PM
To: users@royale.apache.org
Subject: Re: [EXTERNAL] Configuring rpc end points in royale

Hi Brian,

Thanks for your response. Though I am still not clear how your suggestion will 
work. Formy app I am using crux. There is a beans.xml file where I configured 
my remote end points as follows


 http://localhost:8080/messagebroker/websocket-amf;
 destination="genericService">


 


When running the program on my development pc my server is localhost. So it 
works fine. When I deploy to the test server, the above configuration will not 
work. I have to adjust the ip address to be something like this

 http://192.68.43.22:8080/spaciofm/messagebroker/websocket-amf;
 destination="genericService">


 


If I do this, it works.

My guess is that there should be a way to configure the end point such that it 
defaults to the server host name without any configuration.

Regards,



On Mon, Oct 18, 2021 at 8:49 PM Brian Raymes 
mailto:brian.ray...@teotech.com>> wrote:
Hi Roman,

I do this by running a local instance of Nginx that proxies to my backend (or 
wherever you need as it’s easily changeable).

As for RPC configuration, I have mine all set relatively, as-in, simply:

AMFChannel("my-amf", "messagebroker/amf");

This way, they always look local, but proxy through Nginx to any server I need 
throughout the development/test process.

By doing it this way, I never have to modify a build. They just work in call 
cases, whether that be local for development, or remote when deployed.

If you need any config assistance for Nginx, let me know.

Regards,
Brian

From: Roman Isitua mailto:romanisi...@gmail.com>>
Sent: Monday, October 18, 2021 9:23 AM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: [EXTERNAL] Configuring rpc end points in royale

Hi,

In an app, I am working on. I am using rpc based end points to access my back 
end. On my development machine I use localhost. I intend to start deploying the 
the app to a test server for testing. I realise that each time, I do a 
deployment to the test server, I have to remember to switch from local host to 
the ip address of the test server. I do this via the beans.mxml configuration 
files. (I am using crux). Sometimes I forget to do this,  so I have to redeploy 
again.

My question is, is there a better way to configure my rpc end points such that 
I don't have to be changing ip addresses of the rpc end points in the 
beans.mxml file ?

Once testing is done, the app will be moved to production, again, ip addresses 
will change.

What is the best practice for configuring rpc end points in royale ?

Is there a way to store deployment environments specific configurations  ?


Regards,


RE: [EXTERNAL] Configuring rpc end points in royale

2021-10-18 Thread Brian Raymes
Hi Roman,

I do this by running a local instance of Nginx that proxies to my backend (or 
wherever you need as it’s easily changeable).

As for RPC configuration, I have mine all set relatively, as-in, simply:

AMFChannel("my-amf", "messagebroker/amf");

This way, they always look local, but proxy through Nginx to any server I need 
throughout the development/test process.

By doing it this way, I never have to modify a build. They just work in call 
cases, whether that be local for development, or remote when deployed.

If you need any config assistance for Nginx, let me know.

Regards,
Brian

From: Roman Isitua 
Sent: Monday, October 18, 2021 9:23 AM
To: users@royale.apache.org
Subject: [EXTERNAL] Configuring rpc end points in royale

Hi,

In an app, I am working on. I am using rpc based end points to access my back 
end. On my development machine I use localhost. I intend to start deploying the 
the app to a test server for testing. I realise that each time, I do a 
deployment to the test server, I have to remember to switch from local host to 
the ip address of the test server. I do this via the beans.mxml configuration 
files. (I am using crux). Sometimes I forget to do this,  so I have to redeploy 
again.

My question is, is there a better way to configure my rpc end points such that 
I don't have to be changing ip addresses of the rpc end points in the 
beans.mxml file ?

Once testing is done, the app will be moved to production, again, ip addresses 
will change.

What is the best practice for configuring rpc end points in royale ?

Is there a way to store deployment environments specific configurations  ?


Regards,


RE: [EXTERNAL] Re: users Digest 23 Jun 2021 15:46:41 -0000 Issue 1724

2021-06-24 Thread Brian Raymes
The register class alias below needs to be modified to the following. This will 
treat ArrayCollections as ArrayLists from BlazeDS.

// Treat ArrayCollection locally as Royale ArrayList
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);


Brian


From: romanisi...@yahoo.com 
Sent: Thursday, June 24, 2021 10:48 AM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: users Digest 23 Jun 2021 15:46:41 - Issue 1724


Good Day,

Thanks for your response. I have resolved the issues I was having. I have been 
able to do test with mx royale remote object. I discovered that I had to use 
the maven compilation option "option-with-swf". Then added some more 
dependencies. I looked up the dependencies from the parent module in the Remote 
AMF example project.


I have noticed that blazeds returns an "mx.collections.ArrayCollection" object 
for arrayList of custom object or arrayList of String or arrayList of Short 
server side (java).


As a result, adding the below code


  registerClassAlias("flex.messaging.io.ArrayList", ArrayList);  //


to give me
org.apache.royale.collections.ArrayList

Does not work. As a result, I have to convert to convert from  
"mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" 
to use my records in jewel datagrid.


I don't mind doing the conversion but I am wondering if this is an abnormal 
situation. Any ideas ?



Also please what is the maven dependency for
import org.apache.royale.net.remoting.amf.AMFBinaryData

AMFBinaryData.DEBUG = true;

The above code does not compile. I had to comment it out.


Regards,

On Thursday, June 24, 2021, 06:45:59 PM GMT+1, 
romanisi...@yahoo.com 
mailto:romanisi...@yahoo.com>> wrote:


Good Day,

Thanks for your response. I have resolved the issues I was having. I have been 
able to do test with mx royale remote object. I discovered that I had to use 
the maven compilation option "option-with-swf". Then added some more 
dependencies. I looked up the dependencies from the parent module in the Remote 
AMF example project.


I have noticed that blazeds returns an "mx.collections.ArrayCollection" object 
for arrayList of custom object or arrayList of String or arrayList of Short 
server side (java).


As a result, adding the below code


  registerClassAlias("flex.messaging.io.ArrayList", ArrayList);  //


to give me
org.apache.royale.collections.ArrayList

Does not work. As a result, I have to convert to convert from  
"mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" 
to use my records in jewel datagrid.


I don't mind doing the conversion but I am wondering if this is an abnormal 
situation. Any ideas ?



Also please what is the maven dependency for
import org.apache.royale.net.remoting.amf.AMFBinaryData

AMFBinaryData.DEBUG = true;

The above code does not compile. I had to comment it out.


Regards,
On Wednesday, June 23, 2021, 04:46:44 PM GMT+1, 
mailto:users-digest-h...@royale.apache.org>>
 wrote:



users Digest 23 Jun 2021 15:46:41 - Issue 1724

Topics (messages 4767 through 4769)

Switching from js remoteObject to mx remoteObject
4767 by: romanisitua.yahoo.com

Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
4768 by: romanisitua.yahoo.com
4769 by: Maria Jose Esteve

Administrivia:

-
To post to the list, e-mail: 
users@royale.apache.org
To unsubscribe, e-mail: 
users-digest-unsubscr...@royale.apache.org
For additional commands, e-mail: 
users-digest-h...@royale.apache.org

--


Hi everyone,

I am trying to switch from using js:RemoteObject to mx:RemoteObject.
I have studied the code in the "remote object amf test" project.

I am using jewel for the application. After registering the mx namespace
in the relevant places

xmlns:mx="library://ns.apache.org/royale/mx"

During compilation I get the following error

Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.

   values;

   // values has getter and setter
 }


 public class StringType
 {
   private List values;

   // values has getter and setter
 }


 With their corresponding as3 classes

  import org.apache.royale.collections.ArrayList;

 [RemoteClass(alias="com.test.generic.dto.types.ShortType")]
 [Bindable]
 public class ShortType
{


   private var _values:ArrayList;





  public function set values(values:ArrayList) : void
   {
  trace(" --- short values list set --- ");

   this._values = values;
   }

   public function get values():ArrayList
   {
   return this._values;
   }

   }


   import org.apache.royale.collections.ArrayList;

 

RE: [EXTERNAL] Re: Error using js:remoteObject

2021-06-15 Thread Brian Raymes
At the moment, the Royale variant of RemoteObject is not really supported. Use 
MX:RemoteObject for now as it is complete and tested. I believe js:RemoteObject 
needs more work/testing and is not ready for public use.

Switching may resolve your issue.

Also, I don’t believe you need to register ArrayList to ArrayList. At the 
moment, at least with Blaze 3.x, you need to alias ArrayCollection to ArrayList 
as lists are deserialized to ArrayCollections, and need to be treated as 
ArrayLists:

// Treat ArrayCollection locally as Royale ArrayList
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);


From: romanisi...@yahoo.com 
Sent: Tuesday, June 15, 2021 12:52 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: Error using js:remoteObject

I found the solution.

The mistake I made was with the method. I fixed it here

 service.send("getContacts", []);


This source was helpful.

https://github.com/apache/royale-asjs/blob/develop/examples/royale/RemoteObjectAMFTest/src/main/royale/App.mxml


Thanks everyone.



On Tuesday, June 15, 2021, 12:17:11 PM GMT+1, 
romanisi...@yahoo.com 
mailto:romanisi...@yahoo.com>> wrote:


I am trying to call my blazeds service from royale.
Trying to follow the guidelines specified here

https://apache.github.io/royale-docs/features/loading-external-data/remoteobject

I get the following error:

[onFault]

AbstractMessage.readExternal
Language.as:254 ReferenceError: Error #1056: Cannot create property faultDetail 
on flex.messaging.messages.ErrorMessage
Language.as:254 ReferenceError: Error #1056: Cannot create property faultCode 
on flex.messaging.messages.ErrorMessage
Language.as:254 ReferenceError: Error #1056: Cannot create property faultString 
on flex.messaging.messages.ErrorMessage
Language.as:254 ReferenceError: Error #1056: Cannot create property rootCause 
on flex.messaging.messages.ErrorMessage
Language.as:254 ReferenceError: Error #1056: Cannot create property 
extendedData on flex.messaging.messages.ErrorMessage



Code snippets are as follows

 trace(" -- registerClassAlias for royale array list -- ");

  
registerClassAlias('org.apache.royale.collections.ArrayList', ArrayList);

The above was registered at the main application.mxml.



http://localhost:8080/messagebroker/websocket-amf;
destination = "contactService"
result="onResult(event)" fault="onFault(event)"/>



  trace(" about to call contactService.getContacts ... ");
service.send("contactService.getContacts", null);


 private function onResult(param0:ResultEvent):void
{
 trace(" -- onResult oh ! -- ");

}

private function onFault(param0:FaultEvent):void
{
trace(" -- onFailure oh ! -- ");

var errorMessage : String = param0.message as String;

trace(" Error :: " + errorMessage);

trace("[onFault]", param0);
}


I am using jewel.

I am tested my blazeds end point using the java amf client. It works fine. This 
is my first attempt at calling a blazeds end point from royale.


Any ideas ?



RE: [EXTERNAL] Support for GenericDTO

2021-06-15 Thread Brian Raymes
To understand your problem a bit better, are you saying you’ll have the 
following?

ArrayList full of GenericDTO, each with a map of attributes? Binding the 
ArrayList of GenericDTO to the dataProvider will then use a single instance of 
GenericDTO for each row.

It almost seems as if you want rows for attributes, not for each GenericDTO?

You may have to build a new list that contains all attributes you want to 
render, or look into building/porting the AdvancedDataGrid from Flex. That 
allows sub-rows (folders) for situations like this.

As for dataFields in Royale, you have a couple of options. You generally set 
dataField to a relative path within the row’s data instance. For example,  
dataField="someValue" or dataField="someObject.someOtherObject.someValue" in 
more complex object scenarios.

As you can see, binding isn’t used for dataField.

You can also use a custom itemRender to build whatever sub-component you want 
for each cell. For example, I have Lists/DataContainer where each row can be 
another List/DataContainer, etc.

As for all other controls, yes, you can bind directly to their text/value 
fields.

FYI, maps, in my experience, or at least with the tools I’m using, turn into 
AS3 generic Objects. I’m coming from a Flex source base, being ported to 
Royale. Maps now exist, and may be usable with deserialization.

From: romanisi...@yahoo.com 
Sent: Tuesday, June 15, 2021 1:20 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Support for GenericDTO


Hi everyone,

From previous royale (flex) docs. I can see that it is possible to bind ui 
forms to action script objects (DTO's). i.e actionscirpt classes with public 
getter and setter methods.

The ORM we are using accepts and returns data as custom generic data transfer 
objects (GenericDTO). This generic dto is implemented as a hashMap of pojo's 
(by pojo I mean a java class with public getter and setter methods))

See the example java code snippet below:



public class GenericDTO implements Serializable {

private static final long serialVersionUID = 1L;

private Map attributes = null;

private String name = null;

public GenericDTO(String name) {

notNull(name, "The name of the DTO cannot be null...");

this.attributes = new HashMap();

this.name = name;

}

public GenericDTO add(String name, Attribute attribute) {

notNull(name, "Attribute name cannot be null");

notNull(attribute, "Attribute with name: " + name + " is null!");

this.attributes.put(name, attribute);

return this;

}



   // there are getter/setter method to return the HashMap of Attributes and 
name field.


   The attribute class is the base class of all data types. So we have 
StringType (for String), IntegerType (for Integer) that extend Attribute.

Class Attribute

public Object getInputValue();

public void setInputValue(final Object object);


Is it possible to bind the generic dto to royale ui controls ? e.g. for example 
I was able to bind an arrayList of ContactDTO successfully. This contactDTO had 
name and email as fields with public getter and setter methods as follows

 

 





Assuming it is possible to create ActionScript (as3) versions of GenericDTO, 
Attribute (with subclasses StringType, IntegerType e.t.c). Implementing the 
appropriate get and set functions.

Is it possible to bind an arrayList of GenericDTO to a royale data grid as 
follows ?

 







i.e. use databinding expressions in the dataField of the data grid ?

How about other royale UI controls ? e.g textFields and numberFields in a UI 
form.


Regards,

Roman,



Virtual DataGrid Broken?

2021-06-01 Thread Brian Raymes
Hello,

Can someone provide some assistance on how to use and/or the VirtualDataGrid 
from its current form? It seems broken in the latest builds (see on Tour De 
Jewel).

At the moment, all columns contain scroll bars and the header is not factored 
into the full height.

Variable row height also doesn't appear to work. I've tried both 
DataGridPresentationModel and DataGridColumnListPresentationModel beads.

Thank you.

Brian



Custom MXML Royale Component Binding Issues

2021-05-06 Thread Brian Raymes
Hi all,

I've been seeing a strange binding issue as of late, and I can't seem to track 
down where or how it is failing. Perhaps I'm doing something wrong?

Here is a basic example. Let's pretend I have a custom component that I want to 
reuse, called FlexibleForm.


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


[DefaultProperty("content")]



















If I were to have another item, like this, say IconLabelFormItem:


http://ns.adobe.com/mxml/2009
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:js="library://ns.apache.org/royale/basic"
xmlns:html="library://ns.apache.org/royale/html"
xmlns:form="com.something.components.form.*"
label="Type">




















Then, if I were to use both to do the following:


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










The MaterialIcon and Label will be empty as if the bindings did not fire. Yes, 
the ContainerDataBinding is not defined in the last file, but I've noticed that 
doesn't seem necessary if extending a component that already declares the 
binding bead.

If I simply remove the outer HGroup, the bindings fire correctly. See the 
following example:


http://ns.adobe.com/mxml/2009
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:js="library://ns.apache.org/royale/basic"
xmlns:html="library://ns.apache.org/royale/html"
xmlns:form="com.something.components.form.*"
label="Type">



















I have two issues to discuss:


  1.  How do I find out how/why the bindings are failing? This is not the first 
time I've seen this issue. Sometimes, a fix to an issue like this may be making 
a binding like this: "{key.something.icon}" to "{key.somethignIcon}" (by adding 
a getter). In this case, it isn't working.
  2.  How does one extend a custom mxml file to set a default property to put 
items into a child component? Is the addedToParent approach incorrect?

Thank you for your assistance!


Brian



RE: [EXTERNAL] Re: Soft Keyboard Issue

2021-03-16 Thread Brian Raymes
Take a look at org.apache.royale.utils.OSUtils

-Original Message-
From: Bilbosax  
Sent: Tuesday, March 16, 2021 2:42 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: Soft Keyboard Issue

I have come up with a bandaid for now.  If a textInput gains focus, I block the 
resizing of my app, and allow it to resize again after the textInput loses 
focus.

This works great on a mobile device because they have soft keyboards and are 
the root of this problem. This still leaves a problem for me because if someone 
clicks a textInput on a desktop browser, and then tries to resize their browser 
while the textInput has focus, the app will not rescale. This is also the case 
if they rotate their mobile device during input.

So it just feels like a bandaid.

Wish there was a reliable way to test whether the browser was on a phone, a 
tablet, or a desktop.  Then the problem would be solved.



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


List/DataContainer Animations?

2021-03-02 Thread Brian Raymes
Hi everyone,

Does anyone here know of an easy way to add animations to Lists/DataContainers 
for adds/removes/reordering?

For example, given that they are mostly built with the flex box, can something 
like this be done? https://codepen.io/osublake/pen/dMLQJr

Brian




RE: [EXTERNAL] Re: Horizontal Layout - Actionscript

2021-03-02 Thread Brian Raymes
Hi Carlos,

More of an FYI regarding the tile layouts, they currently break in a few ways 
that mess with layout. See images. I haven’t quite figured out the reason, but 
though you should know.

[cid:image001.png@01D70F47.4A477290][cid:image002.png@01D70F47.4A477290]

This was achieved by simply playing with the sliders and or resizing browser 
(in my app).

For now, I’ve been using the flow layout with no gap and an added margin to my 
item renderers to simulate the gaps.


Brian

From: Carlos Rovira 
Sent: Tuesday, March 2, 2021 8:50 AM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: Horizontal Layout - Actionscript

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 
(mailto:waspenc...@comcast.net>>) 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: [EXTERNAL] Crux - binding model between views

2021-02-18 Thread Brian Raymes
I haven’t had the need to use it yet. I’m not sure. 

From: Carlos Rovira 
Sent: Wednesday, February 17, 2021 5:17 AM
To: users@royale.apache.org
Subject: Re: [EXTERNAL] Crux - binding model between views

Hi Brian,

is double binding working?

thanks

El mar, 16 feb 2021 a las 22:11, Maria Jose Esteve 
(mailto:mjest...@iest.com>>) escribió:
Double binding? she hadn't thought about it ...
I will try it. Thanks Brian.

Hiedra.

De: Brian Raymes mailto:brian.ray...@teotech.com>>
Enviado el: sábado, 13 de febrero de 2021 20:04
Para: users@royale.apache.org<mailto: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 mailto:mjest...@iest.com>>
Sent: Wednesday, February 10, 2021 5:25 AM
To: users@royale.apache.org<mailto: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)


http://ns.adobe.com/mxml/2009
…
private var _isOnAddingMode:Boolean;
  [Bindable]
  public function get isOnAddingMode():Boolean{   return _isOnAddingMode;}
  public function set isOnAddingMode(value:Boolean):void{ _isOnAddingMode = 
value;}
…

  
 

  
…


Implementation, example, CustomerView.mxml:


http://ns.adobe.com/mxml/2009;

xmlns:j="library://ns.apache.org/royale/jewel<http://ns.apache.org/royale/jewel>"
…
isOnAddingMode="{customerModel.currentState == UtilConstants.STATE_ADDING}"
>


RE: [EXTERNAL] Crux - binding model between views

2021-02-13 Thread Brian Raymes
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)


http://ns.adobe.com/mxml/2009
…
private var _isOnAddingMode:Boolean;
  [Bindable]
  public function get isOnAddingMode():Boolean{   return _isOnAddingMode;}
  public function set isOnAddingMode(value:Boolean):void{ _isOnAddingMode = 
value;}
…

  
 

  
…


Implementation, example, CustomerView.mxml:


http://ns.adobe.com/mxml/2009;
xmlns:j="library://ns.apache.org/royale/jewel"
…
isOnAddingMode="{customerModel.currentState == UtilConstants.STATE_ADDING}"
>


Flex Shrink...

2021-02-12 Thread Brian Raymes
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


RE: [EXTERNAL] Jewel Label - Newline/Linebreak

2021-02-11 Thread Brian Raymes
The following will work (notice html instead of text):

label.html ="first namelast name"

The following will also work:

label.text = "first name{'\n'}last name"


-Original Message-
From: Bilbosax  
Sent: Thursday, February 11, 2021 12:54 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Jewel Label - Newline/Linebreak

I have a label that I need to put a linebreak in.  I cant figure out how to get 
a newline in my Jewel Label.  In the text property for the label, I have
tried:

label.text = "first namelast name"
label.text = "first name\nlast name"
label.text = "first name\rlast name"
label.text = "first name\n\rlast name"
label.text = "first namelast name"
label.text = "first namelast name"


None of these have worked.  What is the secret?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


Garbage Collection Problem

2021-02-05 Thread Brian Raymes
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();
}












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


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

2021-01-26 Thread Brian Raymes
I agree with Carlos – it sounds like a cache problem. Clear the cache in your 
browser, and try again. I’ve had to do that a lot lately as changes are not 
being seen in my output.

Without ADD_BEAN, the popups are not wired for CRUX. That has been my 
experience, at least.

I look forward to trying this out! It will simplify my code in many places!


Brian

From: Carlos Rovira 
Sent: Sunday, January 24, 2021 2:27 AM
To: users@royale.apache.org
Subject: Re: [EXTERNAL] Popup and Databinding with Crux (RE: Popup and 
Databinding)

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 
(mailto:mjest...@iest.com>>) 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 mailto:carlosrov...@apache.org>>
Enviado el: sábado, 23 de enero de 2021 16:35
Para: users@royale.apache.org<mailto: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 
(mailto:mjest...@iest.com>>) escribió:
Yes, it seemed to me too . I will clean the code and share it (maybe tomorrow).

Hiedra.

De: Carlos Rovira mailto:carlosrov...@apache.org>>
Enviado el: viernes, 22 de enero de 2021 20:09
Para: users@royale.apache.org<mailto: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 
(mailto:mjest...@iest.com>>) 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 mailto:brian.ray...@teotech.com>>
Enviado el: viernes, 22 de enero de 2021 18:02
Para: users@royale.apache.org<mailto: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 mailto:mjest...@iest.com>>
Sent: Friday, January 22, 2021 2:40 AM
To: users@royale.apache.org<mailto: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 

RE: [EXTERNAL] CSS & JS file versioning

2021-01-25 Thread Brian Raymes
Can you describe your workflow with that setting? Chrome, for example, turns 
that off with every launch.

I miss the days when I could launch a browser with the cache disabled. I wish 
it were still possible.


From: Harbs 
Sent: Saturday, January 23, 2021 11:32 AM
To: users@royale.apache.org
Subject: Re: [EXTERNAL] CSS & JS file versioning

That’s not necessary. All browsers have a checkbox to disable cache while 
devtools are open.

HTH,
Harbs


On Jan 23, 2021, at 1:58 AM, Brian Raymes 
mailto:brian.ray...@teotech.com>> wrote:

FYI, I have expanded upon this for my debug version as well:

This adds a timestamp to ever every js reference provided in the debug output 
to hopefully thwart the cache. I’ve been having to clear my cache a lot lately, 
and I’m hoping this removes the need.

  
com.google.code.maven-replacer-plugin
replacer
1.5.3

  
package

  replace

  


  false
  ${basedir}/target/javascript/bin/js-debug/index.html
  

  
  


  
  

  

  



From: Carlos Rovira mailto:carlosrov...@apache.org>>
Sent: Thursday, January 14, 2021 1:27 AM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: [EXTERNAL] CSS & JS file versioning

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 
(mailto:brian.ray...@teotech.com>>) 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 mailto:massc...@gmx.de>>
Sent: Tuesday, January 12, 2021 1:47 AM
To: users@royale.apache.org<mailto: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: [EXTERNAL] CSS & JS file versioning

2021-01-22 Thread Brian Raymes
FYI, I have expanded upon this for my debug version as well:

This adds a timestamp to ever every js reference provided in the debug output 
to hopefully thwart the cache. I’ve been having to clear my cache a lot lately, 
and I’m hoping this removes the need.

  
com.google.code.maven-replacer-plugin
replacer
1.5.3

  
package

  replace

  


  false
  ${basedir}/target/javascript/bin/js-debug/index.html
  

  
  


  
  

  

  



From: Carlos Rovira 
Sent: Thursday, January 14, 2021 1:27 AM
To: users@royale.apache.org
Subject: Re: [EXTERNAL] CSS & JS file versioning

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 
(mailto:brian.ray...@teotech.com>>) 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 mailto:massc...@gmx.de>>
Sent: Tuesday, January 12, 2021 1:47 AM
To: users@royale.apache.org<mailto: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: [EXTERNAL] Popup and Databinding with Crux (RE: Popup and Databinding)

2021-01-22 Thread Brian Raymes
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 mailto:warren.r.k...@boeing.com>>

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/


RE: [EXTERNAL] CSS & JS file versioning

2021-01-14 Thread Brian Raymes
Oooh! I didn’t know we could do that. Very neat!

Thank you for sharing.

Brian

From: Carlos Rovira 
Sent: Thursday, January 14, 2021 1:27 AM
To: users@royale.apache.org
Subject: Re: [EXTERNAL] CSS & JS file versioning

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 
(mailto:brian.ray...@teotech.com>>) 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 mailto:massc...@gmx.de>>
Sent: Tuesday, January 12, 2021 1:47 AM
To: users@royale.apache.org<mailto: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: [EXTERNAL] CSS & JS file versioning

2021-01-12 Thread Brian Raymes
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!


Re: [EXTERNAL] Re: Styling a Royale List

2020-10-23 Thread Brian Raymes
Hi Warren,

Item Renderers and their layout are separate from the List. See the following 
example:

List:


 
  
  


Item Renderer:

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
















From: wkoch 
Sent: Friday, October 23, 2020 8:55 AM
To: users@royale.apache.org 
Subject: Re: [EXTERNAL] Re: Styling a Royale List

I tried.  And failed.  The padding bead worked but it only controls the
padding around all the items in the list, not the items in the list.  I'm
sure I have to do something in CSS but I don't know where.


 
  
  
  
  
  





--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


RE: [EXTERNAL] Re: ListAlternateRowColor bead

2020-10-05 Thread Brian Raymes
One thing to keep in mind, getClassStyle is coupled to the “first” stylesheet 
referenced in the html template. With the current implementation, if you have 
more than one, getClassStyle will fail to find the appropriate items if the 
item being looked for is not within the first file.

Problem -> document.styleSheets[0]

The CORS error popped up for me in a few cases and confused me as I am running 
a server and not offline. It was because I had a couple stylesheets before the 
one that royale compiler creates in the generated html file.

This may or may not be related to the issue being discussed here. 

Brian



From: Carlos Rovira 
Sent: Sunday, October 4, 2020 11:53 AM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: ListAlternateRowColor bead

One thing. That class (that should be temporal until we get fixed some compiler 
problems with some CSS rules) uses dynamic selectors and getClassStyle with 
needs some special configuration to launch chrome when working offline. Could 
be that the problem?
If you see TDJ online it works right: 
https://royale.apache.org/tourdejewel/#!list_panel

see:

/**
 * Get an Object with all styles in a CSS className.
 * classname must match exactly the selector used in the CSS
 *
 * Note that due to CORS restrictions im Chrome, if you're working offline 
you need to
 * use: chrome --allow-file-access-from-files, or other browser
 *
 * @royalesuppressexport
 */
COMPILE::JS
public function getClassStyle(className:String):Object

El dom., 4 oct. 2020 a las 20:49, Carlos Rovira 
(mailto:carlosrov...@apache.org>>) escribió:
Sorry, the link you provide require access. Better use a site to share images 
like http://imgur.com/

El dom., 4 oct. 2020 a las 19:07, Maria Jose Esteve 
(mailto:mjest...@iest.com>>) escribió:
Hello,
I have started using the "ListAlternateRowColor" bead in my Jewel List controls 
but the background-color does not change for the selected item or for the 
highlighted item, over. The font color does change but the background-color 
does not.
I have looked at the TDJ and I see that it does work there but I have not found 
"the reason".
I don't have any custom styles, neither with the tag "style" nor with 
"className".

We can see the example in the ECharts project but I include a gif to show the 
behavior. [1]

Any ideas?

[1] 
https://drive.google.com/file/d/16F4jNBhJf1xu9BsX9uc_Kj36jYX0bitE/view?usp=sharing

Thx.
Hiedra.



--
Carlos Rovira
http://about.me/carlosrovira



--
Carlos Rovira
http://about.me/carlosrovira



RE: Jewel "ApplicationResponsiveView" change name to "ResponsiveView"

2020-08-27 Thread Brian Raymes
Ah! I missed that issue; I’ll update. Thank you! It’s never trouble when 
playing with the latest. I consider it part of the fun. 

From: Carlos Rovira 
Sent: Thursday, August 27, 2020 1:40 AM
To: users@royale.apache.org
Subject: Re: Jewel "ApplicationResponsiveView" change name to "ResponsiveView"

Hi Brian,

right, it was my mistake. A line I thought I was removed, but end in the 
refactor commit.
Just fixed thanks to Javier exposing it here: 
https://github.com/apache/royale-asjs/issues/901

sorry for the trouble



El jue., 27 ago. 2020 a las 2:07, Brian Raymes 
(mailto:brian.ray...@teotech.com>>) escribió:
Hi Carlos,

I believe this change, or some other change made recently, may have caused some 
unexpected side effects.

My application, as well as TourDeJewel, no longer respond to window size 
changes. The menu no longer auto collapses and the page contents no longer 
resize in any way. Whatever initial size they started with is now how they 
persist throughout runtime.


Brian



From: Carlos Rovira mailto:carlosrov...@apache.org>>
Sent: Saturday, August 22, 2020 9:33 AM
To: Apache Royale Development 
mailto:d...@royale.apache.org>>; 
users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Jewel "ApplicationResponsiveView" change name to "ResponsiveView"

Hi,

just let you know that as part of improving the docs and cleaning APIs and more 
to the way to 1.0, I'm doing some refactorings to do some little adjustments to 
Jewel.

Most of the changes are internal, but this one will need you to change your 
code: To make names more coherent I'm renaming "ApplicationResponsiveView" to 
"ResponsiveView", so we have "View" and "ResponsiveView" as view 
implementations.

Thanks

--
Carlos Rovira
http://about.me/carlosrovira



--
Carlos Rovira
http://about.me/carlosrovira



RE: Jewel "ApplicationResponsiveView" change name to "ResponsiveView"

2020-08-26 Thread Brian Raymes
Hi Carlos,

I believe this change, or some other change made recently, may have caused some 
unexpected side effects.

My application, as well as TourDeJewel, no longer respond to window size 
changes. The menu no longer auto collapses and the page contents no longer 
resize in any way. Whatever initial size they started with is now how they 
persist throughout runtime.


Brian



From: Carlos Rovira 
Sent: Saturday, August 22, 2020 9:33 AM
To: Apache Royale Development ; users@royale.apache.org
Subject: Jewel "ApplicationResponsiveView" change name to "ResponsiveView"

Hi,

just let you know that as part of improving the docs and cleaning APIs and more 
to the way to 1.0, I'm doing some refactorings to do some little adjustments to 
Jewel.

Most of the changes are internal, but this one will need you to change your 
code: To make names more coherent I'm renaming "ApplicationResponsiveView" to 
"ResponsiveView", so we have "View" and "ResponsiveView" as view 
implementations.

Thanks

--
Carlos Rovira
http://about.me/carlosrovira



RE: css rule @keyframes

2020-07-15 Thread Brian Raymes
As a workaround, you can add any style that doesn’t’ work with the compiler in 
a  section in your html template. I’ve been doing this for a long while 
now as it not just keyframes that the compiler doesn’t like.

For example, in addition to keyframes, to add alternating row colors and custom 
highlights to lists, I have added the following to my index-template.html file 
as adding an nth-child() to the css also creates a compilation error.