Hi,
I'm trying to inderstand the use of @sprite in css.
Here's my scenario:
I have a GlobalResources like this:
package com.medibooking.admin.client.view.resources;
...
public interface GlobalResources extends ClientBundle {
public GlobalResources INSTANCE = GWT.create(GlobalResources.class);
@Source("medibooking.logo.png")
ImageResource logoHeader();
@Source("attention.png")
ImageResource attentionIcon();
@NotStrict
@Source("global.css")
GlobalCss css();
@NotStrict
@Source("editor.css")
EditorCss editorCss();
}
My GlobalCss is just an empty interface extending CssResource and the
EditorCss.java looks like this:
package com.medibooking.admin.client.view.resources;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.resources.client.CssResource.ImportedWithPrefix;
import com.google.gwt.resources.client.CssResource.Shared;
@Shared
@ImportedWithPrefix("editor")
public interface EditorCss extends CssResource {
public String fieldWithErrors();
}
The editor.css file, under the same directory of EditorCss.java and
the attention.png has something like this:
@sprite .fieldWithErrors {
gwt-image: 'attentionIcon';
border: 1px solid red !important;
}
When I run the app, I get the following error:
[ERROR] [AdminApp] - Unable to find
ImageResource method
value("attentionIcon") in
com.medibooking.admin.client.view.editor.UserEditor_UserEditor1UiBinderImpl_GenBundle
: Could not find no-arg method named attentionIcon in type
com.medibooking.admin.client.view.editor.UserEditor_UserEditor1UiBinderImpl_GenBundle
How does the use of sprites work with standart css files, like the
case I'm using?
thnak you
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.