ClientBundle @Source are resolved from the classpath, independently of the module boundaries, so just put everything in a file in your classpath and include it using its absolute or relative path whenever you need it:
-- For a ClientBundle:
@Source({ "foo.css", "/com/example/common.css" })
Style style();
In UiBinder:
<ui:style src="/com/example/common.css">
.foo { color: appBlack; }
</ui:style>
(I can't remember whether absolute paths work in UiBinder, use a relative path otherwise)
On Monday, July 28, 2014 1:52:33 PM UTC+2, Federico De Faveri wrote:
On Monday, July 28, 2014 1:52:33 PM UTC+2, Federico De Faveri wrote:
I've a GWT application split in multiple modules.I need to share a set of common defs, a color palette for example, between cssresources and uibinder files in different modules.How can I do it?
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