Comments (10)
In your test app its missing a "RecordListByUser.xml" file
from haxeui-html5.
Ok, there are / were quite a few issues with the test app you posted, however, once i fixed all those the issue that you are having is you are calling:
mainView = ComponentMacros.buildComponent("assets/ui/main.xml");
in the constructor before you are calling Toolkit.init()
. The Toolkit.init()
is responsible for a number of things, one of which is populating the "component registry" based on scanning the classpath. So thats why it doesnt work (ie, the component registry is empty). Moving Toolkit.init()
to the first line in the constructor solves the issue.
from haxeui-html5.
Sorry Ian.
from haxeui-html5.
No probs... Easy mistake. :)
from haxeui-html5.
I uploaded a previous zip. I must not have re zipped what I thought was issue. I have the issue in my code base but it seems to follow the rules. If I can get repeat I will reopen
from haxeui-html5.
I am sure it is the initialization order. this compiles in haxeui-nme but throws "WARNING: no class found for component".
Small.zip
My end goal was to have a tableview that gets its layout in xml but the DS is provided dynamically
from haxeui-html5.
Agreed, something is wrong here. Even if i just move the <tableview/>
into main.xml
the same thing happens. Ill investigate.
from haxeui-html5.
Actually, thats not true, the problem is that the code is built for AddATable.newComponent
before the init macro has run and therefore populated the component registry.
from haxeui-html5.
Ok, one line fix... :)
Can you retest and close if fixed?
Cheers,
Ian
from haxeui-html5.
Also, btw, there is an <import />
statement also, eg:
<vbox>
<import resource="..." />
<import resource="..." />
<import resource="..." />
</vbox>
You dont have to use it of course, but in can help and remove duplication sometimes. :)
from haxeui-html5.
Related Issues (20)
- simple application can't be compiled HOT 2
- something wrong with ListView HOT 7
- something wrong with DropDown HOT 4
- Certain css styles need to be present in hosting .html file
- TextArea can't display the new line symbol
- Label height and button height incorrect HOT 3
- TextArea (maybe textfield) cant enter text when child of scrolling area with scroll bar
- HTML text- need/thought?
- Cant add components without using Screen
- Mouseover on native checkbox throws Uncaught TypeError HOT 1
- Excesive html escaping for button text
- No license HOT 1
- haxe 3.4.7 compilation HOT 1
- Link to haxeui-templates leading to 404 HOT 1
- Tableview column offset and header height HOT 3
- Shrinking a ListView to a very small size with a Splitter hangs the browser tab HOT 2
- Scrolled TextArea
- Scrollview won't scroll on touch devices HOT 7
- Switches arent switching HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haxeui-html5.