Re: Data Binding problem

2020-02-05 Thread De Carli Gustavo
Excelent, Thanks Carlos


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
























> [image: image.png]
>
>


Re: Data Binding problem

2020-02-05 Thread Carlos Rovira
Hi,

As Yishay pointed before, the document root tag is the important one here.
For Application is ApplicationDataBinding.
You can move the view to a new file and make it root of that file, in that
case you use ViewDataBinding

HTH

Carlos


El mié., 5 feb. 2020 a las 19:29, De Carli Gustavo (<
gustavodeca...@gmail.com>) escribió:

>
> Carlos, sorry the ViewDataBinding ,
> Is it well applied?
> The grid and the input text do not show values.
>
> Thank
>
> 
> http://ns.adobe.com/mxml/2009;
> xmlns:j="library://ns.apache.org/royale/jewel"
> xmlns:js="library://ns.apache.org/royale/basic"
> width="100%"
> height="100%">
> 
>
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> El mié., 5 feb. 2020 a las 15:00, Carlos Rovira ()
> escribió:
>
>> Hi,
>>
>> as Yishay said, each component/container type has its own binding bead:
>>
>>
>>- Application - ApplicationDataBinding
>>- View - ViewDataBinding
>>- Container - ContainerDataBinding
>>
>>
>> El mié., 5 feb. 2020 a las 16:52, Yishay Weiss ()
>> escribió:
>>
>>> As I understand it the bead you use depends on your document type. If
>>> your root tag were a View you would use ViewDataBinding. I’m not aware of
>>> performance differences but I wasn’t involved in writing Binding so others
>>> may want to comment.
>>>
>>>
>>>
>>> *From: *De Carli Gustavo 
>>> *Sent: *Wednesday, February 5, 2020 3:35 PM
>>> *To: *users@royale.apache.org
>>> *Subject: *Re: Data Binding problem
>>>
>>>
>>>
>>> Hello Yishay, thank, with ApplicationDataBinding work !
>>>
>>> I understand that I can shorten the level of "binding", so I am trying
>>> to use "ViewDataBinding" without success
>>>
>>> Is it recommended to use "ApplicationDataBinding"? or is less performant
>>>
>>>
>>>
>>>
>>>
>>> Thank very much.
>>>
>>> Gustavo.
>>>
>>>
>>>
>>> El mié., 5 feb. 2020 a las 10:02, Yishay Weiss ()
>>> escribió:
>>>
>>> Have you tried adding ApplicationDataBinding? See example [1]
>>>
>>>
>>>
>>> [1]
>>> https://royale.apache.org/binding-the-text-property-of-a-jewel-textinput-to-update-a-text-label/
>>>
>>>
>>>
>>> *From: *De Carli Gustavo 
>>> *Sent: *Wednesday, February 5, 2020 12:15 AM
>>> *To: *users@royale.apache.org
>>> *Subject: *Data Binding problem
>>>
>>>
>>>
>>>
>>>
>>> Hello.
>>>
>>>
>>> I do not find what the concept of error is because it does not work
>>> "binding" from the beginning, but in the method refresh  .
>>>
>>> Don't load the data for default.
>>>
>>>
>>>
>>> Thk.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> http://ns.adobe.com/mxml/2009;
>>>
>>>
>>>
>>> xmlns:j="library://ns.apache.org/royale/jewel"
>>>
>>>
>>>
>>> xmlns:js="library://ns.apache.org/royale/basic"
>>>
>>>
>>>
>>>
>>> width="100%"
>>>
>>>
>>>
>>> height="100%">
>>>
>>>
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>>  
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> >>
>>>
>>>
>>> width="400"
>>>
>>>
>>>
>>> height="200"
>>>
>>>
>>>
>>> dataProvider="{data}">
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> >> "refresh(event)"/>
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>

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


Re: Data Binding problem

2020-02-05 Thread De Carli Gustavo
Carlos, sorry the ViewDataBinding ,
Is it well applied?
The grid and the input text do not show values.

Thank


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























El mié., 5 feb. 2020 a las 15:00, Carlos Rovira ()
escribió:

> Hi,
>
> as Yishay said, each component/container type has its own binding bead:
>
>
>- Application - ApplicationDataBinding
>- View - ViewDataBinding
>- Container - ContainerDataBinding
>
>
> El mié., 5 feb. 2020 a las 16:52, Yishay Weiss ()
> escribió:
>
>> As I understand it the bead you use depends on your document type. If
>> your root tag were a View you would use ViewDataBinding. I’m not aware of
>> performance differences but I wasn’t involved in writing Binding so others
>> may want to comment.
>>
>>
>>
>> *From: *De Carli Gustavo 
>> *Sent: *Wednesday, February 5, 2020 3:35 PM
>> *To: *users@royale.apache.org
>> *Subject: *Re: Data Binding problem
>>
>>
>>
>> Hello Yishay, thank, with ApplicationDataBinding work !
>>
>> I understand that I can shorten the level of "binding", so I am trying to
>> use "ViewDataBinding" without success
>>
>> Is it recommended to use "ApplicationDataBinding"? or is less performant
>>
>>
>>
>>
>>
>> Thank very much.
>>
>> Gustavo.
>>
>>
>>
>> El mié., 5 feb. 2020 a las 10:02, Yishay Weiss ()
>> escribió:
>>
>> Have you tried adding ApplicationDataBinding? See example [1]
>>
>>
>>
>> [1]
>> https://royale.apache.org/binding-the-text-property-of-a-jewel-textinput-to-update-a-text-label/
>>
>>
>>
>> *From: *De Carli Gustavo 
>> *Sent: *Wednesday, February 5, 2020 12:15 AM
>> *To: *users@royale.apache.org
>> *Subject: *Data Binding problem
>>
>>
>>
>>
>>
>> Hello.
>>
>>
>> I do not find what the concept of error is because it does not work
>> "binding" from the beginning, but in the method refresh  .
>>
>> Don't load the data for default.
>>
>>
>>
>> Thk.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 
>>
>>
>>
>> http://ns.adobe.com/mxml/2009;
>>
>>
>>
>> xmlns:j="library://ns.apache.org/royale/jewel"
>>
>>
>>
>> xmlns:js="library://ns.apache.org/royale/basic"
>>
>>
>>
>>
>> width="100%"
>>
>>
>>
>> height="100%">
>>
>>
>>
>>
>>
>> 
>>
>>
>>
>>  
>>
>>
>>
>> 
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 
>>
>>
>>
>> 
>>
>>
>>
>> >
>>
>>
>> width="400"
>>
>>
>>
>> height="200"
>>
>>
>>
>> dataProvider="{data}">
>>
>>
>>
>> 
>>
>>
>>
>> 
>>
>>
>>
>> 
>>
>>
>>
>> 
>>
>>
>>
>> 
>>
>>
>>
>> > "refresh(event)"/>
>>
>>
>>
>> 
>>
>>
>>
>> 
>>
>>
>>
>> 
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>


Re: Data Binding problem

2020-02-05 Thread Carlos Rovira
Hi,

as Yishay said, each component/container type has its own binding bead:


   - Application - ApplicationDataBinding
   - View - ViewDataBinding
   - Container - ContainerDataBinding


El mié., 5 feb. 2020 a las 16:52, Yishay Weiss ()
escribió:

> As I understand it the bead you use depends on your document type. If your
> root tag were a View you would use ViewDataBinding. I’m not aware of
> performance differences but I wasn’t involved in writing Binding so others
> may want to comment.
>
>
>
> *From: *De Carli Gustavo 
> *Sent: *Wednesday, February 5, 2020 3:35 PM
> *To: *users@royale.apache.org
> *Subject: *Re: Data Binding problem
>
>
>
> Hello Yishay, thank, with ApplicationDataBinding work !
>
> I understand that I can shorten the level of "binding", so I am trying to
> use "ViewDataBinding" without success
>
> Is it recommended to use "ApplicationDataBinding"? or is less performant
>
>
>
>
>
> Thank very much.
>
> Gustavo.
>
>
>
> El mié., 5 feb. 2020 a las 10:02, Yishay Weiss ()
> escribió:
>
> Have you tried adding ApplicationDataBinding? See example [1]
>
>
>
> [1]
> https://royale.apache.org/binding-the-text-property-of-a-jewel-textinput-to-update-a-text-label/
>
>
>
> *From: *De Carli Gustavo 
> *Sent: *Wednesday, February 5, 2020 12:15 AM
> *To: *users@royale.apache.org
> *Subject: *Data Binding problem
>
>
>
>
>
> Hello.
>
>
> I do not find what the concept of error is because it does not work
> "binding" from the beginning, but in the method refresh  .
>
> Don't load the data for default.
>
>
>
> Thk.
>
>
>
>
>
>
>
>
>
> 
>
>
>
> http://ns.adobe.com/mxml/2009;
>
>
>
> xmlns:j="library://ns.apache.org/royale/jewel"
>
>
>
> xmlns:js="library://ns.apache.org/royale/basic"
>
>
>
>
> width="100%"
>
>
>
> height="100%">
>
>
>
>
>
> 
>
>
>
>  
>
>
>
> 
>
>
>
>
>
>
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
> width="400"
>
>
>
> height="200"
>
>
>
> dataProvider="{data}">
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
>  "refresh(event)"/>
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
>
>
>
>


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


RE: Data Binding problem

2020-02-05 Thread Yishay Weiss
As I understand it the bead you use depends on your document type. If your root 
tag were a View you would use ViewDataBinding. I’m not aware of performance 
differences but I wasn’t involved in writing Binding so others may want to 
comment.

From: De Carli Gustavo<mailto:gustavodeca...@gmail.com>
Sent: Wednesday, February 5, 2020 3:35 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: Data Binding problem

Hello Yishay, thank, with ApplicationDataBinding work !
I understand that I can shorten the level of "binding", so I am trying to use 
"ViewDataBinding" without success
Is it recommended to use "ApplicationDataBinding"? or is less performant



Thank very much.
Gustavo.

El mié., 5 feb. 2020 a las 10:02, Yishay Weiss 
(mailto:yishayj...@hotmail.com>>) escribió:
Have you tried adding ApplicationDataBinding? See example [1]

[1] 
https://royale.apache.org/binding-the-text-property-of-a-jewel-textinput-to-update-a-text-label/

From: De Carli Gustavo<mailto:gustavodeca...@gmail.com>
Sent: Wednesday, February 5, 2020 12:15 AM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Data Binding problem


Hello.

I do not find what the concept of error is because it does not work "binding" 
from the beginning, but in the method refresh  .
Don't load the data for default.

Thk.






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


xmlns:j="library://ns.apache.org/royale/jewel<http://ns.apache.org/royale/jewel>"


xmlns:js="library://ns.apache.org/royale/basic<http://ns.apache.org/royale/basic>"

width="100%"

height="100%">




 


































Re: Data Binding problem

2020-02-05 Thread De Carli Gustavo
Hello Yishay, thank, with ApplicationDataBinding work !
I understand that I can shorten the level of "binding", so I am trying to
use "ViewDataBinding" without success
Is it recommended to use "ApplicationDataBinding"? or is less performant


Thank very much.
Gustavo.

El mié., 5 feb. 2020 a las 10:02, Yishay Weiss ()
escribió:

> Have you tried adding ApplicationDataBinding? See example [1]
>
>
>
> [1]
> https://royale.apache.org/binding-the-text-property-of-a-jewel-textinput-to-update-a-text-label/
>
>
>
> *From: *De Carli Gustavo 
> *Sent: *Wednesday, February 5, 2020 12:15 AM
> *To: *users@royale.apache.org
> *Subject: *Data Binding problem
>
>
>
>
>
> Hello.
>
>
> I do not find what the concept of error is because it does not work
> "binding" from the beginning, but in the method refresh  .
>
> Don't load the data for default.
>
>
>
> Thk.
>
>
>
>
>
>
>
>
>
> 
>
>
>
> http://ns.adobe.com/mxml/2009;
>
>
>
> xmlns:j="library://ns.apache.org/royale/jewel"
>
>
>
> xmlns:js="library://ns.apache.org/royale/basic"
>
>
>
>
> width="100%"
>
>
>
> height="100%">
>
>
>
>
>
> 
>
>
>
>  
>
>
>
> 
>
>
>
>
>
>
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
> width="400"
>
>
>
> height="200"
>
>
>
> dataProvider="{data}">
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
>  "refresh(event)"/>
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
>
>


RE: Data Binding problem

2020-02-05 Thread Yishay Weiss
Have you tried adding ApplicationDataBinding? See example [1]

[1] 
https://royale.apache.org/binding-the-text-property-of-a-jewel-textinput-to-update-a-text-label/

From: De Carli Gustavo
Sent: Wednesday, February 5, 2020 12:15 AM
To: users@royale.apache.org
Subject: Data Binding problem


Hello.

I do not find what the concept of error is because it does not work "binding" 
from the beginning, but in the method refresh  .
Don't load the data for default.

Thk.






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


xmlns:j="library://ns.apache.org/royale/jewel"


xmlns:js="library://ns.apache.org/royale/basic"

width="100%"

height="100%">