Re: CSS loads for 1 millisecond, then disappears

2009-07-06 Thread Dean S. Jones

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

2009-07-06 Thread Bradley

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

2009-07-06 Thread David Trejo
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  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 
>
> 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

2009-07-06 Thread Dean S. Jones

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 

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

2009-06-30 Thread David Trejo
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  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:
> 
>
> 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  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, DTrejo 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:
>> > 
>> >
>> > 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

2009-06-30 Thread David Trejo
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:


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  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, DTrejo 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:
> > 
> >
> > 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

2009-06-30 Thread Ian Bambury
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 

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

2009-06-30 Thread Isaac Truett

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, DTrejo 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:
> 
>
> 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
-~--~~~~--~~--~--~---