<?xml version="1.0" encoding="UTF-8"?>
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:MyWidget='urn:import:com.mypackage.ui'>
<g:HTMLPanel>
<MyWidget:UnorderedList ui:field="galleryContainer"/>
</g:HTMLPanel>
</ui:UiBinder>
The above works fine, and I can access the galleryContainer object as a UIField in my control code..
but if I want to add some static list elements, mostly to see how they look in GWTDesigner, it fails..
i.e.
<?xml version="1.0" encoding="UTF-8"?>
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:MyWidget='urn:import:com.mypackage.ui'>
<g:HTMLPanel>
<MyWidget:UnorderedList ui:field="galleryContainer">
<li><img href="somepic.jpg"/></li>
</MyWidget:UnorderedList>
</g:HTMLPanel>
</ui:UiBinder>
When I go to open GWTDesigner, it fails initialization saying the element MyWidget:UnorderedList
is only expecting Widgets. I pulled in the source for HTMLPanel into my UnorderedList class in its
entirety and only modified it to produce UL elements instead of Div elements.
Not sure what's going on here, I get the feeling that there is some description file somewhere
telling which UI elements are allowed to contain HTML vs Widgets somewhere since the code is
the same as HTMLPanel.
-John Gentilin