Sunday, September 12, 2010

Re: UiBinder with background-image and ImageResource

On Sep 12, 7:45 am, Andrew Hughes <ahhug...@gmail.com> wrote:
> Here's a simple example WITHOUT external css file. It works, providing the
> ClientBundle and the ui.xml are in the same package. I believe you can use
> them from different packages but I still haven't worked out how.
>
> <ui:with type="blah.client.MyClientBundle" field="cb"/>
> <ui:image field="loading" resource="{cb.loading}"/>

as has been said in another thread, resource="" is ignored (I
verified), so this declaration is equivalent to:
<ui;image field="loading" />
which is equivalent to the following Client declaration:
ImageResource loading();
without @Source annotation, so it defaults to searching a loading.png,
loading.jpg or loading.gif in the same package/folder.

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

No comments:

Post a Comment