On Sep 28, 5:28 pm, Sudhakar Abraham <s.abra...@datastoregwt.com>
wrote:
> 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. Abrahamwww.DataStoreGwt.com
> Persist objects directly in GAE
>
> On Sep 28, 4:53 pm, Brito <britoscho...@gmail.com> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment