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 2019/10/09 19:02:06 UTC

[GitHub] [royale-asjs] cristallium commented on issue #499: Uncaught TypeError: Cannot set property 'html' of undefined on j:Label on SDK 0.9.6

cristallium commented on issue #499: Uncaught TypeError: Cannot set property 'html' of undefined on j:Label on SDK 0.9.6
URL: https://github.com/apache/royale-asjs/issues/499#issuecomment-540143037
 
 
   Thanks for your quick interest and workaround
   
   For now I do a lot of tries and errors and it seems that the smallest code to reproduce it, is the given exemple.
   If trying directly on the first view like below it is working
   
   ```
   <j:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:js="library://ns.apache.org/royale/basic"  
                      xmlns:j="library://ns.apache.org/royale/jewel" 
                      xmlns:binding="org.apache.royale.binding.*" 
                      xmlns:local="*" applicationComplete="ev_applicationComplete()">
   	<j:valuesImpl>
   		<js:SimpleCSSValuesImpl />
   	</j:valuesImpl>
   
       <j:initialView >
   
           <j:View id="myview">
               <js:states>
                   <js:State name="login"/>
                   <js:State name="loggued"/>
               </js:states>
   
               <j:beads>
                   <js:SimpleStatesImpl/>
               </j:beads>
   
               <j:Group includeIn="login">
                   <j:Label id="lbl_ident"/>
               </j:Group>
           
           </j:View>
       </j:initialView>
   
       <fx:Script>
           <![CDATA[
               private function ev_applicationComplete():void {
                   lbl_ident.html = "HELLO";
               }
           ]]>
       </fx:Script>
   </j:Application>
   ```
   I hope it will be easy to fix it

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services