CSS not loading

30 views
Skip to first unread message

mathieu....@gmail.com

unread,
May 29, 2014, 2:31:52 PM5/29/14
to google-we...@googlegroups.com
Dear all,

I'm new to GWT and trying to apply changes in the CSS file, but they won't ever charge although I have declared it in the HTML headers. CSS is in the same "war" directory as the main HTML file.

I understand that this method is deprecated, but should I use the Client Bundle (rather complicated) even for my first steps with GWT?!

Your help would be appreciated,

Thanks,

Mathieu

Zied Hamdi OneView

unread,
May 29, 2014, 5:01:01 PM5/29/14
to google-we...@googlegroups.com
Hi Mathieu,

You're not obliged to use ClientBundle, this is only an optimization to remove unused styles and shorten the css names. 

I suggest you do a right click on your page (show page source) to check why your css is not loaded. (There is no complicated procedure to include a css, you must have an easy to find error). 

Also it's better for "beginner questions" to ask them on StackOverflow, people tend to be more present there and answer you faster. Also notice that if your question is too easy to solve, people tend not to answer, so try to fight a little with your problem, google it, and only if still not found ask. And don't stop searching for an answer when you ask, you might loose time because no one answers

Best regards,
Zied

Thad Humphries

unread,
May 29, 2014, 5:10:10 PM5/29/14
to google-we...@googlegroups.com
I suspect you much clear your browser cache. Your CSS is in separate file and loaded from your HTML, so GWT is never touching it. 

I've had a similar issue when I make changes to a JavaScript file loaded from my HTML by a <script> element. I must clear cache to see the results.

Mathieu EVEILLARD

unread,
May 29, 2014, 5:49:05 PM5/29/14
to google-we...@googlegroups.com
Hi Zied, Thad,

Thanks to both of you for your help. In fact the browser's cache was not in cause: I'm not using the built-in HTML server but my own one (in order to be able to request a PHP+MySQL server, cf. SOP topics) and for that I have to copy manually the files of the "war" directory to the root directory of my server... It took a while to find this, but now it works!

Thanks a lot,

Mathieu

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/ubIIPw7c2_I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages