Friday, February 27, 2015

Re: CssResource in UiBinder

Either you use <ui:style> to get an implicit ClientBundle and CssResource (you can define an extended interface, other source CSS files to use, and inject the resulting CssResource into a @UiField), and it'll be automatically ensureInjected().
Or you use an existing ClientBundle and CssResource (with existing source CSS files) that you reference through <ui:with> (either GWT.create()d and possibly injected into a @UiField, or taken from a @UiField(provided=true), and you have to call ensureInjected() yourself (as with any other object used through <ui:with>)

On Friday, February 27, 2015 at 3:38:37 PM UTC+1, Stefano Pulze wrote:
Hi all,

Can anyone explain me how tu use (and reuse) CssResource inside a UiBinder?

I don't understand if I have to make a ClientBundle with some CssResources interface 
and use with the tag <ui:with .... /> inside a UiBinder.

Be CssResource ensureInjected() ?


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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment