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