Re: UiBinder: ClientBundle with ImageResource ui:style. How?

2010-09-10 Thread daniel brelovsky
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

Re: UiBinder: ClientBundle with ImageResource ui:style. How?

2010-09-09 Thread Andrew Hughes
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.andrei...@gmail.com wrote: On Sep 8,

Re: UiBinder: ClientBundle with ImageResource ui:style. How?

2010-09-08 Thread Andrew Hughes
Thanks for the reply, The path related issue is this... say I have '*com.blah.client*.MyView.ui.xml' and *com.blah.client.util*.MyResouces.java' (NOTE: they are in different packages). I then try... ui:with field='res' type='com.blah.client.util.Resources'/ ui:image field=loading

Re: UiBinder: ClientBundle with ImageResource ui:style. How?

2010-09-08 Thread marius.andreiana
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

Re: UiBinder: ClientBundle with ImageResource ui:style. How?

2010-09-07 Thread marius.andreiana
On Sep 7, 5:53 am, Andrew Hughes ahhug...@gmail.com wrote: Seems like I can kinda answer two of these questions myself now... Q: How can loader1.gwt-image be loading.gif? ui:with type=blah.client.MyClientBundle field=cb/ ui:image field=loading resource={cb.loading}/ ui:style   �...@sprite

UiBinder: ClientBundle with ImageResource ui:style. How?

2010-09-06 Thread Andrew Hughes
Hi Guys, I'll try to be concise :) I do *NOT* want to use an external css file. All style should be in the ui.xml... *Client Bundle:* public interface MyClientBundle extends ClientBundle { @Source(loading.gif) ImageResource loading(); } *ui.xml* ui:with type=blah.client.MyClientBundle

Re: UiBinder: ClientBundle with ImageResource ui:style. How?

2010-09-06 Thread Andrew Hughes
Seems like I can kinda answer two of these questions myself now... Q: How can loader1.gwt-image be loading.gif? ui:with type=blah.client.MyClientBundle field=cb/ ui:image field=loading resource={cb.loading}/ ui:style @sprite .loader1 { gwt-image: 'loading'; padding-left: