Sunday, July 20, 2014

Re: [NEWBIE QUESTION] Multiple ways of styling GWT application. Which one to choose?


On Sunday, July 20, 2014 1:11:05 PM UTC+2, Adrian Leśniak wrote:
Hi everyone, 

I have just started with GWT and came across this dilemma. Well, I am aware of a several ways to styling the app, however I find it hard to figure out which technique I should choose, which will conform to the current standards. I thought, since I have experience in CSS and HTML, I could do all the styling in *.css files, but is it how GWT wants me to do it? I am just looking to pros and cons of the methods of styling.

https://plus.google.com/116255824545489210730/posts/a1yywEjAfVd contains bits of an answer.
As for CssResource/GssResource  vs. an "external" stylesheet, CssResource/GssResource brings minification and obfuscation (so you don't have to think about how to name things to make sure there won't be naming conflicts), and a bit of "type safety" (by matching class names to Java interface methods, so you'll never make a typo in a class name and later wonder why your style is not applied)

--
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