The DockLayoutPanel of <g:center></g:center> element having only one
Child. So wrap your panel1, panel2 inside panel3. Try the below code.
S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine
<g:DockLayoutPanel ui:field="dock">
<g:north size="25">
<g:FlowPanel>
<g:Button ui:field="save">Login</ g:Button>
</g:FlowPanel>
</g:north>
<g:center>
<g:VerticalPanelui:field="panel3">
<g:VerticalPanelui:field="panel1">
<g:Button ui:field="button1">sample1</g:Button>
<g:Button ui:field="button2">sample2</g:Button>
</g:VerticalPanel>
<g:VerticalPanel ui:field="panel2">
<g:TextArea ui:field="textArea" />
</g:VerticalPanel>
</g:VerticalPanel>
</g:center>
</g:DockLayoutPanel>
</ui:UiBinder>
On Oct 21, 4:44 pm, David Fernando <[email protected]> wrote:
> I got error when I compile the project. Please give your suggestion.
>
> <g:DockLayoutPanel ui:field="dock">
> <g:north size="25">
> <g:FlowPanel>
> <g:Button ui:field="save">Login</ g:Button>
> </g:FlowPanel>
> </g:north>
> <g:center>
> <g:VerticalPanelui:field="panel1">
> <g:Button ui:field="button1">sample1</
> g:Button>
> <g:Button ui:field="button2">sample2</
> g:Button>
> </g:VerticalPanel>
> <g:VerticalPanel ui:field="panel2">
> <g:TextArea ui:field="textArea" />
> /g:VerticalPanel>
> </g:center>
> </g:DockLayoutPanel>
> </ui:UiBinder>
--
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.