Friday, September 10, 2010

Re: UiBinder: ClientBundle with ImageResource & . How?

i think the 'resource' attribute is ignored

u can use the 'src'-attribute and use the relative path to the image!
but there seems to be a problem when the image is in a parent path is in a parent directory (relative to the ui.xml).
in this case u can write src='../image.png'
but this fails when a second project inherits your project.
in this case the full path works: src='com.bla.image.png'
this is shown as an error in eclipse but works well (maybe a bug in the google eclipse plugin?)



On Thu, Sep 9, 2010 at 16:52, Andrew Hughes <ahhughes@gmail.com> wrote:
Hi Marius,

Thanks for your help again.

<ui:image resource="{res.someImage}"> and <x:SomeWidget resource="{res.someImage}"> are very different.

I'm still lost on this one, but thanks for chipping in  :)


On Thu, Sep 9, 2010 at 7:04 AM, marius.andreiana <marius.andreiana@gmail.com> wrote:
On Sep 8, 5:17 pm, Andrew Hughes <ahhug...@gmail.com> wrote:
> But when MyView and MyResources are in different packages,
> resource="{res.loading}" never works. Is this expected and does it work for
> you?
It does work here
http://code.google.com/p/puzzlebazar/source/browse/src/com/puzzlebazar/client/core/view/SplitMainView.ui.xml
(see <m:ImageHyperlink resource='{resources.logo}' )

--
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.


--
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.

--
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