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" resource="{res.loading}"/>
But when MyView and MyResources are in different packages, resource="{res.loading}" never works. Is this expected and does it work for you?
CHEERS :)
On Tue, Sep 7, 2010 at 4:41 PM, marius.andreiana <marius.andreiana@gmail.com> wrote:
On Sep 7, 5:53 am, Andrew Hughes <ahhug...@gmail.com> wrote:You can also do it with less code:
> 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: value('loading.getWidth','px');
> width: auto;
> height: auto;}
>
> </ui:style>
<ui:image field="loading" src="loading.gif"/>
It certainly works for me with
> The problem with this is that if (loading.gif && MyClientBundle) are in a
> different package/directory to that of the ui.xml BOOM!
<ui:image field="loading" src="path-to-image/loading.gif"/>
or
<ui:with field='res' type='com.blah.client.Resources'/>
See http://groups.google.com/group/google-web-toolkit/browse_thread/thread/df5db4040f1f5c76/b3ee0f84cd372eb1?
> Q: How can loader3.margin-left be "loading.gif.width"?
>
> as above... padding-left: value('loading.getWidth','px');
--
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