Can I copy an image to avoid re-requesting from url?
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 Image(cache.get(url)); Is this possible? Regards, Anders S. Johanse, ange.dk -- 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-tool...@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: Can I copy an image to avoid re-requesting from url?
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. Unfortunately it seems that most browsers are smart enough to cache images that have been fully transfered, but not smart enough to consolidate overlapping requests such as this: time:0 fetch image1 time:10 fetch image1 time:20 Image 1 ready -- 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-tool...@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.
Making the back button go even further back in history?
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 TWO steps backwards. Is there any way to make that happen? Regards, Anders -- 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-tool...@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: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?
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 out it is in the production branch, only not as a default. To enable, add these two lines to the module file: set-property name=compiler.emulatedStack value=true/ set-configuration-property name=compiler.emulatedStack.recordFileNames value=true/ This will enable stack traces on this format: ... Unknown.Hh(JsArrayString.java:42) Unknown.Pf(StackTraceCreator.java:366) Unknown.IN(SpinnerWhileRequestingViewer.java:129) Unknown.CL(TrappableCommand.java:35) Unknown.iL(TrappableCommand.java:24) Unknown.Zw(CommandExecutor.java:310) Unknown.mx(Duration.java:29) Unknown.lf(Timer.java:141) Unknown.anonymous(Timer.java:60) Unknown.Tg(Impl.java:146) Unknown.anonymous(Impl.java:56) ... These stack traces would have saved me at least a man week, if only I had known. Guess you have to R *all* TFM to be sure :D Regards, Anders -- 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-tool...@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: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?
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 useful:http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h... 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 :( Regards, Anders -- 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-tool...@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: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?
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,Wob)}else{b=lJ(new fJ,Ohb+a._()+Xob);b.d=true;oJ(b,vV(new _$,a));return b}} The error is: java.lang.IndexOutOfBoundsException: Can't get element 58 Regards, Anders -- 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-tool...@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: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?
...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: http://worm:8080/myShopInstall/gwt-results-app/5DF30FE3D0E594F4B64889C27BA79632.cache.html expressionBeginOffset: 18742 expressionCaretOffset: 18743 expressionEndOffset: 18745 Line 1520 in the file looks like this: function ZF(a){var b;b=PP(new MP,a.g);while(b.bb.c.d-1){RP(b);TP(b)}} -- 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-tool...@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: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?
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_ $clear__Lcom_google_gwt_user_client_ui_Panel_2V(this$static){ var it; it = com_google_gwt_user_client_ui_WidgetCollection$WidgetIterator_ $WidgetCollection $WidgetIterator__Lcom_google_gwt_user_client_ui_WidgetCollection $WidgetIterator_2Lcom_google_gwt_user_client_ui_WidgetCollection $WidgetIterator_2(new com_google_gwt_user_client_ui_WidgetCollection $WidgetIterator, this $static.com_google_gwt_user_client_ui_ComplexPanel_children); while (it.com_google_gwt_user_client_ui_WidgetCollection $WidgetIterator_index it.com_google_gwt_user_client_ui_WidgetCollection$WidgetIterator_this $0.com_google_gwt_user_client_ui_WidgetCollection_size - 1) { com_google_gwt_user_client_ui_WidgetCollection$WidgetIterator_ $next__Lcom_google_gwt_user_client_ui_WidgetCollection $WidgetIterator_2Lcom_google_gwt_user_client_ui_Widget_2(it); com_google_gwt_user_client_ui_WidgetCollection$WidgetIterator_ $remove__Lcom_google_gwt_user_client_ui_WidgetCollection $WidgetIterator_2V(it); } } Error points to line starting with it = com_google.. Error message is: (TypeError): Result of expression 'this$static' [null] is not an object. -- 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-tool...@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: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?
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 the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Fewer compile permutations using ant: Can user.agent be passed in via command-line?
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 out your suggestions, and see if I can make them work for us. Regards, Anders -- 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-tool...@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.
The -draftCompile flag: Impact on compilation speed small, sometimes negative
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: ~153 seconds I know these are only three data points, but there seems to be no clear advantage to using the flag in terms of compilation speed. Seven seconds saved out of 153 is hardly worth it. Worse: One project even got slower compiles from using the flag. -- 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-tool...@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.
Fewer compile permutations using ant: Can user.agent be passed in via command-line?
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 much rather set a switch on the compiling machine, and then have that value passed in for the user.agent property. Doable? Regards, Anders -- 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-tool...@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.
Compilation: Different user.agent settings for different scenarios
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 possible? Regards, Anders, ange.dk --~--~-~--~~~---~--~~ 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: PushButton w/ image: How to avoid grey background
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 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 -~--~~~~--~~--~--~---
PushButton w/ image: How to avoid grey background
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 --~--~-~--~~~---~--~~ 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: PushButton w/ image: How to avoid grey background
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 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: Geting a stack trace?
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 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Geting a stack trace?
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 execute method for a command that will have a reasonable * way to handle thrown exceptions. */ public abstract class TrappableCommand implements Command { /** * Execute this command, report any exception in a popup panel. */ public void execute() { execute(this); } /** * Execute the provided command, report any exception in a popup panel. * @param cmd The command to execute. */ public static void execute(final TrappableCommand cmd) { try { cmd.executeWithCatch(); } catch (final Throwable t) { final PopupPanel panel = new PopupPanel(true); panel.setWidget(makeWidget(t)); panel.center(); } } /** * Make a normal command trappable. * * @param cmd The command to make trappable. * @return A trappable wrapper for cmd. */ public static Command makeTrappable(final Command cmd) { return new TrappableCommand() { @Override protected void executeWithCatch() { cmd.execute(); }}; } private static Widget makeWidget(final Throwable t) { final VerticalPanel host = new VerticalPanel(); host.add(LabelFactory.makeNewLabelBiggest(Exception caught)); addThrowable(t, host); return host;} private static void addThrowable(final Throwable t, final VerticalPanel host) { host.add(new Label(Class: + t.getClass().getName())); host.add(new Label(Message:)); addStringWithLinebreaks(host, t.getMessage()); host.add(new Label(Stacktrace:)); addWithLinebreaks(host, t.getStackTrace()); if (t.getCause() != null) { host.add(LabelFactory.makeNewLabelBig(Caused by)); addThrowable(t.getCause(), host); } else { host.add(new Label(No cause)); } } private static void addWithLinebreaks(VerticalPanel host, StackTraceElement[] stackTrace) { if (stackTrace.length == 0) { host.add(new Label(No stacktrace)); } else { for (StackTraceElement item : stackTrace) { host.add(new Label(item.toString())); } } } private static void addStringWithLinebreaks(VerticalPanel host, String s) { String strings[] = s.split(\n); for (String str : strings) { host.add(new Label(str)); } } /** * Implement to add behavior. */ protected abstract void executeWithCatch() ; } --~--~-~--~~~---~--~~ 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: Adding the same widget more than once
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 ensures that I can introduce on-demand creation of objects if I need it, and that I can create several instances configured in identical ways by using this method, provided that it is implemented in a sensible way. Regards, Anders --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Justification of images, how?
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 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: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?
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 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: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?
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 around that? Here is my test program. On Safari and FF I get size 120,90 for the image, even before it is made visible. In IE size is 0,0 until made visible. final RootPanel rootPanel = RootPanel.get(jobList); final String url = http://arstechnica.com/mt-static/plugins/ArsTheme/style/themes/ light/images/logo.png; final Image image = new Image(); final Label l = new Label(Not loaded yet, size + image.getWidth () + , + image.getHeight()); rootPanel.add(l); image.setVisible(false); LoadListener ll = new LoadListener() { public void onError(Widget sender) { l.setText(Failed); } public void onLoad(Widget sender) { l.setText(Success, size + image.getWidth() + , + image.getHeight()); rootPanel.add(new Button(Make visible, new ClickListener() { public void onClick(Widget sender) { image.setVisible(true); l.setText(Visible, size + image.getWidth() + , + image.getHeight()); }})); } }; image.addLoadListener(ll); rootPanel.add(image); DeferredCommand.addCommand(new Command(){ public void execute() { image.setUrl(url); } }); --~--~-~--~~~---~--~~ 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: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?
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 seeing the actual load, you have to use a trick like loading it in a hidden part of the document: Ah, but it is: http://code.google.com/p/google-web-toolkit/issues/detail?q=imagecan=2id=863 Regards, Anders --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?
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 loading. Regards, Anders S. Johansen, ange.dk --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Help me make my own Jar file with an interface, that can be shared between the client and a Java-based server
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 in a Jarfile, so the backend and frontend can share this code without creating any cut/paste/synch errors. I have created a Jar file, that contains a skeleton structure (my hello world of including a Jar). It contains both the .class and .java files from the interface project). The contents are: a...@worm:~/tmp$ unzip orion-gwtresultsmodel.jar Archive: orion-gwtresultsmodel.jar creating: META-INF/ inflating: META-INF/MANIFEST.MF creating: dk/ creating: dk/ange/ creating: dk/ange/orion/ creating: dk/ange/orion/gwt/ creating: dk/ange/orion/gwt/models/ creating: dk/ange/orion/gwt/models/results/ creating: dk/ange/orion/gwt/models/results/interf/ inflating: dk/ange/orion/gwt/models/results/interf/Results.class inflating: dk/ange/orion/gwt/models/results/interf/Results.java I have put the jarfile in my GWT project (in ./lib), and added it to the Java build path in Eclipse. Now my editor can see it. Unfortunately, when I try to run the GWT project, I get this error: Failed to load module dk.ange.orion.gwt.frontend.GwtResults. Please see the log in the development shell for details. The log reads: Compiling java source files in module 'dk.ange.orion.gwt.frontend.GwtResults' Removing units with errors Errors in 'file:/home/asj/crypt/myShopInstall/gwtresults/dk/ange/orion/ gwt/frontend/client/GwtResults.java' Line 24: No source code is available for type dk.ange.orion.gwt.models.results.interf.Results; did you forget to include a required module? Any hints? Regards, Anders --~--~-~--~~~---~--~~ 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: Help me make my own Jar file with an interface, that can be shared between the client and a Java-based server
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 / Thank you very much. That did the trick. Regards, Anders --~--~-~--~~~---~--~~ 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: Change the plus sign with custom image
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: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/bb5c8c892007d80?hl=enq= Regards, Anders --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Drang/drop files to GWT app - any progress?
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 --~--~-~--~~~---~--~~ 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: Drang/drop files to GWT app - any progress?
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 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 -~--~~~~--~~--~--~---
How do I make a pretty, easy to use button without making custom images for each one?
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 same text on the face of it. Examples: (|| OK ||) (|| My very long button text ||) How would I go about this, without having to generate each individual button as an image in my drawing program? Anders --~--~-~--~~~---~--~~ 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: So I want to put some shared classes in a Jar file...
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 module, the GWT flavor of a Jar file The following tutorial assumes that you are using Eclipse. Step 1: Generate the host project for the module The first step is to generate a project that can host the code. As part of the process, we will also generate an Ant build file that can make the Jar file that contains the module. You must have GWT installed in order for this to work at all. First you must create the project: The command shown below creates an Eclipse project and an Ant buildfile that contains the project angeSharedGwtComponents. The files are written to the directory ./SharedComponents. You can name the project pretty much whatever you like, within reason (try to stick to US ASCII letters, no spaces or odd chars - remember file system semantics differ). projectCreator -ant angeSharedGwtComponents -eclipse angeSharedGwtComponents -out SharedComponents Step 2: Create a host application for your code You have a project. Now you need to generate a default application that you can add your code to. The command below creates an application package structure that has its root in the dk.ange.client package. The main Java class is named dk.ange.client.SharedComponents. The application is stores in the directory SharedComponents. NB: Note that the last node in the package structure MUST be called 'client'. The applicationCreator program enforces this, and will give you a warning, so there is no risk that you do it wrong. applicationCreator -eclipse angeSharedGwtComponents dk.ange.client.SharedComponents -out SharedComponents Step 3: Clean up the entry point class The main class generated by the applicationCreator command contains a lot of demonstration code. You should slim it down to just this: package dk.ange.client; import com.google.gwt.core.client.EntryPoint; /** * Entry point classes define codeonModuleLoad()/code. */ public class SharedComponents implements EntryPoint { /** * This is the entry point method. */ public void onModuleLoad() { // Any common init code goes here } } Step 4: Add your code to the project This is reatively simple, except for the fact that there are some restrictions on package naming. All packages MUST be rooted in the package that contains the entry point/main class for the project. Hence, if your main class is named dk.ange.client.SharedComponents, all code must reside in packages whose name starts with dk.ange.client, e.g. dk.ange.client.ui.buttons. Step 5: Build a Jar file with Ant Once you code is added, tested and compiled, you can use the Ant build file generated earlier to package the module in a Jar. In this example the project is called angeSharedGwtComponents, and it is stored in the directory ./SharedComponents cd SharedComponents ant -f angeSharedGwtComponents.ant.xml package Step 6: Add the Jar file to the GWT project you want to use it in Copy the file to your project using Eclipse. A simple copy/paste works fine, at least on the Mac. Add it to the build path by right clicking the project, and then selecting Properties - Java Build Path - Add JARs... Step 7: (final step) Add the module to the GWT XML file for the target project Open the gwt.xml file for the project you just added the Jar file to. If the entry point/main class is named dk.ange.myproject.client.MainModule, the gwt.xml file is named MainModule.gwt.xml, and resides in the dk.ange.myproject package. Add an import reference to the Jar file, e.g. inherits name='dk.ange.SharedComponents'/ --~--~-~--~~~---~--~~ 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: How do I make a pretty, easy to use button without making custom images for each one?
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 configurations (browser, screen size, resolution), so it's probably not worth the hassle to do a more generic solution. Anders --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
So I want to put some shared classes in a Jar file...
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 are currently here: com.company.gwt.projectone.client.reuseableclasses How do I proceed? I'm using Eclipse, but am no stranger to the command line in general. However, I have never had to make a Jar file before, even in generic Java. Do I e.g. need to create a new GWT project from scratch, and move the classes there? They reference GWT specific classes... How do I make a Jar file, that is structured correctly? Anders --~--~-~--~~~---~--~~ 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: So I want to make a better-looking radio group...
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 { border-color: #aaa; border-style: solid; border-width: 1px 0px 1px 1px; } etc That's the default style for the ScrollTable. The solid border style apparently means that internally in the cell the solid border is inherited into my widget - a HorizontalPanel that I add the images to. Hence, the images are separated by a bit of white space and a solid, vertical line. Anders --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
GETting a request to another server from hosted mode while debugging (whitelist?)
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 RequestBuilder rb = new RequestBuilder( RequestBuilder.GET, URL.encode( http://my.server:9080/myShopInstall/DownloadReport.do? content=dq_candidate_matchesformat=excel_csv )); rb.setHeader(Content-Type, application/x-www-form- urlencoded); rb.setRequestData(); rb.setCallback(this); try { rb.send(); } catch (final RequestException e) { throw new RuntimeException(e); } } Is the ANY way that I can make hosted mode on my development machine allow this request despite the single-origin policy? If not, I have to live with at much slowed down build/test cycle... Sincerely, Anders --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Link to documentation broken?
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 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: Can I remove (+) and (-) knees from GWT Tree?
...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(); @Resource(dk/ange/gwt/dataqualitybrowser/public/images/ transparent-16x16.gif) public AbstractImagePrototype treeOpen(); } Use it when constructing the Tree. private final TreeImages images = (TreeImages)GWT.create (NoKneesTreeImages.class); private final Tree actionsTree = new Tree(images); You will need a small, transparent gif or png image. Please remember to modify the paths to the images to reflect you own package structure. 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 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 -~--~~~~--~~--~--~---
Can I remove (+) and (-) knees from GWT Tree?
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 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 -~--~~~~--~~--~--~---
ScrollTable and DockPanel: ScrollTable expands CENTER panel to hide SOUTH
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 CENTRE panel, and the single item viewer goes in the SOUTH panel. When I use a simple Grid wrapped in a ScrollPanel for test, this works as expected. The result list fills up about half of the height of the screen and grows a scrollbar. However, when I replace the Grid/ ScrollPanel combination with a ScrollTable from the Incubator projects, the ScrollTable fills up the entire height of the screen, rather than confining itself to about half the screen like the Grid/ ScrollPanel did. Any ideas? Sincerely, Anders S. Johansen, ange.dk --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---