On Jul 21, 11:21 pm, David Vree <[email protected]> wrote:
> I'm new to UI Binder and see that it is possible to set CSS styles
> within the binder file.  I've always understood a best practice to be
> to separate these out into a single CSS file.  Why (or when) would I
> put CSS in the UIBinder XML file?

In case you don't want to share the rules with other widgets. Each
ui:style (which maps to an implicit CssResource at compile-time) will
obfuscate class names, so even if you use the same class name in 2
distinct UiBinder, they won't conflict. That way, you keep things that
are related, close to each other.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to