GWT HorizontalSplitPanel
Why this program don't display corectly.Where is the problem? public class Asasaa implements EntryPoint { private DockPanel thePanel=new DockPanel(); private HorizontalSplitPanel centerPanel=new HorizontalSplitPanel(); private SimplePanel panel=new SimplePanel(); public void onModuleLoad() { Tree tree = new Tree(); TreeItem outerRoot = new TreeItem(Item 1); outerRoot.addItem(Item 1-1); outerRoot.addItem(Item 1-2); outerRoot.addItem(Item 1-3); outerRoot.addItem(new CheckBox(Item 1-4)); tree.addItem(outerRoot); TreeItem innerRoot = new TreeItem(Item 1-5); innerRoot.addItem(Item 1-5-1); innerRoot.addItem(Item 1-5-2); innerRoot.addItem(Item 1-5-3); innerRoot.addItem(Item 1-5-4); innerRoot.addItem(new CheckBox(Item 1-5-5)); panel.add(tree); panel.setSize(200px, 200px); centerPanel.setLeftWidget(panel); centerPanel.setRightWidget(panel); centerPanel.setSplitPosition(100px); thePanel.add(centerPanel,DockPanel.CENTER); RootPanel.get().add(thePanel); } } --~--~-~--~~~---~--~~ 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: Custom DialogBox with close button in tittle (GWT1.6)
Use search in this group - this topic was already discussed several times. In short - no silver bullet there - you'll have to live with hacks or implement your own widget from scratch/use an existing one from one of the many libraries. On 28 Apr., 16:52, Miroslav Genov mgenov.j...@gmail.com wrote: Hello, I have a problem with the DialogBox widget. I saw that there is a topic about this in the mail list but it's for the older versions of GWT (prior 1.6). As I saw from the documentation and also at the source of the DialogBox it seems that it's not possible adding of a widget to the title bar. Thats why I tried to extend the dialog box and to remove the old caption panel and to replace it with a new one. Here is a snippet from my code that is doing this: super(); Element td = getCellElement(0, 1); DOM.removeChild(td, ((UIObject) getCaption()).getElement()); HorizontalPanel vp2 = new HorizontalPanel(); DOM.appendChild(td, vp2.getElement()); adopt(vp2); vp2.setStyleName(Caption); HTML label = new HTML(Нов Договор); Button b = new Button(X); b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { NewSchoolContractDialog.this.hide(); } }); vp2.add(label); vp2.add(b); vp2.setCellHorizontalAlignment(label, HasHorizontalAlignment.ALIGN_LEFT); vp2.setCellHorizontalAlignment(b, HasHorizontalAlignment.ALIGN_RIGHT); vp2.setWidth(100%); Everything is looking as it has to but the problem is that the CllickHandler isn't invoked when X button is clicked. I think that the problem is caused by the original DialogBox. In the constructor of the DialogBox there are few lines which are registering few mouse events to the widget which probably is the reason that my handler is not working. Does anyone know how can I solve it? (Or maybe some better solution, because this acts as a hack). Thanks in advance Regards, Miroslav --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Two web.xml for hosted mode and real mode
Hi, I have a question concerning the web.xml files in a GWT 1.5.3 application. As we are using some none-RPC servlets we need to define them in the web.xml. As far as I understand it there are two web.xml files. One in src\main \webapp\WEB-INF\ and one in tomcat\webapps\ROOT\WEB-INF. The first one is used when the WAR is created by maven 2 and the second one is used for the hosted mode. Unfortunately we therefore have to define the servlets in both files which is obviously error-prone. Is there a way to simplify that or am I doing something wrong? Thanks in advance, Ole --~--~-~--~~~---~--~~ 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 session management with servlet-filter or with struts
Hello, I am developing one big gwt application with multiple RemoteServiceServlet. Each remote servlet is responsible for a different module. Untill now I used a quick and dirty login mechanism, but now I want to improve that. I was thinking of using an intercepting filter (javax.servlet.filter) for it in each RemoteServiceServlet which will redirect the user to the login page (a different html) when e.g. the session has timed out. However this would mean that one or more RPC requests will possibly not get responded as it is the servlet redirecting to a different page. Will this have any consequences (e.g. that after a while of time there are no resources for RPC requests left)? Now I am a newbie on struts, but I know that it allows you to do quite easily this kind of login redirections. Would it make a lot of sense to use struts for this kind of login and redirection. I am not planning to use struts for anything else. Of course, any other great ideas are always welcome. Cheers Tom --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Using a native lib (dll) when running gwt development
Hello I am having problems getting my server side code to work while doing gwt development, this since I (or rather some third party jar:s that I use) use native library's (dll:s) for some of the critical functionality of the app. I do not know how to make the native call work inside jetty, I know that inside Tomcat you can copy the jar:s working with native calls to the shared-lib directory and such... But how do I do the same in the default gwt-dev env (the one started with ant hosted)? Regards Clundahl --~--~-~--~~~---~--~~ 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: DateTimeFormat strange issue
I've solved this problem. This issue is completely unrelated to DateTimeFormat class and even GWT, sorry. I could as well ask moderators to delete this whole post as it's completely pointless. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Can't run a batch
Hi guys, I have a REALLY strange problem. This is the function I have: public static void generateXLS() { try { String[] command = { cmd.exe, /C, Start, C:// exports//convert.bat }; Process p = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(p.getInputStream ())); String line = null; while ((line = in.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } This is written on the serverside. The function is fired by a previous function, that works. The batch won't trigger for some reason, though. The strangest part is: when I copy/paste the same code in NetBeans, it works perfect. I've already tried this line instead of above: String[] command = { cmd.exe, /C, Start, C:\\exports\\convert.bat }; without any result. I'm not getting compiling errors, it just won't trigger the batch while executing the application. I'm using Eclipse, GWT and Maven. Please help!!! --~--~-~--~~~---~--~~ 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: GWT project runs slow in Hosted mode
Hi, I cannot imagine that this is a hardware issue! Since I switched to GWT 1.6.4 I had the same expierience with a 2GHz Core2Duo and 4GB RAM machine. When I start to use JS wrappers like SmartGWT or GWText the startup of the Hosted Mode and the GWT application becomes very slow. When I switch back to GWT 1.5.3 then the startup of the Hosted Mode is pretty fast again. Also the refresh of my GWT application is extremly slow with GWT 1.6.4 and SmartGWT. My assumption is that this comes from the new project structure of GWT 1.6.4 where it copies the resources from the public resources of the inherited modules of the libraries into the war directory. And even if it is copied it still takes a while until the GWT application is started. In the web mode all resources are static and also the GWT Java code is JS. So there is no linker/compiler/copier or any other process necessary to run the GWT application. Thats why it runs normally in the web mode. Currently I have no idea why this happens and also no solution for this behavior. Maybe anyone else has an idea why the behavior occurs? - Peter On 28 Apr., 13:37, Neo deepak.krv2...@gmail.com wrote: I am working on an application and I am using the following components to build my application : - GWT 1.6 - GWT EXT - Smart GWT - IBatis - MySql (Database) My machine has a RAM of 1GB. The issue I am facing is that when I test my application in hosted mode, my system becomes so slow that it almost dies. Is it because I am using GWT EXT and Smart GWT together in my application which is causing it to run slow ? However, when I run the same in Web mode (deploying as a WAR) it runs fine. As a result of this I am losing a lot of my development time. Any suggestions on how can I overcome this problem. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Cannot install Eclipse plugin
I'm setting up a new machine (Linux, Kubuntu 8.10). While attempting to install the GWT plugin I'm getting the errors below. Anyone knows what is wrong? Thanks, -a An error occurred while collecting items to be installed No repository found containing: com.google.appengine.eclipse.core/ osgi.bundle/1.0.0.v200904062334 No repository found containing: com.google.appengine.eclipse.sdkbundle/osgi.bundle/1.2.0.v200904062334 No repository found containing: com.google.appengine.eclipse.sdkbundle.e34.feature/ org.eclipse.update.feature/1.2.0.v200904062334 No repository found containing: com.google.gdt.eclipse.core/ osgi.bundle/1.0.0.v200904062334 No repository found containing: com.google.gdt.eclipse.suite/ osgi.bundle/1.0.0.v200904062334 No repository found containing: com.google.gdt.eclipse.suite.e34.feature/org.eclipse.update.feature/ 1.0.0.v200904062334 No repository found containing: com.google.gwt.eclipse.core/ osgi.bundle/1.0.0.v200904062334 No repository found containing: com.google.gwt.eclipse.sdkbundle.e34.feature/ org.eclipse.update.feature/1.6.4.v200904062334 No repository found containing: com.google.gwt.eclipse.sdkbundle.linux/osgi.bundle/1.6.4.v200904062334 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
NullPointerException in the StockWatcher on gwt-mac-1.6.4
Hi, I have a problem with the StockWatcher. I followed steps from Step 1: Creating a GWT Project to create an application and run it in hosted mode. I got this error while loading the module. I don't get this problem on Windows with version of 1.6.4. [ERROR] Unable to load module entry point class com.google.gwt.sample.stockwatcher.client.StockWatcher (see associated exception for details) java.lang.NullPointerException: null at com.google.gwt.dom.client.Document$.isCSS1Compat$(Document.java: 1250) at com.google.gwt.dom.client.Document$.getViewportElement$ (Document.java:1294) at com.google.gwt.dom.client.Document$.getClientWidth$(Document.java: 1095) at com.google.gwt.user.client.Window.getClientWidth(Window.java:537) at com.google.gwt.user.client.ui.DialogBox.init(DialogBox.java:179) at com.google.gwt.user.client.ui.DialogBox.init(DialogBox.java:153) at com.google.gwt.user.client.ui.DialogBox.init(DialogBox.java:141) at com.google.gwt.sample.stockwatcher.client.StockWatcher.onModuleLoad (StockWatcher.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:326) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:343) at com.google.gwt.dev.shell.mac.BrowserWidgetSaf.access$400 (BrowserWidgetSaf.java:35) at com.google.gwt.dev.shell.mac.BrowserWidgetSaf $ExternalObject.gwtOnLoad(BrowserWidgetSaf.java:82) at com.google.gwt.dev.shell.mac.BrowserWidgetSaf$GwtOnLoad.invoke (BrowserWidgetSaf.java:171) at org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(Native Method) at org.eclipse.swt.widgets.Display.sleep(Display.java:3801) at com.google.gwt.dev.SwtHostedModeBase.sleep(SwtHostedModeBase.java: 241) at com.google.gwt.dev.SwtHostedModeBase.processEvents (SwtHostedModeBase.java:236) at com.google.gwt.dev.HostedModeBase.pumpEventLoop (HostedModeBase.java:558) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Any help is appreciated. Thank you, Pavel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Json string parser displaying
Please find my code below: Inside action class import net.sf.json.JSON; import net.sf.json.JSONSerializer; ... ... ValueBean value = new VallueBean(); value.setPlainText(Search Result); JSON json = JSONSerializer.toJSON(writingsAssetValue); response.getWriter().write(json.toString()); Inside GWT class public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { JSONValue jsonValue = JSONParser.parse(response.getText ()); searchButton.setEnabled(true); Window.alert(jsonValue.toString()); Window.alert(jsonValue.isObject().get (plainText).toString().replace(\, )); flexTable.setHTML(row, 1, value.isObject().get (plainText).toString()); } else { // Handle the error. Can get the status text from response.getStatusText() } } The problem here is Window.alert(jsonValue.toString()); displays plainText:Search Result but i expected Window.alert(jsonValue.isObject().get (plainText).toString()) to display Search Result (with out any double quotes) but it displayed as Search Result i fixed this temp. by using replace method but i want to know whether this is the only way by which i can fix the double quote issue? or whether i am doing some thing wrong. Any help on this would be appreciated.. 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: Json string parser displaying
Hello there,In case you have JSONString then you can use .stringValue() and for numbers you can use .getValue(); there is no need to do it manually. regards, ruds On Wed, Apr 29, 2009 at 11:16 AM, newtoGWT ganesh@gmail.com wrote: Please find my code below: Inside action class import net.sf.json.JSON; import net.sf.json.JSONSerializer; ... ... ValueBean value = new VallueBean(); value.setPlainText(Search Result); JSON json = JSONSerializer.toJSON(writingsAssetValue); response.getWriter().write(json.toString()); Inside GWT class public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { JSONValue jsonValue = JSONParser.parse(response.getText ()); searchButton.setEnabled(true); Window.alert(jsonValue.toString()); Window.alert(jsonValue.isObject().get (plainText).toString().replace(\, )); flexTable.setHTML(row, 1, value.isObject().get (plainText).toString()); } else { // Handle the error. Can get the status text from response.getStatusText() } } The problem here is Window.alert(jsonValue.toString()); displays plainText:Search Result but i expected Window.alert(jsonValue.isObject().get (plainText).toString()) to display Search Result (with out any double quotes) but it displayed as Search Result i fixed this temp. by using replace method but i want to know whether this is the only way by which i can fix the double quote issue? or whether i am doing some thing wrong. Any help on this would be appreciated.. 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: Using a native lib (dll) when running gwt development
wait I just found it... just place the dll in the WINDOW/system32 lib and then it works. Not that super nice, don't want to spread out the application files, but it works so who am I to complain. //Clundahl On 29 Apr, 09:35, Clundahl claes.lund...@gmail.com wrote: Hello I am having problems getting my server side code to work while doing gwt development, this since I (or rather some third party jar:s that I use) use native library's (dll:s) for some of the critical functionality of the app. I do not know how to make the native call work inside jetty, I know that inside Tomcat you can copy the jar:s working with native calls to the shared-lib directory and such... But how do I do the same in the default gwt-dev env (the one started with ant hosted)? Regards Clundahl --~--~-~--~~~---~--~~ 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: GWT 1.6.4 compatibility with IE 6, 7 and 8
On 27 avr, 19:20, Vitali Lovich vlov...@gmail.com wrote: Have you run in hosted mode? On Windows it's a flavour of IE5 or IE6 (probably 6). Actually the hosted mode uses the installed IE runtime, so if you have IE6 installed, HostedMode/GWTShell will run IE6 and if you have IE7 installed, you'll debug against IE7 (if you have IE8, keep in mind that when embedded in an application, it defaults to compatibility view unless the app --or page, through the appropriate meta or http header-- explicitly calls for the IE=8 mode). IE8 support was added recently to trunk, so official support won't come out until the next version of GWT (unless they do a point release with support, although that seems unlikely). Note that if you turn IE8 into IE=5, IE=7 or IE=EmulateIE7 mode (through the appropriate meta or HTTP header), you'll get an IE7- compatible behavior, so the GWT apps run without (known) problem. IE8 isn't even out yet. Actually, it is since a few weeks; and it's being deployed now in Windows Update (it just appeared yesterday evening in my Vista's automatic update). --~--~-~--~~~---~--~~ 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: GWT 1.6.4 compatibility with IE 6, 7 and 8
On 27 avr, 18:15, Ben benzhe...@gmail.com wrote: I am building an application with newest release of GWT on Mac OS. The whole app is in GWT, no JSNI and the structure of the application is sorta complicated. I have couple Composite widgets and some Composite widgets have references of other Composite Widgets. For example: A extends Composite { } B extends Composite { A a = new A(); public B (A instance_a) { this.a = instance_a } } And after compile and deployment, my application works fine in Firefox and Safari, but it has JS error on all IE 6, 7 and 8. And I did some debug by putting Window.alert(msg) in the end of Entry Point and I found out one of my composite widget causes the problem. Have you been able to narrow down the error to some snippet code? How about trying to catch exceptions and Window.alert() them? (eventually, use an GWT.UncaughtExceptionHandler at the beginning of your entry point's onModuleLoad) Once I exclude it from Entry Point. The Window.alert is able to execute in IE 6,7 and 8. According to the documentation, GWT should have pretty good support for both IE 6 and 7. Does anyone have any idea what could be the possible reason for this kind of incompatibility? Without any information on the kind of error? (isn't IE giving you some info at the JS level? how about turning on the debugger? e.g. in IE8, in the appropriate IE=5 or IE=7 mode so you don't have the IE8- specific incompatibilities) --~--~-~--~~~---~--~~ 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: gwttestcase with external javascript
On 28 avr, 18:50, rocha.po...@gmail.com rocha.po...@gmail.com wrote: Hi. I apologize if this was already asked before, but i couldn't find anything in the archives or in the docs. I'm using an external javascript library, using JSNI for accessing the native javascript from my GWT java code. I include these libraries in my host page using the script tag. My question is regarding GWTTestCase(s). It seems that a www-test directory gets created with some specific hosted.html page, which i guess is the host page being used to run the tests. How do i make the external javascript library i want to use available to the test case? Reference them in your test module's gwt.xml using a script / element (you could do the same in your non-test module instead of including the script/script elements in your host page). This means you should create a test module, if you haven't already, and adjust the getModuleName return value of you GWTTestCase classes accordingly. --~--~-~--~~~---~--~~ 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 change character encoding to UTF-8
On 28 avr, 16:33, lazins...@gmail.com lazins...@gmail.com wrote: My question is how to change Character Encoding in requestBuilder. I have managed so far to change Content-Type to text/x-gwt-rpc and I can't change charset. I have tried RequestBuilder httpbuilder = new RequestBuilder(RequestBuilder.POST, URL.encode(url)); httpbuilder.setHeader(content-Type, text/x-gwt-rpc); but now I don't know what header name is for character encoding httpbuilder.setHeader(content-Type, text/x-gwt-rpc; charset=utf-8); (though i'm not sure what you're trying to do here...) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
with gwt-maps , How to manually set Marker draging state
In my project, A Custom control button on the map canvas, it named Add New Position. When I click the Add New Position button, I add a Marker on the map, Marker's LatLng onchaned by mousemove on map. How to make Marker draging state,let it float and show DragCrossImage. --~--~-~--~~~---~--~~ 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 use GWT with a proxy on windows
On 28 avr, 01:24, hortitude hortitude.eyeb...@gmail.com wrote: I really prefer developing in windows, but the server that my application is using is a remote Linux machine. It seems that the easiest way for me to continue developing on Windows is to setup a proxy on my local machine and have my GWT application connect though that. Can anyone provide some guidance as to how to set this up, and what the code would look like in my GWT application? I'd rather use either: - the -noserver mode - a proxy servlet, see http://code.google.com/p/google-web-toolkit/issues/detail?id=3131#c14 --~--~-~--~~~---~--~~ 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: Porting onEventPreview to 1.6's onPreviewNativeEvent...
On 27 avr, 22:26, Gavin Andresen gavinandre...@gmail.com wrote: First, what I'm trying to do: I've got a page with lots of hyperlinks on it (plain-old a href=... tags). When the user shift-clicks on links that match a certain pattern (e.g. /author/AUTHOR_IDENTIFIER), I popup a dialog box that lets them perform an edit INSTEAD of following the link. In GWT 1.5, I did this: public void onModuleLoad() { ... DOM.addEventPreview (this); } // // look for shift-clicks on paper/author links, and pops up // edit dialog boxes: // public boolean onEventPreview(Event event) { if (DOM.eventGetType(event) != Event.ONCLICK) { return true; } if (!event.getShiftKey()) { return true; } Element e = event.getTarget(); String href = e.getAttribute(href); if (href == null || href.length() == 0){ return true; } if (href.contains(/paper/)) { String paperPID = InterfaceUtils.getPIDFromLinkString(href, paper/); fetchPaperInfoThenEdit(paperPID); return false; } else if (href.contains(/author/)) { String authorPID = InterfaceUtils.getPIDFromLinkString(href, author/); MapString,String params = InterfaceUtils.parseURLParams(href); fetchAuthorInfoThenEdit(authorPID, params.get(fromPaper)); return false; } return true; } In 1.6, I've rewritten the code to use onPreviewNativeEvent(), but it's not working; if I cancel() or consume() (or both) the NativePreviewEvent, the browser STILL follows the link. If you consume() the event, it'll be propagated to the link and cannot be canceled by another NativePreviewHandler; so consume() is really not the method you should be using here. Re. cancel(), first check if the vent hasn't already been consumed()d by a preview handler, with pe.isConsumed(), or eventually check that you are the first handler (pe.isFirstHandler()). I have no other idea... (apart from a possible bug in GWT...) --~--~-~--~~~---~--~~ 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: with gwt-maps , How to manually set Marker draging state
Hi, When you create the marker, you can set the dragging behavior by passing a MarkerOptions object in the constructor. Then, if you want to turn dragging on/off use marker.setDraggingEnabled(); See the javadoc at http://code.google.com/docreader/#p=gwt-google-apiss=gwt-google-apist=MapsJavadoc As an aside, there are a few changes in the next release that add support for GDraggableObject, which allows you to create custom objects (not just Markers) and make them draggable on the map. Hope that helps, -Eric. On Wed, Apr 29, 2009 at 6:26 AM, Tail jft...@gmail.com wrote: In my project, A Custom control button on the map canvas, it named Add New Position. When I click the Add New Position button, I add a Marker on the map, Marker's LatLng onchaned by mousemove on map. How to make Marker draging state,let it float and show DragCrossImage. -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://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: Can't run a batch
Why do you think this is related to GWT? Ian http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl Hi guys, I have a REALLY strange problem. This is the function I have: public static void generateXLS() { try { String[] command = { cmd.exe, /C, Start, C:// exports//convert.bat }; Process p = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(p.getInputStream ())); String line = null; while ((line = in.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } This is written on the serverside. The function is fired by a previous function, that works. The batch won't trigger for some reason, though. The strangest part is: when I copy/paste the same code in NetBeans, it works perfect. I've already tried this line instead of above: String[] command = { cmd.exe, /C, Start, C:\\exports\\convert.bat }; without any result. I'm not getting compiling errors, it just won't trigger the batch while executing the application. I'm using Eclipse, GWT and Maven. Please help!!! --~--~-~--~~~---~--~~ 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: GWT HorizontalSplitPanel
It would help if you said what 'program don't display corectly' means. What are you expecting? What do you get? Ian http://examples.roughian.com 2009/4/29 grigoregeorge grigoregeorge631...@gmail.com Why this program don't display corectly.Where is the problem? public class Asasaa implements EntryPoint { private DockPanel thePanel=new DockPanel(); private HorizontalSplitPanel centerPanel=new HorizontalSplitPanel(); private SimplePanel panel=new SimplePanel(); public void onModuleLoad() { Tree tree = new Tree(); TreeItem outerRoot = new TreeItem(Item 1); outerRoot.addItem(Item 1-1); outerRoot.addItem(Item 1-2); outerRoot.addItem(Item 1-3); outerRoot.addItem(new CheckBox(Item 1-4)); tree.addItem(outerRoot); TreeItem innerRoot = new TreeItem(Item 1-5); innerRoot.addItem(Item 1-5-1); innerRoot.addItem(Item 1-5-2); innerRoot.addItem(Item 1-5-3); innerRoot.addItem(Item 1-5-4); innerRoot.addItem(new CheckBox(Item 1-5-5)); panel.add(tree); panel.setSize(200px, 200px); centerPanel.setLeftWidget(panel); centerPanel.setRightWidget(panel); centerPanel.setSplitPosition(100px); thePanel.add(centerPanel,DockPanel.CENTER); RootPanel.get().add(thePanel); } } --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Regarding GWT EXT 2.0.6 download
Today I downloaded GWT EXT 2.0.6. But when I unzip the file, the folder which gets extracted to my machine is GWT EXT 2.0.5. I guess the wrong file has been uploaded in the server. Is there any other way to download GWT EXT 2.0.6 ? --~--~-~--~~~---~--~~ 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: Question: Portlet JSR 286 Support for GWT
does noone have an input to this subject? On Apr 27, 1:55 pm, Nail Ünlü nail.uen...@gmail.com wrote: In general it's important that you know the new portlet specification as its vital for our decision. But i will neverthelesse answer your points as you made the effort to answer mine :-) If all developers use your library at one point all widgets go through your library, then you can guarantee the div gets the namespace somehow added to the ID. That somehow is what im interested in :-) I can overwrite a component and implement my own naming, where i try to respect my own conventions. But, as im not in the portlet code but much more in my GWT-extended Class, there's no way how i can reach the portlet specific information. I'm not familiar with the JSR (wonder how many people here are). Can you expand on the requirement? You can create URL's by tag's that can be called from any portlet that causes a call of an internal portlet function...like doing a POST on the doPost of a servlet. The same goes for RenderURL's...if i create a Render URL and call a specific page, all portlets on this page are getting their doView method called, so that they can do their render operations. Please clarify the requirement here. It's possible to do some level of communication between GWT modules that are on 1 page. Not trivial, but possible (but I believe they would have to expose some kind of non-conflicting interface, in terms of the function name), but these apps would have to be created to begin with with the expectation of being used as a JS library. However, making a GWT-enabled-Portlet can just be a simple inherits away. My concern is not a GWT-specific communicaton (which could come handy for sure) but more a JSR 286 supported way. Only this can ensure, that we can integrate external portlets, which are supporting this standard. --~--~-~--~~~---~--~~ 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't run a batch
On Apr 29, 1:08 pm, Ian Bambury ianbamb...@gmail.com wrote: Why do you think this is related to GWT? Ian Cause it's working perfectly in Netbeans, and the compile gives no errors. http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl Hi guys, I have a REALLY strange problem. This is the function I have: public static void generateXLS() { try { String[] command = { cmd.exe, /C, Start, C:// exports//convert.bat }; Process p = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(p.getInputStream ())); String line = null; while ((line = in.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } This is written on the serverside. The function is fired by a previous function, that works. The batch won't trigger for some reason, though. The strangest part is: when I copy/paste the same code in NetBeans, it works perfect. I've already tried this line instead of above: String[] command = { cmd.exe, /C, Start, C:\\exports\\convert.bat }; without any result. I'm not getting compiling errors, it just won't trigger the batch while executing the application. I'm using Eclipse, GWT and Maven. Please help!!!- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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't run a batch
OK. I don't know how much experience you have, but my first question would be: How do you know it hasn't run - i.e. where do you look for a result? Ian http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl On Apr 29, 1:08 pm, Ian Bambury ianbamb...@gmail.com wrote: Why do you think this is related to GWT? Ian Cause it's working perfectly in Netbeans, and the compile gives no errors. http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl Hi guys, I have a REALLY strange problem. This is the function I have: public static void generateXLS() { try { String[] command = { cmd.exe, /C, Start, C:// exports//convert.bat }; Process p = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(p.getInputStream ())); String line = null; while ((line = in.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } This is written on the serverside. The function is fired by a previous function, that works. The batch won't trigger for some reason, though. The strangest part is: when I copy/paste the same code in NetBeans, it works perfect. I've already tried this line instead of above: String[] command = { cmd.exe, /C, Start, C:\\exports\\convert.bat }; without any result. I'm not getting compiling errors, it just won't trigger the batch while executing the application. I'm using Eclipse, GWT and Maven. Please help!!!- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 change character encoding to UTF-8
I am trying to call ordinary servlet via spring (I am using gwt-sl library and GWTHandler class) and requestbuilder in GWT (POST method). When I am trying to do that without setting any header a get error: 1. Content-Type was 'text/plain; charset=utf-8'. Expected 'text/x-gwt- rpc so I am changing header Content-Type to text/x-gwt-rpc by httpbuilder.setHeader(content-Type, text/x-gwt-rpc); but then I am get error : 2. Character Encoding is '(null)'. Expected 'charset=utf-8' so I am trying like you suggest: httpbuilder.setHeader(content-Type, text/x-gwt-rpc; charset=utf-8); but I get error: 3. encodedRequest cannot be empty that is why I wanted to know header name for Character Encoding to be not of the part content-type but when I look closer to those errors numbers 1 and 2 comes from com.google.gwt.user.server.rpc.RPCServletUtils and number 3 from org.gwtwidgets.server.spring.GWTRPCServiceExporter caused by com.google.gwt.user.server.rpc.RPC.decodeRequest I am new at spring and GWT :) On 29 Kwi, 12:25, Thomas Broyer t.bro...@gmail.com wrote: On 28 avr, 16:33, lazins...@gmail.com lazins...@gmail.com wrote: My question is how to change Character Encoding in requestBuilder. I have managed so far to change Content-Type to text/x-gwt-rpc and I can't change charset. I have tried RequestBuilder httpbuilder = new RequestBuilder(RequestBuilder.POST, URL.encode(url)); httpbuilder.setHeader(content-Type, text/x-gwt-rpc); but now I don't know what header name is for character encoding httpbuilder.setHeader(content-Type, text/x-gwt-rpc; charset=utf-8); (though i'm not sure what you're trying to do here...) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Image Bundle fails in GWT 1.6 hosted mode and IE
While I expected Image bundle to improve my home page loading experience, it blows up both in GWT 1.6 hosted mode and IE. When i Googled it, It seems, this is an age old problem with GWT and it is recurring again. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?
Anyway... Using the tip from the issues list (set URL in deferred command) I can get reliable execution of LoadListener on IE, as well as Safari and FF. Now I have a different problem. In IE it seems that an image has dimensions 0 x 0 until visible, even if it is loaded. Is there any way around that? Here is my test program. On Safari and FF I get size 120,90 for the image, even before it is made visible. In IE size is 0,0 until made visible. final RootPanel rootPanel = RootPanel.get(jobList); final String url = http://arstechnica.com/mt-static/plugins/ArsTheme/style/themes/ light/images/logo.png; final Image image = new Image(); final Label l = new Label(Not loaded yet, size + image.getWidth () + , + image.getHeight()); rootPanel.add(l); image.setVisible(false); LoadListener ll = new LoadListener() { public void onError(Widget sender) { l.setText(Failed); } public void onLoad(Widget sender) { l.setText(Success, size + image.getWidth() + , + image.getHeight()); rootPanel.add(new Button(Make visible, new ClickListener() { public void onClick(Widget sender) { image.setVisible(true); l.setText(Visible, size + image.getWidth() + , + image.getHeight()); }})); } }; image.addLoadListener(ll); rootPanel.add(image); DeferredCommand.addCommand(new Command(){ public void execute() { image.setUrl(url); } }); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Lack of availability of GWT Google Latitude API
While Google Latitude looks great, the lack of availability of Latitude API is stopping developers from producing quality realtime applications. More on my blog: http://blogs.eforceglobal.com/rabdul/archive/2009/04/28/533.aspx --~--~-~--~~~---~--~~ 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: GWT 1.6 - strange warning in hostedmode
Unfortunately there is no additional information provided in the log window. Only this one line. When I remove security-constraint, login-config and security-role configuration from web.xml, I get no warning. On Apr 28, 10:55 pm, Miguel Méndez mmen...@google.com wrote: If you are running the code in hosted mode the GWT log window should also contain some additional information. Specifically, something along the lines of: com.google.apphosting.utils.config.AppEngineConfigException: .../war/WEB-INF/web.xml: Unknown role-name: must be '*' or 'admin' On Tue, Apr 28, 2009 at 4:33 PM, misqu23 misq...@gmail.com wrote: Hello Recently I have switched to the GWT 1.6, everything works fine except warning in the hostedmode [WARN] Unable to process 'file:/home/misiek/dev/workspace/gui/war/WEB- INF/web.xml' for servlet validation javax.servlet.UnavailableException: Configuration problem at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize (WebXmlConfiguration.java:298) at org.mortbay.jetty.webapp.WebXmlConfiguration.configure (WebXmlConfiguration.java:222) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java: 68) at com.google.gwt.dev.ServletValidator.create(ServletValidator.java: 51) at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:344) at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Does anybody know what is the cause of this warning. I'm using Google Eclipe Plugin. I'm running hosted mode without embedded jetty server. Here is my web.xml : ?xml version=1.0 encoding=UTF-8? web-app id=WebApp_ID version=2.5 xmlns=http://java.sun.com/xml/ ns/javaee http://java.sun.com/xml/%0Ans/javaee xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; display-namegui/display-name servlet display-nameSessionServiceImpl/display-name servlet-nameSessionServiceImpl/servlet-name servlet-classsmartoffice.rpc.server.services.SessionServiceImpl/ servlet-class /servlet servlet display-nameUserServiceImpl/display-name servlet-nameUserServiceImpl/servlet-name servlet-classsmartoffice.rpc.server.services.UserServiceImpl/ servlet-class /servlet servlet-mapping servlet-nameSessionServiceImpl/servlet-name url-pattern/basic/session/url-pattern /servlet-mapping servlet-mapping servlet-nameSessionServiceImpl/servlet-name url-pattern/pro/session/url-pattern /servlet-mapping servlet-mapping servlet-nameUserServiceImpl/servlet-name url-pattern/login/user/url-pattern /servlet-mapping !-- more servlets configurations -- session-config session-timeout30/session-timeout /session-config welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list security-constraint web-resource-collection web-resource-nameProtected resources/web-resource-name url-pattern/basic/*/url-pattern url-pattern/pro/*/url-pattern url-pattern/pro.html/url-pattern url-pattern/basic.html/url-pattern http-methodGET/http-method http-methodPOST/http-method http-methodHEAD/http-method http-methodPUT/http-method http-methodOPTIONS/http-method http-methodTRACE/http-method http-methodDELETE/http-method /web-resource-collection auth-constraint role-nameUSER/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/login.jsp?error=true/form-error-page /form-login-config /login-config security-role descriptionThe role required to login to application/ description role-nameUSER/role-name /security-role /web-app Thank's a lot. Martin -- Miguel --~--~-~--~~~---~--~~ 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: Communicate w/ existing GWT-RPC service
To simple reuse the services classes and the vo classes I would separate them in a diferent module... export them...(with the .java) and reuse on another module... the main point in my opinion would be to configurate the service url... On Apr 28, 3:30 pm, JoeB joe.berm...@gmail.com wrote: I get the general idea, but I'm a little unclear on implementing the non-GWT interface in parallel to GWT-RPC. The beauty of GWT-RPC is that the ValueObjects I create in my client package are automatically serialized/deserialized by GWT, and my client code and server code are developed with the same Java class. If I want to make the same ValueObjects accessible via a different interface (e.g. REST, SOAP, etc), then that means I'll have to transform them into some protocol on the wire (e.g. convert to XML or JSON). The tricky part is that the ValueObject classes are defined in the GWT client package, but they need to be modified in some way to perform this server-side transformation for a different interface, and that transformation code shouldn't leak into the GWT client. I guess what I'm saying is that it seems like a problem that the ValueObjects are defined in the client package because they need to be used for a non-GWT interface in the server. Know what I mean? -- Joe --~--~-~--~~~---~--~~ 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 Loading slider
I'm trying to create a loading slider much like the one from gmail (when loading an account) So i made a simple gadget with a horizontal panel that has a gray background let's say, and when the application passes through a checkpoint, it updates the slider Ex the slider has a max width of 300 px, and can be updated at a certain percent: updateSlider(30) etc.. witch does this: hpSlider.setWidth(newWidth). (i have tested it with a timer and it works) When i sign in, the application (client) makes a series of requests in a certain order (ex: first requests some info, then language, then checks session, etc) at each request, the slider is updated (the updateSlider(#) method is called) and it is also visually updated (so far so good) Problem: when i load the rest of the javascript (ex: 4 big gadgets that require about 500 ms each, one of the about 1 sec) i also call updateSlider() after each of then loads, but it does not update the slider visully Does the browser or GWT knows that the elements are constructed one after another and it waits until all of them are loaded and than updates the UI? Or is there another pb? Can i use another widget? or does GWT has a similar widget ? Thx --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
java policy settings for hosted jetty runtime
I'm having complications getting the application to communicated with a remote SQLServer Instance due to a policy issue. I've updated the java policy to allow connect/resolve, but no go. Any ideas why this might be occurring? I'm looking through the jetty docs at the moment, trying to find anything related to configuration settings. Regards, Jonathan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
SuggestionBox Too Large for Screen?
Hi all, I have a suggestionbox that, when containing a large number of items, has a height taller than the screen. The users can see the suggestions that are off the screen by using a scrollwheel, but they cannot select them. The minute the user tries to select a suggestion, the browser scrolls back to the orginal visible space(ie the top of the screen) Does anyone else have this problem and is it possible to place the popup from a suggestionbox into a ScrollPanel? Using GWT 1.6.2 on Windows. Thanks, - Elam --~--~-~--~~~---~--~~ 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 unable to display motion chart
hi all, i tested the motion chart from the gwt-visualization api. it doesn't work on teh hosted mode but when i compiled and run on firefox. it works perfectly. anybody encountered this too? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Configuring Jetty in GWT 1.6 hosted mode
Dear all, I'm upgrading from gwt 1.5 to gwt 1.6. How can i configure the built-in Jetty servlet container? I need to specify a datasource that can be accessed from within my application. (I'm using the eclipse plugin and i can find no reference whatsoever to the jetty container in my gwt1.6 project. IMHO, support for jetty configuration is a BIG candidate for improvement, either by documentation or by support tools.) Thanks, Mike --~--~-~--~~~---~--~~ 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't run a batch
My experience is very little, my source for checking is the batch file self. In NetBeans, the batch gets executed perfectly. The batch is used to convert a .csv file into a .xls, and delete the .csv. I just can't imagine why the batch would be the problem if it runs well in another development enviroment. On Apr 29, 1:36 pm, Ian Bambury ianbamb...@gmail.com wrote: OK. I don't know how much experience you have, but my first question would be: How do you know it hasn't run - i.e. where do you look for a result? Ian http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl On Apr 29, 1:08 pm, Ian Bambury ianbamb...@gmail.com wrote: Why do you think this is related to GWT? Ian Cause it's working perfectly in Netbeans, and the compile gives no errors. http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl Hi guys, I have a REALLY strange problem. This is the function I have: public static void generateXLS() { try { String[] command = { cmd.exe, /C, Start, C:// exports//convert.bat }; Process p = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(p.getInputStream ())); String line = null; while ((line = in.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } This is written on the serverside. The function is fired by a previous function, that works. The batch won't trigger for some reason, though. The strangest part is: when I copy/paste the same code in NetBeans, it works perfect. I've already tried this line instead of above: String[] command = { cmd.exe, /C, Start, C:\\exports\\convert.bat }; without any result. I'm not getting compiling errors, it just won't trigger the batch while executing the application. I'm using Eclipse, GWT and Maven. Please help!!!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Run a Servlet web application on android i-jetty server.
I've been trying to deploy a war to run a servlet web app on i-jetty server. The war worked fine on Tomcat server, but didn't on i-jetty. I also tried to build a war from the hello sample code, and didn't work although the ready built war worked fine. How can I build and run a war to make it work inside android in i- jetty server? What do I need to do? How can I compile the code? --~--~-~--~~~---~--~~ 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't run a batch
The thing is, you have to work out where the failure is happening. If you know that the batch file isn't being called, then it must be failing before that (by 'failing' I don't just mean error, but include logic errors that mean things don't get called). Personally, I'd put an alert in the routine that does the RPC call just before you make the call. If you see that, then you can start checking the server-side code, if you don't then you can move the alert back from the RPC until you find a place where it is actually executed and see what is going wrong there. It *might* be a GWT problem, but you really need to determine what is going wrong and where. A batch file not running on the server is more likely to be a logic error (therefore a 'Java programming' problem rather than a GWT problem.) Ian http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl My experience is very little, my source for checking is the batch file self. In NetBeans, the batch gets executed perfectly. The batch is used to convert a .csv file into a .xls, and delete the .csv. I just can't imagine why the batch would be the problem if it runs well in another development enviroment. On Apr 29, 1:36 pm, Ian Bambury ianbamb...@gmail.com wrote: OK. I don't know how much experience you have, but my first question would be: How do you know it hasn't run - i.e. where do you look for a result? Ian http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl On Apr 29, 1:08 pm, Ian Bambury ianbamb...@gmail.com wrote: Why do you think this is related to GWT? Ian Cause it's working perfectly in Netbeans, and the compile gives no errors. http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl Hi guys, I have a REALLY strange problem. This is the function I have: public static void generateXLS() { try { String[] command = { cmd.exe, /C, Start, C:// exports//convert.bat }; Process p = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(p.getInputStream ())); String line = null; while ((line = in.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } This is written on the serverside. The function is fired by a previous function, that works. The batch won't trigger for some reason, though. The strangest part is: when I copy/paste the same code in NetBeans, it works perfect. I've already tried this line instead of above: String[] command = { cmd.exe, /C, Start, C:\\exports\\convert.bat }; without any result. I'm not getting compiling errors, it just won't trigger the batch while executing the application. I'm using Eclipse, GWT and Maven. Please help!!!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: Image Bundle fails in GWT 1.6 hosted mode and IE
On 29 avr, 13:59, Rafiq rafiq...@gmail.com wrote: While I expected Image bundle to improve my home page loading experience, it blows up both in GWT 1.6 hosted mode and IE. When i Googled it, It seems, this is an age old problem with GWT and it is recurring again. AFAICT, this won't be the case anymore in the next 1.6.x release in IE7 and IE8 (will still be an issue in IE6). ...though it depends which problem you're facing (there's also the IE limitation about the width of the image bundle, I don't know if it'll go away with the removal of AlphaImageLoader for IE7+) --~--~-~--~~~---~--~~ 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 change character encoding to UTF-8
On 29 avr, 13:45, lazins...@gmail.com lazins...@gmail.com wrote: I am trying to call ordinary servlet via spring (I am using gwt-sl library and GWTHandler class) and requestbuilder in GWT (POST method). AFAICT from the GWT-SL docs, GWTHandler is not an ordinary servlet, it is based on GWT-RPC; which means you should use GWT-RPC and not a plain old^^^low-level RequestBuilder. An ordinary servlet would be called as you'd expect; GWT-RPC expects a particular request payload (method arguments, serialized in GWT-RPC special format, hence the Content-Type: text/x-gwt-rpc) The GWT-SL docs are quite clear on how to write the client-side GWT code to work with GWTHandler (i.e. GWT-RPC). --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Tree item selection selecting parent element
Hi all, This is about the selecting an item in the GWT tree. If mouse is clicked to a little left of the item, the parent of the item is getting selected. If the distance is little more, the parent of the parent is selected and so on. Is this an issue in Tree? Regards, Ganesh --~--~-~--~~~---~--~~ 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't run a batch
Why not just step through the code in a debugger? Put breakpoints on both ends of the RPC call go from there. On Wed, Apr 29, 2009 at 9:59 AM, Ian Bambury ianbamb...@gmail.com wrote: The thing is, you have to work out where the failure is happening. If you know that the batch file isn't being called, then it must be failing before that (by 'failing' I don't just mean error, but include logic errors that mean things don't get called). Personally, I'd put an alert in the routine that does the RPC call just before you make the call. If you see that, then you can start checking the server-side code, if you don't then you can move the alert back from the RPC until you find a place where it is actually executed and see what is going wrong there. It *might* be a GWT problem, but you really need to determine what is going wrong and where. A batch file not running on the server is more likely to be a logic error (therefore a 'Java programming' problem rather than a GWT problem.) Ian http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl My experience is very little, my source for checking is the batch file self. In NetBeans, the batch gets executed perfectly. The batch is used to convert a .csv file into a .xls, and delete the .csv. I just can't imagine why the batch would be the problem if it runs well in another development enviroment. On Apr 29, 1:36 pm, Ian Bambury ianbamb...@gmail.com wrote: OK. I don't know how much experience you have, but my first question would be: How do you know it hasn't run - i.e. where do you look for a result? Ian http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl On Apr 29, 1:08 pm, Ian Bambury ianbamb...@gmail.com wrote: Why do you think this is related to GWT? Ian Cause it's working perfectly in Netbeans, and the compile gives no errors. http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl Hi guys, I have a REALLY strange problem. This is the function I have: public static void generateXLS() { try { String[] command = { cmd.exe, /C, Start, C:// exports//convert.bat }; Process p = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(p.getInputStream ())); String line = null; while ((line = in.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } This is written on the serverside. The function is fired by a previous function, that works. The batch won't trigger for some reason, though. The strangest part is: when I copy/paste the same code in NetBeans, it works perfect. I've already tried this line instead of above: String[] command = { cmd.exe, /C, Start, C:\\exports\\convert.bat }; without any result. I'm not getting compiling errors, it just won't trigger the batch while executing the application. I'm using Eclipse, GWT and Maven. Please help!!!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: Porting onEventPreview to 1.6's onPreviewNativeEvent...
Right: Instead of cancelling or consuming the NativePreviewEvent object, it looks like I need to preventDefault on the NativeEvent object. I guess I need to find a good DOM event model reference and read it another six or seven times... So now the link is not followed, but my dialog box isn't being created, either. Is it illegal to create a Widget inside an onPreviewNativeEvent method? I'm going to try encapsulating it in a com.google.gwt.user.client.Command, but it would be really nice if the documentation for onPreviewNativeEvent was better. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Image size
Hi I have the following code snippet, Image logo = new Image(images/logo.png); logo.setSize(153px, 14px); The logo.png has the size of 153 x 14, and I have to specify this size before adding to a FlowPanel. Otherwise, the image will be resized (scratched to bigger size) automatically and become ugly. Can GWT takes the image size automatically without having us to specify them? It's going to be tedious with several images. Thank you! -- Hez --~--~-~--~~~---~--~~ 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: Porting onEventPreview to 1.6's onPreviewNativeEvent...
For anybody trying to do something similar, my working code (using event.preventDefault, and using DeferredCommand did the trick): // // Preview events-- look for shift-clicks on paper/author links, and pops up // edit dialog boxes: // public void onPreviewNativeEvent(Event.NativePreviewEvent pe) { NativeEvent e = pe.getNativeEvent(); if (Event.getTypeInt(e.getType()) != Event.ONCLICK) { return; } if (!e.getShiftKey()) { return; } EventTarget target = e.getEventTarget(); if (!Element.is(target)) { return; } Element elt = Element.as(target); String href = elt.getAttribute(href); if (href == null || href.length() == 0){ return; } if (href.contains(/paper/)) { e.preventDefault(); final String paperPID = InterfaceUtils.getPIDFromLinkString (href, paper/); DeferredCommand.addCommand(new Command() { public void execute() { fetchPaperInfoThenEdit(paperPID); } }); } else if (href.contains(/author/)) { e.preventDefault(); final String authorPID = InterfaceUtils.getPIDFromLinkString (href, author/); MapString,String params = InterfaceUtils.parseURLParams(href); final String fromPaperPID = params.get(fromPaper); DeferredCommand.addCommand(new Command() { public void execute() { fetchAuthorInfoThenEdit(authorPID, fromPaperPID); } }); } } --~--~-~--~~~---~--~~ 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't run a batch
I've written this code now: public static void generateXLS() { try { FileWriter schrijver = new FileWriter(c:\\test.txt); String[] command = { C://exports//convert.bat }; Process p = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(p.getInputStream ())); String line = null; while ((line = in.readLine()) != null) { schrijver.append(line); } schrijver.flush(); schrijver.close(); } catch (IOException e) { e.printStackTrace(); } } When I use Netbeans, the textfile contains the batch commands. Trying the same code in Eclipse, the textfile remains empty. It really seems like the batch isn't triggered... Debugger doesn't work on my project, don't ask why :( On Apr 29, 3:59 pm, Ian Bambury ianbamb...@gmail.com wrote: The thing is, you have to work out where the failure is happening. If you know that the batch file isn't being called, then it must be failing before that (by 'failing' I don't just mean error, but include logic errors that mean things don't get called). Personally, I'd put an alert in the routine that does the RPC call just before you make the call. If you see that, then you can start checking the server-side code, if you don't then you can move the alert back from the RPC until you find a place where it is actually executed and see what is going wrong there. It *might* be a GWT problem, but you really need to determine what is going wrong and where. A batch file not running on the server is more likely to be a logic error (therefore a 'Java programming' problem rather than a GWT problem.) Ian http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl My experience is very little, my source for checking is the batch file self. In NetBeans, the batch gets executed perfectly. The batch is used to convert a .csv file into a .xls, and delete the .csv. I just can't imagine why the batch would be the problem if it runs well in another development enviroment. On Apr 29, 1:36 pm, Ian Bambury ianbamb...@gmail.com wrote: OK. I don't know how much experience you have, but my first question would be: How do you know it hasn't run - i.e. where do you look for a result? Ian http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl On Apr 29, 1:08 pm, Ian Bambury ianbamb...@gmail.com wrote: Why do you think this is related to GWT? Ian Cause it's working perfectly in Netbeans, and the compile gives no errors. http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl Hi guys, I have a REALLY strange problem. This is the function I have: public static void generateXLS() { try { String[] command = { cmd.exe, /C, Start, C:// exports//convert.bat }; Process p = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(p.getInputStream ())); String line = null; while ((line = in.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } This is written on the serverside. The function is fired by a previous function, that works. The batch won't trigger for some reason, though. The strangest part is: when I copy/paste the same code in NetBeans, it works perfect. I've already tried this line instead of above: String[] command = { cmd.exe, /C, Start, C:\\exports\\convert.bat }; without any result. I'm not getting compiling errors, it just won't trigger the batch while executing the application. I'm using Eclipse, GWT and Maven. Please help!!!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Google Calendar embeded in my webapp
Hi all, I'd like to embed a google calendar into my webapp. Is it possible? The server side of my webapp will add/remove events from that google calendar and anything else. Does exist some Google Calendar widget? thanks you all! --~--~-~--~~~---~--~~ 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't run a batch
It's worth working out why your debugger doesn't work...it really should and is very useful. Anyway, it could be that your problem is that you don't call p.waitFor() after starting the process - this is because when you call Runtime.exec() it runs the command in a separate process, and your code may complete before that process has finished its work. HTH Paul Scientist wrote: I've written this code now: public static void generateXLS() { try { FileWriter schrijver = new FileWriter(c:\\test.txt); String[] command = { C://exports//convert.bat }; Process p = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(p.getInputStream ())); String line = null; while ((line = in.readLine()) != null) { schrijver.append(line); } schrijver.flush(); schrijver.close(); } catch (IOException e) { e.printStackTrace(); } } When I use Netbeans, the textfile contains the batch commands. Trying the same code in Eclipse, the textfile remains empty. It really seems like the batch isn't triggered... Debugger doesn't work on my project, don't ask why :( On Apr 29, 3:59 pm, Ian Bambury ianbamb...@gmail.com wrote: The thing is, you have to work out where the failure is happening. If you know that the batch file isn't being called, then it must be failing before that (by 'failing' I don't just mean error, but include logic errors that mean things don't get called). Personally, I'd put an alert in the routine that does the RPC call just before you make the call. If you see that, then you can start checking the server-side code, if you don't then you can move the alert back from the RPC until you find a place where it is actually executed and see what is going wrong there. It *might* be a GWT problem, but you really need to determine what is going wrong and where. A batch file not running on the server is more likely to be a logic error (therefore a 'Java programming' problem rather than a GWT problem.) Ian http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl My experience is very little, my source for checking is the batch file self. In NetBeans, the batch gets executed perfectly. The batch is used to convert a .csv file into a .xls, and delete the .csv. I just can't imagine why the batch would be the problem if it runs well in another development enviroment. On Apr 29, 1:36 pm, Ian Bambury ianbamb...@gmail.com wrote: OK. I don't know how much experience you have, but my first question would be: How do you know it hasn't run - i.e. where do you look for a result? Ian http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl On Apr 29, 1:08 pm, Ian Bambury ianbamb...@gmail.com wrote: Why do you think this is related to GWT? Ian Cause it's working perfectly in Netbeans, and the compile gives no errors. http://examples.roughian.com 2009/4/29 Scientist ma...@gl-power.nl Hi guys, I have a REALLY strange problem. This is the function I have: public static void generateXLS() { try { String[] command = { cmd.exe, /C, Start, C:// exports//convert.bat }; Process p = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(p.getInputStream ())); String line = null; while ((line = in.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } This is written on the serverside. The function is fired by a previous function, that works. The batch won't trigger for some reason, though. The strangest part is: when I copy/paste the same code in NetBeans, it works perfect. I've already tried this line instead of above: String[] command = { cmd.exe, /C, Start, C:\\exports\\convert.bat }; without any result. I'm not getting compiling errors, it just won't trigger the batch while executing the application. I'm using Eclipse, GWT and Maven. Please help!!!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,
Re: Configuring Jetty in GWT 1.6 hosted mode
You and me both! On Wed, Apr 29, 2009 at 9:29 AM, Mike mcwe...@gmail.com wrote: Dear all, I'm upgrading from gwt 1.5 to gwt 1.6. How can i configure the built-in Jetty servlet container? I need to specify a datasource that can be accessed from within my application. (I'm using the eclipse plugin and i can find no reference whatsoever to the jetty container in my gwt1.6 project. IMHO, support for jetty configuration is a BIG candidate for improvement, either by documentation or by support tools.) Thanks, Mike --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Unable to find 'net/roarsoftware/lastfm.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
Hi! I have spent the whole day trying to fix this simple problem and not found the solution. I will describe exactly what i have done so it will be easier to solve. this is what i want to do. Using the last fm api, I want to simply get the weekly charts over played songs. This is how i do it * start a new web application project and name it testLastFM and name the package com.lfm. *go to java build path/ libraries and add the jar-file last.fm- bindings.jar, which is the last-fm api. *go to com.lfm.client/testLastFM to the method onClick which is the default clickhandler for the button and add ChartArtist chart = User.getWeeklyArtistChart(user, 10, key);. this will simply get weekly chart for the user. Heres is the result when i run the program [ERROR] Unable to find 'net/roarsoftware/lastfm.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? How do i fix this? --~--~-~--~~~---~--~~ 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 deploy gwt project on sun server
Hi, I have to run my gwt project on a sun server.But I don't know how to do it.Are there any tutorial, any documant or any example of how to deploy a gwt project on a sun server. Thanks. Best Regards. ozgur okka --~--~-~--~~~---~--~~ 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 KML overlay in GWT
Hi, I read other posts regarding this but still can't see to get the solutions to work. I like to know if someone can show me which files need to be changes in GWT to be able to generate an overlay using KML file I generated. The file will be in standard local directory that GWT app resides. I am using GWT 1.5.3 and gwt-maps.1.0.3 api library. I can get a KML file that is located on publicly accessible website to overlay onto my map like the Hello Maps example at the GWT Maps API website. Does the restriction of the file has to be on a publicly accessible web server still apply for the GeoXmlOverlay or is there a workaround? With Javascript there are 3rd party libraries that provide a way to use local KML files to generate an overlay. Do I need to add something to my gwt.xml file to locate the KML file? Here is how I have my gwt.xml file configured: inherits name=com.google.gwt.maps.GoogleMaps / script src=http://maps.google.com/maps? gwt=1amp;file=apiamp;v=2amp;key=ABQIeXP6Iezsfo3MuBh97QMhuRRMCmFxJkLxVcWXTKDgRTyjLNh59RS6x2V7LJKYSxVPfUabFGy65Y4TOA/ public path=overlayfile.kml / !-- Specify the app entry point class. -- entry-point class='gov.ca.dot.it.carmap.client.CARMap'/ /module Here is code from my main module loading the KML file: GeoXmlLoadCallback geoCallback=new GeoXmlLoadCallback(){ @Override public void onFailure(String url, Throwable caught) { url = failure, no values retrieved; Window.alert(url); } @Override public void onSuccess(String url, GeoXmlOverlay overlay) { map.addOverlay(overlay); url = success points retrieved; Window.alert(url); }}; GeoXmlOverlay.load(overlayfile.kml, geoCallback); //Add the map to the HTML host page RootPanel.get(StateMap).add(map); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Scrollbar in GWT
I need to create a scrollbar in such a way that. when the user clicks on the down arrow he needs to go to the next page and whrn he clicks the up arrow he needs to go to the previous page. i could find the scroll event but it is firing continiously. i need it to fire just once .. Any pointers will be helpfull.. 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 -~--~~~~--~~--~--~---
Is there a Powered by Google Web Toolkit icon available anywhere
In the download area of Google App Engine there are some buttons with Powered by Google App Engine for free use. ( http://code.google.com/intl/de-DE/appengine/downloads.html ) Is there anything similar for the web toolkit? I can't find it? Regards Alfred --~--~-~--~~~---~--~~ 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: GWT HorizontalSplitPanel
I rezolve the problem, i forgot to put the size of the main panel : thePane.setSize(100%,100%); On 29 Apr, 14:11, Ian Bambury ianbamb...@gmail.com wrote: It would help if you said what 'program don't display corectly' means. What are you expecting? What do you get? Ian http://examples.roughian.com 2009/4/29 grigoregeorge grigoregeorge631...@gmail.com Why this program don't display corectly.Where is the problem? public class Asasaa implements EntryPoint { private DockPanel thePanel=new DockPanel(); private HorizontalSplitPanel centerPanel=new HorizontalSplitPanel(); private SimplePanel panel=new SimplePanel(); public void onModuleLoad() { Tree tree = new Tree(); TreeItem outerRoot = new TreeItem(Item 1); outerRoot.addItem(Item 1-1); outerRoot.addItem(Item 1-2); outerRoot.addItem(Item 1-3); outerRoot.addItem(new CheckBox(Item 1-4)); tree.addItem(outerRoot); TreeItem innerRoot = new TreeItem(Item 1-5); innerRoot.addItem(Item 1-5-1); innerRoot.addItem(Item 1-5-2); innerRoot.addItem(Item 1-5-3); innerRoot.addItem(Item 1-5-4); innerRoot.addItem(new CheckBox(Item 1-5-5)); panel.add(tree); panel.setSize(200px, 200px); centerPanel.setLeftWidget(panel); centerPanel.setRightWidget(panel); centerPanel.setSplitPosition(100px); thePanel.add(centerPanel,DockPanel.CENTER); RootPanel.get().add(thePanel); } } --~--~-~--~~~---~--~~ 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 incubator problems in migration from 1.4 to 1.5
We are using GWT 1.4 and gwt-incubator_1-4_final.jar in our project. we want to migrate to GWT 1.5 , but we are facing problem in migration. i tried with, 1) GWT 1.5 , gwt-incubator_1-4_final.jar it is unable to generate the sript file. TreeLogger is abstract class in GWT 1.5 , but in 1.4 it is interface, so the gwt-incubator_1-4_final.jar is excepting that. 2) GWT 1.5 , gwt-incubator.jar(1.5) it is unable to compile. Some of the classes are removed from the latest incubator, but our application is using those classes. What are the step required or posible solutions to migrate from gwt 1.4, gwt-incubator_1-4_final.jar to gwt 1.5, gwt- incubator_1-4_final.jar(because we are not going use incubators from now onwards) . --~--~-~--~~~---~--~~ 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: gwttestcase with external javascript
Hi Thomas. Thanks for your reply, but i still didn't manage to get it working. On Apr 29, 12:23 pm, Thomas Broyer t.bro...@gmail.com wrote: On 28 avr, 18:50, rocha.po...@gmail.com rocha.po...@gmail.com wrote: Hi. I apologize if this was already asked before, but i couldn't find anything in the archives or in the docs. I'm using an external javascript library, using JSNI for accessing the native javascript from my GWT java code. I include these libraries in my host page using the script tag. My question is regarding GWTTestCase(s). It seems that a www-test directory gets created with some specific hosted.html page, which i guess is the host page being used to run the tests. How do i make the external javascript library i want to use available to the test case? Reference them in your test module's gwt.xml using a script / element (you could do the same in your non-test module instead of including the script/script elements in your host page). This means you should create a test module, if you haven't already, and adjust the getModuleName return value of you GWTTestCase classes accordingly. I've tried a new module with the tests - though i didn't really understand why it makes a difference. But i got different issues, so i went back to creating a simple new project to see if i understand what goes on. Here's what i have: A TestProject on package com.testing, with the default classes created by the google eclipse plugin. Works in hosted mode and web mode. So i added a 'test.js' which should be included. Placed the file under the 'war' directory, and referenced it via the TestProject.gwt.xml file: script src=/test.js/script A JSNI method works great both in hosted and web mode, calling a function defined in 'test.js' - referenced via $wnd.functionName(). Now for GWTTestCase. I defined one under the 'test' directory (putting it in 'src' makes no difference in the results i get), which doesn't even call any JSNI method. Added junit4.jar to my eclipse project, added to the TestProject.gwt.xml file: inherits name='com.google.gwt.junit.JUnit'/ and when the test is launched the compilation phase works but right after i get this: ... Compilation succeeded -- 17.159s Loading module 'test.js' [ERROR] Unable to find 'test/js.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? Loading module 'test.js' [ERROR] Unable to find 'test/js.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? The development shell servlet received a request to generate a host page for module 'test.js' Loading module 'test.js' [ERROR] Unable to find 'test/js.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? Where is this coming from? I've changed it to pretty mode to see if i could find anything obvious, but i couldn't. I'm sure i'm doing something stupid, but can't make it work. Thanks, Ricardo PS: For reference i've been doing this using a build from the trunk checked out a couple weeks ago to benefit from OOPHM, but trying it with 1.6.4 later gives me the same results --~--~-~--~~~---~--~~ 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 Incubator usage
is it good to use the incubators in the real projects. Incubators are not stable and also it is strictly linked with latest compiler. is it correct. --~--~-~--~~~---~--~~ 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: GWT Incubator usage
I'm pretty sure that incubator is linked to the latest build, not trunk. It includes a bunch of stuff that, AFAIK, is targeted for inclusion at some point in the future in trunk. As for use in real projects, it's up to you. Probably the incubator mailing list would be a better place to ask. On Wed, Apr 29, 2009 at 12:46 PM, Satya Bobba nasbo...@yahoo.com wrote: is it good to use the incubators in the real projects. Incubators are not stable and also it is strictly linked with latest compiler. is it correct. --~--~-~--~~~---~--~~ 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: Google Calendar embeded in my webapp
I'm building something like that, but no, there's no official Google calendar. You can try http://code.google.com/p/ftr-gwt-library/. It has a Google Calendar look-alike. It is kind of a pain to use though there are some bugs. On Wed, Apr 29, 2009 at 11:20 AM, LFCPD laieta.hip.hop...@gmail.com wrote: Hi all, I'd like to embed a google calendar into my webapp. Is it possible? The server side of my webapp will add/remove events from that google calendar and anything else. Does exist some Google Calendar widget? thanks you all! --~--~-~--~~~---~--~~ 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: Where is this class com.google.gwt.core.client.RunAsyncCallback in GWT 1.6.4
Hi maximity, Also, if you just want to take a look at the Showcase sample source code, you should be able to find it in the /samples/ directory where you unzipped your GWT distribution, unless there is another reason why you wanted to take a look at Showcase sample code from trunk. Hope that helps, -Sumit Chandel On Sun, Apr 26, 2009 at 10:18 AM, maximity maxim...@gmail.com wrote: I downloaded showcase example from Google SVN (http://google-web- toolkit.googlecode.com/svn/trunk/samples) but I am getting compilation errors because com.google.gwt.core.client.RunAsyncCallback is missing. I am using GWT 1.6.4. Was this class deprecated or replaced? How do I make the showcase work with GWT 1.6.4? Thanks The class is also missing from the web JavaDoc. http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?overview-summary.html --~--~-~--~~~---~--~~ 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 KML overlay in GWT
Hi Eddie, response inline: On Wed, Apr 29, 2009 at 10:26 AM, Eddie darkhorsemar...@gmail.com wrote: Hi, I read other posts regarding this but still can't see to get the solutions to work. I like to know if someone can show me which files need to be changes in GWT to be able to generate an overlay using KML file I generated. The file will be in standard local directory that GWT app resides. I am using GWT 1.5.3 and gwt-maps.1.0.3 api library. I can get a KML file that is located on publicly accessible website to overlay onto my map like the Hello Maps example at the GWT Maps API website. Does the restriction of the file has to be on a publicly accessible web server still apply for the GeoXmlOverlay or is there a workaround? I believe the overlay graphics are generated by Google's servers, therefore the source file must be on a publicly accessible website. With Javascript there are 3rd party libraries that provide a way to use local KML files to generate an overlay. In that case, your best bet might be to load up one of those and create a JSNI method to access the resulting overlay.You can wrap the JavaScriptObject that comes back from the JavaScript library with the type ConcreateOverlay or a subclass in order to integrate it with the gwt-maps library. -Eric. -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://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: Porting onEventPreview to 1.6's onPreviewNativeEvent...
That's really strange that you couldn't add a widget to the DOM within the preview event handler - I can't think of a reason why it would prevent you from doing that. I agree - it's really hard to find an actual definitive reference guide for the DOM model what kind of stuff you are aren't allowed to do. MDC https://developer.mozilla.org/En has some good info examples, but it's fairly Firefox specific (it'll usually be correct for other browsers, but it'll be annoying when it's not). On Wed, Apr 29, 2009 at 10:47 AM, Gavin Andresen gavinandre...@gmail.comwrote: For anybody trying to do something similar, my working code (using event.preventDefault, and using DeferredCommand did the trick): // // Preview events-- look for shift-clicks on paper/author links, and pops up // edit dialog boxes: // public void onPreviewNativeEvent(Event.NativePreviewEvent pe) { NativeEvent e = pe.getNativeEvent(); if (Event.getTypeInt(e.getType()) != Event.ONCLICK) { return; } if (!e.getShiftKey()) { return; } EventTarget target = e.getEventTarget(); if (!Element.is(target)) { return; } Element elt = Element.as(target); String href = elt.getAttribute(href); if (href == null || href.length() == 0){ return; } if (href.contains(/paper/)) { e.preventDefault(); final String paperPID = InterfaceUtils.getPIDFromLinkString (href, paper/); DeferredCommand.addCommand(new Command() { public void execute() { fetchPaperInfoThenEdit(paperPID); } }); } else if (href.contains(/author/)) { e.preventDefault(); final String authorPID = InterfaceUtils.getPIDFromLinkString (href, author/); MapString,String params = InterfaceUtils.parseURLParams(href); final String fromPaperPID = params.get(fromPaper); DeferredCommand.addCommand(new Command() { public void execute() { fetchAuthorInfoThenEdit(authorPID, fromPaperPID); } }); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to tell if an image is done loading (or failed) for sure, given LoadListener is broken on IE?
have you tried zero opacity? this usually does the trick for me as it is interpreted as in the DOM and visible. /dave On Apr 29, 4:54 am, dduck anders.johansen.a...@gmail.com wrote: Anyway... Using the tip from the issues list (set URL in deferred command) I can get reliable execution of LoadListener on IE, as well as Safari and FF. Now I have a different problem. In IE it seems that an image has dimensions 0 x 0 until visible, even if it is loaded. Is there any way around that? Here is my test program. On Safari and FF I get size 120,90 for the image, even before it is made visible. In IE size is 0,0 until made visible. final RootPanel rootPanel = RootPanel.get(jobList); final String url = http://arstechnica.com/mt-static/plugins/ArsTheme/style/themes/ light/images/logo.png; final Image image = new Image(); final Label l = new Label(Not loaded yet, size + image.getWidth () + , + image.getHeight()); rootPanel.add(l); image.setVisible(false); LoadListener ll = new LoadListener() { public void onError(Widget sender) { l.setText(Failed); } public void onLoad(Widget sender) { l.setText(Success, size + image.getWidth() + , + image.getHeight()); rootPanel.add(new Button(Make visible, new ClickListener() { public void onClick(Widget sender) { image.setVisible(true); l.setText(Visible, size + image.getWidth() + , + image.getHeight()); }})); } }; image.addLoadListener(ll); rootPanel.add(image); DeferredCommand.addCommand(new Command(){ public void execute() { image.setUrl(url); } }); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is there a Powered by Google Web Toolkit icon available anywhere
That's a good idea! I'll ask, but I don't think we have such a thing for GWT yet. Thanks! On Wed, Apr 29, 2009 at 11:42 AM, Alfred Schilken alf...@schilken.de wrote: In the download area of Google App Engine there are some buttons with Powered by Google App Engine for free use. ( http://code.google.com/intl/de-DE/appengine/downloads.html ) Is there anything similar for the web toolkit? I can't find it? Regards Alfred -- Alex Rudnick swe, gwt, atl --~--~-~--~~~---~--~~ 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 ClassFormatError
GWT team Any pointers on this issue, not able to compile GWT project. Getting below exception during compilation. Not able to figure out from the trace how to fix this issue. Cheers Subbu On Apr 28, 10:51 pm, Subbu gandr...@gmail.com wrote: Hi All I am getting the following error in hosted mode GWT 1.6.4 [ERROR] Failure to load module 'searchui' java.lang.ClassFormatError: Name index 18176 in LocalVariableTable has bad constant type in class file org/eclipse/jdt/internal/compiler/ codegen/CodeStream at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode (TypeDeclaration.java:507) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode (TypeDeclaration.java:581) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCo de (CompilationUnitDeclaration.java:356) at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java: 755) at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process (JdtCompiler.java:101) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java: 266) at com.google.gwt.dev.javac.CompilationState.compile (CompilationState.java:189) at com.google.gwt.dev.javac.CompilationState.refresh (CompilationState.java:178) at com.google.gwt.dev.javac.CompilationState.init (CompilationState.java:93) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState (ModuleDef.java:264) at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:325) at com.google.gwt.dev.SwtHostedModeBase $SwtBrowserWidgetHostImpl.createModuleSpaceHost(SwtHostedModeBase.java: 66) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:73) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:161) 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.SwtHostedModeBase.processEvents (SwtHostedModeBase.java:235) at com.google.gwt.dev.HostedModeBase.pumpEventLoop (HostedModeBase.java:558) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
com.google.gwt.dev.Compiler error return code missing?
Hi All, In GWT 1.5 I used to be able to failonerror which would stop my build if something went wrong while the GWT compiler was running. It seems like this no longer works with com.google.gwt.dev.Compiler. Here is what I have in my build.xml: !-- GWT compile the admin application -- java fork=true classname=com.google.gwt.dev.Compiler classpathref=classpath failonerror=true jvmarg value=-Xmx256M/ jvmarg value=-XstartOnFirstThread/ arg value=-war/ arg value=${build}/www/ !-- This is set to 2 because I have 2 cores on my mac. You can modify this to whatever number makes sense for your architecture -- arg value=-localWorkers/ arg value=2/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=org.jax.pubarray.gwtadmin.AdministrationApplication/ /java When I have ERROR messages in my compile ant just moves on to the next tag when it used to halt in 1.5.x with the old compiler. Is this a bug? Thanks! Keith --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Table with resizable columns
How can i make table in gwt of wich columns can be resizable? I don't use a DockPanel object. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: com.google.gwt.dev.Compiler error return code missing?
FYI, here is the ERROR output: [java] Compiling module org.jax.pubarray.gwtadmin.AdministrationApplication [java]Refreshing module from source [java] Validating newly compiled units [java] Removing units with errors [java] [ERROR] Errors in 'file:/Users/kss/projects/ pub-array-dev/libraries/pub-array-gwt-client/src/java/org/jax/pubarray/ gwtcommon/client/Query.java' [java][ERROR] Line 28: The import org.jax.pubarray.gwtquery.client.Filter cannot be resolved [java][ERROR] Line 38: Filter cannot be resolved to a type [java][ERROR] Line 45: The constructor Query (ArrayListFilter) is undefined [java][ERROR] Line 45: Filter cannot be resolved to a type [java][ERROR] Line 53: Filter cannot be resolved to a type [java][ERROR] Line 55: Missing code implementation in the compiler [java][ERROR] Line 62: Filter cannot be resolved to a type [java][ERROR] Line 64: Missing code implementation in the compiler [java] 2009-04-29 13:30:16.906 java[940:80f] [Java CocoaComponent compatibility mode]: Enabled [java] 2009-04-29 13:30:16.907 java[940:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 [java]Compiling 5 permutations [java] Permutation compile succeeded [java]Linking into /Users/kss/projects/pub-array-dev/ libraries/pub-array-gwt-client/build/www [java] Link succeeded [java]Compilation succeeded -- 20.859s If I'm interpreting this correctly the compiler is recovering from the error by discarding the objects causing the error. Isn't it better to just fail completely like javac does? Thanks Keith On Apr 29, 1:28 pm, Keith keiths...@gmail.com wrote: Hi All, In GWT 1.5 I used to be able to failonerror which would stop my build if something went wrong while the GWT compiler was running. It seems like this no longer works with com.google.gwt.dev.Compiler. Here is what I have in my build.xml: !-- GWT compile the admin application -- java fork=true classname=com.google.gwt.dev.Compiler classpathref=classpath failonerror=true jvmarg value=-Xmx256M/ jvmarg value=-XstartOnFirstThread/ arg value=-war/ arg value=${build}/www/ !-- This is set to 2 because I have 2 cores on my mac. You can modify this to whatever number makes sense for your architecture -- arg value=-localWorkers/ arg value=2/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=org.jax.pubarray.gwtadmin.AdministrationApplication/ /java When I have ERROR messages in my compile ant just moves on to the next tag when it used to halt in 1.5.x with the old compiler. Is this a bug? Thanks! Keith --~--~-~--~~~---~--~~ 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: Integrating GWT with the existing webapp
Hi Ganesh, Although I'm not totally sure of your GWT integration goals, I imagine they involve a smoother user experience by Ajax-ifying your application. If that's the case, my advice would be to take steps to eventually end up in situation 2) described above. Depending on how your business logic flows through your server-side, you could potentially implement RPC services that would replace existing action servlets and over time, redefine your server-side architecture in terms of GWT RPC services. This might seem like an all or nothing approach, but it will lead to a net win in terms of application performance. If you're not looking to totally redefine your application and just add Ajax bits to it using GWT, that can be done too. Let me know if you want to consider doing that and I would be happy to provide more info (or a quick search for RootPanel.get(id).add on the group should turn up some useful results). As you mentioned, using solution 2) will effectively break and require replacing your existing Struts-style architecture. However, I don't think that will affect the scalability of your application in terms of server load. In fact, it should make your application even more scalable since extra roundtrips would be avoided. Unless you meant scalability of your code base for maintenance purposes, in which case I still don't think it will lead to scalability problems. Hope that helps, -Sumit Chandel On Sun, Apr 26, 2009 at 11:41 PM, newtoGWT ganesh@gmail.com wrote: In the existing webapplication, my action class receives the request, validates it, hits the DAO, builds the Value Object (nothing but a bean class), and finally returns the VO to the action class. This value object is then set into session and retrieved in JSP page. (Normal request and response model) To implement GWT in the existing webapp, 1. Using HTTP request to call my action class, convert the value object in JSON and write it in to response. Access the json in GWT class and paint the page. Advantages: i am not breaking my existing architecture, going through action class. Disadvantages: Extra round trip to convert value object to json and vice versa. 2. Using RPC to call service method directly and get the value object from service directly. Advantages: I can get my value object with out any extra round trip. Disadvantages: Breaking my existing architecture, by calling service directly (coz scalability might be an issue later, just a futuristic thought not sure though). Above 2 approaches has their own adv. disadv. please guide to choose the best solution/approach to follow so that GWT can be integrated successfully without issues. Thanks, Ganesh R Disclaimer: i am a beginner in GWT! so question can be silly some times :) --~--~-~--~~~---~--~~ 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: gwttestcase with external javascript
Ok forget this. I was confused regarding the public path. For some reason i thought the public path had changed to the war directory with 1.6, and was putting all image js files there and referencing using '/'. Putting it into 'public' underneath the module definition package makes it work. The error i was getting must be related to the servlet container trying to load everything under '/'. Thanks and sorry about this. Ricardo On Apr 29, 6:23 pm, Ricardo Rocha rocha.po...@gmail.com wrote: Hi Thomas. Thanks for your reply, but i still didn't manage to get it working. On Apr 29, 12:23 pm, Thomas Broyer t.bro...@gmail.com wrote: On 28 avr, 18:50, rocha.po...@gmail.com rocha.po...@gmail.com wrote: Hi. I apologize if this was already asked before, but i couldn't find anything in the archives or in the docs. I'm using an external javascript library, using JSNI for accessing the native javascript from my GWT java code. I include these libraries in my host page using the script tag. My question is regarding GWTTestCase(s). It seems that a www-test directory gets created with some specific hosted.html page, which i guess is the host page being used to run the tests. How do i make the external javascript library i want to use available to the test case? Reference them in your test module's gwt.xml using a script / element (you could do the same in your non-test module instead of including the script/script elements in your host page). This means you should create a test module, if you haven't already, and adjust the getModuleName return value of you GWTTestCase classes accordingly. I've tried a new module with the tests - though i didn't really understand why it makes a difference. But i got different issues, so i went back to creating a simple new project to see if i understand what goes on. Here's what i have: A TestProject on package com.testing, with the default classes created by the google eclipse plugin. Works in hosted mode and web mode. So i added a 'test.js' which should be included. Placed the file under the 'war' directory, and referenced it via the TestProject.gwt.xml file: script src=/test.js/script A JSNI method works great both in hosted and web mode, calling a function defined in 'test.js' - referenced via $wnd.functionName(). Now for GWTTestCase. I defined one under the 'test' directory (putting it in 'src' makes no difference in the results i get), which doesn't even call any JSNI method. Added junit4.jar to my eclipse project, added to the TestProject.gwt.xml file: inherits name='com.google.gwt.junit.JUnit'/ and when the test is launched the compilation phase works but right after i get this: ... Compilation succeeded -- 17.159s Loading module 'test.js' [ERROR] Unable to find 'test/js.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? Loading module 'test.js' [ERROR] Unable to find 'test/js.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? The development shell servlet received a request to generate a host page for module 'test.js' Loading module 'test.js' [ERROR] Unable to find 'test/js.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? Where is this coming from? I've changed it to pretty mode to see if i could find anything obvious, but i couldn't. I'm sure i'm doing something stupid, but can't make it work. Thanks, Ricardo PS: For reference i've been doing this using a build from the trunk checked out a couple weeks ago to benefit from OOPHM, but trying it with 1.6.4 later gives me the same results --~--~-~--~~~---~--~~ 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: unused code in compiled javascript
Hi zbo, As mentioned above, there is some amount of boiler plate code that does get included in your GWT application when using the RootPanel and other associated widgets. Once this boiler plate is in place though, the rest of your application reuses it and the curve plotting code size versus number of lines of code starts flattening out. That said, using standard GWT widgets is ideal when you are on your way to build a fairly large Ajax application. However, if you're instead planning on developing a small scale application that will have some Ajax features, you should probably look into using GWT at a lower level (i.e. using the DOM API). At that level, you can only code exactly what you need for your application while still having the benefit of automatic cross-browser support and strong typing. DOM API: http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html#DevGuideAccessingDOM Hope that helps, -Sumit Chandel On Mon, Apr 27, 2009 at 12:02 AM, Jason Morris lem...@gmail.com wrote: Actually HashMap and many of the Collections classes /are/ used in that simple bit on code. The Widget classes and Event management make heavy use of the Collections classes. RootPanel alone uses a HashMap, and HashSet (which in turn use AbstractSet, etc.), RootPanel also uses the Window class with uses ArrayList and Collections. So basically by using RootPanel.get().add() you've effectively made use of a large chunk of the Collections classes, parts of the Event system, etc. The compiler is fairly good at removing unused code, but theres only so far it can go. The fact is: in a fairly complex GWT application you're likely to be using that code anyways. I assume you're compressing your compiled code before shipping it out to the browser, and setting the cache headers correctly, since once the user has the code (the .cache.* files) they never need to download them again (the name will change if the content of the file is changed). Hope that explains the behavior a bit ;) // J Vitali Lovich wrote: The GWT compiler is supposed to remove all unused code. If you believe that there's code in there that is unused, or can be removed, I would recommend filing a bug. Hopefully a GWT developer would be able to provide more information about this particular question. On Sun, Apr 26, 2009 at 5:03 PM, zbo zachary.bo...@gmail.com mailto:zachary.bo...@gmail.com wrote: Hello, I am working on reducing the compiled js size of a relatively complex GWT application. I've been looking at the detailed output of the compile process, and find quite a few blocks of code that seem to be included no matter what. To test things and get a better understanding of the GWT compile process, I build a trivial GWT app: onModuleLoad() { RootPanel.get().add(new Label(placeholder); } Detailed output of this app was approximately 105k in size, and filled with code I would expect (management of GWTEvents, onLoad methods, String handling, etc) but also a lot of code that I wouldn't expect (Hashmap, HashSet, AbstractSet, Set, Collections, etc.) My question - is this entirely necessary, and if not, how do I avoid having all of this code included a final compile of a real app? -Z --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
ClassCastException in JsValueGlue.java:125
Hi, I'm developing a GWT application which I recently ported to GWT 1.6.4 and the Google Eclipse Plugin (Eclipse 3.4.2). The ported application works fine under Linux (hosted and web mode), but when I start it in hosted mode under Windows XP, I get the following stacktrace. The application starts with an RPC call in onModuleLoad() and depending on the answer it creates the user interface in onSuccess() of the AsyncCallback. This seems to get finished, but afterwards, when the event processing loop should take over, errors start to appear immediately. It seems that an exception is created on each mouse event, because when I just move the mouse over the window, I get one Exception after the other. I have no idea what could cause those exceptions, but figure as it works ok in Linux it might be a GWT problem? Any ideas what I can do? What information should I provide in an issue report? Here's the stacktrace: java.lang.ClassCastException at java.lang.Class.cast(Unknown Source) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java: 125) at com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects (SwtOleGlue.java:57) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod (IDispatchImpl.java:119) 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.SwtHostedModeBase.processEvents (SwtHostedModeBase.java:235) at com.google.gwt.dev.HostedModeBase.pumpEventLoop (HostedModeBase.java:558) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java: 405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Thanks Michael --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Receiving Java Exit Code when Building with GWT 1.6
Hello, I'm trying to run a build using com.google.gwt.dev.Compiler in GWT 1.6 with JDK 1.5.0_17 and Ant 1.6.5. The build has been failing with an exit code of -1073741819. I haven't been able to find any more information, even when setting the logLevel to SPAM, beyond a line like the one below: BUILD FAILED C:\view\tools\applicationbuild\build.xml:515: The following error occurred while executing this line: C:\view\tools\applicationbuild\build.xml:496: Java returned: -1073741819 There does not appear to be an associated exception error unless one is getting caught in the background. Can anyone offer any suggestions for how to further debug the issue or what possible causes there may be? Thanks. Patrick --~--~-~--~~~---~--~~ 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 change character encoding to UTF-8
You are right. I have mixed them all. Thanks for clarify. So right now my problem is how to call servlet thru spring :) My application has some servlets and I would like to call them via spring. On 29 Kwi, 16:08, Thomas Broyer t.bro...@gmail.com wrote: On 29 avr, 13:45, lazins...@gmail.com lazins...@gmail.com wrote: I am trying to call ordinary servlet via spring (I am using gwt-sl library and GWTHandler class) and requestbuilder in GWT (POST method). AFAICT from the GWT-SL docs, GWTHandler is not an ordinary servlet, it is based on GWT-RPC; which means you should use GWT-RPC and not a plain old^^^low-level RequestBuilder. An ordinary servlet would be called as you'd expect; GWT-RPC expects a particular request payload (method arguments, serialized in GWT-RPC special format, hence the Content-Type: text/x-gwt-rpc) The GWT-SL docs are quite clear on how to write the client-side GWT code to work with GWTHandler (i.e. GWT-RPC). --~--~-~--~~~---~--~~ 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: What's Wrong???
Hi happyosaka, The website seems to be password protected, so I can't access it. But even if I could, you will need to provide much more detail about the issue you're experiencing in order for anyone to understand what the problem is and suggest potential solutions. From the very limited information so far, it seems like the error is occurring on the server-side, and that your inquiry would best be served on the Google App Engine group (again with more details about the problem). Google App Engine forum: http://groups.google.com/group/google-appengine?pli=1 Regards, -Sumit Chandel On Mon, Apr 27, 2009 at 8:27 AM, happyosaka weifu1...@gmail.com wrote: http://osakacliff2.appspot.com/ Error: Server Error The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it. --~--~-~--~~~---~--~~ 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 use the new WAR file to deploy a simple web application.
While I am not new to GWT, I am a bit new to the WAR file concept. Up to now, I was content to roll my own when deploying my WEB application. I use Tomcat to serve both static and dynamic web page content under a directory/file configuration at my web hosting service something like: webapps ROOT GWT/ GWT cashe files my .nocache.js file index.html (my home page) index.css (my css file) other public files servlet WEB-INF classes (my servlets) lib (external .jar files needed by my servlets) My web hosting service currently points http:/my-domain-name.com/ to Tomcat's .../webapps/ROOT. I could roll my own and merge ROOT/ with servlet/. But, can I use GWT's WAR concept to do this for me? I can see how to do this with WAR, but the WAR's module name gives me another level that I do not need. If I name my GWT module ROOT, would this work, or does someone have a better idea. 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 (Multiple Pages Implementation)
Hello, I just started out with GWT and currently building a prototype that is intended as an enterprise skeleton application. The intent is to use GWT with Struts 2.0 (via a plugin). I now have the basic structure of the application and I have 3 simple pages that are facilitated by DeckPanels. Then it suddenly occurred to me... Having several panels (DeckPanels) to simulate pages in an enterprise web system could be trouble in performance and possibly maintenance (?). So I turned to the internet for some information and came upon suggestions ranging from embedded GWTs in JSPs using markups (Reminds me of YUI but that's another story) to multiple launching point HTMLs and matching EntryPoint classes. That said, and based on several informative readings, I come to the point of asking these questions to anybody who could provide me with an objective opinion and strong recommendation if possible. Simply put - Help! 1. What is Google's recommended paging approach (The way I understand it is via DeckPanels)? 2. How efficient is using a DeckPanel to accommodate several pages (Any number of pages in mind it could safely support)? 3. With an enterprise web app comprising of numerous screens (and when I say numerous please imagine our trusty old Eclipse editor's interface), would DeckPanels be recommendable? 4. What's a suitable alternative to DeckPanels (I would appreciate any recommendations)? I would appreciate any feedback, assistance and most importantly added knowledge on my part. Thanks, Vince --~--~-~--~~~---~--~~ 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 change character encoding to UTF-8
On 29 avr, 21:19, lazins...@gmail.com lazins...@gmail.com wrote: You are right. I have mixed them all. Thanks for clarify. So right now my problem is how to call servlet thru spring :) My application has some servlets and I would like to call them via spring. via Spring ?! You mean having your servlets being dependency injected by Spring ? If so, probably the Spring document will be enough, or the Spring mailing list / user group / forum. E.g. http://andykayley.blogspot.com/2008/06/how-to-inject-spring-beans-into.html Otherwise, well, it's just a RequestBuilder. RequestBuilder is a low- level API to make HTTP calls; if you understand HttpServlet's HttpRequest/HttpResponse, then RequestBuilder shouldn't be hard to comprehend too. On 29 Kwi, 16:08, Thomas Broyer t.bro...@gmail.com wrote: On 29 avr, 13:45, lazins...@gmail.com lazins...@gmail.com wrote: I am trying to call ordinary servlet via spring (I am using gwt-sl library and GWTHandler class) and requestbuilder in GWT (POST method). AFAICT from the GWT-SL docs, GWTHandler is not an ordinary servlet, it is based on GWT-RPC; which means you should use GWT-RPC and not a plain old^^^low-level RequestBuilder. An ordinary servlet would be called as you'd expect; GWT-RPC expects a particular request payload (method arguments, serialized in GWT-RPC special format, hence the Content-Type: text/x-gwt-rpc) The GWT-SL docs are quite clear on how to write the client-side GWT code to work with GWTHandler (i.e. GWT-RPC). --~--~-~--~~~---~--~~ 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: Communicate w/ existing GWT-RPC service
I would suggest importing the GWT jar(s) into your java client and actually have it serialize (de serialize) the Java Objects to a Http Request and Response using the RPC format. Java is can then act like a browser and send the Http Request and get the Http Response all over Http (Https). Take a look at the GWT source code RPC and RemoteServiceServlet class you can see how RPC does this serverside (its the reverse of what your trying to accomplish). Cheers, Scott On Apr 29, 7:47 am, Marcelo Emanoel B. Diniz marceloeman...@gmail.com wrote: To simple reuse the services classes and the vo classes I would separate them in a diferent module... export them...(with the .java) and reuse on another module... the main point in my opinion would be to configurate the service url... On Apr 28, 3:30 pm, JoeB joe.berm...@gmail.com wrote: I get the general idea, but I'm a little unclear on implementing the non-GWT interface in parallel to GWT-RPC. The beauty of GWT-RPC is that the ValueObjects I create in my client package are automatically serialized/deserialized by GWT, and my client code and server code are developed with the same Java class. If I want to make the same ValueObjects accessible via a different interface (e.g. REST, SOAP, etc), then that means I'll have to transform them into some protocol on the wire (e.g. convert to XML or JSON). The tricky part is that the ValueObject classes are defined in the GWT client package, but they need to be modified in some way to perform this server-side transformation for a different interface, and that transformation code shouldn't leak into the GWT client. I guess what I'm saying is that it seems like a problem that the ValueObjects are defined in the client package because they need to be used for a non-GWT interface in the server. Know what I mean? -- Joe --~--~-~--~~~---~--~~ 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: GWT project runs slow in Hosted mode
I migrated a project from GWT 1.5 to 1.6 with extreme slowness in hosted mode - compiling and running in web mode performed the same with no performance hits. I was using the GXT and gwt-google-maps modules. I went from 5 second to over 60 seconds to do a simple refresh in hosted mode. It has nothing to do with hardware as hosted mode ran idle for over 40 seconds doing nothing before even the smallest bleep on my Quad core. When I moved all files within the module/public directory out into the war project directory structure, I got hosted mode to at least preform approx. the same as GWT 1.5. At a minimum my hardware resources are actually being used now when I refresh the hosted mode browser. I never had any explanation why a seemingly simple static file copy for ~1MB of static files hung hosted mode for 40 seconds. If you have anything in any module/public directory I would move it. On Apr 29, 3:01 am, Peter Muessig peter.mues...@googlemail.com wrote: Hi, I cannot imagine that this is a hardware issue! Since I switched to GWT 1.6.4 I had the same expierience with a 2GHz Core2Duo and 4GB RAM machine. When I start to use JS wrappers like SmartGWT or GWText the startup of the Hosted Mode and the GWT application becomes very slow. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
changing tooltip (title) has no immediate effect in web mode
hello, i've an image map like widget divided into regions. i listen for mouse move events, find the region mouse pointer is in and update cursor and tooltip (title) accordingly. this works very well on hosted mode. but on web mode changing tooltip has no immediate effect. new value (or null) only displayed after browser closes the previous tooltip and opens a new one: for example move the mouse out of widget and take it back, or wait for a while until tooltip disappears and move mouse again any ideas how to handle this situation ? this is ubuntu, i have tested the app in firefox 3 and mozilla 5 (sea monkey) regards, r a f t --~--~-~--~~~---~--~~ 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 Compile Project problem in Eclipse
Has anyone else had this problem? I compile a project from Eclipse, which works, but a browser does not show pop-up (running the JS). Oddly, all works fine if I Compile/Browse from the GWT host. On the otherhand, 'ant build' has a similar problem (it compiles but does not launch a browser). Feels like I'm missing some setting somewhere? Perhaps Vista related? Any sugestions would be 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 -~--~~~~--~~--~--~---
Re: with gwt-maps , How to manually set Marker draging state
Thanks Eric, that can be let marker drag on the map. mybe I did not clearly describes the point,my mean is marke the Marker float and show DragCrossImage manually (like use mouse dragging it ) when I create the marker , On Apr 29, 6:52 pm, Eric Ayers zun...@google.com wrote: Hi, When you create the marker, you can set the dragging behavior by passing a MarkerOptions object in the constructor. Then, if you want to turn dragging on/off use marker.setDraggingEnabled(); See the javadoc athttp://code.google.com/docreader/#p=gwt-google-apiss=gwt-google-apis... As an aside, there are a few changes in the next release that add support for GDraggableObject, which allows you to create custom objects (not just Markers) and make them draggable on the map. Hope that helps, -Eric. On Wed, Apr 29, 2009 at 6:26 AM, Tail jft...@gmail.com wrote: In my project, A Custom control button on the map canvas, it named Add New Position. When I click the Add New Position button, I add a Marker on the map, Marker's LatLng onchaned by mousemove on map. How to make Marker draging state,let it float and show DragCrossImage. -- 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: How to get internal widget to notify its parent widget when clicked (and have the parent execute something)
Hey matttai, did you find a good solution for your issue? I'm trying to do something similar and have not had much luck. Observer pattern would seem to be the way to go - In theory there is no difference between theory and practice. In practice there is.;) On Apr 6, 10:12 pm, matttai matt...@hotmail.com wrote: Ah that works only if the widget isnestedin 1 object (eg. direct parent). The widget is dynamically added to various objects and can benested at different levels. Currently i am using a VERY dodge way of this.getParent().getParent ().getParent().getParent().doSomething(); :) And in that doSomething() it would have something like. doSomething() { widget.someOtherwidget.widget1.widget2.widget3.widget4.doStuff(); } I am sure there is a better way to do this. Gregor's suggestion of an observer pattern sounds about right. Although there doesnt seem to be that much information that comes up around implementing patterns in google when dealing with events in objects unless you specifically look for it. I'll have a search and come back here if i still have issues. On Apr 7, 1:11 am, Jason Essington jason.essing...@gmail.com wrote: the easiest way is to create a click handler that holds a reference to the parent the simplest form would look something like: myWidget.addClickHandler(new ClickHandler(){ public void onClick(ClickEventevent){ parent.doSomething(); } }); no need to do any sink/unsink mucking about. -jason On Apr 4, 2009, at 8:51 PM, matttai wrote: As per the title :) How to get internal widget to notify its parent widget when clicked (and have the parent execute something)? I think it has something to do with sinking and unsinking events but I haven't been able to find a very good example of doing this. Any help 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: Problems with ImageBundle in IE8 when not in compatibility mode
Thanks for the tip Thomas, just to amend/aggragate something i found out that you have to add the meta tag to the head section before any other elements and the meta tag i added was meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 HTH Dominik On 15 Apr., 03:56, Thomas Broyer t.bro...@gmail.com wrote: On 14 avr, 18:41, toont...@googlemail.com toont...@googlemail.com wrote: Greetings, Only inIE8with compatibility mode off do I see the images in the ImageBundledisplayed in the right location but other images from the bundle are displayed to the left of the displayed image. In other words it isn't clipping the bundle to the left. In compatibility mode it works fine and it works in IE7, FF3, Opera, and Safari. This a problem in 1.6.4 and 1.5.3. Other things will break inIE8'ssuper standards mode. I've looked for previous discussions of this and found http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... where Janie says I'm trying to track down an issue with ImageBundles that I'm having inIE8. This email is not about that issue... . But then nothing more about this. Suggestions? AskIE8to use the appropriate mode by including the corresponding HTTP response header or meta to your HTML host page; e.g. meta name=X-UA-Compatible content=IE=EmulateIE7 Seehttp://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
war folder name in version 1.6.4 configurable?
I am currently trying the new 1.6.4 version of GWT. it's good to have the new structure similar to the the one used in eclipse web project. The existing eclipse web project allows to change the name of the WebContent folder (equivalent to the war folder in google web app project). However, it seems I can not change the name of war folder to other names in google web app project. If i change the default name, it gives me the error The web.xml file does not exist as a Google Web App Problem. Does anyone know if the name is configurable and how? 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 -~--~~~~--~~--~--~---
GWT with eclipse and java1.6 crashes after running.
hi, i just installed Eclipse ganymede 3.4.2 and GWT 1.6.4 eclipse plugin and eclipse uses java-6-sun. I dont know why but when i hit green button to run a window opens up and after some time, it blacks out and nothing happens. I tried removing the Built-in server check mark in run configuration then the gwt browser comes up error message that cannot connect to localhost:8080. is it any problem with built-in server or should i revert back to java 1.5 for the gwt to run? Please help. - Phani. --~--~-~--~~~---~--~~ 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: Scope of GWT
Hi Neo, On Apr 28, 10:33 am, Neo deepak.krv2...@gmail.com wrote: Can GWT be used to develop large enterprise applications ? Or is it only limited to small and medium size projects ? In my experience it can be used for projects of any size. My current client is developing a large trading application with it, and I've developed small personal projects with it too. For any type of project is GWT good enough to be used as a standalone framework or is it that it needs to be used along with other similar technologies like SmartGWT and GWT Ext ? As Paul mentioned this is two questions: Can GWT be used as a standalone framework? Yes of course - but at some point you may need to communicate with other systems, or a database etc. at which point you may need other things to help you out. On the large scale project I've been working on, we have some EMS stuff and some web services, but no Spring or Hibernate. Does it need to be used with SmartGWT or GWT Ext? No - these do give you some nice out of the box widgets and features, but with 1.5 (not got round to upgrading) these kill download times and compile times. We also found they didn't give us much in terms of what we really wanted. Sure they were nice to look at, but when the business says they don't like the look - you have to re-skin everything anyway. Cheers Stuart --~--~-~--~~~---~--~~ 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: GWT 1.6 #5110 SVN: MouseWheel event not working on Firefox3
I made a note of this comment on issue 2902. I've marked it for fixing in a 1.6 point release, and will fix it as soon as I can. On Tue, Apr 28, 2009 at 12:37 PM, yann ales.hav...@gmail.com wrote: Hi, even the MouseWheelListener is broken in GWT 1.6.4. example: public class TestEntryPoint implements EntryPoint { MouseWheelListener mwl = new MouseWheelListener() { public void onMouseWheel(Widget sender, MouseWheelVelocity velocity) { Window.alert(Mouse Wheel Listener); } }; public TestEntryPoint() { } public void onModuleLoad() { final Label label = new Label(Mouse Wheel Tester); final FocusPanel fp = new FocusPanel(); fp.setSize(100%, 100%); fp.addMouseWheelListener(mwl); fp.add(label); RootPanel.get().add(fp); } } Tested with: Safari 3.2.2 (Win) FF 3.0.9 (Win) IE 7 (Win) Chrome 2.0.172.8 (Win) When compiled with GWT 1.5.3 it works in all browsers. With GWT 1.6.4 it works in all except FF - the same situation is when I use MouseWheelHandler instead MouseWheelListener. Is there any workaround for capturing the mouse wheel in FF using GWT 1.6? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: menu patch
MenuBar - I'm fine with exposing the methods, but I think we would need to give them better names than moveUp() and moveDown(), as that has multiple ambiguous meetings. A name like moveSelectionUp/Down() would be more appropriate. MenuItem - LGTM Thanks, John LaBanca jlaba...@google.com On Tue, Apr 28, 2009 at 11:40 PM, Freeland Abbott fabb...@google.comwrote: Joel (and John), Take a look at the attached patch... it's all visibility changes (moveUp/Down become public, setSelectionStyle protected for test access from client-code packages), except for a bugfix in selectFirstItemIfNoneSelected to ensure that there actually is a a first item to select. Thoughts? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Rearranges a couple of methods to remove checkstyle errors
Reviewers: jgw, Description: DOMImplTrident#isRTL() is protected but appears after a private method. Element#hasAttribute() is not alphabetical. Please review this at http://gwt-code-reviews.appspot.com/30806 Affected files: user/src/com/google/gwt/dom/client/DOMImplTrident.java user/src/com/google/gwt/dom/client/Element.java Index: user/src/com/google/gwt/dom/client/DOMImplTrident.java === --- user/src/com/google/gwt/dom/client/DOMImplTrident.java (revision 5304) +++ user/src/com/google/gwt/dom/client/DOMImplTrident.java (working copy) @@ -101,6 +101,7 @@ return doc.createElement(html); }-*/; + @Override public native void dispatchEvent(Element target, NativeEvent evt) /*-{ target.fireEvent(on + evt.type, evt); }-*/; @@ -226,6 +227,10 @@ super.setScrollLeft(elem, left); } + protected native boolean isRTL(Element elem) /*-{ +return elem.currentStyle.direction == 'rtl'; + }-*/; + private native int getBoundingClientRectLeft(Element elem) /*-{ // getBoundingClientRect() throws a JS exception if the elem is not attached // to the document, so we wrap it in a try/catch block @@ -259,8 +264,4 @@ private native int getClientTop(Element elem) /*-{ return elem.clientTop; }-*/; - - protected native boolean isRTL(Element elem) /*-{ -return elem.currentStyle.direction == 'rtl'; - }-*/; } Index: user/src/com/google/gwt/dom/client/Element.java === --- user/src/com/google/gwt/dom/client/Element.java (revision 5304) +++ user/src/com/google/gwt/dom/client/Element.java (working copy) @@ -361,6 +361,17 @@ }-*/; /** + * Determines whether an element has an attribute with a given name. + * + * @param name the name of the attribute + * @return whether this element has the specified attribute + */ + public final boolean hasAttribute(String name) { +String value = this.getAttribute(name); +return value != null value.length() 0; + } + + /** * Determine whether an element is equal to, or the child of, this element. * * @param child the potential child element @@ -516,15 +527,4 @@ // on some browsers. this.title = title || ''; }-*/; - - /** - * Determines whether an element has an attribute with a given name. - * - * @param name the name of the attribute - * @return whether this element has the specified attribute - */ - public final boolean hasAttribute(String name) { -String value = this.getAttribute(name); -return value != null value.length() 0; - } } --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: IE8 support
Not even close, unfortunately. If you look at the wiki page I wrote up: http://code.google.com/p/google-web-toolkit/wiki/IE8Support You'll see that the actual differences are pretty minimal. They fixed a number of CSS things, added DOM storage, Ajax history, and other things like that. But their event model is still wildly different. Most of the DOM element methods and properties are still weird and different, and so forth. I'm afraid Trident remains its own beast :( On Wed, Apr 29, 2009 at 1:02 PM, Vitali Lovich vlov...@gmail.com wrote: Does IE8 still have non-standards compliant behaviour? I thought they were supposed to introduce pretty strict standards compliance with IE8 (in fact, some/all? legacy non-standard stuff is unavailable). Shouldn't IE8 extend DOMImplStandard or are there still remaining issues? On Mon, Apr 27, 2009 at 11:22 AM, j...@google.com wrote: http://gwt-code-reviews.appspot.com/29803/diff/1/5 File user/src/com/google/gwt/dom/DOM.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/5#newcode56 Line 56: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: too many spaces Done. http://gwt-code-reviews.appspot.com/29803/diff/1/12 File user/src/com/google/gwt/user/Form.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/12#newcode31 Line 31: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: Spacing, and what are those two red arrows? »» visual tab indicators. Cleaned up tabs. http://gwt-code-reviews.appspot.com/29803/diff/1/7 File user/src/com/google/gwt/user/RichText.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/7#newcode27 Line 27: when-property-is name=user.agent value=ie6 / On 2009/04/24 20:34:56, jlabanca wrote: Remove the »», which I assume are tabs. Done. http://gwt-code-reviews.appspot.com/29803/diff/1/8 File user/src/com/google/gwt/user/TextBox.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/8#newcode32 Line 32: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: Remove »» Done. http://gwt-code-reviews.appspot.com/29803/diff/1/9 File user/src/com/google/gwt/user/UserAgent.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/9#newcode38 Line 38: if (v = 8000) { On 2009/04/24 23:44:41, t.broyer wrote: I believe ie8 here means X-UA-Compatibility: IE=8, so detecting the version from the navigator.userAgent is probably not enough [1], and document.documentMode should be used instead [2], otherwise the ie8 implementation would have to do a quirks-vs-standards-vs-super-standards-mode-detection, which would make the ie6 impl quite useless. [1] Mike Ormond reports that a document can be displayed in IE=5 or IE=7 mode while the UA is still reported as MSIE 8.0 http://blogs.msdn.com/mikeormond/archive/2008/09/25/ie-8-compatibility-meta-tags-http-headers-user-agent-strings-etc-etc.aspx [2] http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx#GetModehttp://msdn.microsoft.com/en-us/library/cc288325%28VS.85%29.aspx#GetMode Thanks for pointing out that blog in particular. Amazing that they managed to turn quirks/standards into a 12-entry matrix :P The good news is that In compatibility view, IE always reports its UA as MSIE 7.0, which triggers the ie6 user-agent property. When no X-UA-Compatible header is set, we're in normal mode (i.e., not compatibility view), and no DOCTYPE is set, we end up in quirks-mode, which appears to turn off some IE8 features (I've noticed that at least IE8 history breaks, though everything else I've tried seems to work fine and all of our tests pass). The only solution I'm aware of is to either set a DOCTYPE or the X-UA-Compatible header (both of which will put you in standards-mode). I realize there are still some GWT panels that layout a bit oddly in standards-mode, and while we're working on solving this, it's going to be a problem for some apps for a while yet. I'll document this on the IE8 support wiki page for now. Before long, it will be the right thing to always set a DOCTYPE, which should make this problem go away. http://gwt-code-reviews.appspot.com/29803/diff/1/6 File user/src/com/google/gwt/xml/XML.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/6#newcode39 Line 39: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: tabs again »» Done. http://gwt-code-reviews.appspot.com/29803 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: jso checkstyle fixes
No need to review sort/format/checkstyle fixes if there's nothing of substance. On Wed, Apr 29, 2009 at 12:22 PM, Freeland Abbott fabb...@google.comwrote: Sorry; now that I'm looking in Eclipse, I see my previous introduced checkstyle errors. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: IE8 support
That's annoying. On Wed, Apr 29, 2009 at 1:07 PM, Joel Webber j...@google.com wrote: Not even close, unfortunately. If you look at the wiki page I wrote up: http://code.google.com/p/google-web-toolkit/wiki/IE8Support You'll see that the actual differences are pretty minimal. They fixed a number of CSS things, added DOM storage, Ajax history, and other things like that. But their event model is still wildly different. Most of the DOM element methods and properties are still weird and different, and so forth. I'm afraid Trident remains its own beast :( On Wed, Apr 29, 2009 at 1:02 PM, Vitali Lovich vlov...@gmail.com wrote: Does IE8 still have non-standards compliant behaviour? I thought they were supposed to introduce pretty strict standards compliance with IE8 (in fact, some/all? legacy non-standard stuff is unavailable). Shouldn't IE8 extend DOMImplStandard or are there still remaining issues? On Mon, Apr 27, 2009 at 11:22 AM, j...@google.com wrote: http://gwt-code-reviews.appspot.com/29803/diff/1/5 File user/src/com/google/gwt/dom/DOM.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/5#newcode56 Line 56: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: too many spaces Done. http://gwt-code-reviews.appspot.com/29803/diff/1/12 File user/src/com/google/gwt/user/Form.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/12#newcode31 Line 31: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: Spacing, and what are those two red arrows? »» visual tab indicators. Cleaned up tabs. http://gwt-code-reviews.appspot.com/29803/diff/1/7 File user/src/com/google/gwt/user/RichText.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/7#newcode27 Line 27: when-property-is name=user.agent value=ie6 / On 2009/04/24 20:34:56, jlabanca wrote: Remove the »», which I assume are tabs. Done. http://gwt-code-reviews.appspot.com/29803/diff/1/8 File user/src/com/google/gwt/user/TextBox.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/8#newcode32 Line 32: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: Remove »» Done. http://gwt-code-reviews.appspot.com/29803/diff/1/9 File user/src/com/google/gwt/user/UserAgent.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/9#newcode38 Line 38: if (v = 8000) { On 2009/04/24 23:44:41, t.broyer wrote: I believe ie8 here means X-UA-Compatibility: IE=8, so detecting the version from the navigator.userAgent is probably not enough [1], and document.documentMode should be used instead [2], otherwise the ie8 implementation would have to do a quirks-vs-standards-vs-super-standards-mode-detection, which would make the ie6 impl quite useless. [1] Mike Ormond reports that a document can be displayed in IE=5 or IE=7 mode while the UA is still reported as MSIE 8.0 http://blogs.msdn.com/mikeormond/archive/2008/09/25/ie-8-compatibility-meta-tags-http-headers-user-agent-strings-etc-etc.aspx [2] http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx#GetModehttp://msdn.microsoft.com/en-us/library/cc288325%28VS.85%29.aspx#GetMode Thanks for pointing out that blog in particular. Amazing that they managed to turn quirks/standards into a 12-entry matrix :P The good news is that In compatibility view, IE always reports its UA as MSIE 7.0, which triggers the ie6 user-agent property. When no X-UA-Compatible header is set, we're in normal mode (i.e., not compatibility view), and no DOCTYPE is set, we end up in quirks-mode, which appears to turn off some IE8 features (I've noticed that at least IE8 history breaks, though everything else I've tried seems to work fine and all of our tests pass). The only solution I'm aware of is to either set a DOCTYPE or the X-UA-Compatible header (both of which will put you in standards-mode). I realize there are still some GWT panels that layout a bit oddly in standards-mode, and while we're working on solving this, it's going to be a problem for some apps for a while yet. I'll document this on the IE8 support wiki page for now. Before long, it will be the right thing to always set a DOCTYPE, which should make this problem go away. http://gwt-code-reviews.appspot.com/29803/diff/1/6 File user/src/com/google/gwt/xml/XML.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/6#newcode39 Line 39: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: tabs again »» Done. http://gwt-code-reviews.appspot.com/29803 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: IE8 support
You got that right. I went into the update process thinking the same thing you did, only to discover that it's just IE7 with a bit more makeup on it :P On Wed, Apr 29, 2009 at 1:27 PM, Vitali Lovich vlov...@gmail.com wrote: That's annoying. On Wed, Apr 29, 2009 at 1:07 PM, Joel Webber j...@google.com wrote: Not even close, unfortunately. If you look at the wiki page I wrote up: http://code.google.com/p/google-web-toolkit/wiki/IE8Support You'll see that the actual differences are pretty minimal. They fixed a number of CSS things, added DOM storage, Ajax history, and other things like that. But their event model is still wildly different. Most of the DOM element methods and properties are still weird and different, and so forth. I'm afraid Trident remains its own beast :( On Wed, Apr 29, 2009 at 1:02 PM, Vitali Lovich vlov...@gmail.com wrote: Does IE8 still have non-standards compliant behaviour? I thought they were supposed to introduce pretty strict standards compliance with IE8 (in fact, some/all? legacy non-standard stuff is unavailable). Shouldn't IE8 extend DOMImplStandard or are there still remaining issues? On Mon, Apr 27, 2009 at 11:22 AM, j...@google.com wrote: http://gwt-code-reviews.appspot.com/29803/diff/1/5 File user/src/com/google/gwt/dom/DOM.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/5#newcode56 Line 56: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: too many spaces Done. http://gwt-code-reviews.appspot.com/29803/diff/1/12 File user/src/com/google/gwt/user/Form.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/12#newcode31 Line 31: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: Spacing, and what are those two red arrows? »» visual tab indicators. Cleaned up tabs. http://gwt-code-reviews.appspot.com/29803/diff/1/7 File user/src/com/google/gwt/user/RichText.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/7#newcode27 Line 27: when-property-is name=user.agent value=ie6 / On 2009/04/24 20:34:56, jlabanca wrote: Remove the »», which I assume are tabs. Done. http://gwt-code-reviews.appspot.com/29803/diff/1/8 File user/src/com/google/gwt/user/TextBox.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/8#newcode32 Line 32: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: Remove »» Done. http://gwt-code-reviews.appspot.com/29803/diff/1/9 File user/src/com/google/gwt/user/UserAgent.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/9#newcode38 Line 38: if (v = 8000) { On 2009/04/24 23:44:41, t.broyer wrote: I believe ie8 here means X-UA-Compatibility: IE=8, so detecting the version from the navigator.userAgent is probably not enough [1], and document.documentMode should be used instead [2], otherwise the ie8 implementation would have to do a quirks-vs-standards-vs-super-standards-mode-detection, which would make the ie6 impl quite useless. [1] Mike Ormond reports that a document can be displayed in IE=5 or IE=7 mode while the UA is still reported as MSIE 8.0 http://blogs.msdn.com/mikeormond/archive/2008/09/25/ie-8-compatibility-meta-tags-http-headers-user-agent-strings-etc-etc.aspx [2] http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx#GetModehttp://msdn.microsoft.com/en-us/library/cc288325%28VS.85%29.aspx#GetMode Thanks for pointing out that blog in particular. Amazing that they managed to turn quirks/standards into a 12-entry matrix :P The good news is that In compatibility view, IE always reports its UA as MSIE 7.0, which triggers the ie6 user-agent property. When no X-UA-Compatible header is set, we're in normal mode (i.e., not compatibility view), and no DOCTYPE is set, we end up in quirks-mode, which appears to turn off some IE8 features (I've noticed that at least IE8 history breaks, though everything else I've tried seems to work fine and all of our tests pass). The only solution I'm aware of is to either set a DOCTYPE or the X-UA-Compatible header (both of which will put you in standards-mode). I realize there are still some GWT panels that layout a bit oddly in standards-mode, and while we're working on solving this, it's going to be a problem for some apps for a while yet. I'll document this on the IE8 support wiki page for now. Before long, it will be the right thing to always set a DOCTYPE, which should make this problem go away. http://gwt-code-reviews.appspot.com/29803/diff/1/6 File user/src/com/google/gwt/xml/XML.gwt.xml (right): http://gwt-code-reviews.appspot.com/29803/diff/1/6#newcode39 Line 39: when-property-is name=user.agent value=ie6/ On 2009/04/24 20:34:56, jlabanca wrote: tabs again »» Done. http://gwt-code-reviews.appspot.com/29803 --~--~-~--~~~---~--~~
[gwt-contrib] [google-web-toolkit commit] r5307 - checkstyle fixes
Author: fabb...@google.com Date: Wed Apr 29 10:30:23 2009 New Revision: 5307 Modified: trunk/user/src/com/google/gwt/core/client/JavaScriptObject.java Log: checkstyle fixes Modified: trunk/user/src/com/google/gwt/core/client/JavaScriptObject.java == --- trunk/user/src/com/google/gwt/core/client/JavaScriptObject.java (original) +++ trunk/user/src/com/google/gwt/core/client/JavaScriptObject.java Wed Apr 29 10:30:23 2009 @@ -50,9 +50,16 @@ }-*/; /** + * Helper for {...@link #toString()}, for lighter more production code. + */ + private static native String toStringSimple(JavaScriptObject obj) /*-{ +return obj.toString ? obj.toString() : '[JavaScriptObject]'; + }-*/; + + /** * Helper for {...@link #toString()}, when hosted mode or assertions are on. */ - private final native static String toStringVerbose(JavaScriptObject obj) /*-{ + private static native String toStringVerbose(JavaScriptObject obj) /*-{ var defined = function(m) { return typeof m != 'undefined'; }; var strip = function(s) { return s.replace(/\r\n/g, ); }; // Output nodes that have outerHTML @@ -88,13 +95,6 @@ return out; } } -return obj.toString ? obj.toString() : '[JavaScriptObject]'; - }-*/; - - /** - * Helper for {...@link #toString()}, for lighter more production code. - */ - private final static native String toStringSimple(JavaScriptObject obj) /*-{ return obj.toString ? obj.toString() : '[JavaScriptObject]'; }-*/; --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---