Re: ClientBundle problem: The following unobfuscated classes were present in a strict CssResource:
By default, every css class inside your css file needs a corresponding method in your CssResource interface. Currently you have 4 css classes in your css file but only a single method in your CssResource interface. Thus GWT gives you an error saying that three of your css classes in your css file do not have corresponding methods.
-- To fix this error you have two options:
1.) add the missing methods to your CssResource interface and then use these methods in your code. To do so you have three options:
a.) in your UiBinder XML file you would use addStyleNames="{res.style.<methodname>} on the desired widgets and then delete the corresponding java code that also sets these class names (e.g. headerPanel.addStyleName("headerPan"); )
b.) add a @UiField Resources res; to your java file and then use for example headerPanel.addStyleName(this.res.style.headerPanel()); in your code.
c.) mix a.) and b.) if you need to
2.) mark the three css classes inside the css file as "external" using @external .headerPan, .textb, .button; at the top of your css file. This will tell GWT to ignore these css classes when validating your CssResource interface.
If you still don't get what we are saying then you should re-read the ClientBundle/CssResource documentation:
http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html
-- J.
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/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home