There are two ways, depending on the scenario:

  1.  Make sure none of the properties in the binding expression are of type 
Object and that the instances support change events
  2.  Annotate the appropriate properties with [Bindable(“__NoChangeEvent__”)]

This expression looks like itemRenderer code and “data” is Object.  If you are 
passing in a Foo as data, then the expression should be:
visible="{(data as Foo).visualParams.commandabilityParams.isResumable == true}"

Then if visualParams and commandabilityParams are not plain Objects, the 
binding subsystem will watch for change events correctly and the warning should 
go way.

Sometimes you do want to use a plain object where the individual properties are 
not going to change.  You’ll change the entire object instead of individual 
properties.  This is common in renderers.  In such a case you can use the 
“__NoChangeEvent__”.

HTH,
-Alex

From: serkan <ser...@likyateknoloji.com>
Reply-To: "users@royale.apache.org" <users@royale.apache.org>
Date: Monday, June 8, 2020 at 7:44 AM
To: "users@royale.apache.org" <users@royale.apache.org>
Subject: Compiler warnings !

Hi,

Is it possble to get rid of these warnings ?

Warning: Data binding will not be able to detect assignments to 'isResumable'.

                         
visible="{data.visualParams.commandabilityParams.isResumable == true}"

Thanks,
Serkan

Reply via email to