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
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
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'
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
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
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