I'm trying to convert one of my Widgets to a UiBinder in GWT 2.4.  The
current Widget uses the width from an ImageResource to size a parent
TD element.

The parent TD has to be the exact same size as the image or the
overall Widget will not look right.  I do not want to hard code the
value...

I have the resource defined as follows:
<ui:with field='res' type='package.PanelName.DefaultImages'/>

When I try the following ways I get the error "Returns int, can't be
used as class java.lang.String":
<td width="{res.refreshButton.getWidth}">...</td>
<td style='width:{res.refreshButton.getWidth}'>...</td>

I tried a few other things that resulted in the same error.

I don't understand why the UiBinder does not like width="22" when this
is valid HTML.  Is there some other way to do what I am trying to do?

Thanks,
Pat

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

Reply via email to