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/04/14 10:26:42 UTC

[GitHub] [royale-asjs] LudvikWiejowski opened a new issue #418: SimpleTable issue

LudvikWiejowski opened a new issue #418: SimpleTable issue
URL: https://github.com/apache/royale-asjs/issues/418
 
 
   Hi,
   
   simpletable is not working to me, maybe I'm doing something wrong.
   
   <?xml version="1.0" encoding="UTF-8"?>
   
   <j:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:j="library://ns.apache.org/royale/jewel"
                 xmlns:js="library://ns.apache.org/royale/basic"
                 xmlns:html="library://ns.apache.org/royale/html">
       
   
       <j:initialView>
           <j:View id="view">
               <j:states>
                   <js:State name="login" />        
                   <js:State name="loggedIn" />        
               </j:states>
               
               <j:beads>
                   <js:SimpleStatesImpl/>
               </j:beads>
   
               <j:Card id="loginForm" includeIn="login">
                   <html:H1 text="Royale login"/>
                   <j:TextInput id="username" text="someuser"/>
                   <j:TextInput id="password" text="somepass">
                       <j:beads>
                           <j:PasswordInput/>
                       </j:beads>
                   </j:TextInput>
                   <j:Button text="Login" emphasis="primary" click="view.currentState = 'loggedIn'" />
               </j:Card>
   
               <j:Card id="loggedInForm" includeIn="loggedIn">
                   <html:H1 text="You are logged in!! :)"/>
                   <j:Button text="Logout" click="view.currentState = 'login'"/>
   
                   <j:SimpleTable>
   					<j:THead>
   						<j:TableRow>
   							<j:TableHeaderCell width="48">
   								<j:Label text="Icons" />
   							</j:TableHeaderCell>
   							<j:TableHeaderCell width="140">
   								<j:Label text="Text Column" />
   							</j:TableHeaderCell>
   							<j:TableHeaderCell width="140">
   								<j:Label text="Centered Text Column" />
   							</j:TableHeaderCell>
   							<j:TableHeaderCell>
   								<j:Label text="Number Column">
   									<j:beads>
   										<j:TextAlign align="right"/>
   									</j:beads>
   								</j:Label>
   							</j:TableHeaderCell>
   						</j:TableRow>
   					</j:THead>
   					<j:TBody>
   						<j:TableRow>
   							<j:TableCell>
   								<js:FontIcon text="ahoj"/>
   							</j:TableCell>
   							<j:TableCell expandRows="2">
   								<j:Label text="Some text in two rows" multiline="true"/>
   							</j:TableCell>
   							<j:TableCell>
   								<j:Label text="Some centered text">
   									<j:beads>
   										<j:TextAlign align="center"/>
   									</j:beads>
   								</j:Label>
   							</j:TableCell>
   							<j:TableCell>
   								<j:Label text="71">
   									<j:beads>
   										<j:TextAlign align="right"/>
   									</j:beads>
   								</j:Label>
   							</j:TableCell>
   						</j:TableRow>
                       </j:TBody>
                   </j:SimpleTable>
   
               </j:Card>
           </j:View>
       </j:initialView>
   
   	<fx:Script>
   		<![CDATA[
               
   		]]>
   	</fx:Script>
   </j:Application>
   
   
   Getting following error:
   TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
       at org.apache.royale.jewel.supportClasses.table.TableHeaderCell.org.apache.royale.core.UIBase.addElement (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/core/UIBase.js:413:17)
       at org.apache.royale.jewel.supportClasses.table.TableHeaderCell.org.apache.royale.core.GroupBase.addElement (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/core/GroupBase.js:165:60)
       at Function.org.apache.royale.utils.MXMLDataInterpreter.initializeStrandBasedObject (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/utils/MXMLDataInterpreter.js:236:13)
       at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/utils/MXMLDataInterpreter.js:125:54)
       at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/utils/MXMLDataInterpreter.js:266:50)
       at org.apache.royale.jewel.supportClasses.table.TableHeaderCell.org.apache.royale.html.Group.addedToParent (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/html/Group.js:76:50)
       at org.apache.royale.jewel.supportClasses.table.TableRow.org.apache.royale.core.UIBase.addElement (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/core/UIBase.js:414:6)
       at org.apache.royale.jewel.supportClasses.table.TableRow.org.apache.royale.core.GroupBase.addElement (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/core/GroupBase.js:165:60)
       at Function.org.apache.royale.utils.MXMLDataInterpreter.initializeStrandBasedObject (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/utils/MXMLDataInterpreter.js:236:13)
       at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/utils/MXMLDataInterpreter.js:125:54)
   TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
       at org.apache.royale.jewel.supportClasses.table.TableHeaderCell.org.apache.royale.core.UIBase.addElement (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/core/UIBase.js:413:17)
       at org.apache.royale.jewel.supportClasses.table.TableHeaderCell.org.apache.royale.core.GroupBase.addElement (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/core/GroupBase.js:165:60)
       at Function.org.apache.royale.utils.MXMLDataInterpreter.initializeStrandBasedObject (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/utils/MXMLDataInterpreter.js:236:13)
       at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/utils/MXMLDataInterpreter.js:125:54)
       at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/utils/MXMLDataInterpreter.js:266:50)
       at org.apache.royale.jewel.supportClasses.table.TableHeaderCell.org.apache.royale.html.Group.addedToParent (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/html/Group.js:76:50)
       at org.apache.royale.jewel.supportClasses.table.TableRow.org.apache.royale.core.UIBase.addElement (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/core/UIBase.js:414:6)
       at org.apache.royale.jewel.supportClasses.table.TableRow.org.apache.royale.core.GroupBase.addElement (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/core/GroupBase.js:165:60)
       at Function.org.apache.royale.utils.MXMLDataInterpreter.initializeStrandBasedObject (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/utils/MXMLDataInterpreter.js:236:13)
       at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray (/Users/luwi/VisualStudioCodeProjects/myFirstRoyale/bin/js-debug/org/apache/royale/utils/MXMLDataInterpreter.js:125:54)
   

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