As far as I know you can not call GWT.create(MyCssResource.class) directly 
since there is no <generate-with> rule defined for anything extending 
CssResource. This should fail in GWT 2.6.1 as well. Your error basically 
means no generator and no replace rule has provided a concrete 
implementation for the CssResource interface.

At least I always use <ui:with type="com.example.MyClientBundle" 
field="res" /> and then use "res.css.cssClass" or if I really want to use 
<ui:with type="com.example.MyCssResource" field="css" /> then I use 
@UiField(provided = true) and assign a CssResource instance from a 
corresponding ClientBundle to it.


-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/7d24a266-2c5a-482f-b6f1-688e6da9140c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to