GWT Binder error problem? show [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

2011-09-20 Thread samuel
I got the problem when I compile my project. I write my error .xml file. ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' g:DockLayoutPanel ui:field=dock g:north size=25 g:FlowPanel

Re: GWT Binder error problem? show [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

2011-09-20 Thread Alexandre Dupriez
You can set only one widget in the g:center section of your DockLayoutPanel. Add your second panel in another section (e.g. g:south), or create a composite wich wraps panel1 and panel2. On 20 sep, 13:38, samuel bhaskarsamue...@gmail.com wrote: I got the problem when I compile my project. I write

Re: GWT Binder error problem? show [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

2011-09-20 Thread Sudhakar Abraham
There can be one single widget inside the g:Center tag. You are using two VerticalPanels inside the center tag. To solve the problem use another verticalpanel wrap(v1+v2). //Try the below code corrected .xml file. ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'

GWT Binder error problem? show [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

2011-09-14 Thread Stephen Fleming
I got the problem when I compile application. I send my xml file. Provide solution for me. //.xml file ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' g:DockLayoutPanel ui:field=dock g:north size=25

Re: GWT Binder error problem? show [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

2011-09-14 Thread Eric Clayberg (Google)
It looks like the answer is actually in the error message itself. You have two center elements where you are only allowed to have one. If you want both panels there, you would need to contain the both in a single panel that is the sole center element. -- You received this message because you

Re: GWT Binder error problem? show [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

2011-09-14 Thread Thomas Broyer
As the error says, there can only be a single center widget. You'll have to wrap your 2 VerticalPanel (panel1 and panel2) within another widget (FlowPanel or whatever), or possibly merge them in a single VerticalPanel (move TextArea from panel2 to panel1, and remove panel1) -- You received