Can I copy an image to avoid re-requesting from url?

2010-09-03 Thread dduck
Hi, I have written a GWT client that among other things requests images that are generated server-side. To conserve bandwith and server CPU, I would like to cache the images in an url - image map. To do that properly, I would need to be able to copy an image as in final Image myImage = new

Re: Can I copy an image to avoid re-requesting from url?

2010-09-03 Thread dduck
On 3 Sep., 14:37, Thomas Broyer t.bro...@gmail.com wrote: On Sep 3, 2:24 pm, dduck anders.johansen.a...@gmail.com wrote: If you want to cache images, you have to have your server send the appropriate HTTP headers so the browser itself appropriately uses the image from its cache

Making the back button go even further back in history?

2010-06-18 Thread dduck
Hi, I have this unusual problem. I have a form page that redirects to a results page that auto- redirects to my GWT application page. Now, if the user presses the browser Back button, he goes back to the auto-redirect page, which is not what he would expect - he wants to get to the form page, so

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-27 Thread dduck
On 27 Jan., 10:07, dduck anders.johansen.a...@gmail.com wrote: I understand that a better stack trace mechanism is in the works, but obviously it is not yet part of the production branch of GWT. In the mean time we are left to our most ancient tools, the printf and our naked brain :) Turns

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-26 Thread dduck
On 21 Jan., 15:44, John V Denley johnvden...@googlemail.com wrote: for you dduck, the way forward would be to do as leduque suggests above and set the compile time flag for style to detailed and that should give you a much better idea where the error is, you might find the following link

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-26 Thread dduck
On 26 Jan., 13:11, dduck anders.johansen.a...@gmail.com wrote: I have done so, but the debugging still points to a piece of JavaScript that does not have a clear correspondence to the original Java code :( Specifically it points to this line: function Y$(a){var b;if(a.Z()){return KK(new IK

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-26 Thread dduck
...and another, this time the one I am actually after: Class: com.google.gwt.core.client.JavaScriptException Message: (TypeError): Result of expression 'a' [null] is not an object. line: 1520 sourceId: 4968015904 sourceURL:

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-26 Thread dduck
On 26 Jan., 16:15, Djabi george.djaba...@gmail.com wrote: BTW, Your code stills looks like compiled with -style obfuscated. You are right. Thought I had fixed it, but hadn't. Here is the unobfuscated code: function com_google_gwt_user_client_ui_Panel_

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-21 Thread dduck
Well, using Safari I can now spot the place where the exception is thrown in the generated JavaScript, but I have no way to relate that to the Java code that I put into the GWT compiler. Any clues as to how I do that? Regard, Anders -- You received this message because you are subscribed to

Re: Fewer compile permutations using ant: Can user.agent be passed in via command-line?

2009-12-28 Thread dduck
On Dec 17, 5:27 pm, BugRoger michael.j.schm...@gmail.com wrote: Hi Anders,   We use seperate modules for each compile mode. Then we pass a parameter into the build file to make it pick up the different modules. Hi Michael, Thank you for your very detailed and useful example. I will try

The -draftCompile flag: Impact on compilation speed small, sometimes negative

2009-12-28 Thread dduck
Hi there, I made a few measurements on the -draftCompile flag. Remember that it was supposed to make compilation faster: With -draftCompile: Project 1: 57.614s Project 2: 49.975s Project 3: 38.656s Total: ~146 seconds Without it: Project 1: 51.889s Project 2: 59.473s Project 3: 41.833s Total:

Fewer compile permutations using ant: Can user.agent be passed in via command-line?

2009-12-17 Thread dduck
Hi, As described here: http://code.google.com/intl/da/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#Can_I_speed_up_the_GWT_compiler ...it is possible to cut down on the number of browsers one compiles for. Unfortunately the solution proposed is not very elegant for our purposes. We would

Compilation: Different user.agent settings for different scenarios

2009-08-03 Thread dduck
Hi, We use Ant to build our GWT. We would like to be able to configure a specific system with a specific user.agent setting for compilation. This way developers only need to compile for the specific browser they use, but our production server would compile all permutations. Is this at all

Re: PushButton w/ image: How to avoid grey background

2009-06-04 Thread dduck
On 3 Jun., 21:23, Chad chad...@gmail.com wrote: Anders, I do this in my app. I call it an InvisibleButton. Chad, That worked like a charm. Much obliged! Regards, Anders --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

PushButton w/ image: How to avoid grey background

2009-06-02 Thread dduck
Hi, I would live to create a button that works just like a pushbutton, but without the grey background. Is there an easy way to just remove th egrey button outline, or will I have to roll my own component? Regards, Anders S. Johansen, ange.dk

Re: PushButton w/ image: How to avoid grey background

2009-06-02 Thread dduck
live ...should be 'like', obviously. I'm not THAT into making a prettier PushButton :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Geting a stack trace?

2009-05-29 Thread dduck
Thanks to all for your replies. I see that it is indeed mentioned in the docs that one should not (yet) expect a useful response from the StackTraceElement related functions. Good to know, and nice to know that I have improvements to look forward to. Regards. Anders

Geting a stack trace?

2009-05-25 Thread dduck
Hi, I have implemented a trappable command, that will show a popup in case of an uncaught exception during its execution. It seems that a stack trace is not available using the normal Java methods - at least not when run in a browser. Any suggestions? Here's the code. /** * Implement the

Re: Adding the same widget more than once

2009-05-02 Thread dduck
On 1 Maj, 12:12, hezjing hezj...@gmail.com wrote: It seems that we cannot add a same label more than once. Yup. Took me a while to figure out. Now I usually use a common interface like this for all my widget- making code: interface WidgetProvider { Widget createNewWidget(); } This both

Justification of images, how?

2009-05-02 Thread dduck
Hi, If I add an image to a panel, it is apparently always left-justified, no matter what horizontal justification I set the panel to use. Is there a way of doing this? Regards, Anders --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?

2009-04-30 Thread dduck
On Apr 29, 7:01 pm, davidroe roe.da...@gmail.com wrote: have you tried zero opacity? this usually does the trick for me as it is interpreted as in the DOM and visible. I'm not quite sure what you mean. Could you elaborate? Anders --~--~-~--~~~---~--~~ You

Re: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?

2009-04-29 Thread dduck
Anyway... Using the tip from the issues list (set URL in deferred command) I can get reliable execution of LoadListener on IE, as well as Safari and FF. Now I have a different problem. In IE it seems that an image has dimensions 0 x 0 until visible, even if it is loaded. Is there any way

Re: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?

2009-04-26 Thread dduck
On 15 Apr., 09:47, Salvador Diaz diaz.salva...@gmail.com wrote: I don't think LoadListener is broken, it's just that there's a catch in using it. The actual loading of the image doesn't take place if such image is not attached to the document, so if you really want to load it without the user

How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?

2009-04-15 Thread dduck
Hi, Is there a cross-browser compatible, sure-fire way to tell if an image is loaded? I have used Loadlistener observers, but they do not work consistently on IE, and that's a deal breaker... I need it for delaying preloading of hidden images until the visible ones have loaded, or have failed

Help me make my own Jar file with an interface, that can be shared between the client and a Java-based server

2009-04-01 Thread dduck
Hi, I am implementing a rather standard backend/frontend structure. My backend is implemented in Java. My frontend is implemented in GWT. I am using Eclipse. The frontend will be a simple viewer for some data, that will be accessed through an interface. I would like to package this interface

Re: Help me make my own Jar file with an interface, that can be shared between the client and a Java-based server

2009-04-01 Thread dduck
This means you'd have to put a gwt.xml at some package level containing the interface and inherit it from your GwtResults.gwt.xml. e.g. in dk/ange/orion/gwt, create Models.gwt.xml file with source path=models /, and in your GwtResult.gwt.xml add an inherits name=dk.ange.orion.gwt.Models /

Re: Change the plus sign with custom image

2009-02-27 Thread dduck
On Feb 26, 7:12 am, arjun karthickkuma...@gmail.com wrote: Hi I'm new to GWT. can you kindly let me know wat i shd do to change the default plus/minus sign in the tree with custom images. Read this:

Drang/drop files to GWT app - any progress?

2009-02-24 Thread dduck
Hi, I have searched the archives and the web, and all I could find was 1) Drag/drop projects that were only related to widgets. 2) Some discussions, all at least a year old, concluding that it was either hard and non-standards compliant, or impossible. Any progress? Regards Anders

Re: Drang/drop files to GWT app - any progress?

2009-02-24 Thread dduck
Err, I of cause mean DRAG/drop, not that weird mix of drag and dang ;) A --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

How do I make a pretty, easy to use button without making custom images for each one?

2009-01-02 Thread dduck
Hi, I would like to make a button that looks like this: (|| text ||) ...where ( is a rounded left-end of the button, ) is a rounded right- end of the button, || is a background and text can be specified e.g. at creation. Thus, all buttons of this type would share the same style, but not the

Re: So I want to put some shared classes in a Jar file...

2009-01-02 Thread dduck
Hi, Creating a module jar file is quite simple, you just need the following things: Thank you for your help, but I was looking for something a little more step-by-step. I have since figured out how to do it. Here is my tutorial that I wrote for internal use in my company. Making a GWT

Re: How do I make a pretty, easy to use button without making custom images for each one?

2009-01-02 Thread dduck
On 2 Jan., 15:12, gregor greg.power...@googlemail.com wrote: Hi Anders, I looked into this a year or so ago. Hi Gregor, Thank you very much for a informative and comprehensive answer. I guess I will go with the straight image solution for now. It's feasible, as all the users will use uniform

So I want to put some shared classes in a Jar file...

2008-12-28 Thread dduck
Hi, I have a project projectone that looks roughly like this: com.company.gwt.projectone It contains some classes that I would like to re-use in another project/module projecttwo. I assume that the best way to do that, would be to extract those classes, and put them in a Jar file. The classes

Re: So I want to make a better-looking radio group...

2008-12-23 Thread dduck
On Dec 22, 2:13 pm, Kevin Tarn kevn.t...@gmail.com wrote: You can add a dummy Label object into right most side, and setCellWidth of label widget to 100%. A good suggestion, but it doesn't fix the real problem. The table is a ScrollTable with the following style in the CSS .gwt-ScrollTable

GETting a request to another server from hosted mode while debugging (whitelist?)

2008-12-17 Thread dduck
Hi, I am debugging a piece of code that GETting a request to a server that isn't localhost. The code looks like this: public void recieveRequest(final ServerResponseRecipient callbackOnCompletion) { this.callback = callbackOnCompletion; final

Link to documentation broken?

2008-12-17 Thread dduck
Hi, When clicking the Developers guide link here: http://code.google.com/intl/da-DK/webtoolkit/overview.html ..I no longer get the developers guide. I get the Google code Documentation Reader page instead. Any idea why? Anders --~--~-~--~~~---~--~~ You received

Re: Can I remove (+) and (-) knees from GWT Tree?

2008-12-15 Thread dduck
...and the answer is: Make a TreeImages descendant that uses transparent images for the knees. interface NoKneesTreeImages extends TreeImages { @Resource(dk/ange/gwt/dataqualitybrowser/public/images/ transparent-16x16.gif) public AbstractImagePrototype treeClosed();

Can I remove (+) and (-) knees from GWT Tree?

2008-12-15 Thread dduck
Hi, Subject really says it all. I would like to use GWT Tree on a panel as a pop-up menu with grouped menu items, but the expand/collapse knee is a bit of an eyesore for that purpose... Sincerely, Anders S. Johansen, ange.dk --~--~-~--~~~---~--~~ You received

ScrollTable and DockPanel: ScrollTable expands CENTER panel to hide SOUTH

2008-12-09 Thread dduck
Hi all, I am trying to do something relatively simple: I want to create a simple, three-pane email-like item browser interface. For that I'm using a DockPanel to host the components, namely queries, result list and single item viewer. The queries go in the WEST panel, the result list goes in the