Re: (perplexing + frustrating) CSS image not found

2011-08-23 Thread Shawn Brown
 HI,
 Why can I directly access them using the url that it is being reported
 GWT can not find them at.

 I mean:

 /images/panel/top.gif  --- is found
 /images/panel/bottom.gif -- is not found by gwt but can be accessed
 by using the link DevTools says GWT says it's not at.
 It's just beyond crazy.

Yuck.  I will guess that using RunAsync to split code is the cause.

The urls are relative so if called from javascript placed in
/deferredjs/somehash2345, then I guess they can not resolve.

Taking out RunAsnyc seems to work (in GAE devmode at least).

I can't understand though since the script calling from
/deferredjs/somehash2345 seems to find some .gifs but not others.

So, it seems related to RunAsync but exactly how or why I can't say.

Yuck.  This sucks.


Shawn

-- 
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: (perplexing + frustrating) CSS image not found

2011-08-23 Thread Hilco Wijbenga
On 22 August 2011 23:14, Shawn Brown big.coffee.lo...@gmail.com wrote:
  HI,
 Why can I directly access them using the url that it is being reported
 GWT can not find them at.

 I mean:

 /images/panel/top.gif  --- is found
 /images/panel/bottom.gif -- is not found by gwt but can be accessed
 by using the link DevTools says GWT says it's not at.
 It's just beyond crazy.

 Yuck.  I will guess that using RunAsync to split code is the cause.

 The urls are relative so if called from javascript placed in
 /deferredjs/somehash2345, then I guess they can not resolve.

 Taking out RunAsnyc seems to work (in GAE devmode at least).

 I can't understand though since the script calling from
 /deferredjs/somehash2345 seems to find some .gifs but not others.

 So, it seems related to RunAsync but exactly how or why I can't say.

 Yuck.  This sucks.

You didn't happen to run into either of these did you: [1], [2]? You
didn't mention how you access your images, so I'm just guessing.

[1] http://code.google.com/p/google-web-toolkit/issues/detail?id=6145
[2] http://code.google.com/p/google-web-toolkit/issues/detail?id=6149

-- 
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: (perplexing + frustrating) CSS image not found

2011-08-23 Thread Shawn Brown
 .panelAddTop {
  background-image: url(../images/panel/top.gif);
 }

 .panelEnterBottom{
  background-image: url(../images/panel/bottom.gif);
 }

 So I would expect neither or both to be found since they both resolve
 relative to the CSS file.  That one is found but not the other really
 perplexes me since they are both there.

Ok what works is;

  background-image: url(/resources/images/panel/top.gif);
 }

 .panelEnterBottom{
  background-image: url(/resources/images/panel/bottom.gif);
 }

where the application is structured

/war
/war/resources/
/war/resources/images
/war/resources/css
etc.

Since the css file is obviously in /war/resources/css, shouldn't the below work?

 .panelEnterBottom{
  background-image: url(../images/panel/bottom.gif);
 }

Well using RunAsync seems to confuse things...

-- 
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: (perplexing + frustrating) CSS image not found

2011-08-23 Thread Shawn Brown
 Yikes

 Ok what works is;

   background-image: url(/resources/images/panel/top.gif);
  }

  .panelEnterBottom{
   background-image: url(/resources/images/panel/bottom.gif);
  }

 where the application is structured

 /war
 /war/resources/
 /war/resources/images
 /war/resources/css
 etc.


That only tricked devMode
On a real AppEngine deployment it still fails.

Shawn

-- 
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: (perplexing + frustrating) CSS image not found

2011-08-23 Thread Sudhakar Abraham
I had a similar problem and I solved it in the following way.

S. Abraham
www.DataStoreGwt.com

Create the package in War directory name as images and put all the gif
files.

uploaded directory structure like

/war/images/bottom.gif

In css chage the background-image property like this.

 .panelEnterBottom{
  padding-left:20px;
  padding-right:20px;
  padding-top:20px;
  background-image: url(images/bottom.gif);
}

On Aug 23, 10:20 am, Shawn Brown big.coffee.lo...@gmail.com wrote:
 Hi,

 I have a compiled project deployed on AppEngine.

 Some .gif files are not found by GWT.

 I am perplexed.

 The CSS file is found.
 Other .gif images used by the CSS file are found.

 Looking at DevTools in Chrome, I see which ones are not found.
 Clicking on the link, the server finds them and shows them in my
 browser.

 Why can I directly access them using the url that it is being reported
 GWT can not find them at.

 I mean:

 /images/panel/top.gif  --- is found
 /images/panel/bottom.gif -- is not found by gwt but can be accessed
 by using the link DevTools says GWT says it's not at.

 Dev mode shows the same things.

 It's just beyond crazy.

 If client bundle is the only way to use things, the docs should say that.

 Shawn

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



(perplexing + frustrating) CSS image not found

2011-08-22 Thread Shawn Brown
Hi,

I have a compiled project deployed on AppEngine.

Some .gif files are not found by GWT.

I am perplexed.

The CSS file is found.
Other .gif images used by the CSS file are found.

Looking at DevTools in Chrome, I see which ones are not found.
Clicking on the link, the server finds them and shows them in my
browser.

Why can I directly access them using the url that it is being reported
GWT can not find them at.

I mean:

/images/panel/top.gif  --- is found
/images/panel/bottom.gif -- is not found by gwt but can be accessed
by using the link DevTools says GWT says it's not at.

Dev mode shows the same things.

It's just beyond crazy.

If client bundle is the only way to use things, the docs should say that.

Shawn

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