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>
870 views
Skip to first unread message
Stephen Fleming
unread,
Sep 14, 2011, 8:09:20 AM9/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
I got the problem when I compile application. I send my xml file.
Provide solution for me.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
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.
Thomas Broyer
unread,
Sep 14, 2011, 9:09:59 AM9/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
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)