Binder problem in ui.xml file?

60 views
Skip to first unread message

David Fernando

unread,
Oct 12, 2011, 5:27:57 AM10/12/11
to Google Web Toolkit
Compile gwt application, I got the error "show[Error] Element may only
contain a single child element, but found <g:FlowPanel
ui:field='flow1'>and <g:FlowPanel ui:field='flow2'>. Element
<g:center>". Advance thanks.

<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>
<g:Button ui:field="save">Home</
g:Button>
</g:FlowPanel>
</g:north>
<g:center>
<g:FlowPanel ui:field="flow1">
<g:Button ui:field="button1">print</
g:Button>
</g:FlowPanel>
<g:FlowPanel ui:field="flow2">
<g:TextArea ui:field="textArea" />
<g:TextArea ui:field="textArea1" />
</g:FlowPanel>
</g:center>
</g:DockLayoutPanel>
</ui:UiBinder>

Juan Pablo Gardella

unread,
Oct 12, 2011, 8:24:17 AM10/12/11
to google-we...@googlegroups.com
The error said that you have two elements in <g:center>. You must put only one.

2011/10/12 David Fernando <fernan...@gmail.com>

--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Ashton Thomas

unread,
Oct 12, 2011, 9:24:06 PM10/12/11
to google-we...@googlegroups.com
Wrap both in <g:HTMLPanel>

<g:center>
  <g:HTMLPanel>
     <Flow..../>
     <Flow.../>
  </g:HTMLPanel>
</g:center>
Reply all
Reply to author
Forward
0 new messages