help with css bundles and background image sprites
Hi,
I'm trying to use a css bundle with a background image reference and I
am getting an error in the Development Mode Eclipse view: Fix by
adding String accessor method(s) to the CssResource interface for
obfuscated classes, or using an @external declaration for unobfuscated
classes.
When I add an @external at-rule I no longer receive the error but the
background image doesn't show up. More specifically, I do see all
other css attributes when inspecting the DOM but just not the
background-image attribute.
Here is my code (snipped for readability)
--- CSS file
@sprite .error {
gwt-image: 'error';
}
.errorMessage {
background-color: #FEEFB3;
gwt-image: 'warn';
}
-- Client Bundle
public interface MessagePanelClientBundle extends ClientBundle {
@Source("message-panel.css")
MessagePanelCSS css();
@Source("error.png")
ImageResource error();
}
-- Css Bundle
public interface MessagePanelCSS extends CssResource {
String errorMessage();
}
Does anyone have any ideas as to why this might happen? Any help
would be appreciated. Thanks.
Joe
--
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.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home