DockLayoutPanel center element  holds only one panel.  Wrap your
veritcalpanels in another verticalpanel.  See the sample below.

//corrected code .xml file.

 <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
        xmlns:g='urn:import:com.google.gwt.user.client.ui'>
        <g:DockLayoutPanel>
                <g:north size="25">
                        <g:FlowPanel>
                          <g:Label>Good</g:Label>
                        </g:FlowPanel>
                </g:north>
                <g:center>
                 <g:VerticalPanel ui:field="v">
                    <g:VerticalPanel ui:field="panel1">
                        <g:Button ui:field="button1">North</g:Button>
                        <g:Button ui:field="button2">South</g:Button>
                        </g:VerticalPanel>
                  <g:VerticalPanel ui:field="panel2">
                         <g:TextArea ui:field="greenText" />
                  </g:VerticalPanel>
               </g:VerticalPanel>
                </g:center>
        </g:DockLayoutPanel>
</ui:UiBinder>

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE


On Sep 28, 4:53 pm, Brito <[email protected]> wrote:
> Compile application shows the error. please help.
>
> //environment
>
> eclipse 3.5
> gwt 2.4.0
> app engine 1.5.3
>
> //error
>
> [ERROR] Element may only contain a single child element, but found
> <g:VerticalPanel ui:field='panel1'> and <g:VerticalPanel
> ui:field='panel2'>. Element <g:center>
>
> //.xml file
>
>  <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
>         xmlns:g='urn:import:com.google.gwt.user.client.ui'>
>         <g:DockLayoutPanel>
>                 <g:north size="25">
>                         <g:FlowPanel>
>                           <g:Label>Good</g:Label>
>                         </g:FlowPanel>
>                 </g:north>
>                 <g:center>
>                         <g:VerticalPanel ui:field="panel1">
>                                 <g:Button ui:field="button1">North</
> g:Button>
>                                 <g:Button ui:field="button2">South</
> g:Button>
>                         </g:VerticalPanel>
>                   <g:VerticalPanel ui:field="panel2">
>                                 <g:TextArea ui:field="greenText" />
>                         </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.

Reply via email to