There are two ways to add html tag inside the HTMLPanel. You can add
Unorder List / ListItem (UL/LI) directly to HTMLPanel, or using HTML
class inside the HTMLPanel. Try the below code.
//.xml file
?xml version=1.0 encoding=UTF-8?
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
What I am trying to do is set up a blank UL container I can fill from my
control code..
ie. below, where UnorderedList is a Java class that I used the source
from HTMLPanel
as a starting point..
?xml version=1.0 encoding=UTF-8?
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
hi,
as far as gwt 2.1. HTMLPanel was treated somohow special by uibinder.
(i'm not sure if it hasn't changed in newer versions)
normally a widget in ui binder could contain text or html when
implemented hasText and hasHTML interfaces. then the content of the
node in ui.xml was parsed as text or
I am trying to create a custom to use in my UIBinder templates, UL/LI
elements are curiously missing..
I used HTMLPanel as a template where I copied the class source to my
project. The object itself
works fine, but as soon as I try to include HTML code in the element,
the UIBinder parser complains