fredsa / gwt-dnd

Library providing easy to use mouse or touch based drag-and-drop capabilities to GWT
43 stars 40 forks source link

Demo 10 fails in FF3RC1 #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
GWT r2867

gwt-dnd r735

Linux

web mode FF3 RC1

expected output:
Puzzle with 4 pumpkin images.

instead:
No single pumpkin in the puzzle.

additional information:
I know that running demo in FF3 is not a good idea, but may you please
check the issue at least on Windows? In my case, Hosted mode runs OK though.

Original issue reported on code.google.com by A.A.Vasi...@gmail.com on 20 May 2008 at 11:46

GoogleCodeExporter commented 9 years ago
I encountered no problems at r735 using Firefox 3.0 RC1 (=3.0 beta 1).

Could you check Firebug and see if you see any errors?

Original comment by fredsa on 28 May 2008 at 4:20

GoogleCodeExporter commented 9 years ago
The same for gwt-dnd r738 compiled against GWT r2951 (aka /releases/1.5 branch)
Firebug shows a pair of exceptions:

1. At the "loading demo" stage:
_gat is not defined
DragDropDemo.html()DragDropDemo.html (line 33)
[Break on this error] var pageTracker = _gat._getTracker("UA-587086-3");

2. When the demo is completely loaded:
_gat is not defined
gwt()gwt (line 640)
[Break on this error] var pageTracker = _gat._getTracker("UA-587086-3");

Which is obviously Google Analytics stuff. After that no exceptions and all 
(seems
to) work fine, except for Demo 10 as reported above. 

Original comment by A.A.Vasi...@gmail.com on 28 May 2008 at 6:06

GoogleCodeExporter commented 9 years ago
Update. In Demo 7 there should be another pumpkin image in one of the "windows"
titled "A draggable & resizable IMG".
1. No picture is displayed
2. When I select "open image" from context menu, no picture is displayed, 
instead
(correct) path to the image is printed. 
So, perhaps this is neither GWT, nor gwt-dnd issue, but FF3's one.

Original comment by A.A.Vasi...@gmail.com on 28 May 2008 at 7:40

GoogleCodeExporter commented 9 years ago
Can you then paste that image URL directly into the browser's URL bar to have it
display? If not, it would seem FF is having a issue rendering the image. If so,
perhaps clearing your cache will clean up any problems.

Original comment by fredsa on 28 May 2008 at 1:38

GoogleCodeExporter commented 9 years ago
In fact, no image viewer could open this image. Any of images, as I find out.
Essencial output of ls -l **/*.gif **/*.jpg is:

1205 build/demo/com/allen_sauer/gwt/dnd/demo/public/images/dragger-4x4.gif
1201
build/demo/com/allen_sauer/gwt/dnd/demo/public/images/preview61_cycle_eight_16-b
lack-on-white.gif
1465 build/demo/com/allen_sauer/gwt/dnd/demo/public/images/row-dragger-8.gif
1205 build/out/demo/com/allen_sauer/gwt/dnd/demo/public/images/dragger-4x4.gif
1201
build/out/demo/com/allen_sauer/gwt/dnd/demo/public/images/preview61_cycle_eight_
16-black-on-white.gif
1465 build/out/demo/com/allen_sauer/gwt/dnd/demo/public/images/row-dragger-8.gif
1205 build/www/com.allen_sauer.gwt.dnd.demo.DragDropDemo/images/dragger-4x4.gif
1201
build/www/com.allen_sauer.gwt.dnd.demo.DragDropDemo/images/preview61_cycle_eight
_16-black-on-white.gif
1465 
build/www/com.allen_sauer.gwt.dnd.demo.DragDropDemo/images/row-dragger-8.gif
817 demo/com/allen_sauer/gwt/dnd/demo/public/images/dragger-4x4.gif
795
demo/com/allen_sauer/gwt/dnd/demo/public/images/preview61_cycle_eight_16-black-o
n-white.gif
974 demo/com/allen_sauer/gwt/dnd/demo/public/images/row-dragger-8.gif
8729 build/demo/com/allen_sauer/gwt/dnd/demo/public/images/99pumpkin2-65x58.jpg
8729 
build/out/demo/com/allen_sauer/gwt/dnd/demo/public/images/99pumpkin2-65x58.jpg
8729 
build/www/com.allen_sauer.gwt.dnd.demo.DragDropDemo/images/99pumpkin2-65x58.jpg
5043 demo/com/allen_sauer/gwt/dnd/demo/public/images/99pumpkin2-65x58.jpg

You can see that after compilation every gif/jpeg is corrupted. What happen at 
the
compile stage? I use 'ant' command to build gwt-dnd from source. Files "before" 
and
"after" attached.

Original comment by A.A.Vasi...@gmail.com on 29 May 2008 at 6:04

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, A.A.Vasiljev!

That's good research. I just found a similar issue in gwt-voices the other day. 
Turns
out the ant filterset task can corrupt binary files. I'll update the ant script 
to
correct this problem.

Can I assume that you're running the demo from the 'build' directory, and that's
where you run into the corrupted images? (I generally run directly from 
Eclipse, and
that's why I didn't see this issue initially.)

Original comment by fredsa on 29 May 2008 at 1:55

GoogleCodeExporter commented 9 years ago
Fixed ant build script in r742.

Thanks again.

Original comment by fredsa on 30 May 2008 at 3:38

GoogleCodeExporter commented 9 years ago
from DragDrop directory I run:
> ant
[... some output here ...]

and start demo like this:
> firefox build/www/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.html

Now everything works right. Thank you for the great library!

Original comment by A.A.Vasi...@gmail.com on 30 May 2008 at 5:30

GoogleCodeExporter commented 9 years ago
BTW, may I ask you, Fred? What GWT-specific plugin for Eclipse (if any) do you 
use
coding GWT applications?

Original comment by A.A.Vasi...@gmail.com on 30 May 2008 at 10:33

GoogleCodeExporter commented 9 years ago
None, actually. I do turn of auto formatting of javadoc comments, then place by
opening JSNI braces on the next line, which prevents Eclipse auto-formatting for
destroying my JSNI blocks.

Original comment by fredsa on 30 May 2008 at 2:04