Wednesday, August 5, 2015

UiBinder + CssResource + @ClassName = Error

Hi,

I have the following UiBinder:

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui">
   
<ui:style type="com.saaconsultants.gwt.ui.test.client.Main.Style">
        .panel-default {
            background: grey;
        }
   
</ui:style>
   
<g:HTMLPanel addStyleNames="{style.panel-default}">Hello World!</g:HTMLPanel>
</ui:UiBinder>

and CssResource:

public interface Style extends CssResource {
     
@ClassName("panel-default")
     
String defaultStyle();
}

When I compile the above code I get an error stating "The following obfuscated style classes were missing from the source CSS file: panel-default: Fix by adding .panel-default{}".

Any idea what I'm doing wrong?

Cheers,
Dave

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment