UiBinder - VerticalPanel not applicable for the argument SelectElement ...

194 views
Skip to first unread message

alan

unread,
Jun 29, 2010, 8:32:10 PM6/29/10
to Google Web Toolkit
Background:

I'm using the UiBinder *.ui.xml files to create a modestly complex
layout. I elected to use the DockPanel and VerticalPanel to put things
into four columns. Within each Vertical Panel I started using <table>
and <tr> tags, but found they were not compatible. It is now use
<g:cell> and <g:Label> tags instead, but I'm still running into issues
with select tags.

Now here are a series of questions I've got.

Questions:

1) The latest error is it gets:

05:42:36.099 [ERROR] Line 47: The method add(Widget) in the type
VerticalPanel is not applicable for the arguments (SelectElement)

which I presume is for:

<g:VerticalPanel>
<g:cell><g:Label>Discovery</g:Label></
g:cell>
<g:cell><select ui:field="discovery"/></
g:cell>

What is the solution here? Does this need to turn into a <g:ListBox>
tag?


2) More importantly, where is the best documentation for UiBuilder
tags? I'm finding that you cannot just mix some tags with HTML tags.
The documentation I'm finding isn't quite adequate.


3) What is the difference between <g:VerticalPanel> and
<g:VerticalPanelLayout> ?

I'm familiar with GWT all the way back to version 1.4, but not the new
UiBinder feature in 2.0. What is the best book that covers that new
feature?

daniel

unread,
Jun 30, 2010, 1:49:00 AM6/30/10
to Google Web Toolkit
try:

<g:VerticalPanel>
<g:Label>Discovery</g:Label>
<g:ListBox ui:field="discovery"/>
</g:VerticalPanel>

or:

<g:HTMLPanel>
<table>
<tr><td>discovery</td></tr>
<tr><td>
<select ui:field="discovery"/>
</td></tr>
</table>
</g:HTMLPanel>


HTML-elements and widgets can only be mixed in a HTMLPanel...

alan

unread,
Jun 30, 2010, 11:20:25 AM6/30/10
to Google Web Toolkit
Thanks. Were is the best source of documentation on UiBinder tags.

Reply all
Reply to author
Forward
0 new messages