I am building a widget with UiBinder, and I need to have it enclosed in a <span />
but UiBinder only gives me <div />
. E.g. <g:HTMLPanel />
=> <div />
. HorizonPanel, FlowPanel, VerticalPanel also give out only <div />
.
Does any one know a solution?
Try this:
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<g:HTMLPanel tag="span">
<!-- your stuff -->
</g:HTMLPanel>
</ui:UiBinder>