You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2017/10/24 11:12:26 UTC

[GitHub] justinmclean commented on issue #47: ViewDataBinding/ContainerDataBinding fails to bind to string

justinmclean commented on issue #47: ViewDataBinding/ContainerDataBinding fails to bind to string
URL: https://github.com/apache/royale-asjs/issues/47#issuecomment-338956055
 
 
   Moving the script block to inside the container (as below) doesn't fix the issue:
   
   ```
   <?xml version="1.0" encoding="utf-8"?>
   <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:js="library://ns.apache.org/royale/basic">
   
       <js:valuesImpl>
           <js:SimpleCSSValuesImpl/>
       </js:valuesImpl>
   
       <js:initialView>
           <js:View percentWidth="100" percentHeight="100">
               <js:Container percentWidth="100" percentHeight="100">
                   <js:beads>
                       <js:ContainerDataBinding />
                   </js:beads>
   
                   <fx:Script><![CDATA[
                       [Bindable] public var str:String = "Hello World";
                       ]]></fx:Script>
   
                   <js:Label text="{str}" />
               </js:Container>
           </js:View>
       </js:initialView>
   
   </js:Application>
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services