Re: CSS loads for 1 millisecond, then disappears
CSS included in the HTML will likely be loaded -before- CSS from the GWT loader - hence the original posters dilemma/confusion. I put correct in quotes not as an absolute - just as a matter of convention, and relative surety of loading order. CSS targeted at -your- GWT components style classes should, IMO, only be included from the Module xml. On Jul 6, 9:43 pm, Bradley bljf...@gmail.com wrote: I agree that would it be easier to catch errors and be sure of the loading order but I don't think it is more correct to include the CSS file in the gwt.xml file. I am trying to incorporate a GWT application into a pre-existing non- GWT project. I would rather not move the CSS from the pre-existing project into GWT and I also think a separation of the old CSS from the new, GWT centric CSS is a good thing. The existing CSS covers the entire site, whereas GWT (and its CSS) is but a small part of that one site. On Jul 6, 5:20 pm, Dean S. Jones deansjo...@gmail.com wrote: Is there a reason you need to include the CSS in the html file?? it would be more correct - easier to catch errors, and sure of loading order - if you included the CSS file in your apps module gwt.xml file with a stylesheet src=resources/Test.css/ GWT will copy the resources folder to the final output folder, and load the CSS in a defined order. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: [appengine-java] CSS loads for 1 millisecond, then disappears
It was the combination of a css capitalization mistake (which may not have mattered) and the fact that I was pulling in the GWT css which overwrote my css. Since gwt was loading the css, I saw that slight gap between my css being applied and then disappearing. Thanks for helping, David Trejo On Mon, Jul 6, 2009 at 2:56 PM, Fred Sauer fre...@google.com wrote: What was is? On Thu, Jul 2, 2009 at 5:41 PM, David Trejo tookie.tr...@gmail.comwrote: You're right Fred, thanks for the input. I solved the problem. -DT On Thu, Jul 2, 2009 at 9:11 AM, Fred Sauer fre...@gmail.com wrote: David, I might guess that you're pulling in additional CSS after yours. Use Firebug in webmode to inspect the CSS. It will tell you were all the CSS rules are coming from. Fred On Thu, Jun 25, 2009 at 4:23 PM, Toby Reyelts to...@google.com wrote: Hey David, I think this is a question you might want to ask on the GWT group. On Thu, Jun 25, 2009 at 7:10 PM, DTrejo tookie.tr...@gmail.com wrote: Hello, I am having a problem with my CSS. My hosted mode is a bit laggy, so when I first run the my gwt app in hosted mode, the css successfully loads for a few milliseconds, but when the lag stops and hosted mode settles down, my css disappears. When I compile/browse it, the css does not even show up for a few ms at the start, I suppose because modern browsers are so fast. This is how I access my css: link rel=stylesheet type=text/css href=test.css/ I haven't been able to find anyone else who has had this problem. ** Can someone tell me why my css appears then disappears and how to fix it? ** My project is very minimal, at the moment all it does is serve out the html page, with all the Java in commented out in onModuleLoad() Thank you, David Trejo -- Fred Sauer f...@allen-sauer.com [] -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: CSS loads for 1 millisecond, then disappears
Is there a reason you need to include the CSS in the html file?? it would be more correct - easier to catch errors, and sure of loading order - if you included the CSS file in your apps module gwt.xml file with a stylesheet src=resources/Test.css/ GWT will copy the resources folder to the final output folder, and load the CSS in a defined order. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: CSS loads for 1 millisecond, then disappears
It's only there because that is the way the sample hello world was written. Thanks for the suggestion about including it in the xml file, I'll tinker with that. Have a good day, David On Mon, Jul 6, 2009 at 5:20 PM, Dean S. Jones deansjo...@gmail.com wrote: Is there a reason you need to include the CSS in the html file?? it would be more correct - easier to catch errors, and sure of loading order - if you included the CSS file in your apps module gwt.xml file with a stylesheet src=resources/Test.css/ GWT will copy the resources folder to the final output folder, and load the CSS in a defined order. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: CSS loads for 1 millisecond, then disappears
I agree that would it be easier to catch errors and be sure of the loading order but I don't think it is more correct to include the CSS file in the gwt.xml file. I am trying to incorporate a GWT application into a pre-existing non- GWT project. I would rather not move the CSS from the pre-existing project into GWT and I also think a separation of the old CSS from the new, GWT centric CSS is a good thing. The existing CSS covers the entire site, whereas GWT (and its CSS) is but a small part of that one site. On Jul 6, 5:20 pm, Dean S. Jones deansjo...@gmail.com wrote: Is there a reason you need to include the CSS in the html file?? it would be more correct - easier to catch errors, and sure of loading order - if you included the CSS file in your apps module gwt.xml file with a stylesheet src=resources/Test.css/ GWT will copy the resources folder to the final output folder, and load the CSS in a defined order. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: [appengine-java] CSS loads for 1 millisecond, then disappears
You're right Fred, thanks for the input. I solved the problem. -DT On Thu, Jul 2, 2009 at 9:11 AM, Fred Sauer fre...@gmail.com wrote: David, I might guess that you're pulling in additional CSS after yours. Use Firebug in webmode to inspect the CSS. It will tell you were all the CSS rules are coming from. Fred On Thu, Jun 25, 2009 at 4:23 PM, Toby Reyelts to...@google.com wrote: Hey David, I think this is a question you might want to ask on the GWT group. On Thu, Jun 25, 2009 at 7:10 PM, DTrejo tookie.tr...@gmail.com wrote: Hello, I am having a problem with my CSS. My hosted mode is a bit laggy, so when I first run the my gwt app in hosted mode, the css successfully loads for a few milliseconds, but when the lag stops and hosted mode settles down, my css disappears. When I compile/browse it, the css does not even show up for a few ms at the start, I suppose because modern browsers are so fast. This is how I access my css: link rel=stylesheet type=text/css href=test.css/ I haven't been able to find anyone else who has had this problem. ** Can someone tell me why my css appears then disappears and how to fix it? ** My project is very minimal, at the moment all it does is serve out the html page, with all the Java in commented out in onModuleLoad() Thank you, David Trejo -- Fred Sauer f...@allen-sauer.com [] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: CSS loads for 1 millisecond, then disappears
A code sample that reproduces the problem would be helpful. On the surface, I don't see how this could be related to GWT. What happens if you remove GWT from the scenario altogether? On Fri, Jun 26, 2009 at 11:11 AM, DTrejotookie.tr...@gmail.com wrote: Hello, I am having a problem with my CSS. My hosted mode is a bit laggy, so when I first run my gwt app in hosted mode the css successfully loads for a few milliseconds, but when the lag stops and hosted mode settles down, my css disappears. When I compile/browse it, the css does not even show up for a few ms at the start, I suppose because modern browsers are so fast. This is how I access my css: link rel=stylesheet type=text/css href=test.css/ I haven't been able to find anyone else who has had this problem. ** Can someone tell me why my css appears then disappears and how to fix it? ** My project is very minimal, at the moment all it does is serve out the html page, with all the Java commented out in onModuleLoad() If it makes any difference, I am using gwt on appengine with the google plugin for eclipse. Any insight is appreciated, David Trejo (I posted this on the Google App Engine for Java group, and it was recommended that I ask this question here. Sister thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/9f3aa450a8e866ab?hl=en ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: CSS loads for 1 millisecond, then disappears
Look in the module file (ends in *.gwt.xml) Do you have the default GWT styles included? I suspect you do and they are overwriting your styles in the HTML. Ian http://examples.roughian.com 2009/6/26 DTrejo tookie.tr...@gmail.com Hello, I am having a problem with my CSS. My hosted mode is a bit laggy, so when I first run my gwt app in hosted mode the css successfully loads for a few milliseconds, but when the lag stops and hosted mode settles down, my css disappears. When I compile/browse it, the css does not even show up for a few ms at the start, I suppose because modern browsers are so fast. This is how I access my css: link rel=stylesheet type=text/css href=test.css/ I haven't been able to find anyone else who has had this problem. ** Can someone tell me why my css appears then disappears and how to fix it? ** My project is very minimal, at the moment all it does is serve out the html page, with all the Java commented out in onModuleLoad() If it makes any difference, I am using gwt on appengine with the google plugin for eclipse. Any insight is appreciated, David Trejo (I posted this on the Google App Engine for Java group, and it was recommended that I ask this question here. Sister thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/9f3aa450a8e866ab?hl=en ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: CSS loads for 1 millisecond, then disappears
How terribly ridiculous! It seems that my css file started with a capital letter, I had it written with a lowercase letter, and thus it was not working. Now that I've corrected it, my css works: link type=text/css rel=stylesheet href=Test.css/ I would have realized that much sooner if the css had not flashed before my eyes before disappearing. Sorry to waste your time guys. Thanks for trying to help, I appreciate it. -David On Tue, Jun 30, 2009 at 2:28 PM, Isaac Truett itru...@gmail.com wrote: A code sample that reproduces the problem would be helpful. On the surface, I don't see how this could be related to GWT. What happens if you remove GWT from the scenario altogether? On Fri, Jun 26, 2009 at 11:11 AM, DTrejotookie.tr...@gmail.com wrote: Hello, I am having a problem with my CSS. My hosted mode is a bit laggy, so when I first run my gwt app in hosted mode the css successfully loads for a few milliseconds, but when the lag stops and hosted mode settles down, my css disappears. When I compile/browse it, the css does not even show up for a few ms at the start, I suppose because modern browsers are so fast. This is how I access my css: link rel=stylesheet type=text/css href=test.css/ I haven't been able to find anyone else who has had this problem. ** Can someone tell me why my css appears then disappears and how to fix it? ** My project is very minimal, at the moment all it does is serve out the html page, with all the Java commented out in onModuleLoad() If it makes any difference, I am using gwt on appengine with the google plugin for eclipse. Any insight is appreciated, David Trejo (I posted this on the Google App Engine for Java group, and it was recommended that I ask this question here. Sister thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/9f3aa450a8e866ab?hl=en ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: CSS loads for 1 millisecond, then disappears
Ian you were right, after I corrected the typo and commented out the gwt styles, everything worked. Thanks for helping, David Trejo On Tue, Jun 30, 2009 at 2:53 PM, David Trejo tookie.tr...@gmail.com wrote: How terribly ridiculous! It seems that my css file started with a capital letter, I had it written with a lowercase letter, and thus it was not working. Now that I've corrected it, my css works: link type=text/css rel=stylesheet href=Test.css/ I would have realized that much sooner if the css had not flashed before my eyes before disappearing. Sorry to waste your time guys. Thanks for trying to help, I appreciate it. -David On Tue, Jun 30, 2009 at 2:28 PM, Isaac Truett itru...@gmail.com wrote: A code sample that reproduces the problem would be helpful. On the surface, I don't see how this could be related to GWT. What happens if you remove GWT from the scenario altogether? On Fri, Jun 26, 2009 at 11:11 AM, DTrejotookie.tr...@gmail.com wrote: Hello, I am having a problem with my CSS. My hosted mode is a bit laggy, so when I first run my gwt app in hosted mode the css successfully loads for a few milliseconds, but when the lag stops and hosted mode settles down, my css disappears. When I compile/browse it, the css does not even show up for a few ms at the start, I suppose because modern browsers are so fast. This is how I access my css: link rel=stylesheet type=text/css href=test.css/ I haven't been able to find anyone else who has had this problem. ** Can someone tell me why my css appears then disappears and how to fix it? ** My project is very minimal, at the moment all it does is serve out the html page, with all the Java commented out in onModuleLoad() If it makes any difference, I am using gwt on appengine with the google plugin for eclipse. Any insight is appreciated, David Trejo (I posted this on the Google App Engine for Java group, and it was recommended that I ask this question here. Sister thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/9f3aa450a8e866ab?hl=en ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
CSS loads for 1 millisecond, then disappears
Hello, I am having a problem with my CSS. My hosted mode is a bit laggy, so when I first run my gwt app in hosted mode the css successfully loads for a few milliseconds, but when the lag stops and hosted mode settles down, my css disappears. When I compile/browse it, the css does not even show up for a few ms at the start, I suppose because modern browsers are so fast. This is how I access my css: link rel=stylesheet type=text/css href=test.css/ I haven't been able to find anyone else who has had this problem. ** Can someone tell me why my css appears then disappears and how to fix it? ** My project is very minimal, at the moment all it does is serve out the html page, with all the Java commented out in onModuleLoad() If it makes any difference, I am using gwt on appengine with the google plugin for eclipse. Any insight is appreciated, David Trejo (I posted this on the Google App Engine for Java group, and it was recommended that I ask this question here. Sister thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/9f3aa450a8e866ab?hl=en ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: [appengine-java] CSS loads for 1 millisecond, then disappears
Hey David, I think this is a question you might want to ask on the GWT group. On Thu, Jun 25, 2009 at 7:10 PM, DTrejo tookie.tr...@gmail.com wrote: Hello, I am having a problem with my CSS. My hosted mode is a bit laggy, so when I first run the my gwt app in hosted mode, the css successfully loads for a few milliseconds, but when the lag stops and hosted mode settles down, my css disappears. When I compile/browse it, the css does not even show up for a few ms at the start, I suppose because modern browsers are so fast. This is how I access my css: link rel=stylesheet type=text/css href=test.css/ I haven't been able to find anyone else who has had this problem. ** Can someone tell me why my css appears then disappears and how to fix it? ** My project is very minimal, at the moment all it does is serve out the html page, with all the Java in commented out in onModuleLoad() Thank you, David Trejo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---