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'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<g:DockLayoutPanel unit='EM'>
<g:west size='10'>
<g:HTMLPanel>
<g:HTML>
<ul>
<li>ListItem</li>
<li>ListItem1</li>
<li>ListItem2</li>
</ul>
</g:HTML>
</g:HTMLPanel>
</g:west>
</g:DockLayoutPanel>
</ui:UiBinder>
//.java
public class HtmlTest extends Composite
{
interface Binder extends UiBinder<Widget, HtmlTest>{}
Binder binder = GWT.create(Binder.class);
public HtmlTest()
{
initWidget(binder.createAndBindUi(this));
}
}
S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.