piotrzarzycki21 commented on issue #639: Binding doesn't work in Jewel List item renderers using VO URL: https://github.com/apache/royale-asjs/issues/639#issuecomment-569518504 A bit of an update to that issue. We have changed item renderer from example to following one: <?xml version="1.0" encoding="utf-8"?> ``` <j:ListItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:j="library://ns.apache.org/royale/jewel" xmlns:js="library://ns.apache.org/royale/basic"> <fx:Script> <![CDATA[ [Bindable("valueChange")] // <-- NOTE: Replaced 'dataChange' with 'valueChange' public function get someVO():SomeVO { return data as SomeVO; } ]]> </fx:Script> <j:beads> <js:ItemRendererDataBinding /> </j:beads> <j:HGroup percentWidth="100" percentHeight="100" itemsHorizontalAlign="itemsCentered" itemsVerticalAlign="itemsCentered"> <j:Label localId="itemQuantity" text="{someVO.itemQuantity}" percentWidth="100"/> </j:HGroup> </j:ListItemRenderer> ``` Everything started to work. Please look into `Bindable `tag of property `someVO`. Additionally in attached example we have following code, where someItems is an ArrayList. ``` someItems = new ArrayList(); someItems.addItem(new SomeVO()); ``` Above doesn't work for some reason as well - I will try to look into that part. When I have changed it to: `someItems = new ArrayList([new SomeVO()]); ` It feeds list properly and along with item renderer changes everything started to properly work.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
