My other line of thought was as follows:
At the moment my uibinder template files include the 'compile-time' css and this css file is located in a src package. Is there any way I could refer to styles in the uibinder template but not include the css (leave the <ui:style> tag empty) so that later on, at runtime, the css file included in the host html would apply the styles?
If I try and do that in Eclipse, I get errors since I'm referring to css selectors that aren't defined. Is there any way around this?
This is just an alternative approach I've been considering to the one in my previous post.
Cheers!
On Saturday, 9 November 2013 18:27:03 UTC+11, Aleks wrote:
-- At the moment my uibinder template files include the 'compile-time' css and this css file is located in a src package. Is there any way I could refer to styles in the uibinder template but not include the css (leave the <ui:style> tag empty) so that later on, at runtime, the css file included in the host html would apply the styles?
If I try and do that in Eclipse, I get errors since I'm referring to css selectors that aren't defined. Is there any way around this?
This is just an alternative approach I've been considering to the one in my previous post.
Cheers!
On Saturday, 9 November 2013 18:27:03 UTC+11, Aleks wrote:
Hi all,
My problem is related to this blog post - http://googlewebtoolkit.blogspot.com.au/2011/03/ .styling-and-skinning-your- apps-with.html
Namely, I have a gwt app, using UIBinder that I wish to be able to style without recompiling. I have a 'default' style that is defined in a css in the src packages and included in all the *.ui.xml templates via the <ui:style src="..."/> tag.
Now I wish to be able to change the default style at runtime, but without recompiling. The link above suggests this is possible, and my understanding is also that they have default styles in the ui.xml files and then they override it in the static stylesheet included by the host html.
I've tried this, deployed my app (in dev mode) with the following organisation:
- the uibinder templates all reference a css file in a src package via the <ui:style src="..."/> tag
- now my host.html also <link>'s a different css where I use the same selectors with different values to override the style.
This does NOT work! The externally linked css seems to have no effect. Looking at the generated html, I can see the styles from the src package being obfuscated, but the linked css (when I click on the link) is as normal - no obfuscation. I am guessing that is part of the problem since the generated html elements definitely reference the obfuscated selector names.
Any ideas/hints on how to get this work or where I am going wrong?
Thanks!
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.
No comments:
Post a Comment