Tuesday, March 1, 2016

Re: I am currently working on a GWT project and I am not able to understand how I can externalize CSS from a java file.



On Tuesday, March 1, 2016 at 11:38:20 AM UTC+1, Ashwini wrote:
I am supposed to separate styling part from a Java file (It doesn't have a XML file layout for the UI) and I am not able to understand how to get this done.

Here's what I need to do:
I should do it the UiBinder way, as the others are deprecated.

What do you mean by "the others"?
What do you mean by "the UiBinder way"? You said this is not using UiBinder currently, so do you want to migrate to using UiBinder or just using the "same underlying mechanism"?
In any case, have you read http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html (specifically the part about CssResource, and don't miss http://www.gwtproject.org/doc/latest/DevGuideGssVsCss.html, as the specific syntax described in the previous link will be deprecated in 2.8)

It's hard to help further without knowing what you currently have and what you want to change about it.

--
You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment