does anyone have a running example how to use the TabLayoutPanel with
UIBinder. It does not work in my MVP-Example Project.
I have MVP structured app and want to use a TabLayoutPanel in my view.
Therefore I defined a ui.xml
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style>
.important {
font-weight: bold;
}
</ui:style>
<g:TabLayoutPanel barUnit="PX" barHeight="3">
<g:tab>
<g:header size='7'>test</g:header>
<g:Label ui:field="question"></g:Label>
<g:Button ui:field="startButton"></g:Button>
</g:tab>
</g:TabLayoutPanel>
</ui:UiBinder>
But it does not work, I cannot see any result in the develop mode. Is
there a problem because I use ui:fields?? It worked in my previous
example, where I did not use a TableLayoutPanel
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style>
.important {
font-weight: bold;
}
</ui:style>
<g:HTMLPanel>
<g:Label styleName="{style.important}" text="test"
ui:field="question" />
<g:Button styleName="{style.important}" text="ja" ui:field="button" /
>
</g:HTMLPanel>
</ui:UiBinder>
Can somebody help me with that?
Thanks
great now it works I updated to Version 2.0.3.
Does anyone has a good example or tutorial for using TabLayoutpanel
with uibinder. I do not know how i can fill the different tabs with
content??
<g:TabLayoutPanel barUnit="PX" barHeight="20">
<g:tab>
<g:>test</g:header>
<g:HTMLPanel>
<g:Label ui:field="question"></g:Label>
<g:Button ui:field="startButton"></g:Button>
</g:HTMLPanel>
</g:tab>
</g:TabLayoutPanel>
The first widget after the header should be some form of container. I
pretty much use HTMLPanel (or my own subclasses of) exclusively with
UIBinder.
> > In your example just do this:
>
> > <g:TabLayoutPanel barUnit="PX" barHeight="20">
> > <g:tab>
> > <g:>test</g:header>
> > <g:HTMLPanel>
> > <g:Label ui:field="question"></g:Label>
> > <g:Button ui:field="startButton"></g:Button>
> > </g:HTMLPanel>
> > </g:tab>
> > </g:TabLayoutPanel>
and i have just that. but i keep getting a runtime exception when im debugging.
this is the exact code i have
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style>
</ui:style>
<g:TabLayoutPanel barUnit="PX" barHeight="20">
<g:tab>
<g:>test</g:header>
<g:HTMLPanel>
<g:Label ui:field="question"></g:Label>
<g:Button ui:field="startButton"></g:Button>
</g:HTMLPanel>
</g:tab>
</g:TabLayoutPanel>
</ui:UiBinder>
it says...[ERROR] Generator 'com.google.gwt.uibinder.rebind.UiBinderGenerator'
threw an exception while rebinding....[directory and filename ]
-- exception: DOMException
ive been stuck at this for so long. i really have no idea what to do.
im very new to this gwt. im trying to make a multiple tabbed panel.
thank you so much.