piotrzarzycki21 opened a new issue #639: Binding doesn't work in Jewel List 
item renderers using VO
URL: https://github.com/apache/royale-asjs/issues/639
 
 
   In a simple case where I have Jewel List which is being feed by ArrayList of 
VO Binding in item renderers doesn't work. Following scenario is presented in 
attached example:
   1) I have [Bindable] VO which is being displayed in the list
   2) I have following item renderer: 
   ```
   <?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("dataChange")]
               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 text="{someVO.itemQuantity}" percentWidth="100"/>
        </j:HGroup>
   </j:ListItemRenderer>
   ```
   3) I'm changing itemQuantity property in other view:
   ```
   var tmpVO:SomeVO = someItems.getItemAt(0) as SomeVO;
   tmpVO.itemQuantity += 1;
   ```
   
   Value is not changing in the list. In my opinion it should.
   
   
[NewJavaScriptBrowserProject.zip](https://github.com/apache/royale-asjs/files/3994889/NewJavaScriptBrowserProject.zip)
   

----------------------------------------------------------------
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

Reply via email to