Re: unexpected behavior of FlowPanel's insert method
I realized I didn't need the two elements that came after the content. So I tried add instead of insert as you suggested, but I still get the same behavior. On Wed, Feb 4, 2009 at 11:49 PM, Giles Baxter giles.bax...@gmail.comwrote: Seems to be consistent. Here are the screenshots - don't know if that'll help. http://www.engr.uvic.ca/~gbaxter/tests.htmlhttp://www.engr.uvic.ca/%7Egbaxter/tests.html Only problem with the code you suggested is that I want to insert the content at a specific point in mainInnerPanel. If I use add, content will be at the end... On Wed, Feb 4, 2009 at 11:44 PM, Damien Picard picard.dam...@gmail.comwrote: Your mainInnerPanel is a FlowPanel, right ? try something like that : public void setCurrScreen(Widget content) { mainInnerPanel.remove(currScreen); mainInnerPanel.add(content); currScreen = content; } does the problem always appears ? 2009/2/5 Giles Baxter giles.bax...@gmail.com Sure. I used the Showcase sample as a template. They have a tree where the tree items map to different content widgets. I've created two Maps: one for history tokens and one for link texts. Here are the two listeners that use them to figure out what screen to display: final HistoryListener historyListener = new HistoryListener() { public void onHistoryChanged(String historyToken) { Composite screen = exchangerTokens.get(historyToken); app.setCurrScreen(screen); } }; History.addHistoryListener(historyListener); app.setListener(new ApplicationListener() { public void onHyperlinkClicked(Hyperlink link) { Composite content = exchangerScreenLinks.get(link.getText()); if (content != null !content.equals(app.getCurrScreen())) { History.newItem(getCurrScreenToken(content)); } } }); And here's the setCurrScreen method that calls insert(); public void setCurrScreen(Widget content) { int currScreenIndex = mainInnerPanel.getWidgetIndex(currScreen); if (currScreenIndex -1) { // the screen widget referenced by currScreen was found in the container mainInnerPanel.remove(currScreenIndex); mainInnerPanel.insert(content, currScreenIndex); } else { // the container had not yet been populated mainInnerPanel.insert(content, 1); } currScreen = content; } On Wed, Feb 4, 2009 at 11:15 PM, Damien Picard picard.dam...@gmail.comwrote: Hi, Could you copy past your code ? I think that it is probably an error in your algorithm. Regards, Damien 2009/2/5 Giles giles.bax...@gmail.com Hi, I'm trying to give the impression of navigating through a site by updating a component contained in a FlowPanel. Each time I call myPanel.insert(myComponent, index), the contents of myComponent are repeated. I have some screenshots from running the debugger in Eclipse if anyone thinks they can help. In this case, myComponent wraps another FlowPanel. After inserting into myPanel, the id of myComponent, the FlowPanel it wraps, and the WidgetCollection inside the FlowPanel are the same. But the id of the Widget array inside the WidgetCollection changes, and now contains the duplicated contents. I don't understand how the object being passed to insert() could be modified like this. Thanks Giles --~--~-~--~~~---~--~~ 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: JVM crash in hosted mode
What OS do you use for development vitaka? I use a Red Hat based distribution called Scientific Linux. On Feb 4, 9:46 am, vitaka vit...@gmail.com wrote: I have exactly the same problem. I am developing a web application that allows users log in with OpenID, and when user is redirected to his provider's page through an https connection, hosted mode browser crashes. --~--~-~--~~~---~--~~ 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: unexpected behavior of FlowPanel's insert method
And if you only try to remove the currScreen ; is it removed ? 2009/2/5 Giles Baxter giles.bax...@gmail.com I realized I didn't need the two elements that came after the content. So I tried add instead of insert as you suggested, but I still get the same behavior. On Wed, Feb 4, 2009 at 11:49 PM, Giles Baxter giles.bax...@gmail.comwrote: Seems to be consistent. Here are the screenshots - don't know if that'll help. http://www.engr.uvic.ca/~gbaxter/tests.htmlhttp://www.engr.uvic.ca/%7Egbaxter/tests.html Only problem with the code you suggested is that I want to insert the content at a specific point in mainInnerPanel. If I use add, content will be at the end... On Wed, Feb 4, 2009 at 11:44 PM, Damien Picard picard.dam...@gmail.comwrote: Your mainInnerPanel is a FlowPanel, right ? try something like that : public void setCurrScreen(Widget content) { mainInnerPanel.remove(currScreen); mainInnerPanel.add(content); currScreen = content; } does the problem always appears ? 2009/2/5 Giles Baxter giles.bax...@gmail.com Sure. I used the Showcase sample as a template. They have a tree where the tree items map to different content widgets. I've created two Maps: one for history tokens and one for link texts. Here are the two listeners that use them to figure out what screen to display: final HistoryListener historyListener = new HistoryListener() { public void onHistoryChanged(String historyToken) { Composite screen = exchangerTokens.get(historyToken); app.setCurrScreen(screen); } }; History.addHistoryListener(historyListener); app.setListener(new ApplicationListener() { public void onHyperlinkClicked(Hyperlink link) { Composite content = exchangerScreenLinks.get(link.getText()); if (content != null !content.equals(app.getCurrScreen())) { History.newItem(getCurrScreenToken(content)); } } }); And here's the setCurrScreen method that calls insert(); public void setCurrScreen(Widget content) { int currScreenIndex = mainInnerPanel.getWidgetIndex(currScreen); if (currScreenIndex -1) { // the screen widget referenced by currScreen was found in the container mainInnerPanel.remove(currScreenIndex); mainInnerPanel.insert(content, currScreenIndex); } else { // the container had not yet been populated mainInnerPanel.insert(content, 1); } currScreen = content; } On Wed, Feb 4, 2009 at 11:15 PM, Damien Picard picard.dam...@gmail.com wrote: Hi, Could you copy past your code ? I think that it is probably an error in your algorithm. Regards, Damien 2009/2/5 Giles giles.bax...@gmail.com Hi, I'm trying to give the impression of navigating through a site by updating a component contained in a FlowPanel. Each time I call myPanel.insert(myComponent, index), the contents of myComponent are repeated. I have some screenshots from running the debugger in Eclipse if anyone thinks they can help. In this case, myComponent wraps another FlowPanel. After inserting into myPanel, the id of myComponent, the FlowPanel it wraps, and the WidgetCollection inside the FlowPanel are the same. But the id of the Widget array inside the WidgetCollection changes, and now contains the duplicated contents. I don't understand how the object being passed to insert() could be modified like this. Thanks Giles --~--~-~--~~~---~--~~ 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: Error HTTP 503 in Tomcat
jamer schrieb: It is the web.xml file web-app Does it start that way? If yes, the xml- and doctype-declaration misses and you should add ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; servlet servlet-nameFrontEndService/servlet-name servlet-classproyect.server.FrontEndServiceImpl/servlet-class /servlet servlet-mapping servlet-nameFrontEndService/servlet-name url-pattern/FrontEndService/url-pattern /servlet-mapping There also misses the welcome-file-list, otherwise the server looks for (most likely) index.html. You should add welcome-file-list welcome-fileFrontEndService.html/welcome-file /welcome-file-list In addition to that you should have a look into the logfiles of the server. A 500-error means that something bad happened on the server side. Maybe the message in the browser is not the full truth and there is some problem reading resources of the web-application the server is only writing into the log and not telling the client. Regards, Lothar --~--~-~--~~~---~--~~ 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: A possible critical bug for gwt-fabridge.
Hi.. Iam new to FABridge.Now iam working on that,when i tried to use FABridge iam getting the exception as: [ERROR] Uncaught exception escaped java.lang.NullPointerException: null at com.example.client.SWFTest$2.onClick(SWFTest.java:75) at com.google.gwt.user.client.ui.ClickListenerCollection.fireClick(ClickListenerCollection.java:34) at com.google.gwt.user.client.ui.FocusWidget.onBrowserEvent(FocusWidget.java:102) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308) at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1287) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126) at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) Here iam not able to get value in swfWidget.root().getObject(check); please help me in this issue --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
What does this$static stand for in generated Javascript?
Hi all. I was going through a Java-to-Javascript compiled code with -DETAILED flag, and saw this$static being used at a lot of places in the generated .cache.html files. I googled, however could not find any hints to its meaning ... I am not a master of Javascript, so I may be missing something basic. Any help will be appreciated. Regards Ajay Garg --~--~-~--~~~---~--~~ 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: Stack overflow at line: 0
Barry wrote: Hi ... I'm getting a message box from Internet Explorer after executing the handler for an RPC call. The message box says Stack overflow at line: 0. The data being returned is a tree. If the tree isn't returned, I don't get the message box. There are several threads on this issue going back to 2006 and as late as December 2008. Apparently, this is a bug in the IE stack overflow detection. I'm running IE 7, and the problem occurs in hosted mode. Is there any resolution to this problem?? It's pretty serious ... I mean to send a lot of these trees around. Is there any workaround?? Until I recently switched to linux, I got this all the time once my project got to a certain sizebut only in hosted mode and it never appeared to have any side-effects anything apart from producing the pop-up. I've seen no workaround. Previous searches through the threads left me wondering whether this affects everyone on windows with large projects or whether there's some other environmental trigger. Roll on GWT2.0 and OOPHM. Paul --~--~-~--~~~---~--~~ 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: Javascript in HTML blocks
Hi, thanks a lot for these inputs. I will try the defer attribute. regards, S. On 5 fév, 05:31, Litty Preeth preeth.h...@gmail.com wrote: And also checkout that the /SCRIPT tag is broken into two: sScript = sScript + /SCRIPT + ; If you dont do that then also it wont work. On Thu, Feb 5, 2009 at 9:59 AM, Litty Preeth preeth.h...@gmail.com wrote: RootPanel.get().add(this); HTML html = new HTML(); this.add(html); String sHTML=input type=button onclick= + go2() + value='Click Me'BR; String sScript=SCRIPT DEFER; sScript = sScript + function go2(){ alert('Hello from inserted script.') }; sScript = sScript + /SCRIPT + ; html.setHTML(sHTML+sScript); This code works is IE also. As per msdnhttp://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspxhttp://msdn.microsoft.com/en-us/library/ms533897%28VS.85%29.aspx *When using innerHTML** **to insert script, you must include the DEFER attribute in the script element.* - Litty On Wed, Feb 4, 2009 at 10:33 PM, Adam T adam.t...@gmail.com wrote: For loading from a Url try the following (being aware of the security issues): /** * Adds the necessary DOM script element. * * @param uniqueId A unique id for the DOM element. * @param url Location of script. */ public native void addScript(String uniqueId, String url) /*-{ var elem = document.createElement(script); elem.setAttribute(language, JavaScript); elem.setAttribute(src, url); elem.setAttribute(id, uniqueId); document.getElementsByTagName(body)[0].appendChild(elem); }-*/; if you have direct code, perhaps just add the code as a child to the elem created, i.e. elem.text = alert('Hello'); and ignore the setAttribute(src, url) line?? //Adam On 4 Feb, 11:11, sgaide sga...@gmail.com wrote: Hi, I'm looking for a clear answer about the possibility to inject javascript into the DOM using HTML widget. I have found two threads about this, with no definitive answers: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/ thread/49cbe6bda567c1a9/a60c36f305f21337?lnk=gstq=javascript +HTML#a60c36f305f21337 and http://groups.google.com/group/Google-Web-Toolkit/browse_thread/ thread/6fb61e587d7eab8d/44c22a52f86feb36?lnk=gstq=javascript +HTML#44c22a52f86feb36 My application needs to inject some javascript code at runtime (the code is provided at runtime and can not be inserted in the html page or loaded using a 'dynamic' script file). The only way I found to do that is to create an HTML widget. The results are highly dependant on the browser : - with Firefox all works pretty well - with Safari and IE7 it doesn't work at all (javascript code is not executed). Using Safari development inspector I can see the javascript code in the DOM, but it's not interpreted by the browser. So is it really possible to inject javascript using an HTML widget ? if yes, how ? if no, is there any other way to do it ? Thanks a lot, regards, Sebastien. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
ScrollPanel maxWidth or maxHeight?
Hi folks, I'm trying to impelement a scrollpanel that becomes bigger (height) to the certain size (maxHeight) when populating it with data. After that vertical scrollbar should appear and the panel should stop growing. Any ideas on how to implement this would be appreciated. --~--~-~--~~~---~--~~ 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: Bad link for GWT Documentation
Hi Danny, I was so sure the problem was general !! Then I launched Firefox and everything was ok. So after investigation it seems the problem ONLY occurs when navigating with SAFARI !! (yep, I use Safari on mac OSX) On 4 fév, 16:31, Danny Schimke schimk...@googlemail.com wrote: I called the GWT docs and everything worked fine... 2009/2/4 Ricky eric.ca...@gmail.com Did you notice that the link to GWT docs is broken for weeks ! It does just redirect to the documentation of... Google Code documentation reader --~--~-~--~~~---~--~~ 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: Error HTTP 503 in Tomcat
It is the gwt.xml module inherits name='com.google.gwt.user.User'/ inherits name='com.google.gwt.xml.XML'/ inherits name='com.google.gwt.i18n.I18N'/ inherits name='org.hanson.gwt.widgets.WidgetLibrary'/ inherits name='com.allen_sauer.gwt.dnd.gwt-dnd'/ entry-point class='proyect.client.Main'/ servlet path=/FrontEndService class=proyect.server.FrontEndServiceImpl/ /module In apache tomcat i use java 1.5 and i compile with java 1.6, because apache tomcat not running with java 1.6, and i don't understand it. Thank you On 5 feb, 09:23, Lothar Kimmeringer j...@kimmeringer.de wrote: jamer schrieb: It is the web.xml file web-app Does it start that way? If yes, the xml- and doctype-declaration misses and you should add ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; servlet servlet-nameFrontEndService/servlet-name servlet-classproyect.server.FrontEndServiceImpl/servlet-class /servlet servlet-mapping servlet-nameFrontEndService/servlet-name url-pattern/FrontEndService/url-pattern /servlet-mapping There also misses the welcome-file-list, otherwise the server looks for (most likely) index.html. You should add welcome-file-list welcome-fileFrontEndService.html/welcome-file /welcome-file-list In addition to that you should have a look into the logfiles of the server. A 500-error means that something bad happened on the server side. Maybe the message in the browser is not the full truth and there is some problem reading resources of the web-application the server is only writing into the log and not telling the client. Regards, Lothar --~--~-~--~~~---~--~~ 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: Best image preloading practice?
Thanks for your help. I know this isnt an issue many would come accross, allthough I thought there might be general methods for sensible progressive loading of large content. I should have been a bit more specific with the way the app works, however, as it really does completely rule-out using image bundles for these images. This app is effectively like a game-engine, taking script-files, html and images from directorys on the sever. I'm not constructing the game myself, but rather the method used to create it. The upside of this is its very reusable, the downside is that all images have to be changable on the fly by other people in the team with no-codeing knowledge. Cutting and pasteing images together and clipping them on the client isnt really workable for this. Heck, I really dont have much to do with the game story/puzzle side.I dont speak dutch! :P I guess in some case you could almost picture the game as a gallery application, with the images in a sequence and the goal is for the user to look/comment at one picture while the others are loading. Its not quite the case that the game is so dividable into levels. While it does have chapters which require specific images, theres other images that load at different times, and to some extent the game can be non-liner. Its perfectly possible to make a traditional text-adventure game in this engine, for instance. I have created, however, a master list of images and the most likely order they are needed in. I would have thought the best approach might be to download the images as required for each level as the player advances through the game, and I would think displaying a Loading area... type message after they have completed a level is a traditional approach for games, especially giving them something to read whilst they are waiting. hmz.. Whats wrong with just loading it in the background as they are playing? By the time they done the first few puzzles, really thats enough time for the whole game to have downloaded. Surely todays machines are easily powerfull enough to handel downloading in the background while other stuff is going on? My goal is really to have waiting down to nearly zero, aside from a few seconds at the start. Is it a ram issue? A cpu one? I think in total we are only talking about 20MB of images here, 30MB at most. I'm thinking there should be a way to load continiously in the background, but not to burden the browser with too many call's at once. Cheers, Darkflame On Feb 4, 7:51 pm, gregor greg.power...@googlemail.com wrote: I'm not sure this a best practice issue as such - I think you may have more of an edge case here. I've tried your game (although I can't understand what to do after first screen), but what happens is that the browser is slogging away downloading data (presumably your images) which gives gutter messages and hour glasses etc. This is very distracting, but if you had to wait for the whole lot to download before the game started you'd probably get bored and go somewhere else. I would have thought the best approach might be to download the images as required for each level as the player advances through the game, and I would think displaying a Loading area... type message after they have completed a level is a traditional approach for games, especially giving them something to read whilst they are waiting. This approach is not so well served by GWT because AFAIK you can only have one ImageBundle per module and in any case it is downloaded on initial page load. You may find this thread interesting: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... In it Bruce Johnson comments: 4) History is the answer to apps that are too big. If you combine the points from #2 and #3 above, hopefully it makes sense that whenever you fear your app is becoming too big for a single page, all you need to do is split it into multiple pages such that each page has a unique module with a unique entry point. History smooths all the page junction points, and the compiler is smart enough to eliminate code you don't use from each page's entry point(s). Which would appear to answer the one ImageBundle per module issue and provide convenient inter-level load points. However I would also read what Reinier has to say about it as he also knows what he's talking about. It would certainly complicate your program. Failing that, you could consider handling image strips yourself. You assemble a single composite image manually of all images required for a single level in some convenient extraction grid. Then you use an Image object for this composite image, but before you give it the URL, you attach a LoadListener to it - this is so can tell when its finished loading in your code and control the loading message and the UI during level load procedure and kick off extracting the individual image parts etc. It's a bit tricky to extract bits of one image to create
Re: Call event after an other
Hi ! You can control event propagation with low-level functions (onBrowserEvent, Event) ; in your case, use the Event.cancelBubble function : http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble(boolean) 2009/2/5 Danny Schimke schimk...@googlemail.com Hi! If I have following problem: I enter some text in a textbox. Now I click on a button to save data to a database. With leaving the edit ists onChange- event is called, but the onClick- event of the button is called too at same the time. Saving is faster than onChange. I tried to handle the onClick after other events have done their work by using a DeferedCommand. But is doesn't work. Saving is allways faster than the onChange. Is there a way to control the handling-order of events? Thank you! -Danny --~--~-~--~~~---~--~~ 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 trace a path with google statics maps?
thanks but, can i use a GWT library in a java framework? the question is.I'm doing a java framework for mobile. this framework is part of a big project ... i would need some GWT library for hosted mode. what can i do? thanks --~--~-~--~~~---~--~~ 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: Error HTTP 503 in Tomcat
jamer schrieb: It is the gwt.xml What is in the gwt.xml? A correct quoting might avoid this question in the future by the way. In apache tomcat i use java 1.5 and i compile with java 1.6, because apache tomcat not running with java 1.6, and i don't understand it. Install a JDK 1.5 and compile with that. Java 1.6 has a new Class-Version and JREs of version 1.5 will fail to load classes compiled with Java 1.6. This should also be mentioned in the log-files I asked you to have a look into. Regards, Lothar --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Call event after an other
Hi! If I have following problem: I enter some text in a textbox. Now I click on a button to save data to a database. With leaving the edit ists onChange- event is called, but the onClick- event of the button is called too at same the time. Saving is faster than onChange. I tried to handle the onClick after other events have done their work by using a DeferedCommand. But is doesn't work. Saving is allways faster than the onChange. Is there a way to control the handling-order of events? Thank you! -Danny --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Script error in IE 7 in web mode
I have a GWT application that runs OK in hosted mode. When I compile it, it gives a script error on Internet Explorer 7. The compile version runs correctly in Firfox, Chrome and Safari. I've turned on script debugging in IE7 and it gives me the following message (translated from Dutch) -- Line : 2 Character : 23530 Error : Exception activated but not handled Code: 0 - Can anyone point me to some documentation how I can further investigate what's wrong. The application is quite big, so it's not so easy to isolate the piece of code where it goes wrong. Thanks, Danny --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
gwt site interface
Hello, Can someone help me to implement a very same panel like gwt group use? I mean a two-level-panel , with the options in the one side and by clicking something in the submenu to reveal you the appropriate informations in the other panel. But i would like to keep the format of gwt site. Like when u press Discussions for example or article , its very clear what u chose because of the white line. same follows by pressing articles or home. Ty a lot. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
View remaining content of a full ocuupied window after resizing
I have created a webpage which fits itself to the size of the browser window at start. Whenevr it resizes, I want to get a scrollbar which will help me navigate the entire page. I tried using CSS overflow property but that doesnt work as in i am not able to view all the contents. The scrollbar does appear but then doesnt help show all the contetns inside the page. Another undesired effect I get is that the inner contents overlap each other after resizing to a smaller size. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Get remaining height of a panel or window
Imagine I create a containerPanel which contains 2 different panels- consider A and B. One of these contained panels, say A, changes its dimensions at runtime so I have to reset the other panel B's size accordingly. Is there any way to get the current height of that panel A. What is the getOffsetHeight function supposed to return since it always returns me a zero value? --~--~-~--~~~---~--~~ 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: Best image preloading practice?
I'm not sure I can be of much more help on this myself, since I have never written anything like this, and I have not come across any specific posts about it I can recall - maybe some members have, so you can hope A few ideas/comments in-line: On Feb 5, 11:42 am, darkflame darkfl...@gmail.com wrote: Thanks for your help. I know this isnt an issue many would come accross, allthough I thought there might be general methods for sensible progressive loading of large content. This question does come up quite a lot and has been answered including in the link I gave you (where it comes from the horses mouth). The fundamental issue is that the GWT compiler performs serious optimization at compile time to reduce javascript file size. To do that it produces a single js file at compile time and does not support the idea of loading the application in chunks unless you do the multiple module with separate entry point thing. You can read the thread and others for technical details. I should have been a bit more specific with the way the app works, however, as it really does completely rule-out using image bundles for these images. This app is effectively like a game-engine, taking script-files, html and images from directorys on the sever. I'm not constructing the game myself, but rather the method used to create it. The upside of this is its very reusable, the downside is that all images have to be changable on the fly by other people in the team with no-codeing knowledge. Cutting and pasteing images together and clipping them on the client isnt really workable for this. Heck, I really dont have much to do with the game story/puzzle side.I dont speak dutch! :P I guess in some case you could almost picture the game as a gallery application, with the images in a sequence and the goal is for the user to look/comment at one picture while the others are loading. Its not quite the case that the game is so dividable into levels. While it does have chapters which require specific images, theres other images that load at different times, and to some extent the game can be non-liner. Its perfectly possible to make a traditional text-adventure game in this engine, for instance. I have created, however, a master list of images and the most likely order they are needed in. Another classic approach is the maze design (I think this is how trad text adventures where generally done). You have rooms with doors (or walls) connecting to other rooms. You have the maze defined in a data structure on the server, and when player gets to a room (i.e. a location), you download each of the rooms they can move to next which are specified as properties of the doors. Each room has its associated script file and images etc. I think this is fairly common and you will probably find ready made code examples around the web. The Gang of Four use it as example in introduction to creational patterns chapter in the famous book. The big issue is how many separate images are required for each location. If its basically only one, its easy. You fetch the location scripts and data for each adjoining room over GWT RPC (very quick) which includes image ID's. Then you fetch the room image for the room they go to (again very quick if images are 100-200Kb etc). If several images, you have a multiple HTTP call problem which you really want to avoid. That's the idea behind the composite image strip. Much faster. It's what good image galleries do with thumbs for example. I would have thought the best approach might be to download the images as required for each level as the player advances through the game, and I would think displaying a Loading area... type message after they have completed a level is a traditional approach for games, especially giving them something to read whilst they are waiting. hmz.. Whats wrong with just loading it in the background as they are playing? By the time they done the first few puzzles, really thats enough time for the whole game to have downloaded. Surely todays machines are easily powerfull enough to handel downloading in the background while other stuff is going on? My goal is really to have waiting down to nearly zero, aside from a few seconds at the start. As I mentioned having the browser download the images via simple URL to image location is distracting for the player as the browser reports progress all the time. If you use your own file download servlet called repeatedly you avoid that problem, it does happen invisibly in background. Use standard HttpServlet and feed its URL + image ID param into Image object constructors. Lots of examples for this in group and around net. Is it a ram issue? A cpu one? I think in total we are only talking about 20MB of images here, 30MB at most. You are thinking of loading 20MB of images into the DHTML DOM of you application. The DOM is maintained by the browser, and it is not designed to deal with 20MB documents (big e.g.
Re: Get remaining height of a panel or window
It sounds as though you are calling getOffsetHeight before the display has been fully rendered. A solution is to put your sizing algorithms inside a DeferredCommand. That way panel A should have been rendered already, and now it will have its height property set. On Feb 5, 1:15 pm, aragorn sagar5...@gmail.com wrote: Imagine I create a containerPanel which contains 2 different panels- consider A and B. One of these contained panels, say A, changes its dimensions at runtime so I have to reset the other panel B's size accordingly. Is there any way to get the current height of that panel A. What is the getOffsetHeight function supposed to return since it always returns me a zero value? --~--~-~--~~~---~--~~ 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: View remaining content of a full ocuupied window after resizing
Hi Aragorn, Enabling scrolling in Window class should give you main window scroll bars. Resizing the browser window can be difficult to get right, it depends on your application. If all your widgets are sized relatively in percentage terms then sometimes it works out OK automatically. If not you can attach a WindowResizeListener to your EntryPoint class and kick off resizing algorithms from the onWIndowResize(..) method. regards gregor On Feb 5, 1:09 pm, aragorn sagar5...@gmail.com wrote: I have created a webpage which fits itself to the size of the browser window at start. Whenevr it resizes, I want to get a scrollbar which will help me navigate the entire page. I tried using CSS overflow property but that doesnt work as in i am not able to view all the contents. The scrollbar does appear but then doesnt help show all the contetns inside the page. Another undesired effect I get is that the inner contents overlap each other after resizing to a smaller size. --~--~-~--~~~---~--~~ 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: A possible critical bug for gwt-fabridge.
You missed my point there. I guess I should have said I don't know OR care what gwt-fabridge is, but if you want help with it, you might as on a forum that is relevant to it? On Feb 4, 1:37 pm, Jihong jihong@satmetrix.com wrote: gwt-fabridge is a utility for gwt to access adobe swf file. See the following pagehttp://code.google.com/p/gwt-fabridge/ On Feb 4, 5:59 am, Charlie Collins charlie.coll...@gmail.com wrote: I don't know whatgwt-fabridgeis, but maybe that project has it's own support list you can use for issues such as this? Not sure you will get much response here. On Feb 3, 4:00 pm, Jihong Liu jihong@satmetrix.com wrote: Hi. I have a problem forgwt-fabridge. I think it may be a critical issue forgwt-fabridge. If a swf widget is added into a panel, and then add the panel into a container. And then remove the panel from the container, and then add the panel back into the container. Then the Null pointer error will occur at onInitialization()caused by the swf widget. I did a test using the FABridgeDemo. In the FABridgeDemo, I added a button for removing the swf widget. When start the program, first click the Add new SWF, and everything is ok. Then click the Remove SWF, then the swf is removed. Then click the Add new SWF again, then an error will happen. I have tried many ways, the only way to make it work is to create the swf widge again and using a different name if the widget has been removed. For example: java.util.Date date = new java.util.Date(); swfWidget = new SWFABridgeWidget(app.swf,400,400,example+date.getTime()); But it is not good at all. And the behavior is not the same as other regular gwt widgets. For other widgets, after they are put in a panel. Then you can add/drop this panel into/from a container many times without re-create the inside widgets. I am really frustrated about this problem. Based on user's selection we will add different panels into a container for display. It is really painful if we have to create the swf widgets again if the panel has been dropped from the container once. I don't know whether the following code in pl.rmalinowski.gwt2swf.client.ui.SWFWidge causes problem or not. protected void onUnload() { // GWT.log(onUnload, null); getElement().removeChild(DOM.getFirstChild(getElement())); isSWFInjected = false; super.onUnload(); } The statement: getElement().removeChild(DOM.getFirstChild(getElement())) removes the child from the widget. Thus after a swfwidget is removed from a panel, and then add the swf back, no child there. Following is the code in com.google.gwt.user.client.ui.ComplexPanel @Override public boolean remove(Widget w) { // Validate. if (w.getParent() != this) { return false; } // Orphan. orphan(w); // Physical detach. Element elem = w.getElement(); DOM.removeChild(DOM.getParent(elem), elem); // Logical detach. getChildren().remove(w); return true; } It sounds to me that the different between two programs is that in ComplexPanel, it removes the widget's element only, but in SWFWidge, it removes the child of the widget's element. Thank you very much! Jihong Liu Following is the source code which causes problem package com.satmetrix.swfTest.client; import org.argunet.gwt.fabridge.client.SWFABridgeWidget; import org.argunet.gwt.fabridge.client.bridge.BridgeObject; import org.argunet.gwt.fabridge.client.bridge.BridgeParameter; import org.argunet.gwt.fabridge.client.bridge.BridgeParameterObject; import org.argunet.gwt.fabridge.client.events.IInitializationListener; import org.argunet.gwt.fabridge.client.events.ISWFListener; import org.argunet.gwt.fabridge.client.utils.JSNIUtils; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.Widget; public class FABridgeDemo implements EntryPoint, IInitializationListener { private final Button addNewSwf = new Button(Add new SWF); private final Button removeSwf = new Button(Remove SWF); private final Button setCheckBox = new Button(Set Checkbox property); private final Label sliderLabel = new Label(Slider Label); private SWFABridgeWidget swfWidget=null; private final Button createDataGrid = new Button(Create Data Grid); /** * This is the entry point method. */ public void onModuleLoad() {
FlowPanel
I have FlowPanel with some widgets, but I need some different behaviour when adding new one. In standart mode it adds to the end and if widget do not fits to the window it adds to the next row. and I need that it added new widget on top of the current row. --~--~-~--~~~---~--~~ 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: ScrollPanel maxWidth or maxHeight?
Hi Alex, I think you have to explicitly specify the height of a ScollPanel in pixels to get the scroll bars to kick in, and that will set the height of the panel from the word go. If what you mean is that you want a panel to start at a minimum size, then grow as things are added to it, but then to stop growing and go into scroll mode at a certain point, I do not think that is realistically possible since there is no event you can listen for that would tell you when the panel had grown to a given height. You can listen for the browser window changing, but not for an individual panel. I suppose one approach might be to set up a timer to check the current height at intervals and take appropriate action when it hit the limit, but this sounds very inefficient. regards gregor On Feb 5, 9:29 am, alex.d alex.dukhov...@googlemail.com wrote: Hi folks, I'm trying to impelement a scrollpanel that becomes bigger (height) to the certain size (maxHeight) when populating it with data. After that vertical scrollbar should appear and the panel should stop growing. Any ideas on how to implement this would be appreciated. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
to reload tabpanel after editing or deleting datas of another tabpanel
I've two menus in tab panel. (i.e item list and product list) When I edit or delete datas of either item list or product list , the other tabpanel need to be reloaded after clicking it. How can I do that? --~--~-~--~~~---~--~~ 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 add items in tree from database after immediately inserting new items
I'm using tree to display items from database. My problem is that when I insert new items in database, the newly inserted item is to display immediately in the tree . How can I do that? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
A TabPanel containing a VerticalPanel that contains a HorizontalPanel that contains another TabPanel causes an error
A TabPanel containing a VerticalPanel that contains a HorizontalPanel that contains another TabPanel causes an error. The following code demnostrates the error. It will compile fine without errors or warnings then when launched in the Development Shell will error with Unable to load module entry point in XXX. import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TabPanel; import com.google.gwt.user.client.ui.VerticalPanel; public class demoError implements EntryPoint { public void onModuleLoad() { final RootPanel rootPanel = RootPanel.get(); final TabPanel tabPanel = new TabPanel(); rootPanel.add(tabPanel, 0, 0); tabPanel.setSize(100%, 100%); final VerticalPanel vPanel = new VerticalPanel(); tabPanel.add(vPanel, 1Tab1); vPanel.setSize(500, 500); final HorizontalPanel hPanel1 = new HorizontalPanel(); vPanel.add(hPanel1); hPanel1.setSize(500, 250); final HorizontalPanel hPanel2 = new HorizontalPanel(); vPanel.add(hPanel2); hPanel1.setSize(500, 250); final TabPanel infoPanel = new TabPanel(); hPanel2.add(infoPanel); infoPanel.selectTab(0); infoPanel.setSize(500, 500); final HorizontalPanel horizontalPanel_3 = new HorizontalPanel(); infoPanel.add(horizontalPanel_3, 2Tab1); final HorizontalPanel horizontalPanel_4 = new HorizontalPanel(); infoPanel.add(horizontalPanel_4, 2Tab2); final HorizontalPanel horizontalPanel_5 = new HorizontalPanel(); infoPanel.add(horizontalPanel_5, 2Tab3); /**/ final HorizontalPanel horizontalPanel_1 = new HorizontalPanel(); tabPanel.add(horizontalPanel_1, 1Tab2); final HorizontalPanel horizontalPanel_2 = new HorizontalPanel(); tabPanel.add(horizontalPanel_2, 1Tab3); tabPanel.selectTab(0); } } I am filling an issue on this, but try as I might I can't find a workaround besides commenting out the horizontal panel that contains the second tab panel. I tested and a tab panel can contain another tab panel so I think it must have something to do with the nesting of the panels as above. Any ideas or suggestions for a work around? Mark --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
What about GWT in Groovy instead of Java?
Hello I wondered if the idea of writing GWT applications in Groovy language instead of Java would be a super stupid or not. But for me, as I am new to Java world, it seems to be great idea. Any opinions or directions? --~--~-~--~~~---~--~~ 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 GWT/Ajax Image viewer/editor
Can someone guide me as to how one would go about to build a very very simple multi-page image (TIFF) viewer/editor using GWT. The interface would be similar to Adobe Reader with page thumbnails on the left and the actual page image on the right. Additionally, the actions allowed on this multi-page TIFF image would be rotate, delete one or more of the embedded pages. What I have so far is that I think: 1) The GWT DockPanel can be used to display the Actions Menu bar on the top (NORTH), thumbnails Vertical panel on the left (WEST) and ScrollPanel with Image in the center (CENTER) 2) The rotation of images can be done using GWT-RPC and Java Advanced Imaging (JAI) API on the server side. Any help and suggestions would be very much appreciated. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
ie Design issue with GWT dialog box without title
I want to create a GET dialog box without title. In firefox it is working fine but in ie there is a design issue. At the top left and right side, the vertical images is getting extended like two horns. Pls help me in soling this issue? --~--~-~--~~~---~--~~ 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: IE 7.0 Issue with ScrollPanel
Hi All, I finally found a solution to this and it appears to work everywhere. The problem was definitely assocated with the ScrollPanel. Instead of directly add the scroll panel to my dock panel, I made a composite widget that contained a tree on a scroll panel on a vertical panel. I call initWidget only on the vertical panel. When I do the resizing, I adjust the size of the scroll panel. This works on all my target browsers. Thanks, Arend On Thu, Feb 5, 2009 at 1:52 AM, Arend van der Veen arend.vanderv...@gmail.com wrote: Hi All, I have a small application that works great in FireFox and Safari but every time I try to load it into IE 7.0 it completely fails. I get an unspecified error. The following is JavaScript code contains the error: function $onWindowResized(this$static, width, height){ var shortcutHeight; shortcutHeight = height - (this$static.scrollPanel.element.getBoundingClientRect().top + ($clinit_51() , documentRoot).scrollTop) - 8; if (shortcutHeight 1) { shortcutHeight = 1; } this$static.scrollPanel.element.style['height'] = shortcutHeight + 'px'; $adjustSize(this$static.objectDetail, width, height); } It fails when shortcutHeight is set. I can associate this with the following lines of GWT java code: public void onWindowResized(int width, int height) { int shortcutHeight = height - scrollPanel.getAbsoluteTop() - 8; if (shortcutHeight 1) { shortcutHeight = 1; } scrollPanel.setHeight(shortcutHeight + px); objectDetail.adjustSize(width, height); } The line int shortcutHeight = height - scrollPanel.getAbsoluteTop() - 8; appears to be the problem. The variable scrollPanel is of type ScrollPanel. It contains a Tree. If I remove the scroll panel and just display and resize the tree it works but I now longer have scrolling and the tree falls off the screen. I read somewhere that you should be careful when you attempt to resize widgets and that sometimes it works and other times it does not depending on how the widget is rendered. Is this the source of the problem? My real goal is to layout an application like the a mail application (from the GWT Tutorial) with the left hand side containing a scrolling tree control. To support this I create a ScrollPanel and add my tree. I then set the height when the window is resized. This creates the desired effect on all platforms except IE. Any suggestions on how I can support this? Thanks, Arend --~--~-~--~~~---~--~~ 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: ScrollPanel maxWidth or maxHeight?
On 5 Feb., 16:10, gregor greg.power...@googlemail.com wrote: Hi Alex, I think you have to explicitly specify the height of a ScollPanel in pixels to get the scroll bars to kick in, and that will set the height of the panel from the word go. If what you mean is that you want a panel to start at a minimum size, then grow as things are added to it, but then to stop growing and go into scroll mode at a certain point, exactly what i meant. I do not think that is realistically possible since there is no event you can listen for that would tell you when the panel had grown to a given height. You can listen for the browser window changing, but not for an individual panel. I suppose one approach might be to set up a timer to check the current height at intervals and take appropriate action when it hit the limit, but this sounds very inefficient. Indeed it does. I kind of hoped somebody will have a genious idea about it ;-) Thank you for your input anyway. regards gregor On Feb 5, 9:29 am, alex.d alex.dukhov...@googlemail.com wrote: Hi folks, I'm trying to impelement a scrollpanel that becomes bigger (height) to the certain size (maxHeight) when populating it with data. After that vertical scrollbar should appear and the panel should stop growing. Any ideas on how to implement this would be appreciated. --~--~-~--~~~---~--~~ 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 members of the outer class
hi! maybe somebody could help me with this. i'm trying to set the MediaStation static variable result in an inner class, unfortunately the the method getXMLContent(...) still returns the initially set string nothing when calling it with: --- Window.alert(Content: + MediaStation.getXMLContent(XML_FILEPATH)); --- I also checked, that the inner method onResponseReceived is called and response.getText(); also returns a result (see the commended alert window statement). source follows: --- ... public class MediaStation{ private static String result = 0; ... public static String getXMLContent(String path){ RequestBuilder requestBuilder = new RequestBuilder (RequestBuilder.GET, path); MediaStation.result = nothing; try { requestBuilder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { MediaStation.requestFailed(exception); } public void onResponseReceived(Request request, Response response) { MediaStation.result = response.getText(); //Window.alert(XML file successfully read: + MediaStation.result); } }); } catch (RequestException ex) { MediaStation.requestFailed(ex); } return MediaStation.result; } ... } --- thanks for your help! bye! --~--~-~--~~~---~--~~ 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: Script error in IE 7 in web mode
Hi Danny, I had a similar problem when I was parsing an XML document. In my case, I was a little careless about trapping errors and casting classes. As it turned out Safari and Firefox ignored the errors while IE generated an error. I was able to identify the offending lines of code and rewrote them and made sure that I caught all the errors. Hope this helps, Arend On Thu, Feb 5, 2009 at 4:57 AM, Danny Goovaerts danny.goovae...@gmail.comwrote: I have a GWT application that runs OK in hosted mode. When I compile it, it gives a script error on Internet Explorer 7. The compile version runs correctly in Firfox, Chrome and Safari. I've turned on script debugging in IE7 and it gives me the following message (translated from Dutch) -- Line : 2 Character : 23530 Error : Exception activated but not handled Code: 0 - Can anyone point me to some documentation how I can further investigate what's wrong. The application is quite big, so it's not so easy to isolate the piece of code where it goes wrong. Thanks, Danny --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Calling Embedded Object's Methods from GWT
Hello, I'm working on a system which Integrates an embedded object in a GWT application. Part of the HTML page I have the following content: object style=position: absolute; left: 296px; top: 140px width=400 height=300 classid=clsid:02BF25D5-8C17-4B23-BC80- D3488ABDDC6B codebase=http://www.apple.com/qtactivex/qtplugin.cab; id=qtmovie_object style=behavior:url (#qt_event_source); param name=src value=http://www.ics.uci.edu/~ronen/rak_demo/ Welcome.mov param name=autoplay value=false param name=postdomevents value=true /object Then from GWT I call the different methods of this object for example: public static native int getSmilDuration() /*-{ var obj = $doc.getElementById('qtmovie_object'); if (obj!=null) return parseInt(obj.GetDuration()/obj.GetTimeScale()); else return 1; // added to avoid cases where null is access or division by zero. }-*/; This works well in IE. However, it will not work on Firefox or Safari. I get the following error on Firefox (there is another native function which calls obj.Stop(): Error: edu_uci_ics_client_StreamViewer_SMILStop___obj_0.Stop is not a function Source File: http://128.195.185.30:/edu.uci.ics.StreamViewer/537510C75B4C3BD5CE0E2BC9A9E96FA9.cache.html Line: 6954 And some cryptic error on Safari: undefined http://128.195.185.30:/edu.uci.ics.StreamViewer/2647FE5FEBC5958D96D8CF4F49CF5E2D.cache.html (line 7474 Any ideas??? Thanks for your time, Ronen. --~--~-~--~~~---~--~~ 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: getting members of the outer class
I try to suggest you something, but I hope not to give a trivial suggestion to you... Are you sure that you call MediaStation.getXMLContent() after the callback returns? For what I can read in your code, you send the callback in the try / catch block, then the next statement that is executed is return MediaStation.result. So you may not have finished the callback execution at that point. Anyway this is a way of using a getter function in conjunction with a request that I have never seen before. BR, Federica reinika ha scritto: hi! maybe somebody could help me with this. i'm trying to set the MediaStation static variable result in an inner class, unfortunately the the method getXMLContent(...) still returns the initially set string nothing when calling it with: --- Window.alert(Content: + MediaStation.getXMLContent(XML_FILEPATH)); --- I also checked, that the inner method onResponseReceived is called and response.getText(); also returns a result (see the commended alert window statement). source follows: --- ... public class MediaStation{ private static String result = 0; ... public static String getXMLContent(String path){ RequestBuilder requestBuilder = new RequestBuilder (RequestBuilder.GET, path); MediaStation.result = nothing; try { requestBuilder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { MediaStation.requestFailed(exception); } public void onResponseReceived(Request request, Response response) { MediaStation.result = response.getText(); //Window.alert(XML file successfully read: + MediaStation.result); } }); } catch (RequestException ex) { MediaStation.requestFailed(ex); } return MediaStation.result; } ... } --- thanks for your help! bye! --~--~-~--~~~---~--~~ 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 add items in tree from database after immediately inserting new items
If the data insertion call is happening from some UI action then in the onSuccess of insertion call you can tell the tree to update itself. If that is not possible then your tree can check for any updates proactively using a Timer. On Thu, Feb 5, 2009 at 3:47 PM, kanan keri.s...@gmail.com wrote: I'm using tree to display items from database. My problem is that when I insert new items in database, the newly inserted item is to display immediately in the tree . How can I do that? --~--~-~--~~~---~--~~ 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: unexpected behavior of FlowPanel's insert method
If I comment out the add() call, no content is added at all, so I never get a link that I can use to navigate to the next page. On Thu, Feb 5, 2009 at 12:18 AM, Damien Picard picard.dam...@gmail.comwrote: And if you only try to remove the currScreen ; is it removed ? 2009/2/5 Giles Baxter giles.bax...@gmail.com I realized I didn't need the two elements that came after the content. So I tried add instead of insert as you suggested, but I still get the same behavior. On Wed, Feb 4, 2009 at 11:49 PM, Giles Baxter giles.bax...@gmail.comwrote: Seems to be consistent. Here are the screenshots - don't know if that'll help. http://www.engr.uvic.ca/~gbaxter/tests.htmlhttp://www.engr.uvic.ca/%7Egbaxter/tests.html Only problem with the code you suggested is that I want to insert the content at a specific point in mainInnerPanel. If I use add, content will be at the end... On Wed, Feb 4, 2009 at 11:44 PM, Damien Picard picard.dam...@gmail.comwrote: Your mainInnerPanel is a FlowPanel, right ? try something like that : public void setCurrScreen(Widget content) { mainInnerPanel.remove(currScreen); mainInnerPanel.add(content); currScreen = content; } does the problem always appears ? 2009/2/5 Giles Baxter giles.bax...@gmail.com Sure. I used the Showcase sample as a template. They have a tree where the tree items map to different content widgets. I've created two Maps: one for history tokens and one for link texts. Here are the two listeners that use them to figure out what screen to display: final HistoryListener historyListener = new HistoryListener() { public void onHistoryChanged(String historyToken) { Composite screen = exchangerTokens.get(historyToken); app.setCurrScreen(screen); } }; History.addHistoryListener(historyListener); app.setListener(new ApplicationListener() { public void onHyperlinkClicked(Hyperlink link) { Composite content = exchangerScreenLinks.get(link.getText()); if (content != null !content.equals(app.getCurrScreen())) { History.newItem(getCurrScreenToken(content)); } } }); And here's the setCurrScreen method that calls insert(); public void setCurrScreen(Widget content) { int currScreenIndex = mainInnerPanel.getWidgetIndex(currScreen); if (currScreenIndex -1) { // the screen widget referenced by currScreen was found in the container mainInnerPanel.remove(currScreenIndex); mainInnerPanel.insert(content, currScreenIndex); } else { // the container had not yet been populated mainInnerPanel.insert(content, 1); } currScreen = content; } On Wed, Feb 4, 2009 at 11:15 PM, Damien Picard picard.dam...@gmail.com wrote: Hi, Could you copy past your code ? I think that it is probably an error in your algorithm. Regards, Damien 2009/2/5 Giles giles.bax...@gmail.com Hi, I'm trying to give the impression of navigating through a site by updating a component contained in a FlowPanel. Each time I call myPanel.insert(myComponent, index), the contents of myComponent are repeated. I have some screenshots from running the debugger in Eclipse if anyone thinks they can help. In this case, myComponent wraps another FlowPanel. After inserting into myPanel, the id of myComponent, the FlowPanel it wraps, and the WidgetCollection inside the FlowPanel are the same. But the id of the Widget array inside the WidgetCollection changes, and now contains the duplicated contents. I don't understand how the object being passed to insert() could be modified like this. Thanks Giles --~--~-~--~~~---~--~~ 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: getting members of the outer class
yes, that might be an issue. i know it goes back to the basics of programming, but maybe you can give me an outline how i can achieve to call a method for reading a xml file and returning its content (as you say you've never seen something like that before). thanks! On Feb 5, 5:00 pm, federica.faggi...@gmail.com federica.faggi...@gmail.com wrote: I try to suggest you something, but I hope not to give a trivial suggestion to you... Are you sure that you call MediaStation.getXMLContent() after the callback returns? For what I can read in your code, you send the callback in the try / catch block, then the next statement that is executed is return MediaStation.result. So you may not have finished the callback execution at that point. Anyway this is a way of using a getter function in conjunction with a request that I have never seen before. BR, Federica reinika ha scritto: hi! maybe somebody could help me with this. i'm trying to set the MediaStation static variable result in an inner class, unfortunately the the method getXMLContent(...) still returns the initially set string nothing when calling it with: --- Window.alert(Content: + MediaStation.getXMLContent(XML_FILEPATH)); --- I also checked, that the inner method onResponseReceived is called and response.getText(); also returns a result (see the commended alert window statement). source follows: --- ... public class MediaStation{ private static String result = 0; ... public static String getXMLContent(String path){ RequestBuilder requestBuilder = new RequestBuilder (RequestBuilder.GET, path); MediaStation.result = nothing; try { requestBuilder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { MediaStation.requestFailed(exception); } public void onResponseReceived(Request request, Response response) { MediaStation.result = response.getText(); //Window.alert(XML file successfully read: + MediaStation.result); } }); } catch (RequestException ex) { MediaStation.requestFailed(ex); } return MediaStation.result; } ... } --- thanks for your help! bye! --~--~-~--~~~---~--~~ 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: ScrollPanel maxWidth or maxHeight?
there is some max-height CSS property. But dont know if it works. On Thu, Feb 5, 2009 at 8:59 PM, alex.d alex.dukhov...@googlemail.comwrote: On 5 Feb., 16:10, gregor greg.power...@googlemail.com wrote: Hi Alex, I think you have to explicitly specify the height of a ScollPanel in pixels to get the scroll bars to kick in, and that will set the height of the panel from the word go. If what you mean is that you want a panel to start at a minimum size, then grow as things are added to it, but then to stop growing and go into scroll mode at a certain point, exactly what i meant. I do not think that is realistically possible since there is no event you can listen for that would tell you when the panel had grown to a given height. You can listen for the browser window changing, but not for an individual panel. I suppose one approach might be to set up a timer to check the current height at intervals and take appropriate action when it hit the limit, but this sounds very inefficient. Indeed it does. I kind of hoped somebody will have a genious idea about it ;-) Thank you for your input anyway. regards gregor On Feb 5, 9:29 am, alex.d alex.dukhov...@googlemail.com wrote: Hi folks, I'm trying to impelement a scrollpanel that becomes bigger (height) to the certain size (maxHeight) when populating it with data. After that vertical scrollbar should appear and the panel should stop growing. Any ideas on how to implement this would be appreciated. --~--~-~--~~~---~--~~ 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: ScrollPanel maxWidth or maxHeight?
Oh, in your use case, Alex, you do have an event - adding an item to the panel. Just check the height after new item added and set the height of the ScrollPanel in pixels if max value reached I would think answers. I have looked in vain for a general method to get ScrollPanels to resize and generally behave by themselves. I think the reason is that individual divs/table cells etc do not generate events when their size changes. ScrollPanel is basically a div with an overflow setting. I have supposed this is because there can be hundreds if not thousands of boxes on a page, so if they all emitted an event every time they changed their width/heights the browser's event queue would be brought to its knees. On Feb 5, 4:13 pm, Litty Preeth preeth.h...@gmail.com wrote: there is some max-height CSS property. But dont know if it works. On Thu, Feb 5, 2009 at 8:59 PM, alex.d alex.dukhov...@googlemail.comwrote: On 5 Feb., 16:10, gregor greg.power...@googlemail.com wrote: Hi Alex, I think you have to explicitly specify the height of a ScollPanel in pixels to get the scroll bars to kick in, and that will set the height of the panel from the word go. If what you mean is that you want a panel to start at a minimum size, then grow as things are added to it, but then to stop growing and go into scroll mode at a certain point, exactly what i meant. I do not think that is realistically possible since there is no event you can listen for that would tell you when the panel had grown to a given height. You can listen for the browser window changing, but not for an individual panel. I suppose one approach might be to set up a timer to check the current height at intervals and take appropriate action when it hit the limit, but this sounds very inefficient. Indeed it does. I kind of hoped somebody will have a genious idea about it ;-) Thank you for your input anyway. regards gregor On Feb 5, 9:29 am, alex.d alex.dukhov...@googlemail.com wrote: Hi folks, I'm trying to impelement a scrollpanel that becomes bigger (height) to the certain size (maxHeight) when populating it with data. After that vertical scrollbar should appear and the panel should stop growing. Any ideas on how to implement this would be appreciated. --~--~-~--~~~---~--~~ 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: getting members of the outer class
I'll try, hoping to be helpful! A lot of code decision depends on exactly what you want to do with this code. I do some assumption now: 1- you need to load at some kind of startup your variable 'result ' 2- you need to read the content of the 'result' variable later in the code. I would do something as follows for what concerns MediaStation class: public class MediaStation{ private static String result = nothing; public static String getXMLContent(String path){ return MediaStation.result; } public static void loadResultVariable() { RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET, path); try { requestBuilder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { MediaStation.requestFailed(exception); } public void onResponseReceived(Request request, Response response) { MediaStation.result = response.getText(); } }); } catch (RequestException ex) { MediaStation.requestFailed(ex); } } } (I have not tried to compile this code, please consider there may be errors) Then from outside this class I would call loadResultVariable() at the beginning, that is when your code is initializing. Then you can use easily getXMLContent, but after having ensured that the server request has already finished. Note that there are many other issues that can arise due to callbacks, issues that can be addressed in many ways, but I suppose you can get a lot of info about them. BR, Federica reinika ha scritto: yes, that might be an issue. i know it goes back to the basics of programming, but maybe you can give me an outline how i can achieve to call a method for reading a xml file and returning its content (as you say you've never seen something like that before). thanks! On Feb 5, 5:00 pm, federica.faggi...@gmail.com federica.faggi...@gmail.com wrote: I try to suggest you something, but I hope not to give a trivial suggestion to you... Are you sure that you call MediaStation.getXMLContent() after the callback returns? For what I can read in your code, you send the callback in the try / catch block, then the next statement that is executed is return MediaStation.result. So you may not have finished the callback execution at that point. Anyway this is a way of using a getter function in conjunction with a request that I have never seen before. BR, Federica reinika ha scritto: hi! maybe somebody could help me with this. i'm trying to set the MediaStation static variable result in an inner class, unfortunately the the method getXMLContent(...) still returns the initially set string nothing when calling it with: --- Window.alert(Content: + MediaStation.getXMLContent(XML_FILEPATH)); --- I also checked, that the inner method onResponseReceived is called and response.getText(); also returns a result (see the commended alert window statement). source follows: --- ... public class MediaStation{ private static String result = 0; ... public static String getXMLContent(String path){ RequestBuilder requestBuilder = new RequestBuilder (RequestBuilder.GET, path); MediaStation.result = nothing; try { requestBuilder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { MediaStation.requestFailed(exception); } public void onResponseReceived(Request request, Response response) { MediaStation.result = response.getText(); //Window.alert(XML file successfully read: + MediaStation.result); } }); } catch (RequestException ex) { MediaStation.requestFailed(ex); } return MediaStation.result; } ... } --- thanks for your help! bye! --~--~-~--~~~---~--~~ 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 access objects from another frame?
His, Read some posts in the group and still wondering if implementing such a scenario would be possible with GWT: A web page is served which contains two frames - one for presenting the stuff and the other one to constantly make requests to the server (a timer) and maintain latest of data (lots of objects, so only the new data is added / removed and not everything at once). Is there a way for one frame to get a reference to the other where the current data resides? The obvious benefit would be that when user clicks a link and goes to a different page the data is still in the other frame and there is no need to load everything over again. Has someone maybe already done that or experienced a similar challenge? That's my view on the problem. But maybe there can be another way to retain pieces of working logic and current data without frames when a user jumps to physically distinct html page. Many thanks, Denis --~--~-~--~~~---~--~~ 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: unexpected behavior of FlowPanel's insert method
My solution is to create a new content screen each time, by checking the class at runtime and calling a factory method. It's a workaround...but I would still like to know what was going on under there! Thanks for your help. On Thu, Feb 5, 2009 at 8:20 AM, Giles Baxter giles.bax...@gmail.com wrote: If I comment out the add() call, no content is added at all, so I never get a link that I can use to navigate to the next page. On Thu, Feb 5, 2009 at 12:18 AM, Damien Picard picard.dam...@gmail.comwrote: And if you only try to remove the currScreen ; is it removed ? 2009/2/5 Giles Baxter giles.bax...@gmail.com I realized I didn't need the two elements that came after the content. So I tried add instead of insert as you suggested, but I still get the same behavior. On Wed, Feb 4, 2009 at 11:49 PM, Giles Baxter giles.bax...@gmail.comwrote: Seems to be consistent. Here are the screenshots - don't know if that'll help. http://www.engr.uvic.ca/~gbaxter/tests.htmlhttp://www.engr.uvic.ca/%7Egbaxter/tests.html Only problem with the code you suggested is that I want to insert the content at a specific point in mainInnerPanel. If I use add, content will be at the end... On Wed, Feb 4, 2009 at 11:44 PM, Damien Picard picard.dam...@gmail.com wrote: Your mainInnerPanel is a FlowPanel, right ? try something like that : public void setCurrScreen(Widget content) { mainInnerPanel.remove(currScreen); mainInnerPanel.add(content); currScreen = content; } does the problem always appears ? 2009/2/5 Giles Baxter giles.bax...@gmail.com Sure. I used the Showcase sample as a template. They have a tree where the tree items map to different content widgets. I've created two Maps: one for history tokens and one for link texts. Here are the two listeners that use them to figure out what screen to display: final HistoryListener historyListener = new HistoryListener() { public void onHistoryChanged(String historyToken) { Composite screen = exchangerTokens.get(historyToken); app.setCurrScreen(screen); } }; History.addHistoryListener(historyListener); app.setListener(new ApplicationListener() { public void onHyperlinkClicked(Hyperlink link) { Composite content = exchangerScreenLinks.get(link.getText()); if (content != null !content.equals(app.getCurrScreen())) { History.newItem(getCurrScreenToken(content)); } } }); And here's the setCurrScreen method that calls insert(); public void setCurrScreen(Widget content) { int currScreenIndex = mainInnerPanel.getWidgetIndex(currScreen); if (currScreenIndex -1) { // the screen widget referenced by currScreen was found in the container mainInnerPanel.remove(currScreenIndex); mainInnerPanel.insert(content, currScreenIndex); } else { // the container had not yet been populated mainInnerPanel.insert(content, 1); } currScreen = content; } On Wed, Feb 4, 2009 at 11:15 PM, Damien Picard picard.dam...@gmail.com wrote: Hi, Could you copy past your code ? I think that it is probably an error in your algorithm. Regards, Damien 2009/2/5 Giles giles.bax...@gmail.com Hi, I'm trying to give the impression of navigating through a site by updating a component contained in a FlowPanel. Each time I call myPanel.insert(myComponent, index), the contents of myComponent are repeated. I have some screenshots from running the debugger in Eclipse if anyone thinks they can help. In this case, myComponent wraps another FlowPanel. After inserting into myPanel, the id of myComponent, the FlowPanel it wraps, and the WidgetCollection inside the FlowPanel are the same. But the id of the Widget array inside the WidgetCollection changes, and now contains the duplicated contents. I don't understand how the object being passed to insert() could be modified like this. Thanks Giles --~--~-~--~~~---~--~~ 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: Hosted Mode not refreshing
I figured this out and I'm sad to say it was user error *sigh*. My NetBeans classpath configuration for running the app in Hosted Mode included an *old* version of the app's source and build directories, so naturally, the hosted mode shell was interpreting the old code, not my updated code. Thanks for the answers anyway all! Gemma On Feb 4, 11:57 am, CJ cj.cha...@gmail.com wrote: what about when you run it using the shell script? are you running it using netbeans? Is it only on this app? of does it happen on all the apps? On Wed, Feb 4, 2009 at 11:54 AM, gemmasilvers gemmasilv...@googlemail.comwrote: I'm using NetBeans. I've cleaned and rebuilt the project many times, and still nothing :( Thanks anyway! On Feb 4, 11:28 am, Danny Schimke schimk...@googlemail.com wrote: If you are using Eclipse do a clean on your Project(s) und refresh them. Maybe it will help. -Danny 2009/2/4 gemmasilvers gemmasilv...@googlemail.com Yup, I cleared the IE cache and still no joy. Any other suggestions, please? Thanks! Gemma On Feb 3, 6:44 pm, Lupo tcantal...@gmail.com wrote: Hi - I am new to GWT and had a similar issue as I was going through one of the tutorials. For me, anyway, I was clearing the wrong browser cache. I had FF and IE on the machine and was clearing the FF cache but Hosted Mode uses IE. Once I cleared IE's cache, updated code! I hope this is helpful. http://groups.google.com/group/Google-Web-Toolkit/msg/700aeb86f40482de On Feb 3, 7:28 am, gemmasilvers gemmasilv...@googlemail.com wrote: Hello all, I've inherited a GWT app from a colleague and am currently attempting to develop it further - but unfortunately I'm getting stuck with Hosted Mode. No matter how many times I clear the browser cache, click refresh on the hosted mode browser, or shout, the parts I've updated don't update in Hosted Mode. I've also tried removing the tomcat directory, removing the gwt-tmp directory Has anyone got any other ideas before I go mad? Thanks! Gemma -- CJ Chathuranga Jayamaha (name long hence CJ) cj_cha...@hotmail.com cj.cha...@gmail.com cj_feanor (Skype)http://www.orbisproperty.comhttp://www.salsaclub-connection.comhttp://www.abingdonkindergarten.comhttp://www.pegasus101.co.ukhttp://www.silverhawksystems.com --~--~-~--~~~---~--~~ 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: getting members of the outer class
like you already said, it is indeed a problem that the callback request isn't finished in the time the value is returned. i'll figure this out now. thanks for your patience! On Feb 5, 5:38 pm, federica.faggi...@gmail.com federica.faggi...@gmail.com wrote: I'll try, hoping to be helpful! A lot of code decision depends on exactly what you want to do with this code. I do some assumption now: 1- you need to load at some kind of startup your variable 'result ' 2- you need to read the content of the 'result' variable later in the code. I would do something as follows for what concerns MediaStation class: public class MediaStation{ private static String result = nothing; public static String getXMLContent(String path){ return MediaStation.result; } public static void loadResultVariable() { RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET, path); try { requestBuilder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { MediaStation.requestFailed(exception); } public void onResponseReceived(Request request, Response response) { MediaStation.result = response.getText(); } }); } catch (RequestException ex) { MediaStation.requestFailed(ex); } }} (I have not tried to compile this code, please consider there may be errors) Then from outside this class I would call loadResultVariable() at the beginning, that is when your code is initializing. Then you can use easily getXMLContent, but after having ensured that the server request has already finished. Note that there are many other issues that can arise due to callbacks, issues that can be addressed in many ways, but I suppose you can get a lot of info about them. BR, Federica reinika ha scritto: yes, that might be an issue. i know it goes back to the basics of programming, but maybe you can give me an outline how i can achieve to call a method for reading a xml file and returning its content (as you say you've never seen something like that before). thanks! On Feb 5, 5:00 pm, federica.faggi...@gmail.com federica.faggi...@gmail.com wrote: I try to suggest you something, but I hope not to give a trivial suggestion to you... Are you sure that you call MediaStation.getXMLContent() after the callback returns? For what I can read in your code, you send the callback in the try / catch block, then the next statement that is executed is return MediaStation.result. So you may not have finished the callback execution at that point. Anyway this is a way of using a getter function in conjunction with a request that I have never seen before. BR, Federica reinika ha scritto: hi! maybe somebody could help me with this. i'm trying to set the MediaStation static variable result in an inner class, unfortunately the the method getXMLContent(...) still returns the initially set string nothing when calling it with: --- Window.alert(Content: + MediaStation.getXMLContent(XML_FILEPATH)); --- I also checked, that the inner method onResponseReceived is called and response.getText(); also returns a result (see the commended alert window statement). source follows: --- ... public class MediaStation{ private static String result = 0; ... public static String getXMLContent(String path){ RequestBuilder requestBuilder = new RequestBuilder (RequestBuilder.GET, path); MediaStation.result = nothing; try { requestBuilder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { MediaStation.requestFailed(exception); } public void onResponseReceived(Request request, Response response) { MediaStation.result = response.getText(); //Window.alert(XML file successfully read: + MediaStation.result); } }); } catch (RequestException ex) { MediaStation.requestFailed(ex); } return MediaStation.result; } ... } --- thanks for your help! bye! --~--~-~--~~~---~--~~ 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
Re: how to access objects from another frame?
If you can accept browser's plugins in your project, take a look at Google Gears. With this, you can take a better control of locally stored data and much more ... http://gears.google.com/ 2009/2/5 asdf_asdf denis.ergashb...@gmail.com His, Read some posts in the group and still wondering if implementing such a scenario would be possible with GWT: A web page is served which contains two frames - one for presenting the stuff and the other one to constantly make requests to the server (a timer) and maintain latest of data (lots of objects, so only the new data is added / removed and not everything at once). Is there a way for one frame to get a reference to the other where the current data resides? The obvious benefit would be that when user clicks a link and goes to a different page the data is still in the other frame and there is no need to load everything over again. Has someone maybe already done that or experienced a similar challenge? That's my view on the problem. But maybe there can be another way to retain pieces of working logic and current data without frames when a user jumps to physically distinct html page. Many thanks, Denis --~--~-~--~~~---~--~~ 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: Best image preloading practice?
I'm not sure I can be of much more help on this myself, since I have never written anything like this, and I have not come across any specific posts about it I can recall - maybe some members have, so you can hope... Thats ok, anythings welcome :) The fundamental issue is that the GWT compiler performs serious optimization at compile time to reduce javascript file size. To do that it produces a single js file at compile time and does not support the idea of loading the application in chunks unless you do the multiple module with separate entry point thing. You can read the thread and others for technical details. No,no thats ok, I'm not interested in loading the app in chunks, just the images. Everything else can stay. Another classic approach is the maze ... The big issue is how many separate images are required for each location. The maze design is good, and I could certainly extract the possible- routes from my script controll. Allthough its impossible to say how many images there could be really. If there was 3 or 4 possible routes from a point, each leading to a location (which might have a picture or might not), and a few items in each location (each item might have a picture, or even a few), it quickly adds up. The maze seems to be a good optimisation, nethertheless, but there would still need to be a loading-system within it. . If you use your own file download servlet called repeatedly you avoid that problem, it does happen invisibly in background. Use standard HttpServlet and feed its URL + image ID param into Image object constructors. Lots of examples for this in group and around net. Ah, this sounds quite usefull to hide the loading, allthough I'll have to read up. I assume this is how, say, GoogleMaps does it? You are thinking of loading 20MB of images into the DHTML DOM of you application Am I? Does the DOM keep them there even when not displayed? These images certainly wouldnt be displayed all at once. 1 or 2 at a time at most. I figured I was just giving them a chance to be put in the browsers cache :-/ Sure, some users might have a heavily restricted cache, or even off, but I think they are in the gross minority. (and if they have no image cache, then they probably are used to waiting for images loading anyway). But the vaste majority of players should happily be able to load 20-30MB onto their hard disk for the course of the game. They are deliberately designed to make downloading huge chunks of binary data difficult, especially transparently, and they are not expecting to have to display 20MB worth of images at once. Again, not at once. Surely a staggered download they wouldnt have a problem with? Emulating, say, what it would expect from a user browseing DeviantArt? If you leave it to the browser, it makes one Http call per image and you cannot guarantee the order they will be fetched. I Yes, I noticed this already. Its interesting, as I expected it to be in a first-come-first-served base's, but I guess theres some optimisation within a timeframe. I do wonder though what the limit of this is and if its the same per browser. (I mean, if I loaded no more then 1 image every 10 seconds, it would probably do it in the order I asked, but not if I asked for one to be prefetched every 10ms) This is more a curiousity though. . The point of the composite image strip is to fetch several images in one request since they come in a single binary file. Yes, I understand the point of them, and I think image bundles are a great idea. (In fact, online in general, theres probably a lot of wasted bandwidth used on little UI elements on webpages..like 5kb gifs etc) In this specific case though they arnt approperate. Not unless I got the server to dynamically splice the images together and the client to cut them up. But thats beyond the scope of the projects timeframe. On Feb 5, 3:27 pm, gregor greg.power...@googlemail.com wrote: I'm not sure I can be of much more help on this myself, since I have never written anything like this, and I have not come across any specific posts about it I can recall - maybe some members have, so you can hope A few ideas/comments in-line: On Feb 5, 11:42 am, darkflame darkfl...@gmail.com wrote: Thanks for your help. I know this isnt an issue many would come accross, allthough I thought there might be general methods for sensible progressive loading of large content. This question does come up quite a lot and has been answered including in the link I gave you (where it comes from the horses mouth). The fundamental issue is that the GWT compiler performs serious optimization at compile time to reduce javascript file size. To do that it produces a single js file at compile time and does not support the idea of loading the application in chunks unless you do the multiple module with separate entry point thing. You can read the thread and others for technical details. I should have been a bit more specific
Help with GWT
I am working in a port of a very large Java application to PHP. The required path was to modify the Java2Javascript compiler to produce PHP code instead of JavaScript. Right now I have found: JavaToJavaScriptCompiler: I understand that this is the main class. JavaToJavaScriptMap.java: My hope was to see the actual map of java keywords etc to the javascript equivalents. In other words I am confused. If you could help me to: 1. Find the relevant classes for building and stand alone java to javascript translator. 2. Is there a stand alone version that only takes a java project (or file) and just output the JavaScript file? 3. Can the GWT save the java AST to a file? Note: I understand this is not a PHP forum, so the PHP problem is mine. The questions refers to stage one: understanding and compiling a clean Java to Javascript translators. Really tank you in advance --~--~-~--~~~---~--~~ 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: Stack overflow at line: 0
Thanks, Paul ... ... some perspective is a help. Yes, I realize that OOPHM will at least allow me to switch to FireFox for hosted mode, and that's a good thing. But GWT2.0 isn't here yet, so for now, I think I'll have to flatten the tree for marshalling and then reinflate it in the browser ... not a very welcome diversion, especially for short term code. Thanks for the corroboration ... and if anyone else can add in, please do! On Feb 5, 1:00 am, Paul Robinson ukcue...@gmail.com wrote: Barry wrote: Hi ... I'm getting a message box from Internet Explorer after executing the handler for an RPC call. The message box says Stack overflow at line: 0. The data being returned is a tree. If the tree isn't returned, I don't get the message box. There are several threads on this issue going back to 2006 and as late as December 2008. Apparently, this is a bug in the IE stack overflow detection. I'm running IE 7, and the problem occurs in hosted mode. Is there any resolution to this problem?? It's pretty serious ... I mean to send a lot of these trees around. Is there any workaround?? Until I recently switched to linux, I got this all the time once my project got to a certain sizebut only in hosted mode and it never appeared to have any side-effects anything apart from producing the pop-up. I've seen no workaround. Previous searches through the threads left me wondering whether this affects everyone on windows with large projects or whether there's some other environmental trigger. Roll on GWT2.0 and OOPHM. Paul --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Deploying a GWT application
When I compile my GWT application I get 13 files, including the .html and .nocache.js files. Apparently these two files are not sufficient to run the application. (If I launch the .html file in isolation along with the .js file the application doesn't work.) Does that mean that when I'm ready to deploy I have to copy the entire generated directory to my server? Thanks. -- Russ Abbott --~--~-~--~~~---~--~~ 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: Script running slow error in IE
Make use of DeferredCommand when performing intense UI updates. The drop downs could be lazy loaded as when the user clicks on them the content gets loaded from the server. I hope that leads you into the right direction to fix your problem. I believe there is an incremental DeferredCommand which you could try when adding items to a drop down box. If the error occurs when you remove the form then you could try setting the visibility to hidden and try to use the deferred command to itterate through it to remove the widgets from memory afterwards. Regards, LT On Feb 4, 9:33 pm, rishi rishindra.vi...@gmail.com wrote: I have developed an application in GWT-Ext. I am facing a problem with one of the screens. Whenever this screen is removed from its parent panel, IE shows script running slow... warning. This screen is FormPanel and has a tabbed panel inside it. There are five tabs on this tabbed panel, and each tab has a form panel. Each form has many drop downs and tables. These drop downs and tables are populated using GWT-Async callbacks. I have tried to debug this problem alot, and have not been successful till now. Please let me know if someone can help me debugging this, This application needs to go in production very soon. If anybody has faced similar problem or can guide me how to debug this. I am using Eclipse/GWTShell to debug the problem. The application is huge so i can not paste the code here. I can share the code if need be. Thanks - Rishi --~--~-~--~~~---~--~~ 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 we load an html file and add it as a Widget?
Just use the RequestBuilder class and do a get request for your html file. Create the html panel and use DOM to set the inner html (DOM.setInnerHTML()) with the String returned from the request builder callback. You can then do myPanel.addAndReplaceElement(widget,id); I am doing this now in my current project. Make sure to check the response code is = 200 so you can handle any errors. You would want to check this in the onSuccess for the RequestBuilder because it treats 403 errors ,if i am not mistaken, as being successful. Hope that helps. LT On Feb 2, 2:04 am, Joshua Partogi joshua.j...@gmail.com wrote: Dear all, I know that there is anHTMLclass in GWT for buffering out a plainhtml. But I have a case where it would be too much having to write all thehtmlin my Java class. So I was wondering whether we can just load anHTMLfile and add that loadedHTMLfile as a widget. Is there any such class like that in GWT? Or does anyone has the trick for that? Thank you in advance. -- If you can't believe in God the chances are your God is too small. Read my blog:http://joshuajava.wordpress.com/ Follow me on twitter:http://twitter.com/jpartogi --~--~-~--~~~---~--~~ 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: Deploying a GWT application
Hi Russ - Yes, you need to copy the entire output directory. More information can be found in the tutorial, found here: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=GettingStartedWebMode -Todd On Feb 5, 2:14 pm, RussAbbott russ.abb...@gmail.com wrote: When I compile my GWT application I get 13 files, including the .html and .nocache.js files. Apparently these two files are not sufficient to run the application. (If I launch the .html file in isolation along with the .js file the application doesn't work.) Does that mean that when I'm ready to deploy I have to copy the entire generated directory to my server? Thanks. -- Russ Abbott --~--~-~--~~~---~--~~ 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: Deploying a GWT application
O.K. the compiler spits out pretty much everything that was in a public path, so expect to see those in the output (www) directory. in addition you'll likely see some of the following: [module_name].nocache.js - this is the bootstrap file that loads the actual GWT module. [hash].cache.html - These are the actual javascript payload files tailored for each individual browser/i18n combination. [hash].cache.png - These are generated imagebundle files [hash].gwt.rpc - these are rpc serialization policy files clear.cache.gif - blank gif used by GWT for some tasks history.html - used for history support hosted.html - used for hosted mode support (debugging against a live server) You'll want to deploy all of these. The hosted.html could be omitted, however that would prevent you from stepping through the code running on your live site, so just leave it. -jason On Feb 5, 2009, at 12:14 PM, RussAbbott wrote: When I compile my GWT application I get 13 files, including the .html and .nocache.js files. Apparently these two files are not sufficient to run the application. (If I launch the .html file in isolation along with the .js file the application doesn't work.) Does that mean that when I'm ready to deploy I have to copy the entire generated directory to my server? Thanks. -- Russ Abbott --~--~-~--~~~---~--~~ 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: Best image preloading practice?
Ah, this sounds quite usefull to hide the loading, allthough I'll have to read up. I assume this is how, say, GoogleMaps does it? I think it's quite common where you want to have control over how images are handled yourself - as I say there are plenty of examples around of how to do the serlvet. You are thinking of loading 20MB of images into the DHTML DOM of you application Am I? Does the DOM keep them there even when not displayed? These images certainly wouldnt be displayed all at once. 1 or 2 at a time at most. I'm not absolutely sure, but I think if you load an image it is basically attached to a document, whether the browser caches it or not, and whether it is currently visible of not. You don't control the browser cache, I mean I don't think you can tell it to conveniently download all your images and store them neatly on disk until you need to display them for example. It's also more than likely each browser does things differently. But the vaste majority of players should happily be able to load 20-30MB onto their hard disk for the course of the game. That's my point: I don't think it works like that, I can see why it would be nice for you if it did. The browser probably does store images locally in some circumstances, but I believe this would be for virtual backing for the document it's loaded/displaying if required for memory management purposes. I.e. you've got a document of 20MB loaded which it must manipulate. I may be wrong, you'd need to investigate to be sure. They are deliberately designed to make downloading huge chunks of binary data difficult, especially transparently, and they are not expecting to have to display 20MB worth of images at once. Again, not at once. Surely a staggered download they wouldnt have a problem with? Emulating, say, what it would expect from a user browseing DeviantArt? yeah, the staggered download is basically the idea of the maze - each time you move to next location you've only got one locations worth of images to fetch. Or if it worked fast enough you could fetch all the required images for the adjoining locations so they would be ready to go instantly. It depends entirely on no of image bytes per location. Point is doing it this way old images are thrown away and can be garbage collected as you go, so you are not accumulating images in memory. It's stable. (assuming I'm right about the how this works of course). If you leave it to the browser, it makes one Http call per image and you cannot guarantee the order they will be fetched. I Yes, I noticed this already. Its interesting, as I expected it to be in a first-come-first-served base's, but I guess theres some optimisation within a timeframe. I do wonder though what the limit of this is and if its the same per browser. (I mean, if I loaded no more then 1 image every 10 seconds, it would probably do it in the order I asked, but not if I asked for one to be prefetched every 10ms) This is more a curiousity though. . The point of the composite image strip is to fetch several images in one request since they come in a single binary file. Yes, I understand the point of them, and I think image bundles are a great idea. (In fact, online in general, theres probably a lot of wasted bandwidth used on little UI elements on webpages..like 5kb gifs etc) In this specific case though they arnt approperate. Not unless I got the server to dynamically splice the images together and the client to cut them up. But thats beyond the scope of the projects timeframe. This is exactly what the GWT ImageBundle does (and what has been best practice in web design for years). Annoyingly for you GWT only does this once per module because Bruce says they can't think of a single use case for needing separate ImageBundles! My bet is that if you just start loading all the images as you are suggesting, you will have to attach them to the DOM somewhere, so ultimately what you will be doing is building the entire game at the same time as the player is trying to play the first locations. So my betting is three to one on a) whilst this build is going on the game play will be badly affected at precisely the time you least want it to, and b) once you've loaded it all it will run like a dog anyway. I may well be wrong, but if I'm not, and you looked at the maze idea as plan B, then using image strips a la ImageBundle will make the game run much faster and smoother, so the effort might well be critical in the end. This is after all the heart of your technical challenge. This has been done so many times I expect you will find some javascript code that cuts them up (or maybe CSS stuff) to crib from somewhere and some server side tools to pack the image strips as well. On Feb 5, 3:27 pm, gregor greg.power...@googlemail.com wrote: I'm not sure I can be of much more help on this myself, since I have never written anything like this, and I have not come across any specific
Re: Stack overflow at line: 0
If you do some searching on this I think you will find that it is related to javascript code that is making recursive or repeated calls to the same javascript method. I think IE is treating this as some sort of warning/error to guard itself against potential stack overflow problems. I have chased this problem for many hours. Happens frequently in IE 6 but less of an issue in IE7 and probably related to javascript performance. I think I remember this was an issue in google generated RPC code that may have been fixed in GWT 1.5.x. Search on stack overflow in the message group and you should be able to find it. Thanks Scooter Willis On Feb 5, 1:50 pm, Barry bdemc...@gmail.com wrote: Thanks, Paul ... ... some perspective is a help. Yes, I realize that OOPHM will at least allow me to switch to FireFox for hosted mode, and that's a good thing. But GWT2.0 isn't here yet, so for now, I think I'll have to flatten the tree for marshalling and then reinflate it in the browser ... not a very welcome diversion, especially for short term code. Thanks for the corroboration ... and if anyone else can add in, please do! On Feb 5, 1:00 am, Paul Robinson ukcue...@gmail.com wrote: Barry wrote: Hi ... I'm getting a message box from Internet Explorer after executing the handler for an RPC call. The message box says Stack overflow at line: 0. The data being returned is a tree. If the tree isn't returned, I don't get the message box. There are several threads on this issue going back to 2006 and as late as December 2008. Apparently, this is a bug in the IE stack overflow detection. I'm running IE 7, and the problem occurs in hosted mode. Is there any resolution to this problem?? It's pretty serious ... I mean to send a lot of these trees around. Is there any workaround?? Until I recently switched to linux, I got this all the time once my project got to a certain sizebut only in hosted mode and it never appeared to have any side-effects anything apart from producing the pop-up. I've seen no workaround. Previous searches through the threads left me wondering whether this affects everyone on windows with large projects or whether there's some other environmental trigger. Roll on GWT2.0 and OOPHM. Paul --~--~-~--~~~---~--~~ 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: Deploying a GWT application
Thanks. I had found this page (http://code.google.com/docreader/ #p=google-web-toolkit-doc-1-5s=google-web-toolkit- doc-1-5t=DevGuideWebMode) but it wasn't as clear as the page you cited. Now I have another question. In this task, I'm attempting to use GWT to enhance an existing web page. I've done the development by using a mock-up of the page that the server actually generates. That is I took a generated page from my browser, saved it as html, and did my development in terms of that html. In reality I'll need to insert my GWT code into generated html pages as they are generated. I'm sure that the documentation tells me how to do that, but I couldn't find it. I looked at the html generated by the compiler in my development environment hoping to find an onModuleLoad(). But it was the same as the html I started with. I thought I might simply put an onModuleLoad () call in the generated page as a way get the whole thing going on the client side. But apparently that's not the way to do it. Would you let me know the right way. What is it that gets the generated GWT code to start running on the client side? Thanks. -- Russ On Feb 5, 12:13 pm, Jason Essington jason.essing...@gmail.com wrote: O.K. the compiler spits out pretty much everything that was in a public path, so expect to see those in the output (www) directory. in addition you'll likely see some of the following: [module_name].nocache.js - this is the bootstrap file that loads the actual GWT module. [hash].cache.html - These are the actual javascript payload files tailored for each individual browser/i18n combination. [hash].cache.png - These are generated imagebundle files [hash].gwt.rpc - these are rpc serialization policy files clear.cache.gif - blank gif used by GWT for some tasks history.html - used for history support hosted.html - used for hosted mode support (debugging against a live server) You'll want to deploy all of these. The hosted.html could be omitted, however that would prevent you from stepping through the code running on your live site, so just leave it. -jason On Feb 5, 2009, at 12:14 PM, RussAbbott wrote: When I compile my GWT application I get 13 files, including the .html and .nocache.js files. Apparently these two files are not sufficient to run the application. (If I launch the .html file in isolation along with the .js file the application doesn't work.) Does that mean that when I'm ready to deploy I have to copy the entire generated directory to my server? Thanks. -- Russ Abbott --~--~-~--~~~---~--~~ 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: Best image preloading practice?
Hi darkflame, I think the best way of (pre)loading images depends on the kind of app you have. I visited the url you shared with us and run a Fiddler2http://www.fiddler2.com/session through it to discover that around 100 requests are fired to get icons, textures, buttons, gradient bars, etc which could be loaded all in one request using an ImageBundle and doing that will surely improve the loading time of the app. Then you have like another 100 requests that fetch a combination of thumbnails and bigger images with good quality (ranging from 10kb to 1 meg aprox). For what I saw many of these images are displayed only when the user clicks on the inventory bag (thumbnails) and then when a thumbnail is selected the bigger image is displayed so I think you could also use Image.prefetch to, for example, get all the thumbnails when the initial screen is loadad (so that when a user clicks on the bag they appear quickly) and also prefetch the bigger images when the user clicks on the bag so that when a thumbnail is clicked the big image appears quickly also... or maybe you could just load a big image when it is needed! I think these are the kind of decission you can only make by having the app running and using tools like Fiddler2 or Firebug to see loading times, number of requests, use of browser cache, etc. I hope this helps, Martin On Thu, Feb 5, 2009 at 5:24 PM, gregor greg.power...@googlemail.com wrote: Ah, this sounds quite usefull to hide the loading, allthough I'll have to read up. I assume this is how, say, GoogleMaps does it? I think it's quite common where you want to have control over how images are handled yourself - as I say there are plenty of examples around of how to do the serlvet. You are thinking of loading 20MB of images into the DHTML DOM of you application Am I? Does the DOM keep them there even when not displayed? These images certainly wouldnt be displayed all at once. 1 or 2 at a time at most. I'm not absolutely sure, but I think if you load an image it is basically attached to a document, whether the browser caches it or not, and whether it is currently visible of not. You don't control the browser cache, I mean I don't think you can tell it to conveniently download all your images and store them neatly on disk until you need to display them for example. It's also more than likely each browser does things differently. But the vaste majority of players should happily be able to load 20-30MB onto their hard disk for the course of the game. That's my point: I don't think it works like that, I can see why it would be nice for you if it did. The browser probably does store images locally in some circumstances, but I believe this would be for virtual backing for the document it's loaded/displaying if required for memory management purposes. I.e. you've got a document of 20MB loaded which it must manipulate. I may be wrong, you'd need to investigate to be sure. They are deliberately designed to make downloading huge chunks of binary data difficult, especially transparently, and they are not expecting to have to display 20MB worth of images at once. Again, not at once. Surely a staggered download they wouldnt have a problem with? Emulating, say, what it would expect from a user browseing DeviantArt? yeah, the staggered download is basically the idea of the maze - each time you move to next location you've only got one locations worth of images to fetch. Or if it worked fast enough you could fetch all the required images for the adjoining locations so they would be ready to go instantly. It depends entirely on no of image bytes per location. Point is doing it this way old images are thrown away and can be garbage collected as you go, so you are not accumulating images in memory. It's stable. (assuming I'm right about the how this works of course). If you leave it to the browser, it makes one Http call per image and you cannot guarantee the order they will be fetched. I Yes, I noticed this already. Its interesting, as I expected it to be in a first-come-first-served base's, but I guess theres some optimisation within a timeframe. I do wonder though what the limit of this is and if its the same per browser. (I mean, if I loaded no more then 1 image every 10 seconds, it would probably do it in the order I asked, but not if I asked for one to be prefetched every 10ms) This is more a curiousity though. . The point of the composite image strip is to fetch several images in one request since they come in a single binary file. Yes, I understand the point of them, and I think image bundles are a great idea. (In fact, online in general, theres probably a lot of wasted bandwidth used on little UI elements on webpages..like 5kb gifs etc) In this specific case though they arnt approperate. Not unless I got the server to dynamically splice the images together and the
Re: basic client RPC question;the param of setServiceEntryPoint()
Yeah, that doesn't sounds great. I've never read a book on GWT. All the information you need can be got from google's GWT page and this forum. On Feb 5, 2:49 am, beeky staff...@marine.rutgers.edu wrote: Dan and Isaac, Thanks very much for the explanation. I think the basic problem is the book. For this example it never makes clear where the service entry point comes from. A rather large and troublesome omission given that this is a fundamental part of the client-server contract. -=beeky On Feb 3, 7:48 pm, Isaac Truett itru...@gmail.com wrote: Dan is correct. For hosted mode, there would be a servlet tag such as that. For web mode or hosted mode with -noserver, it would be a mapping in web.xml. On Tue, Feb 3, 2009 at 5:22 PM, Dan Ox danoxs...@gmail.com wrote: there should be an entry in your module.gwt.xml file similar to: servlet path=/tasks class=com.myapp.TaskServlet / That is where the task url is registered in hosted mode. When you deploy to a web server, you will need to specify the servlet with the tasks mapping in your web.xml. On Feb 4, 8:31 am, beeky staff...@marine.rutgers.edu wrote: Isaac, Thanks for the offer to help. Here are the lines from the book, I think this is all that is needed to illustrate my question. TaskServiceAsync service = (TaskServiceAsync) GWT.create (TaskService.class); ServiceDefTarget serviceDef = (ServiceDefTarget) service ; serviceDef.setServiceEntryPoint(GWT.getModuleBaseURL() + tasks ) ; It's tasks that has me confused. I have the example code from the book but I don't see tasks used anywhere. What am I looking for, a web.xml? And just to make matters more confusing, is this something that GWT generates or is this mapping (whereever it is) the developers responsibility? Thanks, -=b On Feb 3, 3:26 pm, Isaac Truett itru...@gmail.com wrote: It's a URL. If your GWT app is located athttp://www.foo.com/myappand you set the service entry point to GWT.getModuleBaseURL() + myservice then you'll end up sending an HTTP request tohttp://www.foo.com/myapp/myservice, and it will be received by the servlet mapped to that URL. I haven't seen the example in question so I couldn't speak to why it doesn't make sense. If you want to post the relevant bits, I'd be happy to puzzle over it with you. It may, of course, just be a typo. On Tue, Feb 3, 2009 at 3:06 PM, beeky staff...@marine.rutgers.edu wrote: I'm working my way through _Beginning Google Web Toolkit_ by Smeets, Boness and Bankras and I'm thoroughly confused by the usage of setServiceEntryPoint(). What is the parameter for this method supposed to be? It appears to be a path since GWT.getModuleBaseURL() is always used as part of the parameter. But in the example from BGWT the rest of the url does not correspond to anything in the downloaded example code. I thought perhaps the portion after getModuleBaseURL() was a configuration item, i.e. a setting for service entry point in *.gwt.xml but that does not seem to be the case either. Could someone explain what this param is and how it is arrived at? Thanks for any help or guidance, -=beeky --~--~-~--~~~---~--~~ 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: Deploying a GWT application
just add script ... src=[modulename].nocache.js/script to the html pages that you want to include your GWT module in -jason On Feb 5, 2009, at 2:11 PM, RussAbbott wrote: Thanks. I had found this page (http://code.google.com/docreader/ #p=google-web-toolkit-doc-1-5s=google-web-toolkit- doc-1-5t=DevGuideWebMode) but it wasn't as clear as the page you cited. Now I have another question. In this task, I'm attempting to use GWT to enhance an existing web page. I've done the development by using a mock-up of the page that the server actually generates. That is I took a generated page from my browser, saved it as html, and did my development in terms of that html. In reality I'll need to insert my GWT code into generated html pages as they are generated. I'm sure that the documentation tells me how to do that, but I couldn't find it. I looked at the html generated by the compiler in my development environment hoping to find an onModuleLoad(). But it was the same as the html I started with. I thought I might simply put an onModuleLoad () call in the generated page as a way get the whole thing going on the client side. But apparently that's not the way to do it. Would you let me know the right way. What is it that gets the generated GWT code to start running on the client side? Thanks. -- Russ On Feb 5, 12:13 pm, Jason Essington jason.essing...@gmail.com wrote: O.K. the compiler spits out pretty much everything that was in a public path, so expect to see those in the output (www) directory. in addition you'll likely see some of the following: [module_name].nocache.js - this is the bootstrap file that loads the actual GWT module. [hash].cache.html - These are the actual javascript payload files tailored for each individual browser/i18n combination. [hash].cache.png - These are generated imagebundle files [hash].gwt.rpc - these are rpc serialization policy files clear.cache.gif - blank gif used by GWT for some tasks history.html - used for history support hosted.html - used for hosted mode support (debugging against a live server) You'll want to deploy all of these. The hosted.html could be omitted, however that would prevent you from stepping through the code running on your live site, so just leave it. -jason On Feb 5, 2009, at 12:14 PM, RussAbbott wrote: When I compile my GWT application I get 13 files, including the .html and .nocache.js files. Apparently these two files are not sufficient to run the application. (If I launch the .html file in isolation along with the .js file the application doesn't work.) Does that mean that when I'm ready to deploy I have to copy the entire generated directory to my server? Thanks. -- Russ Abbott --~--~-~--~~~---~--~~ 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: PropertyUtils usage?
It's part of the embedded Tomcat. This should go away in the future as Tomcat is deprecated in 1.6. On Mon, Feb 2, 2009 at 5:28 AM, Ed post2edb...@hotmail.com wrote: Hellu all, Why is GWT using his own version of the org.apache.commons.beanutils.PropertyUtils class in the gwt-dev jar ? (probably there are more of these classes). This can cause nasty conflicts, which I just had :( For example: Dozer also uses this apache class but because the gwt-dev jar was included (t's shouldn't which I changed now) and appeared first on the classpath, Dozer used the PropertyUtils class in de gwt- dev jar which caused out of memory errors :(... -- Ed --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Deploying GWT application (WAR)
Hi to all, I managed to install properly gwt that runs fine under my linux. However, i have some problems to understand the deployment step to war. I use a servlet to upload a file to server so i would like to deploy my project WITH tomcat. Is that possible ? So that, if i want to install it on a web server, i just have to deploy the war file (i don't know how to create it, i just made the hierarchy :/) And if it's only for local use, the integrated tomcat will be used. As the hosted browser do... Not sure if i'm clear but to sum up: how to deploy my application with tomcat ? This way the user only double click the jar/war and it launchs browser with tomcat. I can't offer user to install gwt hosted browser ... Thanks in advance. Best regards. --~--~-~--~~~---~--~~ 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 with GWT
You may want to look at antlr On Thu, Feb 5, 2009 at 1:39 PM, samurai.monk1 samurai.monk2...@gmail.comwrote: I am working in a port of a very large Java application to PHP. The required path was to modify the Java2Javascript compiler to produce PHP code instead of JavaScript. Right now I have found: JavaToJavaScriptCompiler: I understand that this is the main class. JavaToJavaScriptMap.java: My hope was to see the actual map of java keywords etc to the javascript equivalents. In other words I am confused. If you could help me to: 1. Find the relevant classes for building and stand alone java to javascript translator. 2. Is there a stand alone version that only takes a java project (or file) and just output the JavaScript file? 3. Can the GWT save the java AST to a file? Note: I understand this is not a PHP forum, so the PHP problem is mine. The questions refers to stage one: understanding and compiling a clean Java to Javascript translators. Really tank you in advance --~--~-~--~~~---~--~~ 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: PropertyUtils usage?
Hi Ed, It turns out that packaging our own version of org.apache.commons.beanutils.PropertyUtils (and other org.apache.commons classes) was needed in order to embed the Tomcat server in hosted mode. Since we're moving to Jetty in GWT 1.6, this should no longer be an issue moving forward. Thanks for the heads up, -Sumit Chandel On Mon, Feb 2, 2009 at 2:28 AM, Ed post2edb...@hotmail.com wrote: Hellu all, Why is GWT using his own version of the org.apache.commons.beanutils.PropertyUtils class in the gwt-dev jar ? (probably there are more of these classes). This can cause nasty conflicts, which I just had :( For example: Dozer also uses this apache class but because the gwt-dev jar was included (t's shouldn't which I changed now) and appeared first on the classpath, Dozer used the PropertyUtils class in de gwt- dev jar which caused out of memory errors :(... -- Ed --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
onClick event for inline text
this seams like it would be incredibly easy and straight forward, but after an hour of looking i had to post. I have a bunch of text in a paragraph. i would like one word in that paragraph a link that when i click can call a handler method. In javascript this is super easy, in GWT it seams to be a hassle. what is the most efficient way to do this? thanks! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
onclick event for inline text
this seams like it would be incredibly easy and straight forward, but after an hour of looking i had to post. I have a bunch of text in a paragraph. i would like one word in that paragraph a link that when i click can call a handler method. In javascript this is super easy, in GWT there doesnt seam to be an easy way of doing it. what is the most efficient way to do this? thanks! --~--~-~--~~~---~--~~ 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 with GWT
thanks --~--~-~--~~~---~--~~ 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: onclick event for inline text
I should say, the way i am planning to do it is to use labels for the words i want to be able to click on and use ccs to try and make the label in-linewould be nice if there was a better way On Feb 5, 3:33 pm, vroom_vroom slabarb...@gmail.com wrote: this seams like it would be incredibly easy and straight forward, but after an hour of looking i had to post. I have a bunch of text in a paragraph. i would like one word in that paragraph a link that when i click can call a handler method. In javascript this is super easy, in GWT there doesnt seam to be an easy way of doing it. what is the most efficient way to do this? thanks! --~--~-~--~~~---~--~~ 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: getting members of the outer class
You need to rethink your approach a bit more. Making an asynchronous call inside a synchronous method will not produce the results you want. You should make the asynch call, then do whatever you want to do with the XML result inside the callback. This means that the onResponseReceived needs to initiate the action that uses the returned xml. On Feb 6, 4:21 am, reinika reinhard.k...@gmail.com wrote: like you already said, it is indeed a problem that the callback request isn't finished in the time the value is returned. i'll figure this out now. thanks for your patience! On Feb 5, 5:38 pm, federica.faggi...@gmail.com federica.faggi...@gmail.com wrote: I'll try, hoping to be helpful! A lot of code decision depends on exactly what you want to do with this code. I do some assumption now: 1- you need to load at some kind of startup your variable 'result ' 2- you need to read the content of the 'result' variable later in the code. I would do something as follows for what concerns MediaStation class: public class MediaStation{ private static String result = nothing; public static String getXMLContent(String path){ return MediaStation.result; } public static void loadResultVariable() { RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET, path); try { requestBuilder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { MediaStation.requestFailed(exception); } public void onResponseReceived(Request request, Response response) { MediaStation.result = response.getText(); } }); } catch (RequestException ex) { MediaStation.requestFailed(ex); } }} (I have not tried to compile this code, please consider there may be errors) Then from outside this class I would call loadResultVariable() at the beginning, that is when your code is initializing. Then you can use easily getXMLContent, but after having ensured that the server request has already finished. Note that there are many other issues that can arise due to callbacks, issues that can be addressed in many ways, but I suppose you can get a lot of info about them. BR, Federica reinika ha scritto: yes, that might be an issue. i know it goes back to the basics of programming, but maybe you can give me an outline how i can achieve to call a method for reading a xml file and returning its content (as you say you've never seen something like that before). thanks! On Feb 5, 5:00 pm, federica.faggi...@gmail.com federica.faggi...@gmail.com wrote: I try to suggest you something, but I hope not to give a trivial suggestion to you... Are you sure that you call MediaStation.getXMLContent() after the callback returns? For what I can read in your code, you send the callback in the try / catch block, then the next statement that is executed is return MediaStation.result. So you may not have finished the callback execution at that point. Anyway this is a way of using a getter function in conjunction with a request that I have never seen before. BR, Federica reinika ha scritto: hi! maybe somebody could help me with this. i'm trying to set the MediaStation static variable result in an inner class, unfortunately the the method getXMLContent(...) still returns the initially set string nothing when calling it with: --- Window.alert(Content: + MediaStation.getXMLContent(XML_FILEPATH)); --- I also checked, that the inner method onResponseReceived is called and response.getText(); also returns a result (see the commended alert window statement). source follows: --- ... public class MediaStation{ private static String result = 0; ... public static String getXMLContent(String path){ RequestBuilder requestBuilder = new RequestBuilder (RequestBuilder.GET, path); MediaStation.result = nothing; try { requestBuilder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { MediaStation.requestFailed(exception); } public void onResponseReceived(Request request, Response response) { MediaStation.result = response.getText(); //Window.alert(XML file successfully read: + MediaStation.result); } }); } catch (RequestException ex) {
RequestBuilder.sendRequest(Serializable object, ...)?
I'm trying to set up a load testing framework for my gwt app. I've used jmeter and liked it, but I have to re-record my scripts whenever the gwt version changes. I'd like to write some simple load tests and let gwt itself format the requests. My rpc client call looks like this: requestService.sendRequest(payload, getAsyncCallback()); I'm looking for a way, outside of the GWT client framework, to mimic that request to the server. In other words, I want my java app to pretend to be a gwt client. RequestBuilder looks like it would work, but its sendRequest() method takes a string and a callback. I'm not sure how to serialize my payload object into string that RPC will properly decode. Is there a way to get a reference to a StreamSerializationWriter? Or is it easier than that? Thanks for any tips, Peter --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Implementing Throwable getStackTrace()
Hi All, I am interested in implementing Throwable getStackTrace() in the actual browser JavaScript. I realize it works in hosted mode when running in a actual JVM. Is this even possible since the auto generated JavaScript is so different from the Java or was it just not attempted? I do remember seeing the line number of JavaScript errors in IE and Firefox during the years when I used to write JavaScript by hand. Could the GWT compiler simply figure out where the Exception is getting thrown by looking for lines like; new Exception(); And then put the line from the Java source code along with the class into the JavaScript I realize actually going up the stack would be difficult since it would require something like reflection/native jvm calls. But even one StackTraceElement might make GWT much more user friendly. Cheers, Scott --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Anyone configure GWTShell to listen on a network interface?
Has anyone dug into GWTShell's tomcat configuration to figure out how to make it listen on a real network port? I'd like to make it listen on a real network interface (instead of loopback) so that I can connect and test multiple clients with different OS/version combinations. Anyone? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Given a HTML width and know the height required for content
If the width of HTML is given, is it possible to get the required height to completely show the HTML content? Best Kevin --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Detailed Google Web Toolkit Documentation
Hello all, My company has recently started documenting in extensive detail open source systems including the Google Web Toolkit. We are looking for feedback and suggestions on the types of diagrams, models, metrics, etc. that would be useful to you all as developers of this system. Currently we include a number of software engineering methodologies include UML, MDA, OOA/OOD, SSADM. There is also complexity indexes and details of unused/dead code. Please take a look and give us some honest feedback. http://www.softwarerevolution.com/portals/ Thanks! Howard Ramsdell Software Engineer The Software Revolution Inc. --~--~-~--~~~---~--~~ 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: View remaining content of a full ocuupied window after resizing
Well I have not used WindowResizeListener in my code. Instead I have used CSS wherein i state the min-width and min-height for mu main window and whenever the window is resized beyond this minimum specification, a scrollbar appears. Also some of my widgets have their widths/heights in percentages while some have those in pixels(all using CSS). Thats why it gets difficult for me since i am never sure what i should set in CSS coz again different browsers and OS treat them differently. On Thu, Feb 5, 2009 at 8:10 PM, gregor greg.power...@googlemail.com wrote: Hi Aragorn, Enabling scrolling in Window class should give you main window scroll bars. Resizing the browser window can be difficult to get right, it depends on your application. If all your widgets are sized relatively in percentage terms then sometimes it works out OK automatically. If not you can attach a WindowResizeListener to your EntryPoint class and kick off resizing algorithms from the onWIndowResize(..) method. regards gregor On Feb 5, 1:09 pm, aragorn sagar5...@gmail.com wrote: I have created a webpage which fits itself to the size of the browser window at start. Whenevr it resizes, I want to get a scrollbar which will help me navigate the entire page. I tried using CSS overflow property but that doesnt work as in i am not able to view all the contents. The scrollbar does appear but then doesnt help show all the contetns inside the page. Another undesired effect I get is that the inner contents overlap each other after resizing to a smaller size. --~--~-~--~~~---~--~~ 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: Deploying GWT application (WAR)
Well for web application you dont give the user a WAR file, but you deploy the war file on a server machine (where you have an application server like Tomcat installed) and then give the url of the application to the user. User will use his browser to open ur URL. - litty On Fri, Feb 6, 2009 at 4:13 AM, Jonathan jonathan.delf...@gmail.com wrote: Hi to all, I managed to install properly gwt that runs fine under my linux. However, i have some problems to understand the deployment step to war. I use a servlet to upload a file to server so i would like to deploy my project WITH tomcat. Is that possible ? So that, if i want to install it on a web server, i just have to deploy the war file (i don't know how to create it, i just made the hierarchy :/) And if it's only for local use, the integrated tomcat will be used. As the hosted browser do... Not sure if i'm clear but to sum up: how to deploy my application with tomcat ? This way the user only double click the jar/war and it launchs browser with tomcat. I can't offer user to install gwt hosted browser ... Thanks in advance. Best regards. --~--~-~--~~~---~--~~ 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: onClick event for inline text
Well you can make tht particular word into a seperate Label and give click listener to the label. On Fri, Feb 6, 2009 at 4:58 AM, vroom_vroom slabarb...@gmail.com wrote: this seams like it would be incredibly easy and straight forward, but after an hour of looking i had to post. I have a bunch of text in a paragraph. i would like one word in that paragraph a link that when i click can call a handler method. In javascript this is super easy, in GWT it seams to be a hassle. what is the most efficient way to do this? thanks! --~--~-~--~~~---~--~~ 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: onclick event for inline text
You can use a HTML widget and around the particular word you can place anchor tags with onclick handler. On Fri, Feb 6, 2009 at 5:11 AM, vroom_vroom slabarb...@gmail.com wrote: I should say, the way i am planning to do it is to use labels for the words i want to be able to click on and use ccs to try and make the label in-linewould be nice if there was a better way On Feb 5, 3:33 pm, vroom_vroom slabarb...@gmail.com wrote: this seams like it would be incredibly easy and straight forward, but after an hour of looking i had to post. I have a bunch of text in a paragraph. i would like one word in that paragraph a link that when i click can call a handler method. In javascript this is super easy, in GWT there doesnt seam to be an easy way of doing it. what is the most efficient way to do this? thanks! --~--~-~--~~~---~--~~ 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: Caching question - using GWT to create Google Gadgets
I noticed in the comiled code a lot of calls using: _IG_GetCachedUrl() that's excellent! and just the way I want it. However - that does then leave something to be desired when you are developing and making changes frequently. In those case it would be nice to have { refreshInterval: 0 } passed to the function. Ideally you would be able to set some sort of DEBUG_P = 1 flag in the file that control this behavior. Any suggestions? And if I may be so forward - if there isn't yet a straightforward solution - maybe this can be a request for future versions of the GWT On Feb 3, 1:48 pm, Steven steven.pul...@gmail.com wrote: thanks for the info! especially the note about -PRETTYoutput (I should have thought of that!) On Feb 3, 5:41 am, Eric Ayers zun...@google.com wrote: On Mon, Feb 2, 2009 at 9:40 PM, Steven steven.pul...@gmail.com wrote: I have a question regarding using the GWT to create gadgets for iGoogle. I have seenhttp://code.google.com/docreader/#p=gwt-google-apiss=gwt-google-apis... which details how you can now use the legacy gadgets API with GWT to create gadgets. I also noticed that the way the GWT seems to achieve cross browser compatibility is to create multiple javascript files and dynamically include the right ones. I am worried about the performance hit of hosting uncached files on my webserver. My question is this: does the GWT cache requests to these javascript files? No, GWT doesn't actually cache them. It routes the request for your compiled resources through a proxy which is supposed to cache them (for up to 1 hour, I believe) Historically my process has been to have the entiregadgetinline as type html and where necessary only include external resources after using a call to _IG_GetCachedUrl so that they are proxies by google. So to clarify, my question is: When GWT spans it's code across multiple files does it use _IG_GetCachedUrl to cache the request of external javascript - or if not does it at least do something to ensure that the javascript will not be requested (from my webserver) every time a user loads thegadget. Turn onprettymode when you compile, and then look at the generated .gadget.xml file (add -stylePRETTYto the command line) and you'll see that this is exactly the strategy used in the compiledgadget. just curious because on of the things I love about the wholegadget space is that it has let me develop interesting projects in a way that doesn't put much load on my puny server. There are things you need to watch out for. Make sure you load your .css files through a script take in your module definition (.gwt.xml). Also, images could be an issue, but you can translate the urls to images to go through the proxy with the same _IG_GetCachedUrl call manually, or you can use the new GadgetImage class (in the next public update, due out very shortly). thanks! -- Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ 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: Call event after an other
It does not work...I am doing anything wrong. Can you *explain how to use this*? I try to describe again: I habe 2 events, both in a own class. The onClick from save button in class A and the onChange from the textbox in class B. If the onChange is fired the save is fired too (look at my first comment this thread). But I need the possibility to wait starting onClick until onChange is running. -Danny 2009/2/5 Damien Picard picard.dam...@gmail.com Hi ! You can control event propagation with low-level functions (onBrowserEvent, Event) ; in your case, use the Event.cancelBubble function : http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble(boolean)http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble%28boolean%29 2009/2/5 Danny Schimke schimk...@googlemail.com Hi! If I have following problem: I enter some text in a textbox. Now I click on a button to save data to a database. With leaving the edit ists onChange- event is called, but the onClick- event of the button is called too at same the time. Saving is faster than onChange. I tried to handle the onClick after other events have done their work by using a DeferedCommand. But is doesn't work. Saving is allways faster than the onChange. Is there a way to control the handling-order of events? Thank you! -Danny --~--~-~--~~~---~--~~ 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: Call event after an other
I dont think you can change the order of the vents. But here may be what you can do is in the Class B have a flag indicating the running of onChnage and when onChnage is complete set this flag. Now in Class A onClick wait till the Class B flag is set and then only start handling the onClick logic. - Litty On Fri, Feb 6, 2009 at 11:26 AM, Danny Schimke schimk...@googlemail.comwrote: It does not work...I am doing anything wrong. Can you *explain how to use this*? I try to describe again: I habe 2 events, both in a own class. The onClick from save button in class A and the onChange from the textbox in class B. If the onChange is fired the save is fired too (look at my first comment this thread). But I need the possibility to wait starting onClick until onChange is running. -Danny 2009/2/5 Damien Picard picard.dam...@gmail.com Hi ! You can control event propagation with low-level functions (onBrowserEvent, Event) ; in your case, use the Event.cancelBubble function : http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble(boolean)http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble%28boolean%29 2009/2/5 Danny Schimke schimk...@googlemail.com Hi! If I have following problem: I enter some text in a textbox. Now I click on a button to save data to a database. With leaving the edit ists onChange- event is called, but the onClick- event of the button is called too at same the time. Saving is faster than onChange. I tried to handle the onClick after other events have done their work by using a DeferedCommand. But is doesn't work. Saving is allways faster than the onChange. Is there a way to control the handling-order of events? Thank you! -Danny --~--~-~--~~~---~--~~ 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 clear cache
Hi, I did few changes in GWT application after hosting... One of my client cannot able to view the recent changes. He is still viewing the old application. As, GWT is a javascript, instructed him to clear the temporary files through browser. But he still facing the same problem... Is GWT caching the javascript files other than temporary internet files folder?? else how can I clear the chached files?? its happening to only one particular user... Regards, ArunDhaJ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Why can't I use GWT Theme support with a Gadget?
;) In the FAQ it explains how GWT references a CSS file with relative image paths. When the GWT app in question is a gadget it is hosted through a proxy by the gadget container and all the relative image paths break. There are two issues here. 1) It would be nice if there was a way to indicate where the final home of the images would be so that the GWT compiler could build absolute paths 2) It would be even better if the reference to the images were wrapped in calls to _IG_GetCachedUrl() - I'm not sure if this is possible with an external CSS file, but I know it can be done when the CSS is inline. Any info on if these issues are being addressed? Any thoughts on solutions/hacks in the meantime? I guess worst case I can just inline the CSS manually - but hey, I'm lazy :) thanks for the help/info! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
double click
i have a htlmlwidget in a simple panel.Htmlwidget is draggable widget. I want to attach double click event with htmlwidget but after sinking event on htmlwidget it is no more draggable. i am able to attach double click event with simplepanel. can anyone suggest how to attach double click on htmlwidget? --~--~-~--~~~---~--~~ 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: Best image preloading practice?
You are thinking of loading 20MB of images into the DHTML DOM of you application Am I? Does the DOM keep them there even when not displayed? These images certainly wouldnt be displayed all at once. 1 or 2 at a time at most. I'm not absolutely sure, but I think if you load an image it is basically attached to a document, whether the browser caches it or not, and whether it is currently visible of not. You don't control the browser cache, I mean I don't think you can tell it to conveniently download all your images and store them neatly on disk until you need to display them for example. ah, pig. I thought that was exactly that prefetch was doing -sigh- I thought it loaded it to ram first, then the browser keeps a copy in its cache for reloading if needed. -sigh- That does change things indeed then. Again, not at once. Surely a staggered download they wouldnt have a problem with? Emulating, say, what it would expect from a user browseing DeviantArt? yeah, the staggered download is basically the idea of the maze - each time you move to next location you've only got one locations worth of images to fetch. Or if it worked fast enough you could fetch all the required images for the adjoining locations so they would be ready to go instantly. It depends entirely on no of image bytes per location. Yes, I looks like I'll be switching to a as-you-go-along-it-loads-the- next-rooms approach. Allthough... Point is doing it this way old images are thrown away and can be garbage collected as you go, so you are not accumulating images in memory. It's stable. (assuming I'm right about the how this works of course). ...I'm not sure there will be much that can be chucked away in this game. My engine is able to remove items easily enough, but for this game items from the start of the game are still usefull at the end, so theres only a few case's when images can be removed never to be recalled. . The point of the composite image strip is to fetch several images in one request since they come in a single binary file. Yes, I understand the point of them, and I think image bundles are a great idea. (In fact, online in general, theres probably a lot of wasted bandwidth used on little UI elements on webpages..like 5kb gifs etc) In this specific case though they arnt approperate. Not unless I got the server to dynamically splice the images together and the client to cut them up. But thats beyond the scope of the projects timeframe. This is exactly what the GWT ImageBundle does (and what has been best practice in web design for years). Annoyingly for you GWT only does this once per module because Bruce says they can't think of a single use case for needing separate ImageBundles! My bet is that if you just start loading all the images as you are suggesting, you will have to attach them to the DOM somewhere, so ultimately what you will be doing is building the entire game at the same time as the player is trying to play the first locations. So my betting is three to one on a) whilst this build is going on the game play will be badly affected at precisely the time you least want it to, and b) once you've loaded it all it will run like a dog anyway. Yes, I think your right there. But I think cutting up 30MB of images client side might actualy raise the required specs of the game :P I may well be wrong, but if I'm not, and you looked at the maze idea as plan B, then using image strips a la ImageBundle will make the game run much faster and smoother, so the effort might well be critical in the end. This is after all the heart of your technical challenge. This has been done so many times I expect you will find some javascript code that cuts them up (or maybe CSS stuff) to crib from somewhere and some server side tools to pack the image strips as well. I may have miss-understoof how image bundles worked completely here though, as I originaly thought they were fixed at compile-time. From the perspective of people editing the game content (images/text), what would they have to do? Run a script file of some sort every time they changed an image in the game? Or would the image be spliced together server-side for each user as they request the javascript? (which would surely increase sever load and load time too) I'm thinking strongly of going for the maze-techique now, but still need the best method/approach for loading within it. (Basicaly ; I know theres these 10 large images to be loaded for the next area, whats the best way to do it so the client dosnt notice the loading) --~--~-~--~~~---~--~~ 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
Re: ScrollPanel maxWidth or maxHeight?
there is some max-height CSS property. But dont know if it works. Yeh i've tried it (including the expression-trick for IE but it didn't work. On 5 Feb., 17:30, gregor greg.power...@googlemail.com wrote: Oh, in your use case, Alex, you do have an event - adding an item to the panel. Just check the height after new item added and set the height of the ScrollPanel in pixels if max value reached I would think answers. That sounds good actually. Is there a real browser-event or should i just call a check procedure whenever i add elements? I have looked in vain for a general method to get ScrollPanels to resize and generally behave by themselves. I think the reason is that individual divs/table cells etc do not generate events when their size changes. ScrollPanel is basically a div with an overflow setting. I have supposed this is because there can be hundreds if not thousands of boxes on a page, so if they all emitted an event every time they changed their width/heights the browser's event queue would be brought to its knees. On Feb 5, 4:13 pm, Litty Preeth preeth.h...@gmail.com wrote: there is some max-height CSS property. But dont know if it works. On Thu, Feb 5, 2009 at 8:59 PM, alex.d alex.dukhov...@googlemail.comwrote: On 5 Feb., 16:10, gregor greg.power...@googlemail.com wrote: Hi Alex, I think you have to explicitly specify the height of a ScollPanel in pixels to get the scroll bars to kick in, and that will set the height of the panel from the word go. If what you mean is that you want a panel to start at a minimum size, then grow as things are added to it, but then to stop growing and go into scroll mode at a certain point, exactly what i meant. I do not think that is realistically possible since there is no event you can listen for that would tell you when the panel had grown to a given height. You can listen for the browser window changing, but not for an individual panel. I suppose one approach might be to set up a timer to check the current height at intervals and take appropriate action when it hit the limit, but this sounds very inefficient. Indeed it does. I kind of hoped somebody will have a genious idea about it ;-) Thank you for your input anyway. regards gregor On Feb 5, 9:29 am, alex.d alex.dukhov...@googlemail.com wrote: Hi folks, I'm trying to impelement a scrollpanel that becomes bigger (height) to the certain size (maxHeight) when populating it with data. After that vertical scrollbar should appear and the panel should stop growing. Any ideas on how to implement this would be appreciated. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[gwt-contrib] Re: Announcing GWT 1.6 Milestone 1
I just notice the About class has not the GWT_VERIOSN_NUMBER set. Seems the code expects some String replacement for @gwt_vers...@. I'm using About.GWT_VERSION_NUM constant in gwt-maven-plugin to detect the GWT version used when user provides it's own implementation. Cheers, Nicolas On Thu, Feb 5, 2009 at 1:34 AM, Scott Blum sco...@google.com wrote: Greetings GWT developers, The GWT team is happy to announce the availability of 1.6 Milestone 1! Binary distributions are available for download directly from GWT's Google Code project. http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0 As always, milestone builds like this are use-at-your-own-risk. There are known bugs, and it definitely isn't ready for production use. Please expect some trial and error getting everything to work. The javadoc that comes bundled with the distribution should be up-to-date, but the online Developer Guide (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6) is still very much a work in progress. We will be updating it over the next several weeks. In lieu of an up-to-date Developer Guide and release notes, below are the major highlights relative to GWT 1.5.3. *** New Project Structure in GWT 1.6 *** One of the biggest changes to GWT 1.6 is a new project structure. The old output format has been replaced by the standard Java web app expanded war format, and the actual directory name does default to /war. Note that the war directory is not only for compiler output; it is also intended to contain handwritten static resources that you want to be included in your webapp alongside GWT modules (that is, things you'd want to version control). Please also note that the GWTShell and GWTCompiler tools will maintain their legacy behavior, but they have been deprecated in favor of new HostedMode and Compiler tools which use the new war output. When 1.6 is officially released, we will be encouraging existing projects to update to the new directory format and to use the new tools to take advantage of new features and for compatibility with future GWT releases. The sample projects provided in the GWT distribution provide an example of correct new project configurations. For more details on the specifics of the new project format, please see GWT 1.6 WAR design document ( http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6). A couple of important changes we should highlight here: - Projects with server-side code (GWT RPC) must configure a web.xml file at /war/WEB-INF/web.xml. This web.xml file must define and publish any servlets associated with the web application. See the included DynaTable sample. Additionally, server-side library dependencies must be copied into /war/WEB-INF/lib. For example, any GWT RPC servlets must have a copy of gwt-servlet.jar in this folder. - HTML host pages will no longer typically be located in a GWT module's public path. Instead, we'll be recommending that people take advantage of the natural web app behavior for serving static files by placing host pages anywhere in the war structure that makes sense. For exmaple, you might want to load a GWT module from a JSP page located in the root of your web app. To keep such handwritten static files separate from those produced by the GWT compiler, the latter will be placed into module-specific subdirectories. Any page that wishes to include a GWT module can do so via a script tag by referencing the GWT-produced module.nocache.js script within that module's subdirectory. As of 1.6, we'll be recommending that only module-specific resources used directly by GWT code, such as image files needed by widgets, should remain on the public path. See the included Showcase sample for some examples of this distinction. - When you do need to load resources from a module's public path, always construct an absolute URL by prepending GWT.getModuleBaseURL(). For example, 'GWT.getModuleBaseURL() + dir/file.ext'. This advice has not changed, but in the past it was easy to be sloppy with this, because the host page and GWT module typically lived in the same directory, so using a relative URL would usually do the right thing. Now that GWT modules live in a subdirectory, you must reference public resources through GWT.getModuleBaseURL(). *** Hosted Mode Enhancements *** Although the legacy GWTShell still uses an embedded Tomcat server, the new HostedMode runs Jetty instead. There is also a new Restart Server button on the main hosted mode window. Clicking this button restarts the internal Jetty server, which allows Java code changes to take effect on the server without having to completely exit and restart hosted mode. This is useful when making code changes to RPC servlets, or when serializable RPC types are modified and the server and client are out of sync. *** New EventHandler System *** Event handlers have been added to replace the old event listeners used by
[gwt-contrib] Re: Announcing GWT 1.6 Milestone 1
Hi, As a confidence test I tried to compile our projects with the new release and failed miserably. Is it expected that the GWT JavaScript compiler now seems to use native code ? Is this to support compiling in multiple processes ? Or is it a sideeffect of some other changes ? I normally build our final release builds on SunOS and we use the windows dev jar. Why do I do this ? Corperate BS forces me to access all sources on a clearcase filessystem (running on top of NFS) which is extremely slow. When I build on SunOS I can do it on the actual viewserver. I guess I have another reason to request snapshot views (which puts everything on a local disc instead) :-) David [echo] Invoking GWT JavaScript compiler. [java] WARNING: 'com.google.gwt.dev.GWTCompiler' is deprecated and will be removed in a future release. [java] Use 'com.google.gwt.dev.Compiler' instead. [java] Unable to load required native library 'gwt-ll'. Detailed error: [java] Can't load library: /scm/vobs/rlsCOTS5/gwt/JAVA/lib/libgwt- ll.so) [java] Your GWT installation may be corrupt [java] Compiling module com.swift.sawa.admin.Admin [java]Removing units with errors [java] [ERROR] Errors in 'jar:file:/scm/vobs/rlsCOTS5/ gwtincubator/JAVA/lib/gwt-incubator.jar!/com/google/gwt/user/client/ui/ SuggestionMenuImpl.java' [java] [ERROR] Line 142: The method itemOver(MenuItem, boolean) in the type MenuBar is not applicable for the arguments (MenuItem) [java] [ERROR] Line 179: The method itemOver(MenuItem) of type SuggestionMenuImpl must override or implement a supertype method [java] [ERROR] Line 188: The method itemOver(MenuItem, boolean) in the type MenuBar is not applicable for the arguments (SuggestionMenuImpl.SuggestionItem) [java]Removing invalidated units [java] [WARN] Compilation unit 'jar:file:/scm/vobs/rlsCOTS5/ gwtincubator/JAVA/lib/gwt-incubator.jar!/com/google/gwt/widgetideas/ client/SuggestBoxOverride.java' is removed due to invalid reference (s): [java] [WARN] jar:file:/scm/vobs/rlsCOTS5/gwtincubator/ JAVA/lib/gwt-incubator.jar!/com/google/gwt/user/client/ui/ SuggestionMenuImpl.java [java][ERROR] Errors in jar:file:/scm/vobs/rlsCOTS5/ gwtincubator/JAVA/lib/gwt-incubator.jar!/com/google/gwt/widgetideas/ client/DropDownPanel.java [java] [ERROR] Line 391: Unresolvable native reference to field 'popupListeners' in type 'com.google.gwt.user.client.ui.PopupPanel' [java][ERROR] Cannot proceed due to previous errors On Feb 5, 1:34 am, Scott Blum sco...@google.com wrote: Greetings GWT developers, The GWT team is happy to announce the availability of 1.6 Milestone 1! Binary distributions are available for download directly from GWT's Google Code project. http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0 As always, milestone builds like this are use-at-your-own-risk. There are known bugs, and it definitely isn't ready for production use. Please expect some trial and error getting everything to work. The javadoc that comes bundled with the distribution should be up-to-date, but the online Developer Guide (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6) is still very much a work in progress. We will be updating it over the next several weeks. In lieu of an up-to-date Developer Guide and release notes, below are the major highlights relative to GWT 1.5.3. *** New Project Structure in GWT 1.6 *** One of the biggest changes to GWT 1.6 is a new project structure. The old output format has been replaced by the standard Java web app expanded war format, and the actual directory name does default to /war. Note that the war directory is not only for compiler output; it is also intended to contain handwritten static resources that you want to be included in your webapp alongside GWT modules (that is, things you'd want to version control). Please also note that the GWTShell and GWTCompiler tools will maintain their legacy behavior, but they have been deprecated in favor of new HostedMode and Compiler tools which use the new war output. When 1.6 is officially released, we will be encouraging existing projects to update to the new directory format and to use the new tools to take advantage of new features and for compatibility with future GWT releases. The sample projects provided in the GWT distribution provide an example of correct new project configurations. For more details on the specifics of the new project format, please see GWT 1.6 WAR design document (http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6). A couple of important changes we should highlight here: - Projects with server-side code (GWT RPC) must configure a web.xml file at /war/WEB-INF/web.xml. This web.xml file must define and publish any servlets associated with the web application. See the included DynaTable sample. Additionally,
[gwt-contrib] [google-web-toolkit commit] r4635 - changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac
Author: j...@google.com Date: Thu Feb 5 02:26:32 2009 New Revision: 4635 Modified: changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/BinaryCompilationUnit.java changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/BinaryCompilationUnitBuilder.java changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/BinaryCompiledClass.java changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/CompilationState.java changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/CompiledClass.java changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/JsniCollector.java changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/SourceCompiledClass.java Log: Checkpoint work. Modified: changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/BinaryCompilationUnit.java == --- changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/BinaryCompilationUnit.java (original) +++ changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/BinaryCompilationUnit.java Thu Feb 5 02:26:32 2009 @@ -16,71 +16,71 @@ package com.google.gwt.dev.javac; +import com.google.gwt.dev.resource.Resource; + import org.eclipse.jdt.core.compiler.CategorizedProblem; +import java.util.ArrayList; import java.util.HashSet; +import java.util.List; import java.util.Set; /** - * Encapsulates the state of a single compilation unit loaded from binary - * class files. + * Encapsulates the state of a single compilation unit loaded from binary class + * files. */ public class BinaryCompilationUnit extends CompilationUnit { - private SetBinaryCompiledClass compiledClasses = new HashSetBinaryCompiledClass();; + private static final CategorizedProblem[] EMPTY_PROBLEMS = new CategorizedProblem[0]; + private ListBinaryCompiledClass compiledClasses = new ArrayListBinaryCompiledClass(); + private Resource classResource;; + + public BinaryCompilationUnit(Resource classResource, + ListBinaryCompiledClass classes) { +this.classResource = classResource; +compiledClasses.addAll(classes); +for (BinaryCompiledClass binClass : classes) { + binClass.setUnit(this); +} + } - /* (non-Javadoc) - * @see com.google.gwt.dev.javac.CompilationUnit#getDisplayLocation() - */ @Override public String getDisplayLocation() { -// TODO(jat): Auto-generated method stub -return null; +return compiledClasses.get(0).getSourceName(); } - /* (non-Javadoc) - * @see com.google.gwt.dev.javac.CompilationUnit#getLastModified() - */ @Override public long getLastModified() { -// TODO(jat): Auto-generated method stub -return 0; +long lastModified = Long.MAX_VALUE; +for (BinaryCompiledClass binClass : compiledClasses) { + long timestamp = binClass.getClassResource().getLastModified(); + if (timestamp lastModified) { +lastModified = timestamp; + } +} +return lastModified; } - public Object getResource() { -// TODO(jat): Auto-generated method stub -return null; + public Resource getResource() { +return classResource; } - /* (non-Javadoc) - * @see com.google.gwt.dev.javac.CompilationUnit#getSource() - */ @Override public String getSource() { return null; } - /* (non-Javadoc) - * @see com.google.gwt.dev.javac.CompilationUnit#getTypeName() - */ @Override public String getTypeName() { -// TODO(jat): Auto-generated method stub -return null; +return compiledClasses.get(0).getSourceName(); } - /* (non-Javadoc) - * @see com.google.gwt.dev.javac.CompilationUnit#hasErrors() - */ @Override public boolean hasErrors() { // TODO(jat): Auto-generated method stub return false; } - /* (non-Javadoc) - * @see com.google.gwt.dev.javac.CompilationUnit#isGenerated() - */ @Override public boolean isGenerated() { // TODO(jat): Auto-generated method stub @@ -99,9 +99,6 @@ return classes; } - /* (non-Javadoc) - * @see com.google.gwt.dev.javac.CompilationUnit#computeFileNameRefs() - */ @Override protected SetString computeFileNameRefs() { SetString filenames = new HashSetString(); @@ -113,7 +110,7 @@ @Override CategorizedProblem[] getErrors() { -return null; +return EMPTY_PROBLEMS; } @Override Modified: changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/BinaryCompilationUnitBuilder.java == --- changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/BinaryCompilationUnitBuilder.java (original) +++ changes/jat/ihm/dev/core/src/com/google/gwt/dev/javac/BinaryCompilationUnitBuilder.java Thu Feb 5 02:26:32 2009 @@ -69,7 +69,7 @@ public BinaryCompiledClass getBinaryCompiledClass() { CompiledClass enclosingClass = null; - // TODO(jat): Auto-generated method stub + // TODO(jat):
[gwt-contrib] Re: Announcing GWT 1.6 Milestone 1
Congratulations! I'll try to give this a swing this week or next week, I hope it doesn't break the gwt-maven plugin too badly. Does anyone know when this milestone will hit the central Maven repo? -- Arthur Kalmenson On Wed, Feb 4, 2009 at 7:34 PM, Scott Blum sco...@google.com wrote: Greetings GWT developers, The GWT team is happy to announce the availability of 1.6 Milestone 1! Binary distributions are available for download directly from GWT's Google Code project. http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0 As always, milestone builds like this are use-at-your-own-risk. There are known bugs, and it definitely isn't ready for production use. Please expect some trial and error getting everything to work. The javadoc that comes bundled with the distribution should be up-to-date, but the online Developer Guide (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6) is still very much a work in progress. We will be updating it over the next several weeks. In lieu of an up-to-date Developer Guide and release notes, below are the major highlights relative to GWT 1.5.3. *** New Project Structure in GWT 1.6 *** One of the biggest changes to GWT 1.6 is a new project structure. The old output format has been replaced by the standard Java web app expanded war format, and the actual directory name does default to /war. Note that the war directory is not only for compiler output; it is also intended to contain handwritten static resources that you want to be included in your webapp alongside GWT modules (that is, things you'd want to version control). Please also note that the GWTShell and GWTCompiler tools will maintain their legacy behavior, but they have been deprecated in favor of new HostedMode and Compiler tools which use the new war output. When 1.6 is officially released, we will be encouraging existing projects to update to the new directory format and to use the new tools to take advantage of new features and for compatibility with future GWT releases. The sample projects provided in the GWT distribution provide an example of correct new project configurations. For more details on the specifics of the new project format, please see GWT 1.6 WAR design document (http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6). A couple of important changes we should highlight here: - Projects with server-side code (GWT RPC) must configure a web.xml file at /war/WEB-INF/web.xml. This web.xml file must define and publish any servlets associated with the web application. See the included DynaTable sample. Additionally, server-side library dependencies must be copied into /war/WEB-INF/lib. For example, any GWT RPC servlets must have a copy of gwt-servlet.jar in this folder. - HTML host pages will no longer typically be located in a GWT module's public path. Instead, we'll be recommending that people take advantage of the natural web app behavior for serving static files by placing host pages anywhere in the war structure that makes sense. For exmaple, you might want to load a GWT module from a JSP page located in the root of your web app. To keep such handwritten static files separate from those produced by the GWT compiler, the latter will be placed into module-specific subdirectories. Any page that wishes to include a GWT module can do so via a script tag by referencing the GWT-produced module.nocache.js script within that module's subdirectory. As of 1.6, we'll be recommending that only module-specific resources used directly by GWT code, such as image files needed by widgets, should remain on the public path. See the included Showcase sample for some examples of this distinction. - When you do need to load resources from a module's public path, always construct an absolute URL by prepending GWT.getModuleBaseURL(). For example, 'GWT.getModuleBaseURL() + dir/file.ext'. This advice has not changed, but in the past it was easy to be sloppy with this, because the host page and GWT module typically lived in the same directory, so using a relative URL would usually do the right thing. Now that GWT modules live in a subdirectory, you must reference public resources through GWT.getModuleBaseURL(). *** Hosted Mode Enhancements *** Although the legacy GWTShell still uses an embedded Tomcat server, the new HostedMode runs Jetty instead. There is also a new Restart Server button on the main hosted mode window. Clicking this button restarts the internal Jetty server, which allows Java code changes to take effect on the server without having to completely exit and restart hosted mode. This is useful when making code changes to RPC servlets, or when serializable RPC types are modified and the server and client are out of sync. *** New EventHandler System *** Event handlers have been added to replace the old event listeners used by Widgets, History, and various other classes. The new system has a few differences
[gwt-contrib] Re: Announcing GWT 1.6 Milestone 1
Only the current gwt-incubator trunk is validated to work against the release jar. We'll be releasing a new gwt-incubator jar soon, but I'm still working on getting all the demos to build and display correctly. On Thu, Feb 5, 2009 at 12:24 PM, Scott Blum sco...@google.com wrote: Hi stuckagain, It looks like you are using a version of the incubator jar that is not compatible with the milestone build. Can you start a new thread about that and CC e...@google.com? I'm not sure why the compiler is trying to load gwt-ll, I will check it out, thanks. Scott -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4637 - wiki
Author: sp...@google.com Date: Thu Feb 5 09:40:23 2009 New Revision: 4637 Modified: wiki/LightweightMetricsDesign.wiki Log: Documented the runAsync light-weight metrics. Modified: wiki/LightweightMetricsDesign.wiki == --- wiki/LightweightMetricsDesign.wiki (original) +++ wiki/LightweightMetricsDesign.wiki Thu Feb 5 09:40:23 2009 @@ -75,4 +75,23 @@ } }}} -http://google-web-toolkit.googlecode.com/svn/wiki/LightweightMetricsDesign-rpc.png \ No newline at end of file +http://google-web-toolkit.googlecode.com/svn/wiki/LightweightMetricsDesign-rpc.png + += GWT runAsync Event Descriptions = +Implicit Event Object for an RPC event +{{{ +{ + moduleName: Module Name, + subSystem: ‘runAsync’, + method: Method Name, + evtGroup: Event Group, + millis: Current Time In Millis, + type: Event Type +} +}}} + +The event type is either begin or end. The event groups are: + + * download12 -- download of the code for entry point 12 + * leftoversDownload -- download of a leftovers fragment + * runCallbacks12 -- the first run of the callbacks for entry point 12 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Image doesn’t show when using sa me URL multiple times and using the new event system
Is any one having this problem? I just installed the latest version and I have the same problem. If I add a random number to each call of each url, it works. But of course this is not a real solution… Thanks --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Image doesn’t show when using sa me URL multiple times and using the new event system
Can you create a test case that is reproducible and add an issue to the issue tracker? After you do that, feel free to e-mail me the issue id and I'll take a look. The strange thing about your problem is that the load listeners are actually just adapted load handlers now, so getting different behavior is pretty unexpected. On Thu, Feb 5, 2009 at 1:21 PM, aris ari09845...@gmail.com wrote: Is any one having this problem? I just installed the latest version and I have the same problem. If I add a random number to each call of each url, it works. But of course this is not a real solution… Thanks -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Announcing GWT 1.6 Milestone 1
By the way, I should point out that Maven integration might be easier in the future. http://code.google.com/p/google-web-toolkit/issues/detail?id=1032 On Thu, Feb 5, 2009 at 9:35 AM, Arthur Kalmenson arthur.k...@gmail.comwrote: Congratulations! I'll try to give this a swing this week or next week, I hope it doesn't break the gwt-maven plugin too badly. Does anyone know when this milestone will hit the central Maven repo? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Announcing GWT 1.6 Milestone 1
Nicolas, I can't reproduce the issue you're seeing. Do you have a weird classloader setup? Or is it possible the code you have that references About needs to be recompiled? Try the following test.. create a Main.java in your GWT install directory and run the following commands. Main.java: import com.google.gwt.dev.About; public class Main { public static void main(String[] args) { System.out.println(About.GWT_NAME); System.out.println(About.GWT_SVNREV); System.out.println(About.GWT_VERSION); System.out.println(About.GWT_VERSION_NUM); } } Command line: C:\gwt-windows-1.6.0%JAVA_HOME%\bin\javac.exe -cp gwt-dev-windows.jar Main.java C:\gwt-windows-1.6.0%JAVA_HOME%\bin\java.exe -cp .;gwt-dev-windows.jar Main Google Web Toolkit 1...@4621m Google Web Toolkit 1.6.0 1.6.0 C:\sandbox\gwt-windows-1.6.0 This seems correct to me. On Thu, Feb 5, 2009 at 3:51 AM, nicolas de loof nicolas.del...@gmail.comwrote: I just notice the About class has not the GWT_VERIOSN_NUMBER set. Seems the code expects some String replacement for @gwt_vers...@. I'm using About.GWT_VERSION_NUM constant in gwt-maven-plugin to detect the GWT version used when user provides it's own implementation. Cheers, Nicolas --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Image doesn’t show when using sa me URL multiple times and using the new event system
New Issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=3340 the code is like this: public class TestImages implements EntryPoint { public void onModuleLoad() { Image img = new Image(Images/wikipedia32.gif); Image img2 = new Image(Images/wikipedia32.gif); RootPanel.get().add(img); RootPanel.get().add(img2); } } there is a screenshot1.jpg file attached to the issue TIA On Feb 5, 4:37 pm, Emily Crutcher e...@google.com wrote: Can you create a test case that is reproducible and add an issue to the issue tracker? After you do that, feel free to e-mail me the issue id and I'll take a look. The strange thing about your problem is that the load listeners are actually just adapted load handlers now, so getting different behavior is pretty unexpected. On Thu, Feb 5, 2009 at 1:21 PM, aris ari09845...@gmail.com wrote: Is any one having this problem? I just installed the latest version and I have the same problem. If I add a random number to each call of each url, it works. But of course this is not a real solution… Thanks -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---