Re: UI Help
This might help you http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html Olivier On 4 Jan 2010, at 17:37, Wrenbjor wrote: Hey everyone, I'm new to both Java And GWT. I have been making web pages for 10 years with PHP, JavaScript (Jquery), and CSS. I wrote a template HTML page that I use at work and I am trying to duplicate it in GWT but I'm having no luck. I dont know how do duplicate the HTML using the GWT widgets or with Gwt UiBinder. Can someone help? I will post the HTML and CSS for my template. Thanks for any help you can give. *** BEGIN HTML *** !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleDashboard/title link rel=stylesheet href=css/reset.css / link rel=stylesheet href=css/960.css / link rel=stylesheet href=css/main.css / link rel=stylesheet href=css/ui-darkness/jquery- ui-1.7.2.custom.css / /head body div id=mainContainer class=container_16 div id=header class=grid_5 h4TemplatesmallDashboard/small/h4 /div div id=menu class=grid_16 ul class=grid_16 lia href=ops.phpOperations View/a/li lia href=mgr.phpManagement View/a/li lia href=#Detail Views/a ul lia href=ytd.phpYTD/a/li lia href=sde.phpSDE/a/li lia href=thing.phpTHING/a/li lia href=actions.phpActions/a/li lia href=userMgr.phpUser Management/a/ li /ul /li li id=dateBoxDate: input id=date name=date type=text size=14 /button id=dateSearch type=buttonGo/ button/li /ul /div div id=content class=grid_16 /div /div /body /html *** END HTML *** reset.css is the reset from http://meyerweb.com/eric/tools/css/reset/ and 960.css is the 960.gs framework file *** BEGIN Main.css ** @charset utf-8; /* CSS Document */ body { background-color:#5e5e5e; } /* HEADER BLOCK */ #header { margin-top:10px; } h4 { font-family:Arial, Helvetica, sans-serif; font-size:23px; color:#ff; letter-spacing:-1px; margin-bottom:10px; } h4 small { color:#e3e9ec; font-weight:normal; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif; text-transform:uppercase; position:relative; top:-4px; left:6px; letter-spacing:0px; } /* MENU BLOCK */ #menu { background:#c4c4c4; z-index:100; } #menu ul { margin:0px; padding:7px 0px 7px 0px; margin-top:6px; margin-bottom:6px; position:absolute; background:#c4c4c4; } #menu ul li { list-style:none; display:inline; } #dateBox, #macBox { padding:0px 0px 0px 40px; margin:0px 5px 0px 0px; float:right; } #menu ul li a { background-color:#c4c4c4; color:#0F0F0F; padding:10px 14px 14px 14px; text-decoration:none; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:bold; text-transform:uppercase; } #menu ul li a:hover { background-color:#2f343a; border-color:#2f343a; color:#c4c4c4; } #menu li ul { left:16em; margin:0px 0px 0px 10px; background:#c4c4c4; } #menu li ul a { background-color:#c4c4c4; color:#0F0F0F; padding:10px 14px 6px 14px; text-decoration:none; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:bold; text-transform:uppercase; } #menu li ul { display:none; } #menu li:hover ul { margin-top:6px; display:block; } #menu input { background:#c4c4c4; } /* BODY BLOCK */ #content { background:#FF; border-top:1px solid; margin-top:42px; height:768px; z-index:99; overflow:auto; } *** END Main.css *** -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. --- Olivier Digiworks Política de Protección de Datos de Carácter Personal En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y
Re: RPC vs HTTP requests
Hi Jeff, I don't know why you're binding a Report object to $wnd, but in a standard case JSON usage would look the following way: public class Report extends JavaScriptObject { protected Report() {} public final static native Report getName() /*-{ return this.name; }-*/; public final static native void setName(String name) /*-{ this.name = name; }-*/; } An incoming JSON string looking like this {name: My Report} can be parsed the following this way JSONObject obj = JSONParser.parse(response.getText()).isObject(); if(obj != null) { Report myReport = obj.getJavaScriptObject().cast(); // do something with myReport } This has the benefit, that the object only lives as inside your GWT app, instead of affecting other things. On Mon, Jan 4, 2010 at 4:01 PM, Jeff Chimene jchim...@gmail.com wrote: Sri, Thanks. I have a question: snip *Performance* - Client Side - REST with JSON wins over RPC. Browsers are exceptionally good at json parsing. It is going to be much faster than GWTs serialization/deserialization mechanism. This is applicable only if you use javascript overlays. JSONArray/JSONObject/JSONValue classes don't give you this performance benefit. I've been using the following technique to use the JSON parsing in 2.0. I don't see a specific example in the docs: Report.set(JSONParser.parse(response.getText()).isObject().getJavaScriptObject()); Where Report is defined as follows: public class Report extends JavaScriptObject { protected Report() {} public final static native Report get() /*-{ return $wnd.Report; }-*/; public final static native void set(JavaScriptObject value) /*-{ $wnd.Report = value; }-*/; } I don't see any other way to avoid unsafe parsing. Comments? snip -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RPC vs HTTP requests
Oh, one mistake in my above sample: The methods of the Report class shouldn't me static. Regards Jan Ehrhardt On Tue, Jan 5, 2010 at 10:23 AM, Jan Ehrhardt jan.ehrha...@googlemail.comwrote: Hi Jeff, I don't know why you're binding a Report object to $wnd, but in a standard case JSON usage would look the following way: public class Report extends JavaScriptObject { protected Report() {} public final static native Report getName() /*-{ return this.name; }-*/; public final static native void setName(String name) /*-{ this.name = name; }-*/; } An incoming JSON string looking like this {name: My Report} can be parsed the following this way JSONObject obj = JSONParser.parse(response.getText()).isObject(); if(obj != null) { Report myReport = obj.getJavaScriptObject().cast(); // do something with myReport } This has the benefit, that the object only lives as inside your GWT app, instead of affecting other things. On Mon, Jan 4, 2010 at 4:01 PM, Jeff Chimene jchim...@gmail.com wrote: Sri, Thanks. I have a question: snip *Performance* - Client Side - REST with JSON wins over RPC. Browsers are exceptionally good at json parsing. It is going to be much faster than GWTs serialization/deserialization mechanism. This is applicable only if you use javascript overlays. JSONArray/JSONObject/JSONValue classes don't give you this performance benefit. I've been using the following technique to use the JSON parsing in 2.0. I don't see a specific example in the docs: Report.set(JSONParser.parse(response.getText()).isObject().getJavaScriptObject()); Where Report is defined as follows: public class Report extends JavaScriptObject { protected Report() {} public final static native Report get() /*-{ return $wnd.Report; }-*/; public final static native void set(JavaScriptObject value) /*-{ $wnd.Report = value; }-*/; } I don't see any other way to avoid unsafe parsing. Comments? snip -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP example on Wiki, completing the thought.
I think a better solution would be setModel(TableModel model) where TableModel is an iterface, like the Swing TableModel. This way you will have a table that can display all sorts of domain objects. 2010/1/5 Benju b...@fastcastmedia.com On the GWT wiki there is a new article (http://code.google.com/ webtoolkit/doc/latest/tutorial/mvp-architecture.html) with good example of how MVP code should work. I found the following quote interesting... Method setData() is a simple way of getting model data into the view without the view having intrinsic knowledge of the model itself In the example there is only one column of date in the contacts table/ list which meant the view can draw itself based on a ListString. What if the view was meant to display multiple columns a ListString as seen in ContactsPresenter.fetchContactDetails would not work. I see three options... Change this to ListContactDetails but then the view references the model Create a new class like ContactDetailsRowData that is essential ContactDetails minus any non-viewed fields (ie: primary key). Break down each row in the table into it's own widget, this tends to get very messy though and seems hackish. I am currently leaning towards setting the view's data as a ListContactDetails and just making sure that the view only uses model data to display the user interface, it doesn't try to fire events like SelectionEventContactDetails but rather sticks to ClickHandlers and providing methods like getSelectedIndex(). Any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Step-by-Step tutorial how to use external Tomcat with GWT 2.0
Hi, I am looking for a tutorial about using an external tomcat server with gwt 2.0. I could only find discussions about older GWT versions, and actually I am stuck at this step. Does somebody can show me the steps how I can use the sample gwt project, which will be created by the google eclipse plugin, on an external tomcat server? Thanks a lot. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Step-by-Step tutorial how to use external Tomcat with GWT 2.0
Hi, 1: You'll just need to deploy your server side application. 2: Start the external server. 3: Start the GWT Server (GWT application with eclipse plugin) *without* the embded server. 4: browse to your html/jsp page hosting your gwt application with the extra parameter: ?gwt.codesvr=134.40.251.239:9997 (adapt of course with your IP address). Without this parameter you will use the deployed(js compiled) GWT code. HIH On Tue, Jan 5, 2010 at 10:54 AM, ojay oliver.ja...@googlemail.com wrote: Hi, I am looking for a tutorial about using an external tomcat server with gwt 2.0. I could only find discussions about older GWT versions, and actually I am stuck at this step. Does somebody can show me the steps how I can use the sample gwt project, which will be created by the google eclipse plugin, on an external tomcat server? Thanks a lot. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: change style to Menubar
any clue how to do it? i am a new bee and i couldn't get the popup class. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem to Display Image at IE8 browser
Dear Sir, i am developing a project in which i waht to show image after browsing.My problem is when i browse image at IE7 or previous version it displayed but this ih not work at IE8 and Firefox broswers. Please help me... Thank in advance.. With Regards Avdhesh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Slowdown of GWT while loading
So, what are the file sizes of 1.cache.html through 5.cache.html ? I am guessing they are very small as compared to c.cache.html... If that's the case, your code-splitting methodology has problems. The last fragment is the 'leftover' fragment. Any code fragment which is being used by more than one async block ends up in the leftover fragment. Couple of recommendations - 1. What pattern are you using to split your code base? I would recommend using the Async Provider pattern. Its the only thing that worked reliably for me. 2. Have you yet run the soyc dashboard? If not, you should absolutely do so. This paragraph from the CodeSplitting wiki applies to you. A less common example is that you expected an item to be exclusive to some split point, but actually it's only included in leftover fragments. In this case, browse to the item via the total program code subset. You will then get a page describing where the code of that item ended up. If the item is not exclusive to any split point, then you will be shown a list of all split points. If you click on any of them, you will be shown a dependency chain for the item that does not include the split point you selected. To get the item exclusive to some split point, choose a split point, click on it, and then break a link in the dependency chain that comes up. The Code Splitting documentation can be found here - http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting --Sri 2010/1/5 Raul raahoo...@gmail.com Hello all, I am developing a Database application using GWT. From very initial stage I was having slow loading problem in my app and now, as the volume and number of files gradually increasing, it is becoming worsened in terms of loading. Now my application is taking more than a minute, sometimes even more than 2 minutes to load the application in client. I have modified my coding style by best possible way I can, but it is not helping me out any ways to reduce the loading time. I have 6 .cache.html file in my application_name folder [which are generated by GWT compiler] each having average 7.5 MB in size. Please help me out in this issue, otherwise choosing GWT for building my application will turns out to be a wrong decision. Thanks in advance. Raul -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
user by default
Can I get the user account by default if the user is al ready loggin in igoogle, gmail, etc? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Step-by-Step tutorial how to use external Tomcat with GWT 2.0
Hi, I tried this before, but i am also using maven for project building. So i added pom.xml to my Web Application project (created with GEP) and when i executed mvn eclipse:eclipse (in order to add my dependencies to the web app project) dev mode stopped working( no change is made after refresh the browser). The change is done only if i compile the web app project. Do you have any expirience with GEP + maven + external server? Regards. On Tue, Jan 5, 2010 at 12:09 PM, olivier nouguier olivier.nougu...@gmail.com wrote: Hi, 1: You'll just need to deploy your server side application. 2: Start the external server. 3: Start the GWT Server (GWT application with eclipse plugin) *without* the embded server. 4: browse to your html/jsp page hosting your gwt application with the extra parameter: ?gwt.codesvr=134.40.251.239:9997 (adapt of course with your IP address). Without this parameter you will use the deployed(js compiled) GWT code. HIH On Tue, Jan 5, 2010 at 10:54 AM, ojay oliver.ja...@googlemail.com wrote: Hi, I am looking for a tutorial about using an external tomcat server with gwt 2.0. I could only find discussions about older GWT versions, and actually I am stuck at this step. Does somebody can show me the steps how I can use the sample gwt project, which will be created by the google eclipse plugin, on an external tomcat server? Thanks a lot. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Intigration with existing project .... Hosted mode issues.
Hello Friends I don't understand why it should be so difficult to integrate the GWT with the current application, I have been struggling for few weeks now ( not full time , of course) Definitely ... there should be some help available which I'm not able to find, I'm currently like beating around the bushes to make progress. If anyone knows , please forward me any articles where there is some guideline regarding integrating GWT with the existing project. Currently I'm desperately stuck at a place where the hosted mode is not able to find module.gwt.xml(CASE I below ) or the entry point classes (CASE II below )... don't know why. I'm using eclipse 3.5 (Galileo) 'Run configuration' to build my application which uses GWT 1.7 I'm sorry to be so descriptive but I really want you to understand what I'm doing and to get some help. Following is my folder structure Current existing Project :- -src --main ---java com -package1 --package2 New GWT folders in the same above existing project :- -src --main ---java (MyApplication.gwt.xml) com -gwtAppl --client --server Build ( Output Folders ) -build --classes ---com . My eclipse's 'Run configuration' class-path contains all the gwt-xxx.jars and according to above folder structure, the entries like ... src/main/java/ and I think the source tab also has the path of all the source files === CASE I Log in the hosted mode console [INFO] Starting HTTP on port 8081 [TRACE] Starting URL: http://localhost:8081/MyApplication [TRACE] Request 0: http://localhost:8081/MyApplication [TRACE] Request 1: http://localhost:8081/myapplication/ [TRACE] The development shell servlet received a request to generate a host page for module 'myapplication' [TRACE] Request 2: http://localhost:8081/myapplication/myapplication.nocache.js [TRACE] The development shell servlet received a request for 'myapplication.nocache.js' in module 'myapplication.gwt.xml' [TRACE] Request 3: http://localhost:8081/myapplication/hosted.html [TRACE] The development shell servlet received a request for 'hosted.html' in module 'myapplication.gwt.xml' [TRACE] Request 4: http://localhost:8081/myapplication/gwt/standard/standard.css [TRACE] The development shell servlet received a request for 'gwt/standard/standard.css' in module 'myapplication.gwt.xml' [DEBUG] Loading an instance of module 'myapplication' [DEBUG] Refreshing module from source [TRACE] Finding entry point classes [ERROR] Unable to find type 'com.mycompany.client.MyApplication' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly [ERROR] Failure to load module 'myapplication' According to the log above, it looks like it's not able to load the 'instance' of the module .. 'MyApplication'. === CASE II Keeping all the above configuration same, when I move MyApplication.gwt.xml as below .. -src --main ---java com -gwtAppl (MyApplication.gwt.xml) --client --server The the host mode error is as follows ... [INFO] Starting HTTP on port 8081 [TRACE] Starting URL: http://localhost:8081/MyApplication [TRACE] Request 0: http://localhost:8081/MyApplication [TRACE] Loading module 'MyApplication' [ERROR] Unable to find 'MyApplication.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [TRACE] Request 1: http://localhost:8081/MyApplication/ [TRACE] Loading module 'MyApplication' [ERROR] Unable to find 'MyApplication.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [TRACE] The development shell servlet received a request to generate a host page for module 'MyApplication' [TRACE] Loading module 'MyApplication' [ERROR] Unable to find 'MyApplication.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? in this I guess it's not able to find the gwt.xml itself. In this case , inside the 'run configuration' under GWT tab, it shows the this file and the path where it is placed. Please let me know if you need to know anything more Thanks a lot for reading this ... Girish -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: user by default
GWT has nothing to do with that because is a client-side framework. What you want to do is done server-side and therefore it doesn't matter whether you are using GWT or not. On 01/05/2010 01:12 PM, Acerezo wrote: Can I get the user account by default if the user is al ready loggin in igoogle, gmail, etc? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: frustrated with Google Eclipse Plugin and Maven gwt-maven-plugin integration
Hi there, would you happen to have your working project available? I can't seem to get debugging working in this configuration. On 2 dec 2009, 23:48, Karthik Abram karthik.ab...@gmail.com wrote: I don't have it working with the Google eclipse plugin ... but I did get it working where compilation is no slower than the Google Eclipse plugin and debugging is just as fast (using maven compile target and java app launch config for debugging). I did have to get gwt-maven-plugin 1.2-SNAPSHOT to get it going. I don't have a ready-to-share version ... just as yet. Give me a few days and I can perhaps share the code with you. On Wed, Dec 2, 2009 at 4:04 PM, bkbonner brian.bon...@paraware.com wrote: Does anyone have this working well and can share a decent archetype for 2.0 RC2 that works with maven and google eclipse plugin? Does anyone have google eclipse plugin and maven working well together and can generate an archetype (it's a simple command) that can be shared? Brian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Step-by-Step tutorial how to use external Tomcat with GWT 2.0
Hi Yes I use maven too :) But with m2eclipse and WTP. Maven set up to redirect the build in war folder I'm also using Spring, and the external server works really better than the embeded server (there is some classloader issues http://groups.google.com/group/google-web-toolkit/browse_thread/thread/be6b6681192aa54a?pli=1 ) On Tue, Jan 5, 2010 at 1:14 PM, mariyan nenchev nenchev.mari...@gmail.comwrote: Hi, I tried this before, but i am also using maven for project building. So i added pom.xml to my Web Application project (created with GEP) and when i executed mvn eclipse:eclipse (in order to add my dependencies to the web app project) dev mode stopped working( no change is made after refresh the browser). The change is done only if i compile the web app project. Do you have any expirience with GEP + maven + external server? Regards. On Tue, Jan 5, 2010 at 12:09 PM, olivier nouguier olivier.nougu...@gmail.com wrote: Hi, 1: You'll just need to deploy your server side application. 2: Start the external server. 3: Start the GWT Server (GWT application with eclipse plugin) *without* the embded server. 4: browse to your html/jsp page hosting your gwt application with the extra parameter: ?gwt.codesvr=134.40.251.239:9997 (adapt of course with your IP address). Without this parameter you will use the deployed(js compiled) GWT code. HIH On Tue, Jan 5, 2010 at 10:54 AM, ojay oliver.ja...@googlemail.comwrote: Hi, I am looking for a tutorial about using an external tomcat server with gwt 2.0. I could only find discussions about older GWT versions, and actually I am stuck at this step. Does somebody can show me the steps how I can use the sample gwt project, which will be created by the google eclipse plugin, on an external tomcat server? Thanks a lot. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
gwt 2.0 problem: maven-googlewebtoolkit2-plugin compiles cache.js files and GEP compiler cache.html
Hi, I am using maven-googlewebtoolkit2-plugin to compile my project. I created simple project to set image as background with CssResourceClientBundle. In development mode and compiled with GEP it is working. The compiled css style is included in cache.html file and loaded, but with maven-googlewebtoolkit2-plugin the out put files are cache.js and the compiled css is missing. Here is my build: plugin groupIdcom.totsp.gwt/groupId artifactIdmaven-googlewebtoolkit2-plugin/artifactId version2.0-RC1/version configuration contextXml${basedir}/src/main/webapp/META-INF/contextGwtShell.xml/contextXml logLevelINFO/logLevel compileTargets valueclaire.ClaireClient/value /compileTargets runTargetClaireClient.html/runTarget styleDETAILED/style noServerfalse/noServer extraJvmArgs-Xmx512m/extraJvmArgs gwtVersion${gwtVersion}/gwtVersion output${project.build.directory}/bft/output /configuration executions execution goals goalcompile/goal /goals /execution /executions /plugin I also tried to use maven gwt plugin but i got: [INFO] Compiling module claire.ClaireClient [INFO] [ERROR] Unexpected [INFO] java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference [INFO] at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:309) [INFO] at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init(JdtCompiler.java:147) [INFO] at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:465) [INFO] at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:141) [INFO] at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:279) [INFO] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:181) [INFO] at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:280) [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:502) [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:201) [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) [INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) [INFO] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81) [INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:159) [INFO] [ERROR] BUILD ERROR So one application compiled with gep is working, but with the maven-googlewebtoolkit2-plugin is not. Please help. Regards. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt 2.0 problem: maven-googlewebtoolkit2-plugin compiles cache.js files and GEP compiler cache.html
With fire bug i can see that there is generated style G3vhxeuA, but it is missing. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt 2.0 problem: maven-googlewebtoolkit2-plugin compiles cache.js files and GEP compiler cache.html
This works perfectly Build: groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version1.2/version On Tue, Jan 5, 2010 at 2:02 PM, mariyan nenchev nenchev.mari...@gmail.comwrote: With fire bug i can see that there is generated style G3vhxeuA, but it is missing. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: user by default
That would be part of the appengine API. Here is the discussion group for them http://groups.google.com/group/google-appengine-java?lnk= But I think the answer is yes, you ask for a user object and it returns one if the user is logged in, else you set up the login redirect. On Jan 5, 6:12 am, Acerezo acerezoguil...@gmail.com wrote: Can I get the user account by default if the user is al ready loggin in igoogle, gmail, etc? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Regional Setting
Hi there, you sould take a look at the showcase http://gwt.google.com/samples/Showcase/Showcase.html#CwNumberFormat and look around the docs for internationalization http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html if you'll use locale=... what ever you need, ... for example NumberFormat.getDecimalFormat() ... wil give the standard decimalFormat for the specified locale, NOTE: using locale you'll get extra permutations ( number of browser implementations multiplied by (the number of specified locales+1)) so if you need only a few formattings here an there you would better use hand made formater Good luck On Jan 5, 4:23 am, oks samko...@gmail.com wrote: Can I get the regional setting for number from GWT? By using number format, this seems to be using a fixed type of format -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DatePicker / set a minimum date
hi 1 ideea: make a class that extends DatePicker so that you'll call the second constructor protected DatePicker(MonthSelector monthSelector, CalendarView view, CalendarModel model) for the params use new DefaultMonthSelector(), new CalendarModel() and instead of the , new DefaultCalendarView(), use a class made by the source code of that with the following changes in the inner class CellGrid (line 37) you'll have to override the isEnabled() method so that it make the check if the date is lastDisabledDate lastDisabled could be a property in the MyDefaultCalendarView and also could/should be set by an method from the MyDatePicker also you could add a ShowRangeHandlersDate that on onShowRange() ... would iterate days between the start an end and do datepicker.setTransientEnabledOnDates(false,date) on each iteration or you could put the in a list and make the only once datepicker.setTransientEnabledOnDates(false,dateList) (this will call the first method so it'll be the same thing) this second method it's a lot more time/resource consuming pick your choice. ... hope this will help Good luck On Jan 4, 3:52 pm, Dariusz darius...@gmail.com wrote: Hi! Is there a function how to prevent people selecting a date, which is in the past? Something like, setMinDate( Date date)? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to use a initServlet for database connections in host mode??
Hi, I need to access my database in the server area of my gwt application. Now I have the problem that i cannot init the database connection. I am using hibernate to access my database, in my previous applications (struts) I used the Datasource of the underlying tomcat to start and database transcation with hibernate. Now with GWT 2.0 I want to use the hosted mode and therefore I need to initialize my database connection pool. Therefore I tried to create this pool with a servlet. Now I have the problem that my servlet will not be started in the hosted mode. Can somebody explain where I can define in GWT to start a special servlet at startup of the host mode? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to use a initServlet for database connections in host mode??
On Tue, Jan 5, 2010 at 22:08, ojay oliver.ja...@googlemail.com wrote: Hi, I need to access my database in the server area of my gwt application. Now I have the problem that i cannot init the database connection. I am using hibernate to access my database, in my previous applications (struts) I used the Datasource of the underlying tomcat to start and database transcation with hibernate. Now with GWT 2.0 I want to use the hosted mode and therefore I need to initialize my database connection pool. Therefore I tried to create this pool with a servlet. Now I have the problem that my servlet will not be started in the hosted mode. Can somebody explain where I can define in GWT to start a special servlet at startup of the host mode? ehhh, web.xml maybe? -- Two things that are infinite, the universe and my stupidity, and I'm not sure about the universe. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
hasFocus() ?
Why isn't there a FocusWidget.hasFocus() method ? Probably as this isn't well supported in the HTML world, but it would be nice and I can't really understand why it doesn't exists. This would be nice when you have a group of widgets and you know one of them as focus, but don't know which one... (of course you can add listeners, but a simple method would be much easier and straighforward). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt 2.0 problem: maven-googlewebtoolkit2-plugin compiles cache.js files and GEP compiler cache.html
I tried it. I got: [INFO] [ERROR] Unexpected [INFO] java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExce ptionIncludeDocCommentReference [INFO] at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:309) On Tue, Jan 5, 2010 at 3:15 PM, olivier nouguier olivier.nougu...@gmail.com wrote: This works perfectly Build: groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version1.2/version On Tue, Jan 5, 2010 at 2:02 PM, mariyan nenchev nenchev.mari...@gmail.com wrote: With fire bug i can see that there is generated style G3vhxeuA, but it is missing. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to use a initServlet for database connections in host mode??
Hi, I forgot a tiny thing in the web.xml :-) It's better to use the load-on-startup0/load-on-startup option in the web.xml so that the servlet will be started :-) On 5 Jan., 15:11, Qian Qiao qian.q...@gmail.com wrote: On Tue, Jan 5, 2010 at 22:08, ojay oliver.ja...@googlemail.com wrote: Hi, I need to access my database in the server area of my gwt application. Now I have the problem that i cannot init the database connection. I am using hibernate to access my database, in my previous applications (struts) I used the Datasource of the underlying tomcat to start and database transcation with hibernate. Now with GWT 2.0 I want to use the hosted mode and therefore I need to initialize my database connection pool. Therefore I tried to create this pool with a servlet. Now I have the problem that my servlet will not be started in the hosted mode. Can somebody explain where I can define in GWT to start a special servlet at startup of the host mode? ehhh, web.xml maybe? -- Two things that are infinite, the universe and my stupidity, and I'm not sure about the universe. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Step-by-Step tutorial how to use external Tomcat with GWT 2.0
Thanks a lot for your step by step description! My GWT-App is working now on the external server !! On 5 Jan., 11:09, olivier nouguier olivier.nougu...@gmail.com wrote: Hi, 1: You'll just need to deploy your server side application. 2: Start the external server. 3: Start the GWT Server (GWT application with eclipse plugin) *without* the embded server. 4: browse to your html/jsp page hosting your gwt application with the extra parameter: ?gwt.codesvr=134.40.251.239:9997 (adapt of course with your IP address). Without this parameter you will use the deployed(js compiled) GWT code. HIH On Tue, Jan 5, 2010 at 10:54 AM, ojay oliver.ja...@googlemail.com wrote: Hi, I am looking for a tutorial about using an external tomcat server with gwt 2.0. I could only find discussions about older GWT versions, and actually I am stuck at this step. Does somebody can show me the steps how I can use the sample gwt project, which will be created by the google eclipse plugin, on an external tomcat server? Thanks a lot. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email togoogle-web-tool...@googlegroups.com. To unsubscribe from this group, send email togoogle-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Eclipse locks up when opening GWT project
I'm using Eclipse 3.5 on Snow Leopard with the Google plugin for Eclipse on both a MBP and a MacPro and they both seem to work just fine. -jason On Jan 4, 2010, at 3:29 PM, Rob Tanner wrote: Hi, I'm running Eclipse 3.5 with the GWT plugin for 3.5 and webkit 2.0. I'm using MyEclipse 8.0 and using Pulse to build my IDE environment. I'm running identical environments pm my MacBook Pro (Leopard) and my iMac (Snow Leopard). On the laptop all is honky dory but on my iMac, the moment I try to run a GWT project, Eclipse locks up and I have to force quit. For non-GWT projects, all is well. When I bring up Eclipse there are a number of warnings, most of which are NLS unused message warning which I can assume I can ignore. However, I also get the following Google GWT related error: While loading class com.google.gwt.eclipse.core.clientbundle.ClientBu ndleResourceChangeListener$1, thread Thread[Worker-1,5,main] timed out waiting (5000ms) for thread Thread[main,6,main] to finish starting bundle com.google.gwt.eclipse.core_1.2.0.v2009120620 03 [170]. To avoid deadlock, thread Thread[Worker-1,5,main] is proceeding but com.google.gwt.eclipse.core.clientbundle.ClientBu ndleResourceChangeListener$1 may not be fully initialized. I also tried a straight Eclipse 3.5 download and added the plugin and webkit using the update site URL rather than Pulse. I don't get the same entry in the error log as above, but it still locks up. Any ideas? -- Rob -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to use a initServlet for database connections in host mode??
Hi ojay, Firstly, you write a listener under the server folder. This like: public class StartUp implements ServletContextListener { @Override public void contextInitialized(ServletContextEvent arg0) { //You will add for each startup process //maybe, like this Registry.addResources(ColumnResources.class); } @Override public void contextDestroyed(ServletContextEvent arg0) { } } Then, you add below lines into web.xml listener listener-classcom.mclub.server.startup.StartUp/listener-class /listener All these. I'm sorry, my English is bad because I'm living in Turkiye. ojay wrote: Hi, I need to access my database in the server area of my gwt application. Now I have the problem that i cannot init the database connection. I am using hibernate to access my database, in my previous applications (struts) I used the Datasource of the underlying tomcat to start and database transcation with hibernate. Now with GWT 2.0 I want to use the hosted mode and therefore I need to initialize my database connection pool. Therefore I tried to create this pool with a servlet. Now I have the problem that my servlet will not be started in the hosted mode. Can somebody explain where I can define in GWT to start a special servlet at startup of the host mode? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Mustafa DUMLUPINAR -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Slowdown of GWT while loading
You could do the following if not already done. 1. In .gwt.xml file, check for every inherit, maybe some are not required now. 2. In build.xml, search for -style and remove that line. This will ensure obfuscation. 3. Also using Fiddler/ Firebug, find out if the time being consumed is at server or in browser. It is quite possible that the delay could be at server side. Regards. On Tue, Jan 5, 2010 at 10:27 AM, aditya ch adityac1...@gmail.com wrote: First of all, ensure you have enabled 'obfuscated' flag while doing the GWT compilation which would hopefully reduce the size of the '.cache.html' files that gets generated. And if you are using latest version of GWT i.e. 2.0, try code splitting and load the code only when it's required. Please revert back if you still couldn't see much variations. On Jan 5, 5:27 am, Raul raahoo...@gmail.com wrote: Hello all, I am developing a Database application using GWT. From very initial stage I was having slow loading problem in my app and now, as the volume and number of files gradually increasing, it is becoming worsened in terms of loading. Now my application is taking more than a minute, sometimes even more than 2 minutes to load the application in client. I have modified my coding style by best possible way I can, but it is not helping me out any ways to reduce the loading time. I have 6 .cache.html file in my application_name folder [which are generated by GWT compiler] each having average 7.5 MB in size. Please help me out in this issue, otherwise choosing GWT for building my application will turns out to be a wrong decision. Thanks in advance. Raul -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder and FlexTable or Grid
Hi, I fail to see how that code replaces FlexTable and what UiBinder has to do with any of that?? The purpose of FlexTable is to provide an easy way of having tables of arbitrary length so as...well rows can be added to them. How are you going to replace that with hardcoded HTML? I don't see how changing the contents of an HTML panel serve this purpose in a fruitfull way. Of course i may be missing something, so could you please provide some pointers because i am trying to find the best way to use a flextalbe with UiBinder. On Dec 10 2009, 8:35 am, Craigo craig...@gmail.com wrote: I was trying to do this also. Then I slapped myself in the head and realised, with theUiBinder, we can now just use plain html. So we can do stuff like this: g:HTMLPanel table trtdInfo:/tdtdg:TextBox ui:field=infoTextBox// td/tr /table /g:HTMLPanel ...there maybe a good reason you want to use aFlexTablein the .ui.xml file, but I can't think of it. On Dec 10, 1:40 pm, FKereki fker...@gmail.com wrote: Hi! Is it possible to include aFlexTableor Grid withUiBinder? How do you specify each cell? And, for FlexTables, how can you join cells together? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Design bug in the GWT StockWatcher tutorial
Hello, I noticed a possible design bug in the Handling Exceptions section in the StockWatcher tutorial: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html#exceptions If you enter ERR to add the delisted symbol, the app will no longer display stock quote on new valid symbols added after ERR. You need to remove the ERR symbol from the stock table before adding new valid symbols. The root cause of this problem is how the program reads symbols after the ADD button is clicked. In the StockWatcher.addStock() method, the stocks ArrayList is appended with a stock symbol regardless if the symbol is validated by the server. The entire array of the stocks is passed to the server for validation in the StockWatcher.refreshWatchList() method. But the stockPriceServiceImpl.getPrices() is designed to throw exception as soon as it sees the ERR string in the passed-in array. Correcting this design bug will make an already-excellent tutorial even better. I hope some Googlers take note of this. Thx, yc -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.0 with C# back-end
On Dec 16 2009, 12:49 pm, joe joe.krat...@gmail.com wrote: yeah it looks like the link was butchered when I send the post. http://www.gwtapps.com/doc/html/com.google.gwt.http.client.html I have tried what you are using. However, after looking into the problem more I see that Same Origin Policy seems to be my issue. It looks like without using JSONP I can not call my self hosted C# WCF application. This is due to the port miss match (Jetty server runs on and my self hosted WCf app runs on 80) which violates S.O.P. According to Google's docs I can not do this without some 'hack' on the GWT side.http://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html#How_can_I_d... I have looked into using JSONP with WCF but I have been unable to locate a way to send a pure JSONP object to GWT. The only thing I have been able to do it send a string that holds my JSONP string. so there are leading and trailing . I would assume that GWT won't like this. So right now I have no other option but to write a GWT back-end proxy so that GWT front end can call my C# app to request data, unless anyone has any ideas. Thank you We had a similar problem, and we got JSONP working with GWT. Unfortunately, JSONP + GWT does not provide the desired results where concurrency is concerned (i.e. we get responses in the order the requests were sent -NOT the order in which responses are received) To circumvent this, I've implemented CORS on our app server, and it works with XSS requests in both devmode and hosted mode: http://www.w3.org/TR/access-control/ This is supported in FF 3.5+ and IE8. Note that IE8 asks the user every time a cross-site request is sent. It's possible this can be circumvented, but I did not investigate further. We only care about XSS support for devmode - the deployed product will be hosted by the same web server. Hope this helps, -- Richard Kolkovich http://www.sigil.org PGP Key: 0x9E54EF59 (http://pgp.mit.edu) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt + css + size in %
Don't think that % have any problem in IE. If your target is IE7/IE8, please install IE8. It comes with a firebug like debugger which can be used for debuggin IE7 and IE8. For IE6, you can use IE Developer Toolbar. It can only debug css and html. Regards. On Mon, Jan 4, 2010 at 11:05 PM, mariyan nenchev nenchev.mari...@gmail.comwrote: Hi, I am recently developing some very custom UI web app. So i had to play with css styles a lot. I was(am) developing on ubuntu + Firefox 3. The UI looks great on FF, Chrome and safari under MACubuntuwindows. But ofcource in IE under windows it does'nt render much well. I noticed that may be IE does not interpert size in % well, because every where i have size in % it is not rendered well or not rendered at all. Or may be mixing size in % with margins, paddings breaks the UI. I am not ui dev, please guide me how to fix this problem, because my client is targeting clients that mostly use IE. Suggest me some good tool like firebug for IE. I will post some images and my css, later. Regards. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DatePicker / set a minimum date
Don't think there is anything for it. You could implement ValueChangeHandler and throw an error when such a date is selected. Regards. On Mon, Jan 4, 2010 at 7:22 PM, Dariusz darius...@gmail.com wrote: Hi! Is there a function how to prevent people selecting a date, which is in the past? Something like, setMinDate( Date date)? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DockLayoutPanel sample code
Hi, I tried the DockLayoutCode which is presented in http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html: DockLayoutPanel p = new DockLayoutPanel(Unit.EM); p.addNorth(new HTML(header), 2); p.addSouth(new HTML(footer), 2); p.addWest(new HTML(navigation), 10); p.add(new HTML(some content)); // I added this: RootLayoutPanel.get().add(p); All this code was obviously placed inside the onModuleLoad substituting the sample Eclipse startup code when you create a new GWT app. The output looked nothing like what was presented on that page. I also tried the SplitLayoutPanel code right below that one. Likewise, the result was nothing that I expected. For one, there were no grab area to drag. I inspected the generated page in Firebug and I can certainly see the grab area there, but I don't see anything to drag. Moving the mouse around that area doesn't change the mouse into a hand and doesn't let me grab the separation, etc... What am I doing wrong here? On a similar note... I was surprise to see the Eclipse autogenerate HTML page say that it is in quirks mode and changing to standards mode could have layout consequences (etc.) when the goals of GWT 2.0 clearly state that they only aim to support standards mode. Could someone guide me on this one? Thanks, NG. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.0 w/ IntelliJ IDEA 7.0.5
Up until now I've used Eclipse for writing occasional GWT apps, but I'm not an Eclipse expert and am much more comfortable using Intellij for development. I thought I'd see how well IntelliJ 7.0.5 works for developing some toy GWT 1.7 apps, and except for a few warning messages, it seems to works fine. Then I gave GWT 2.0 a try with IntelliJ 7.0.5 to see what happens, and got the error messages posted below when building a little, default Hello World! program that had worked using GWT 1.7. In trying to figure out the problem, I came across an old post somewhere that suggested older versions of IntelliJ wouldn't work with later versions of GWT, but it wasn't clear which versions numbers they were talking about, or even if this was true. The errors below look to be XML Parser-related, but I don't know if there's a way I can point to a different parser, or if the problem is actually something else. So my question is...is it possible to develop with GWT 2 using IntelliJ 7.0.5? I'd rather not spend time on something that ultimately turns out to be futile, and when I asked the question over on the IntelliJ forum, I didn't get a response. Thanks. Information:Compilation completed with 42 errors and 0 warnings Information:42 errors Information:0 warnings Error:[ERROR] Line 23: Unexpected element 'define-configuration- property' Error:Failure while parsing XML Error:at com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedElement (DefaultSchema.java:80) Error:at com.google.gwt.dev.util.xml.Schema.onUnexpectedElement (Schema.java:93) Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement (ReflectiveParser.java:186) Error:at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:501) Error:at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement (AbstractXMLDocumentParser.java:179) Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement (XMLDocumentFragmentScannerImpl.java:1339) Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747) Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (XMLDocumentScannerImpl.java:648) Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:510) Error:at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:807) Error:at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:737) Error:at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:107) Error:at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1205) Error:at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse (ReflectiveParser.java:314) Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100 (ReflectiveParser.java:48) Error:at com.google.gwt.dev.util.xml.ReflectiveParser.parse (ReflectiveParser.java:385) Error:at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad (ModuleDefLoader.java:243) Error:at com.google.gwt.dev.cfg.ModuleDefSchema $BodySchema.__inherits_begin(ModuleDefSchema.java:212) Error:at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Error:at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) Error:at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) Error:at java.lang.reflect.Method.invoke(Method.java:597) Error:at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin (HandlerMethod.java:223) Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement (ReflectiveParser.java:257) Error:at com.google.gwt.dev.cfg.ModuleDefLoader$1.load (ModuleDefLoader.java:155) Error:at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule (ModuleDefLoader.java:269) Error:at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath (ModuleDefLoader.java:127) Error:at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:148) Error:at com.google.gwt.dev.GWTCompiler$1.run(GWTCompiler.java:119) Error:at com.google.gwt.dev.CompileTaskRunner.doRun (CompileTaskRunner.java:88) Error:at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger (CompileTaskRunner.java:82) Error:at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:126) Error:[ERROR] Line 24: Unexpected exception while processing element 'inherits' Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse (ReflectiveParser.java:338) Error:at com.google.gwt.dev.util.xml.DefaultSchema.onHandlerException (DefaultSchema.java:56) Error:at com.google.gwt.dev.util.xml.Schema.onHandlerException (Schema.java:65) Error:at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin (HandlerMethod.java:233)
Re: How to use a initServlet for database connections in host mode??
I'd use a ServletContextListener... Just implement that interface. You'd put your code into contextInitialized method. Then, declare your implemented class in web.xml in listener tags: listener listener-classyour fully qualified class here/listener-class /listener You'll be guaranteed to have your code executed before any requests are served to the client and it is only done once per application startup. NG. On Tue, Jan 5, 2010 at 9:53 AM, ojay oliver.ja...@googlemail.com wrote: Hi, I forgot a tiny thing in the web.xml :-) It's better to use the load-on-startup0/load-on-startup option in the web.xml so that the servlet will be started :-) On 5 Jan., 15:11, Qian Qiao qian.q...@gmail.com wrote: On Tue, Jan 5, 2010 at 22:08, ojay oliver.ja...@googlemail.com wrote: Hi, I need to access my database in the server area of my gwt application. Now I have the problem that i cannot init the database connection. I am using hibernate to access my database, in my previous applications (struts) I used the Datasource of the underlying tomcat to start and database transcation with hibernate. Now with GWT 2.0 I want to use the hosted mode and therefore I need to initialize my database connection pool. Therefore I tried to create this pool with a servlet. Now I have the problem that my servlet will not be started in the hosted mode. Can somebody explain where I can define in GWT to start a special servlet at startup of the host mode? ehhh, web.xml maybe? -- Two things that are infinite, the universe and my stupidity, and I'm not sure about the universe. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Thanks, NG -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: problem with a custom class used in RPC
Make use of a serializable white list... This will logically bring your custom class to the client package refer: http://osdir.com/ml/Google-Web-Toolkit/2009-11/msg01367.html Regards, Upendra Jariya. On Jan 4, 7:57 pm, K.WA chd...@gmail.com wrote: Hi, For some reasons, I have to create a class (IntList) that wraps a list of Integers. (see below). I have made a simple test to send an instance of this class in a simple RPC method @Override public void dummy(IntList l) { System.out.println(l=+l.toString()); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
development mode rpc call is an http OPTIONS instead of POST
After upgrading my application to GWT 2.0, I am getting a com.google.gwt.user.client.rpc.StatusCodeException on an rpc call in Development mode. This only happens in Development mode, and only in Chrome and FF, it works fine in IE. When I look at the apache logs for production mode (and development mode in IE), the rpc call becomes an http POST: 127.0.0.1 - - [04/Jan/2010:16:25:56 -0800] POST /parvia/piece.rpc HTTP/1.1 200 1943 http://localhost:/commerce/hosted.html? commerce Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; OfficeLiveConnector. 1.4; OfficeLivePatch.1.3) but in Firefox and Chrome Development mode, the rpc call results in an http OPTIONS: 127.0.0.1 - - [04/Jan/2010:16:28:24 -0800] OPTIONS /parvia/piece.rpc HTTP/1.1 200 - http://localhost:/commerce/hosted.html?commerce; Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5 anyone have an idea what is causing this? Thanks, Lance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Intigration with existing project .... Hosted mode issues.
if the location of your gwt.xml file isn't at the same level as your client package then you need to add a source tag to tell it where the client directory is. That's the likely reason it can't find your entry point class. so probably the simplest thing to do would be to move the gwt.xml file to src/main/java/com/gwtAppl/MyApplication.gwt.xml -jason On Jan 5, 2010, at 5:19 AM, girishrat...@gmail.com wrote: Hello Friends I don't understand why it should be so difficult to integrate the GWT with the current application, I have been struggling for few weeks now ( not full time , of course) Definitely ... there should be some help available which I'm not able to find, I'm currently like beating around the bushes to make progress. If anyone knows , please forward me any articles where there is some guideline regarding integrating GWT with the existing project. Currently I'm desperately stuck at a place where the hosted mode is not able to find module.gwt.xml(CASE I below ) or the entry point classes (CASE II below )... don't know why. I'm using eclipse 3.5 (Galileo) 'Run configuration' to build my application which uses GWT 1.7 I'm sorry to be so descriptive but I really want you to understand what I'm doing and to get some help. Following is my folder structure Current existing Project :- -src --main ---java com -package1 --package2 New GWT folders in the same above existing project :- -src --main ---java (MyApplication.gwt.xml) com -gwtAppl --client --server Build ( Output Folders ) -build --classes ---com . My eclipse's 'Run configuration' class-path contains all the gwt-xxx.jars and according to above folder structure, the entries like ... src/main/java/ and I think the source tab also has the path of all the source files === CASE I Log in the hosted mode console [INFO] Starting HTTP on port 8081 [TRACE] Starting URL: http://localhost:8081/MyApplication [TRACE] Request 0: http://localhost:8081/MyApplication [TRACE] Request 1: http://localhost:8081/myapplication/ [TRACE] The development shell servlet received a request to generate a host page for module 'myapplication' [TRACE] Request 2: http://localhost:8081/myapplication/myapplication.nocache.js [TRACE] The development shell servlet received a request for 'myapplication.nocache.js' in module 'myapplication.gwt.xml' [TRACE] Request 3: http://localhost:8081/myapplication/hosted.html [TRACE] The development shell servlet received a request for 'hosted.html' in module 'myapplication.gwt.xml' [TRACE] Request 4: http://localhost:8081/myapplication/gwt/standard/standard.css [TRACE] The development shell servlet received a request for 'gwt/standard/standard.css' in module 'myapplication.gwt.xml' [DEBUG] Loading an instance of module 'myapplication' [DEBUG] Refreshing module from source [TRACE] Finding entry point classes [ERROR] Unable to find type 'com.mycompany.client.MyApplication' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly [ERROR] Failure to load module 'myapplication' According to the log above, it looks like it's not able to load the 'instance' of the module .. 'MyApplication'. === CASE II Keeping all the above configuration same, when I move MyApplication.gwt.xml as below .. -src --main ---java com -gwtAppl (MyApplication.gwt.xml) --client --server The the host mode error is as follows ... [INFO] Starting HTTP on port 8081 [TRACE] Starting URL: http://localhost:8081/MyApplication [TRACE] Request 0: http://localhost:8081/MyApplication [TRACE] Loading module 'MyApplication' [ERROR] Unable to find 'MyApplication.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [TRACE] Request 1: http://localhost:8081/MyApplication/ [TRACE] Loading module 'MyApplication' [ERROR] Unable to find 'MyApplication.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [TRACE] The development shell servlet received a request to generate a host page for module 'MyApplication' [TRACE] Loading module 'MyApplication' [ERROR] Unable to find 'MyApplication.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? in this I guess it's not able to find the gwt.xml itself. In this case , inside the 'run configuration' under GWT tab, it shows the this file and the path where it is placed. Please let me know if you need to know anything more
Re: development mode rpc call is an http OPTIONS instead of POST
I'm having a very similar problem, but don't have an answer yet. I'm using the RequestBuilder to do an HTTP POST to our IIS server. Everything seems fine when I'm in the Java debugger in hosted mode, but when I compile to Javascript, my POST is changed to OPTIONS in FF and Chrome, but it works properly in IE. I've been stuck on this problem for days now. On Jan 4, 4:51 pm, lfrohman lfroh...@gmail.com wrote: After upgrading my application to GWT 2.0, I am getting a com.google.gwt.user.client.rpc.StatusCodeException on an rpc call in Development mode. This only happens in Development mode, and only in Chrome and FF, it works fine in IE. When I look at the apache logs for production mode (and development mode in IE), the rpc call becomes an http POST: 127.0.0.1 - - [04/Jan/2010:16:25:56 -0800] POST /parvia/piece.rpc HTTP/1.1 200 1943 http://localhost:/commerce/hosted.html? commerce Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; OfficeLiveConnector. 1.4; OfficeLivePatch.1.3) but in Firefox and Chrome Development mode, the rpc call results in an http OPTIONS: 127.0.0.1 - - [04/Jan/2010:16:28:24 -0800] OPTIONS /parvia/piece.rpc HTTP/1.1 200 - http://localhost:/commerce/hosted.html?commerce; Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5 anyone have an idea what is causing this? Thanks, Lance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Design bug in the GWT StockWatcher tutorial
yc, While scanning the list of inputs for ERR is not something you would necessarily build into a production application, it does provide an example of how you would throw an exception within a RPC. Note the comment right above the code snippet: For the sake of this example, keep it simple and only throw the exception when the stock symbol ERR is added to the watch list. Often times in these tutorials, we aren't out to build the perfect app, instead we focus on providing guidance on the fundamentals of the toolkit itself. How you work them into your app is going to be specific to the app that you are building. Thanks for the suggestion, please keep them coming. - Chris On Mon, Jan 4, 2010 at 6:34 PM, yc ycx4...@gmail.com wrote: Hello, I noticed a possible design bug in the Handling Exceptions section in the StockWatcher tutorial: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html#exceptions If you enter ERR to add the delisted symbol, the app will no longer display stock quote on new valid symbols added after ERR. You need to remove the ERR symbol from the stock table before adding new valid symbols. The root cause of this problem is how the program reads symbols after the ADD button is clicked. In the StockWatcher.addStock() method, the stocks ArrayList is appended with a stock symbol regardless if the symbol is validated by the server. The entire array of the stocks is passed to the server for validation in the StockWatcher.refreshWatchList() method. But the stockPriceServiceImpl.getPrices() is designed to throw exception as soon as it sees the ERR string in the passed-in array. Correcting this design bug will make an already-excellent tutorial even better. I hope some Googlers take note of this. Thx, yc -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RPC vs HTTP requests
On Tue, Jan 5, 2010 at 2:23 AM, Jan Ehrhardt jan.ehrha...@googlemail.comwrote: Hi Jeff, I don't know why you're binding a Report object to $wnd, but in a standard case JSON usage would look the following way: Hi Jan, I want the object to exist across different class instantiations. Ordinarily, I'd use gin to inject a singleton where needed, but I couldn't get that to work w/ JSNI. Perhaps it does w/ 2.0. It wasn't the best example for a post to the group, but it's what I had at hand. public class Report extends JavaScriptObject { protected Report() {} public final static native Report getName() /*-{ return this.name; }-*/; public final static native void setName(String name) /*-{ this.name = name; }-*/; } An incoming JSON string looking like this {name: My Report} can be parsed the following this way JSONObject obj = JSONParser.parse(response.getText()).isObject(); if(obj != null) { Report myReport = obj.getJavaScriptObject().cast(); // do something with myReport } This has the benefit, that the object only lives as inside your GWT app, instead of affecting other things. On Mon, Jan 4, 2010 at 4:01 PM, Jeff Chimene jchim...@gmail.com wrote: Sri, Thanks. I have a question: snip *Performance* - Client Side - REST with JSON wins over RPC. Browsers are exceptionally good at json parsing. It is going to be much faster than GWTs serialization/deserialization mechanism. This is applicable only if you use javascript overlays. JSONArray/JSONObject/JSONValue classes don't give you this performance benefit. I've been using the following technique to use the JSON parsing in 2.0. I don't see a specific example in the docs: Report.set(JSONParser.parse(response.getText()).isObject().getJavaScriptObject()); Where Report is defined as follows: public class Report extends JavaScriptObject { protected Report() {} public final static native Report get() /*-{ return $wnd.Report; }-*/; public final static native void set(JavaScriptObject value) /*-{ $wnd.Report = value; }-*/; } I don't see any other way to avoid unsafe parsing. Comments? snip -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RPC vs HTTP requests
On Mon, Jan 4, 2010 at 7:22 PM, Thomas Broyer t.bro...@gmail.com wrote: On 4 jan, 19:23, Jeff Chimene jchim...@gmail.com wrote: On 01/04/2010 10:57 AM, Thomas Broyer wrote: Use JsonUtils.unsafeEval() to avoid the unused JSONObject created by JSONParser.parse(), and then just use .cast() to turn the JSO into a Report (unless of course you want a singleton in the $wnd.Report global JS variable): Report myReport = JsonUtils.unsafeEval(response.getText()).cast(); Hi Thomas: Isn't an aspect of unsafeEval() that it's unsafe? Is JSONParser() also unsafe? Yes, both use a plain JS eval() to parse the JSON string. JSONParser has room for enhancement in using native JSON parsing in browsers that support it (IE8, FF3, Safari 4 and Chrome), whereas unsafeEval is likely to always use eval(). I built my own JSON module that uses JSON.parse() when available (using deferred binding to never try it in IE6/7, old-mozilla and Opera, and always use it in IE8) and fallback to JsonUtils.unsafeEval () otherwise. Hi Thomas, I don't have the resources to delve into deferred binding right now. I've seen a project (earlier in this thread) that looks interesting in that regard. Or do I always want to add comments to the cargo at the generator, strip such comments at the receiver and call unsafeEval() ( its equivalent on the server) I don't understand the comments thing (I think I understand the how, but I clearly don't get the why) The why is explained here: http://groups.google.com/group/google-web-toolkit/web/security-for-gwt-applications under JSON and GWT *Protecting Your Single-Site Application* That said, some people advise JSON developers to employ an extra precaution besides the cookie duplication XSRF countermeasure. In this model, your server code would wrap any JSON response strings within JavaScript block comments. For example, instead of returning ['foo', 'bar'] you would instead return /*['foo', 'bar']*/. The client code is then expected to strip the comment characters prior to passing the string to the eval function. From the JSONParser() code, I get the impression that it tries to differentiate among arrays, strings, c. I thought that such behavior was A Good Thing. JSONParser only tries to provide strong typing by some kind of introspection/reflection, that you obviously don't have with JSOs, but is it really needed? Even with JSONParser, you'll generally don't handle the error path and live with potential NPEs (in your snippet, what if the eval'd text isn't an object but an array?), which finally leads to doing computations about the data type that you don't really care in the end. In that situation, I'd like a runtime error. Something bad happened, and the app should fall over. Since I cannot predict what EvilCo will devise in the future w/r/t JSON attacks, I pay the tax as a way of precisely determining at run time the type of structure I expected when I wrote the code. Note that this code is not part of a mashup. I have control over the JSON at the sender and receiver. It's generally not worth paying the JSONValue tax of data type discovery. As noted above, I'm doing this as a way of ensuring that, at runtime, the structure I expected is the structure I received. The only thing that's missing with JSOs is an easy way of doing data type discovery in case the JSON format allows for different types of data (e.g. in an object, the value of key foo can be a string or an array of strings; an array of numbers or strings; etc.) Yeah, that's one of the issues I've been facing. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Add parameter to hosted mode URL with GWT 2.0
Hi there, I have a GWT 2.0 project and, when in production, this standalone app will always be called with a parameter in the URL. Now for development purposes I would like to always start the hosted mode (Jetty) with a certain parameter in the URL. I know there was a field earlier called startupUrl, but I can't seem to get that working with 2.0 I'm also using maven and the gwt-maven-plugin to start everything... which makes it even harder to get this working. Any ideas on how to add this parameter so that my hosted mode will always start like this: http://localhost:port/app.html?PARAM=testing Thanks for any advise in advance! Regards, Kees. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Color of cells in row in mouse over
Hi, Does anyone have an example of setting the color of a row of cells in a FlexTable on a mouse over? I'd like to turn the whole row of cells green for example when the user puts the mouse over any cell in that row, 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DatePicker / set a minimum date
I'm using the datepicker for the first time and I'm looking for this as well. It would also be nice to have a way to choose your year. It's all but useless for entering birthdates. Trevis On Jan 4, 7:52 am, Dariusz darius...@gmail.com wrote: Hi! Is there a function how to prevent people selecting a date, which is in the past? Something like, setMinDate( Date date)? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DecoratorPanel with a ScrollPanel
Rephrasing the question. The DecoratorPanel uses a table to draw it. The content of the DecoratorPanel is inside of the central td cell. That cell must have some formating property that prevents the scrolling from working. It must be something affecting the height because the overall height seems to be 0. So what can cause the height of a table to be 0? Even if the contents of one cell have a height clearly 0. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem with custom serialization in GWT 2.0
Hello. I used GWT 1.6.4 and custom field serializers for transmitting entities retrieved with help of hibernate. It was done for handling Hibernate collections. For example: public class Category_CustomFieldSerializer { public static void serialize(SerializationStreamWriter writer, Category instance) throws SerializationException { writer.writeString(instance.getName()); writer.writeObject(instance.getOperation()); writer.writeObject(new LinkedListCategoryValue (instance.getCategoryValues())); } public static void deserialize(SerializationStreamReader reader, Category instance) throws SerializationException { instance.setName(reader.readString()); instance.setOperation((OperationType) reader.readObject()); instance.setCategoryValues((ListCategoryValue) reader.readObject()); } } It was perfectly working. Recently I decided to try GWT 2.0. And suddenly I started to receive com.google.gwt.user.client.rpc.SerializationException: Type 'org.hibernate.collection.PersistentBag' I tried to print debug info from custom serializer and seems it never called. Does support for custom serializers ended in GWT 2.0? Is there some mechanism to solve this problem, except separate data transfer objects? Best regards, Evgeniy. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Validating ClientBundles ?
Hi Carlos, Thanks for reporting this issue. This is definitely a bug, although I'm having trouble reproducing it locally. Would it be possible for you to zip and send the projects that are crashing your Eclipse installation upon import, so I can debug the problem? Also, what version of Eclipse and operating system are you using? Thanks, Keith On Tue, Dec 22, 2009 at 12:07 PM, Carlos Aguayo carlos.agu...@gmail.comwrote: Hi, After upgrading the Eclipse plugin to GWT 2.0, whenever I import my Eclipse projects, Eclipse crashes. After importing the projects, I see multiple multiple (~12) jobs spawned called Validating ClientBundles, then it either shows a warning saying that it ran out of memory or just closes. When inspecting the Eclipse log, I found this: !ENTRY org.eclipse.core.jobs 4 2 2009-12-22 11:07:17.178 !MESSAGE An internal error occurred during: Refreshing workspace. !STACK 0 java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:597) at org.eclipse.core.internal.jobs.WorkerPool.jobQueued (WorkerPool.java:145) at org.eclipse.core.internal.jobs.JobManager.schedule(JobManager.java: 1001) at org.eclipse.core.internal.jobs.InternalJob.schedule (InternalJob.java:391) at org.eclipse.core.runtime.jobs.Job.schedule(Job.java:435) at com.google.gdt.eclipse.core.BuilderUtilities.revalidateCompilationUnits (BuilderUtilities.java:170) at com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener $1.visit(ClientBundleResourceChangeListener.java:154) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:68) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept (ResourceDelta.java:48) at com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener.visitResourceDelta (ClientBundleResourceChangeListener.java:124) at com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener.resourceChanged (ClientBundleResourceChangeListener.java:116) at org.eclipse.core.internal.events.NotificationManager$2.run (NotificationManager.java:291) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.NotificationManager.notify (NotificationManager.java:285) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges (NotificationManager.java:149) at org.eclipse.core.internal.resources.Workspace.broadcastPostChange (Workspace.java:313) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java:1022) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:45) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) === These are my JVM settings in eclipse.ini: --launcher.XXMaxPermSize 256m -Xms256m -Xmx1024m -Xss1024k Is there a way to turn off this validation upon importing the project. Am I missing something or is this a bug? Thanks, Carlos -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Should DecoratorPanel implement ProvidesResize?
I am trying to find a solution for this. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b645365429992479 But I am wondering if the DecoratorPanel should implement ProvidesResize? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt maven plugin build failed with java.lang.NoSuchFieldError
I found what was the cause of the exception. I have a jar dependency from my other module that contains jasper reports stuff, i removed it to see if this exception is because of it. It is very strange. With the other maven plugin i didn't have this problem. Any ideas? Regards. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.0: Debug with Firefox and Eclipse
When GWT was working with its internal browser, debugging from Eclipse was simple. I just marked the breakpoints and ran as debug. However, it doesn't seem to work with GWT 2.0 and Firefox. Any idea what am I missing? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: development mode rpc call is an http OPTIONS instead of POST
I found out what was causing my problem. My RequestBuilder was originally constructed as: new RequestBuilder (RequestBuilder.POST, http://localhost/appdir/somefile.aspx;); Once I used either a specific machine name or relative path then it no longer switched the from POST to OPTIONS. I now have the following: new RequestBuilder(RequestBuilder.POST, /appdir/somefile.aspx); On Jan 5, 7:49 am, Derek dealy...@hotmail.com wrote: I'm having a very similar problem, but don't have an answer yet. I'm using the RequestBuilder to do an HTTP POST to our IIS server. Everything seems fine when I'm in the Java debugger in hosted mode, but when I compile to Javascript, my POST is changed to OPTIONS in FF and Chrome, but it works properly in IE. I've been stuck on this problem for days now. On Jan 4, 4:51 pm, lfrohman lfroh...@gmail.com wrote: After upgrading my application to GWT 2.0, I am getting a com.google.gwt.user.client.rpc.StatusCodeException on an rpc call in Development mode. This only happens in Development mode, and only in Chrome and FF, it works fine in IE. When I look at the apache logs for production mode (and development mode in IE), the rpc call becomes an http POST: 127.0.0.1 - - [04/Jan/2010:16:25:56 -0800] POST /parvia/piece.rpc HTTP/1.1 200 1943 http://localhost:/commerce/hosted.html? commerce Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; OfficeLiveConnector. 1.4; OfficeLivePatch.1.3) but in Firefox and Chrome Development mode, the rpc call results in an http OPTIONS: 127.0.0.1 - - [04/Jan/2010:16:28:24 -0800] OPTIONS /parvia/piece.rpc HTTP/1.1 200 - http://localhost:/commerce/hosted.html?commerce; Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5 anyone have an idea what is causing this? Thanks, Lance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Hosted Mode browser window remains blank
This problem can be overcome by using GWT 2.0, and by using a browser instead of hosted mode for testing. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
History getToken causing infinite 250ms Timer Fire events
Is History.getToken() broken? Upgraded to gwt 2.0.0 and the Speed Tracer plugin (Windows 7, 64bit, Chrome), and noticed my app generated an infinite number of timer timeouts. I got it down to a hello,world style app. This is the whole app: public class Test implements EntryPoint { public void onModuleLoad() { String token = History.getToken(); RootPanel.get(block).add(new Label(hi)); } } Run this app, and watch the result with the Speed Tracer plugin in Chrome. I get a constant stream of: Event Trace. Timer Fire. Duration 18ms. Time Type: setTimeout. Interval 250ms Remove the History.getToken() and all the timers go away. Any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Add parameter to hosted mode URL with GWT 2.0
On 5 jan, 17:41, Kees keesvanbem...@gmail.com wrote: Hi there, I have a GWT 2.0 project and, when in production, this standalone app will always be called with a parameter in the URL. Now for development purposes I would like to always start the hosted mode (Jetty) with a certain parameter in the URL. I know there was a field earlier called startupUrl, but I can't seem to get that working with 2.0 I'm also using maven and the gwt-maven-plugin to start everything... which makes it even harder to get this working. Any ideas on how to add this parameter so that my hosted mode will always start like this: http://localhost:port/app.html?PARAM=testing Thanks for any advise in advance! -startupUrl app.html?PARAM=testing ? (though I don't know how to pass it to the DevMode with maven) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Eclipse locks up when opening GWT project
Shawn, That's the easy part. Select the Run Configuration for your app and then select the (x)=Arguments tab. There's a box labelled vm arguments. Type -d32 to force 32 bit environment. On Jan 4, 5:04 pm, Shawn Brown big.coffee.lo...@gmail.com wrote: I'm running identical environments pm my MacBook Pro (Leopard) and my iMac (Snow Leopard). Snow Leopard will run 64 bit java by default - no? Is GWT 64 bit compatible? What did you do to make Snow Leopard use a 32 bit vm? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
test folder not included in the Java Build Path Source
I am using GWT 2.0 plugins on Eclipse Galileo. After invoking the New Application Project and follow its instructions, it created standard src, test, war, etc folders. One thing I notice (even in GWT 1.x), the test folder is not included in the Java Build Path Source. I have to do the following: o Right-click on my project name - Build Path - Configure Build Path. Java Build Path dialog box shows up. o Click on the Java Build Path on the left panel o It only shows MyProjectName/src o Click Add Folder ... button o Select test folder Is this supposed to be like this? Is it a bug? Is my environment wrong? Am I doing something wrong? Thanks in advance for your 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DockLayoutPanel sample code
Anyone? On Tue, Jan 5, 2010 at 9:18 AM, N G nistar...@gmail.com wrote: Hi, I tried the DockLayoutCode which is presented in http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html: DockLayoutPanel p = new DockLayoutPanel(Unit.EM); p.addNorth(new HTML(header), 2); p.addSouth(new HTML(footer), 2); p.addWest(new HTML(navigation), 10); p.add(new HTML(some content)); // I added this: RootLayoutPanel.get().add(p); All this code was obviously placed inside the onModuleLoad substituting the sample Eclipse startup code when you create a new GWT app. The output looked nothing like what was presented on that page. I also tried the SplitLayoutPanel code right below that one. Likewise, the result was nothing that I expected. For one, there were no grab area to drag. I inspected the generated page in Firebug and I can certainly see the grab area there, but I don't see anything to drag. Moving the mouse around that area doesn't change the mouse into a hand and doesn't let me grab the separation, etc... What am I doing wrong here? On a similar note... I was surprise to see the Eclipse autogenerate HTML page say that it is in quirks mode and changing to standards mode could have layout consequences (etc.) when the goals of GWT 2.0 clearly state that they only aim to support standards mode. Could someone guide me on this one? Thanks, NG. -- Thanks, NG -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Color of cells in row in mouse over
If you do not need to support IE6, you can do this with CSS alone: .myFlexTable tr:hover { background-color: blue; } If you have trouble getting it to work in IE7, make sure you have a strict DOCTYPE in you host HTML page: http://www.bernzilla.com/item.php?id=762 If you do need to support this in IE6, it will require some coding (IE6 only supports the :hover pseudo-class on a elements). On Jan 5, 9:46 am, markww mar...@gmail.com wrote: Hi, Does anyone have an example of setting the color of a row of cells in a FlexTable on a mouse over? I'd like to turn the whole row of cells green for example when the user puts the mouse over any cell in that row, 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Standards mode requirement for GWT 2.0
Does DockLayoutPanel and SplitLayoutPanel require the page to be in standards mode? Does this also apply to the RootLayoutPanel? Thanks, NG -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.0: Debug with Firefox and Eclipse
Anyone managed to debug with GWT 2.0? I don't get a prompt to install the developer plugin. Even when I installed it manually, nothing happens. Breakpoints just don't halt the running. Mac 10.6 (updated to the latest), Eclipse 3.5.1, Java 1.6.0 Tried with the latest stable Firefox and Chrome On Jan 5, 10:45 am, y y...@cs.washington.edu wrote: When GWT was working with its internal browser, debugging from Eclipse was simple. I just marked the breakpoints and ran as debug. However, it doesn't seem to work with GWT 2.0 and Firefox. Any idea what am I missing? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Intigration with existing project .... Hosted mode issues.
Thanks for your reply Jason, But this is exactly what I did in CASE II where it was not able to find the module.gwt.xml itself. Here is the extract of my previous mail === CASE II Keeping all the above configuration same, when I move MyApplication.gwt.xml as below .. -src --main ---java com -gwtAppl (MyApplication.gwt.xml) --client --server The the host mode error is as follows ... [INFO] Starting HTTP on port 8081 [TRACE] Starting URL: http://localhost:8081/MyApplication [TRACE] Request 0: http://localhost:8081/MyApplication [TRACE] Loading module 'MyApplication' [ERROR] Unable to find 'MyApplication.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [TRACE] Request 1: http://localhost:8081/MyApplication/ [TRACE] Loading module 'MyApplication' [ERROR] Unable to find 'MyApplication.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [TRACE] The development shell servlet received a request to generate a host page for module 'MyApplication' [TRACE] Loading module 'MyApplication' [ERROR] Unable to find 'MyApplication.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? in this I guess it's not able to find the gwt.xml itself. In this case , inside the 'run configuration' under GWT tab, it shows the this file and the path where it is placed. Please suggest Thanks, Girish On Tue, Jan 5, 2010 at 9:17 PM, Jason Essington jas...@greenrivercomputing.com wrote: if the location of your gwt.xml file isn't at the same level as your client package then you need to add a source tag to tell it where the client directory is. That's the likely reason it can't find your entry point class. so probably the simplest thing to do would be to move the gwt.xml file to src/main/java/com/gwtAppl/MyApplication.gwt.xml -jason On Jan 5, 2010, at 5:19 AM, girishrat...@gmail.com wrote: Hello Friends I don't understand why it should be so difficult to integrate the GWT with the current application, I have been struggling for few weeks now ( not full time , of course) Definitely ... there should be some help available which I'm not able to find, I'm currently like beating around the bushes to make progress. If anyone knows , please forward me any articles where there is some guideline regarding integrating GWT with the existing project. Currently I'm desperately stuck at a place where the hosted mode is not able to find module.gwt.xml(CASE I below ) or the entry point classes (CASE II below )... don't know why. I'm using eclipse 3.5 (Galileo) 'Run configuration' to build my application which uses GWT 1.7 I'm sorry to be so descriptive but I really want you to understand what I'm doing and to get some help. Following is my folder structure Current existing Project :- -src --main ---java com -package1 --package2 New GWT folders in the same above existing project :- -src --main ---java (MyApplication.gwt.xml) com -gwtAppl --client --server Build ( Output Folders ) -build --classes ---com . My eclipse's 'Run configuration' class-path contains all the gwt-xxx.jars and according to above folder structure, the entries like ... src/main/java/ and I think the source tab also has the path of all the source files === CASE I Log in the hosted mode console [INFO] Starting HTTP on port 8081 [TRACE] Starting URL: http://localhost:8081/MyApplication [TRACE] Request 0: http://localhost:8081/MyApplication [TRACE] Request 1: http://localhost:8081/myapplication/ [TRACE] The development shell servlet received a request to generate a host page for module 'myapplication' [TRACE] Request 2: http://localhost:8081/myapplication/myapplication.nocache.js [TRACE] The development shell servlet received a request for 'myapplication.nocache.js' in module 'myapplication.gwt.xml' [TRACE] Request 3: http://localhost:8081/myapplication/hosted.html [TRACE] The development shell servlet received a request for 'hosted.html' in module 'myapplication.gwt.xml' [TRACE] Request 4: http://localhost:8081/myapplication/gwt/standard/standard.css [TRACE] The development shell servlet received a request for 'gwt/standard/standard.css' in module 'myapplication.gwt.xml' [DEBUG] Loading an instance of module 'myapplication' [DEBUG] Refreshing module from source [TRACE] Finding entry point classes [ERROR] Unable to find type 'com.mycompany.client.MyApplication' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly [ERROR] Failure to load module
Re: Making DecoratedTabPanel to display different HTMLs
Hi, Firstly, I'm not sure about the array in Java language. It looks like you'd like to lay down six textbox to hold the data. Why don't you declare one by one (TextBox txtOne = new TextBox(); , TextBox txtTwo = new TextBox();). I've try this in eclipse and it works. Hope this help, Pote, On Jan 5, 12:02 pm, Abhay Singh abhay.asi...@gmail.com wrote: Hi, Am sorry, but what is problem with arrays, I can't figure it out On Jan 4, 6:27 pm, mariyan nenchev nenchev.mari...@gmail.com wrote: Could you check your arrays please. On Mon, Jan 4, 2010 at 3:17 PM, Abhay Singh abhay.asi...@gmail.com wrote: Hi All, I am trying to build a DecoratedTabPanel where on click on each tab i will show different html pages, but these html pages are not related to each other and can be modified through html editor... let me be more clear, here is sample project # Sample.java public class Sample implements EntryPoint { public void onModuleLoad() { // Create a tab panel DecoratedTabPanel tabPanel = new DecoratedTabPanel(); tabPanel.setWidth(800px); tabPanel.setHeight(500px); tabPanel.setAnimationEnabled(true); // Add a home tab String[] tabTitles = { Users, Group, Items }; AddUser aduser = new AddUser(); tabPanel.add(aduser, tabTitles[0]); // Add a tab with an image HTML GText = new HTML(This Group tab); tabPanel.add(GText, tabTitles[1]); // Add a tab tabPanel.add(hPanel, tabTitles[2]); // Return the content tabPanel.selectTab(0); // tabPanel.ensureDebugId(cwTabPanel); RootPanel.get().add(tabPanel); } } This will generate one html file named as sample.html, havin 3 tab in it as Users, Groups, Items. default Tab users is selected, Now am trying to show contents of user tab, and its coming from AddUser.java # AddUser.java ### public class AddUser extends HTML implements Constants { TextBox[] UserDetails = new TextBox[6]; ListBox Users = new ListBox(); Button CopyUser = new Button(); Button AddButton = new Button(); Button CancleButton = new Button(); Button UpdateButton = new Button(); CheckBox CopyF = new CheckBox(); CheckBox[] UserRoles = new CheckBox[MAX_ROLES + 1]; public AddUser() { RootPanel.get().clear(); RootPanel.get(Userid).add(UserDetails[0]); UserDetails[0].setFocus(true); RootPanel.get(userslist).add(Users); RootPanel.get(copyuserbtn).add(CopyUser); RootPanel.get(copyfiltchk).add(CopyF); RootPanel.get(username).add(UserDetails[1]); RootPanel.get(emailid).add(UserDetails[2]); RootPanel.get(phoneno).add(UserDetails[3]); RootPanel.get(title).add(UserDetails[4]); RootPanel.get(defaultpwd).add(UserDetails[5]); } } But this is not happening and its throughin exceptions, and exceptions are ERROR] Unable to load module entry point class sample.client.Sample (see associated exception for details) java.lang.NullPointerException: null at sample.client.AddUser.init(AddUser.java:28) at sample.client.Sample.onModuleLoad(Sample.java:171) 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.moz.BrowserWidgetMoz.access$100 (BrowserWidgetMoz.java:35) at com.google.gwt.dev.shell.moz.BrowserWidgetMoz $ExternalObjectImpl.gwtOnLoad(BrowserWidgetMoz.java:58) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java: 1428) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840) 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
vaadin
Since Martin Kraus mentioned Vaadin, I have taken a look and they do seem to have nice features for grids, but their server-centric GWT is peculiar and I'm just now looking at what they offer. Their Apache License V2 would make it easier to use in both open source and commercial apps. Has anybody used Vaadin widgets like their Table (Grid) inside otherwise normal GWT apps? It sure seems nicer and more powerful than the PagingScrollTable in the incubator. Do it work well when mix/matching these models, or do you find that you're all Vaadin or all standard GWT layouts and widgets? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: dealing with host page generated by server-side script (in development)
It's working perfectly for me now. The problem was I was trying to adding the gwt.codesvr parameter to the script tag for app.nocache.js rather than adding it to the page url. Thank you Jeff. On Dec 26 2009, 2:15 pm, mike mikebannis...@gmail.com wrote: I didn't realize that would be enough. Just tried and it didn't appear to work. Embedding the script file on apageis enough for the browser plugin to do it's thing keeping up to date with source code changes and everything? I'm used to running my app using eclipse which gives me a URL to thehostpage. I figured eclipse was running some process that the plugin interacts with. -Mike On Dec 26, 1:16 pm, Jeff Chimene jchim...@gmail.com wrote: On 12/26/2009 11:05 AM, mike wrote: I'm building a GWT app that will live on apagethat's generated by a server-sidescript. Does anyone have any recommended approaches for dealing with this in development? I'm currently using a script that scrapes the webserverand gets a copy of thehostpageand places a static copy of it in my GWT project for development purposes. Is there some way to develop using the browser plugin where thehost pagecan be served from my devserverdirectly? So embedding the script tag in the dynamically generatedpageisn't working? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RPC vs HTTP requests
Hi Jeff, I didn't try it yet, but a subclass of JavaScriptOject should be instantiated by 'GWT.create(Report.class)'. Gin resolves these dependencies automatically without any configuration (the same with Constants for i18n, ImageBundles, etc.). You can additionally try 'bind(Report.class).in(Singleton.class)' (I had problems using Singleton annotations in the past). I think, it should work, but even a Factory class that does the instantiation an returns a singleton object might be better than using native JavaScript to bind it to $wnd object, since it's important to hold everything in the GWT 'sandbox'. Regards Jan Ehrhardt On Tue, Jan 5, 2010 at 5:11 PM, Jeff Chimene jchim...@gmail.com wrote: On Tue, Jan 5, 2010 at 2:23 AM, Jan Ehrhardt jan.ehrha...@googlemail.comwrote: Hi Jeff, I don't know why you're binding a Report object to $wnd, but in a standard case JSON usage would look the following way: Hi Jan, I want the object to exist across different class instantiations. Ordinarily, I'd use gin to inject a singleton where needed, but I couldn't get that to work w/ JSNI. Perhaps it does w/ 2.0. It wasn't the best example for a post to the group, but it's what I had at hand. public class Report extends JavaScriptObject { protected Report() {} public final static native Report getName() /*-{ return this.name; }-*/; public final static native void setName(String name) /*-{ this.name = name; }-*/; } An incoming JSON string looking like this {name: My Report} can be parsed the following this way JSONObject obj = JSONParser.parse(response.getText()).isObject(); if(obj != null) { Report myReport = obj.getJavaScriptObject().cast(); // do something with myReport } This has the benefit, that the object only lives as inside your GWT app, instead of affecting other things. On Mon, Jan 4, 2010 at 4:01 PM, Jeff Chimene jchim...@gmail.com wrote: Sri, Thanks. I have a question: snip *Performance* - Client Side - REST with JSON wins over RPC. Browsers are exceptionally good at json parsing. It is going to be much faster than GWTs serialization/deserialization mechanism. This is applicable only if you use javascript overlays. JSONArray/JSONObject/JSONValue classes don't give you this performance benefit. I've been using the following technique to use the JSON parsing in 2.0. I don't see a specific example in the docs: Report.set(JSONParser.parse(response.getText()).isObject().getJavaScriptObject()); Where Report is defined as follows: public class Report extends JavaScriptObject { protected Report() {} public final static native Report get() /*-{ return $wnd.Report; }-*/; public final static native void set(JavaScriptObject value) /*-{ $wnd.Report = value; }-*/; } I don't see any other way to avoid unsafe parsing. Comments? snip -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Fixed styles on SplitLayoutPanel-HDragger?
I just tried to modify the dragger style in the new SplitLayoutPanels but with no success. There are some hard-coded properties like width, height, background- color etc. that can not be shadowed by the ...-H/VDragger substyles. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Removing the deprecated XxxListeners
Well, we've been pretty relieved to find out this didn't make it into GWT 2.0 :) On a serious note we still have plenty of old code that relies on that API and just like the GWT team we have to juggle between new features and code maintenance, and certainly this would have made our desired migration to 2.0 a much larger undertaking (and less reliably estimated). Obviously we support removing deprecated APIs and we've been writing new code against the new API (and refactoring along the way), but since this didn't make it into 2.0 please keep in mind the impact on that change on existing deployments/products, I would hate for this change to be slipped in a minor 2.0 maintenance release. Thanks, Olivier. On Dec 21 2009, 4:58 pm, Thomas Broyer t.bro...@gmail.com wrote: Hi Googlers, I thought this was targeted to 2.0 but it didn't make it into it. What I'm talking about is the complete removal of the event listeners, which have been replaced by handlers since GWT 1.6. I volunteer to provide the patch, but given that this is a bit of work I'm asking here if I should start working on it, or if someone already started the work, or if you'd rather have them stay for some additional months (in this case, better spend time on more important things). Let me know ;-) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Removing the deprecated XxxListeners
Happy belated birthday! On Monday, January 4, 2010, Thomas Broyer t.bro...@gmail.com wrote: On Mon, Jan 4, 2010 at 7:45 PM, Joel Webber j...@google.com wrote: A hearty +1 from me. We've been needing to do this for a while, but have been so heads-down on new features that it's fallen by the wayside. On that note, we also need to deprecate the DOM class and fix all the widgets to not use it (all its functionality was subsumed by Document/Element a long time ago). We're working on our 2010 roadmap right now, and this will definitely be a part of it. That's Really. Good. News! (thanks for this birthday gift ;-) ) -- Thomas Broyer /tɔ.ma.bʁwa.je/ http://xn--nna.ma.xn--bwa-xxb.je/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Failing to find custom field serilializers in Oracle OC4J 10.1.3.5
Hi, We are having some issues with classloaders and custom field serializers in GWT 2.0 in combination with oc4j 10.1.3.5. I was assuming that the issue was purely an Oracle thing, but I looked through the RPC code and found some differences in the way classloaders are used in the RPC package. The javadocs of RPC.decodeRequest state that the Thread.currentThread ().getContextClassLoader() is used to load the service interfaces. Unfortunately this approach is not used when searching for the custom field serializers. Custom field serializers are looked up using: com.google.gwt.user.server.rpc.impl.SerializabilityUtil.computeHasCustomFieldSerializer This method uses the SerializabilityUtil.class.getClassLoader() and in our specific case this fails to locate our custom field serializer. Is there a reason why this is different ? What is special in our EAR/WAR deployment ? All libs (including gwt- servlet.jar and ourgwt.jar, which contains the custom field serializer) are available in the EAR and are available in the WAR classloader through the manifest of the WAR. David -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Failing to find custom field serilializers in Oracle OC4J 10.1.3.5
I further investigated and found out that this is actually a regression issue caused by this change: http://code.google.com/p/google-web-toolkit/source/diff?spec=svn7354r=5678format=sidepath=/trunk/user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.javaold_path=/trunk/user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.javaold=5672 When the new deRPC was initially added, a change was checked in on the old RPC class... as a result, our custom field serializers no longer work. David On Jan 5, 3:01 pm, stuckagain david.no...@gmail.com wrote: Hi, We are having some issues with classloaders and custom field serializers in GWT 2.0 in combination with oc4j 10.1.3.5. I was assuming that the issue was purely an Oracle thing, but I looked through the RPC code and found some differences in the way classloaders are used in the RPC package. The javadocs of RPC.decodeRequest state that the Thread.currentThread ().getContextClassLoader() is used to load the service interfaces. Unfortunately this approach is not used when searching for the custom field serializers. Custom field serializers are looked up using: com.google.gwt.user.server.rpc.impl.SerializabilityUtil.computeHasCustomFieldSerializer This method uses the SerializabilityUtil.class.getClassLoader() and in our specific case this fails to locate our custom field serializer. Is there a reason why this is different ? What is special in our EAR/WAR deployment ? All libs (including gwt- servlet.jar and ourgwt.jar, which contains the custom field serializer) are available in the EAR and are available in the WAR classloader through the manifest of the WAR. David -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Possible bug in DOMImplMozilla
It looks like this was broken way back in r2661 when we switched from $wnd.__captureElement to a static field in DOMImplStandard. I'm fixing it now and testing the code. Thanks, John LaBanca jlaba...@google.com On Mon, Jan 4, 2010 at 4:39 PM, John LaBanca jlaba...@google.com wrote: I'll look into it tomorrow morning. Thanks, John LaBanca jlaba...@google.com On Mon, Jan 4, 2010 at 2:37 PM, Joel Webber j...@google.com wrote: Looks like you're right about that. @jlabanca: Correct me if I'm wrong, but didn't you refactor this stuff a while back? Mind having a look to make sure I'm not missing something? On Sun, Jan 3, 2010 at 2:37 PM, Thomas Broyer t.bro...@gmail.com wrote: Hi googlers, In DOMImplMozilla's initSyntheticMouseUpEvents is a reference to $wnd.__captureElem, which is never set (or read) anywhere, making the workaround fail as being no-op in practice. Shouldn't it be @com.google.gwt.user.client.impl.DOMImplStandard::captureElem instead? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Failing to find custom field serilializers in Oracle OC4J 10.1.3.5
On Tue, Jan 5, 2010 at 9:30 AM, stuckagain david.no...@gmail.com wrote: I further investigated and found out that this is actually a regression issue caused by this change: http://code.google.com/p/google-web-toolkit/source/diff?spec=svn7354r=5678format=sidepath=/trunk/user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.javaold_path=/trunk/user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.javaold=5672 When the new deRPC was initially added, a change was checked in on the old RPC class... as a result, our custom field serializers no longer work. Can you confirm that changing back to the thread context classloader in SerializabilityUtil fixes your problem? -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Update checkstyle for 2010
Reviewers: scottb, Description: Updating gwt-checkstyle and gwt-checkstyle-tests to allow 2010 Copyright. Testing: === Manually verified that 2006-2010 pass, and 2005/2011 fail. Please review this at http://gwt-code-reviews.appspot.com/129801 Affected files: eclipse/settings/code-style/gwt-checkstyle-tests.xml eclipse/settings/code-style/gwt-checkstyle.xml Index: eclipse/settings/code-style/gwt-checkstyle.xml === --- eclipse/settings/code-style/gwt-checkstyle.xml (revision 7354) +++ eclipse/settings/code-style/gwt-checkstyle.xml (working copy) @@ -82,7 +82,7 @@ /module module name=RegexpHeader property name=severity value=error/ -property name=header value=/\*\n \* Copyright 200[6789] Google Inc\.\n \*[ ]*\n \* Licensed under the Apache License, Version 2\.0 \(the quot;Licensequot;\); you may not\n \* use this file except in compliance with the License\. You may obtain a copy of\n \* the License at\n \*[ ]*\n \* http://www\.apache\.org/licenses/LICENSE-2\.0\n \*[ ]*\n \* Unless required by applicable law or agreed to in writing, software\n \* distributed under the License is distributed on an quot;AS ISquot; BASIS, WITHOUT\n \* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\. See the\n \* License for the specific language governing permissions and limitations under\n \* the License\.\n \*// +property name=header value=/\*\n \* Copyright 20(0[6789]| 1[0]|) Google Inc\.\n \*[ ]*\n \* Licensed under the Apache License, Version 2\.0 \(the quot;Licensequot;\); you may not\n \* use this file except in compliance with the License\. You may obtain a copy of\n \* the License at\n \*[ ]*\n \* http://www\.apache\.org/licenses/LICENSE-2\.0\n \*[ ]*\n \* Unless required by applicable law or agreed to in writing, software\n \* distributed under the License is distributed on an quot;AS ISquot; BASIS, WITHOUT\n \* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\. See the\n \* License for the specific language governing permissions and limitations under\n \* the License\.\n \*// /module module name=ImportOrder property name=severity value=error/ Index: eclipse/settings/code-style/gwt-checkstyle-tests.xml === --- eclipse/settings/code-style/gwt-checkstyle-tests.xml(revision 7354) +++ eclipse/settings/code-style/gwt-checkstyle-tests.xml(working copy) @@ -89,7 +89,7 @@ /module module name=RegexpHeader property name=severity value=error/ -property name=header value=/\*\n \* Copyright 200[6789] Google Inc\.\n \*[ ]*\n \* Licensed under the Apache License, Version 2\.0 \(the quot;Licensequot;\); you may not\n \* use this file except in compliance with the License\. You may obtain a copy of\n \* the License at\n \*[ ]*\n \* http://www\.apache\.org/licenses/LICENSE-2\.0\n \*[ ]*\n \* Unless required by applicable law or agreed to in writing, software\n \* distributed under the License is distributed on an quot;AS ISquot; BASIS, WITHOUT\n \* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\. See the\n \* License for the specific language governing permissions and limitations under\n \* the License\.\n \*// +property name=header value=/\*\n \* Copyright 20(0[6789]| 1[0]) Google Inc\.\n \*[ ]*\n \* Licensed under the Apache License, Version 2\.0 \(the quot;Licensequot;\); you may not\n \* use this file except in compliance with the License\. You may obtain a copy of\n \* the License at\n \*[ ]*\n \* http://www\.apache\.org/licenses/LICENSE-2\.0\n \*[ ]*\n \* Unless required by applicable law or agreed to in writing, software\n \* distributed under the License is distributed on an quot;AS ISquot; BASIS, WITHOUT\n \* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\. See the\n \* License for the specific language governing permissions and limitations under\n \* the License\.\n \*// /module module name=ImportOrder property name=severity value=error/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Fixed styles on SplitLayoutPanel-HDragger?
Agreed that this needs to be loosened up a bit. See issue 4335 for related issues, and please add your thoughts to it. On Tue, Jan 5, 2010 at 7:29 AM, dflorey daniel.flo...@gmail.com wrote: I just tried to modify the dragger style in the new SplitLayoutPanels but with no success. There are some hard-coded properties like width, height, background- color etc. that can not be shadowed by the ...-H/VDragger substyles. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] DOMImplMozilla refers to $wnd.__captureElem instead of @com.google.gwt.user.client.impl.DOMImplStand
Reviewers: jgw, Description: Description: === At r2661, we switched from $wnd.__captureElem to @com.google.gwt.user.client.impl.DOMImplStandard::captureElem, but DOMImplMozilla was never updated. Fix: Updating DOMImplMozilla to use @com.google.gwt.user.client.impl.DOMImplStandard::captureElem. Testing: Manually verified that the mouseup event is fired in FF. Please review this at http://gwt-code-reviews.appspot.com/128802 Affected files: user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java Index: user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java === --- user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java (revision 7354) +++ user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java (working copy) @@ -44,7 +44,7 @@ $wnd.addEventListener( 'mouseout', $entry(function(evt) { -var cap = $wnd.__captureElem; +var cap = @com.google.gwt.user.client.impl.DOMImplStandard::captureElem; if (cap !evt.relatedTarget) { // Mozilla has the interesting habit of sending a mouseout event // with an 'html' element as the target when the mouse is released -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Possible bug in DOMImplMozilla
Patch sent for review: http://gwt-code-reviews.appspot.com/128802/show Thanks for pointing out this bug. Thanks, John LaBanca jlaba...@google.com On Tue, Jan 5, 2010 at 11:05 AM, John LaBanca jlaba...@google.com wrote: It looks like this was broken way back in r2661 when we switched from $wnd.__captureElement to a static field in DOMImplStandard. I'm fixing it now and testing the code. Thanks, John LaBanca jlaba...@google.com On Mon, Jan 4, 2010 at 4:39 PM, John LaBanca jlaba...@google.com wrote: I'll look into it tomorrow morning. Thanks, John LaBanca jlaba...@google.com On Mon, Jan 4, 2010 at 2:37 PM, Joel Webber j...@google.com wrote: Looks like you're right about that. @jlabanca: Correct me if I'm wrong, but didn't you refactor this stuff a while back? Mind having a look to make sure I'm not missing something? On Sun, Jan 3, 2010 at 2:37 PM, Thomas Broyer t.bro...@gmail.comwrote: Hi googlers, In DOMImplMozilla's initSyntheticMouseUpEvents is a reference to $wnd.__captureElem, which is never set (or read) anywhere, making the workaround fail as being no-op in practice. Shouldn't it be @com.google.gwt.user.client.impl.DOMImplStandard::captureElem instead? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Update checkstyle for 2010
LGTM http://gwt-code-reviews.appspot.com/129801 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: TabLayoutPanel not working on IE8
Joel, I think that the problem could be setting 'cssFloat' property on IE using javascript. I made a little test changing this line on TabLayoutPanel.java:111 getElement().getStyle().setProperty(cssFloat, left); to getElement().getStyle().setProperty(styleFloat, left); Obviously this works on IE but not on the rest. On Mon, Jan 4, 2010 at 3:48 PM, Joel Webber j...@google.com wrote: Thanks, Alejandro. I'll reproduce this locally and enter an issue for it. It sounds like the issue might have something to do with having a block-level element *inside* the tabs two existing divs. float:left on just the outer-most element is supposed to work here, but perhaps that's not enough on IE. On Mon, Jan 4, 2010 at 12:30 PM, Alejandro D. Garin aga...@gmail.comwrote: On Mon, Jan 4, 2010 at 2:01 PM, Joel Webber j...@google.com wrote: Which element did you have to add float:left to? It's set manually in code to the outermost tab element, which is all that *should* be necessary. Hi, I ran into the same issue with IE7/8 using the css example you suggested here: http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/e9d6b9d7ad02b66f but adding float:left to: .gwt-TabLayoutPanelTab { background: url(tab-inactive-left.png) no-repeat bottom left; float:left; } solves the problem. Alejandro. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Update checkstyle for 2010
http://gwt-code-reviews.appspot.com/129801/diff/1/2 File eclipse/settings/code-style/gwt-checkstyle.xml (right): http://gwt-code-reviews.appspot.com/129801/diff/1/2#newcode85 Line 85: property name=header value=/\*\n \* Copyright 20(0[6789]|1[0]|) Google Inc\.\n \*[ ]*\n \* Licensed under the Apache License, Version 2\.0 \(the quot;Licensequot;\); you may not\n \* use this file except in compliance with the License\. You may obtain a copy of\n \* the License at\n \*[ ]*\n \* http://www\.apache\.org/licenses/LICENSE-2\.0\n \*[ ]*\n \* Unless required by applicable law or agreed to in writing, software\n \* distributed under the License is distributed on an quot;AS ISquot; BASIS, WITHOUT\n \* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\. See the\n \* License for the specific language governing permissions and limitations under\n \* the License\.\n \*// Isn't there a stray | at the end? It looks like it would match the year 20 as well. http://gwt-code-reviews.appspot.com/129801 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] TabLayoutPanel not working on IE8
I just realized I failed to answer a couple of these questions... On Sun, Jan 3, 2010 at 5:56 AM, dflorey daniel.flo...@gmail.com wrote: - TabLayoutPanel has no default style and the given styles differ from the TabPanel styles. Is it planned to add more substyles? I added the bare minimum styles to get it working, but I anticipate that a better mechanism will be needed soon. We'd like to attack the general problem of using CssResource/ClientBundle to style widgets (and create broader themes) before letting the old style style names get to hairy. - Is an equivalent to DecoratedTabLayoutPanel planned? I had something like the existing DecoratorPanel partially finished, but couldn't get it done in time for 2.0. The TabLayoutPanel itself defines two elements for each tab, which should be enough for most sliding windows style tricks, but without all the heavyweight mess of a full table for each tab. I've shown that you can at least duplicate Chrome's tabs (curved/angled with overlapping) using this structure. - Is there a simple way to let both widgets of a SplitLayoutPanel take up 50% of the given space? Not really. The SplitLayoutPanel requires PX units because it has to move the split-point in relation to mouse events, which are always in pixels. It *might* be possible to map mouse events to arbitrary units, but I didn't try to attack this problem in the first pass, mainly because I'm afraid of weird CSS aliasing artifacts. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: JSNI references with * as the parameter list
I haven't looked at this, but should JsniCheckerTest get a new case as well? http://gwt-code-reviews.appspot.com/126817 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: DOMImplMozilla refers to $wnd.__captureElem instead of @com.google.gwt.user.client.impl.DOMImplStand
On 2010/01/05 16:50:50, jlabanca wrote: LGTM. http://gwt-code-reviews.appspot.com/128802 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: JSNI references with * as the parameter list
I'm not in love with the current algorithm, but what precisely shall we do? For a given type, collect all method signatures that could conceivably be invoked via that type (and its superclasses or superinterfaces) and succeed only if there is exactly one unique signature with the given method name. As an implementation optimization, lookups on a concrete class can just crawl the supertype chain, but lookups on abstract type would have to consider all superinterfaces as well. -- Bob Vawter Google Web Toolkit Team -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7355 committed - Replacing old reference to $wnd.__captureElem with @com.google.gwt.use...
Revision: 7355 Author: jlaba...@google.com Date: Tue Jan 5 09:50:29 2010 Log: Replacing old reference to $wnd.__captureElem with @com.google.gwt.user.client.impl.DOMImplStandard::captureElem. Patch by: jlabanca Review by: jgw http://code.google.com/p/google-web-toolkit/source/detail?r=7355 Modified: /trunk/user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java === --- /trunk/user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java Fri Oct 16 14:48:33 2009 +++ /trunk/user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java Tue Jan 5 09:50:29 2010 @@ -44,7 +44,7 @@ $wnd.addEventListener( 'mouseout', $entry(function(evt) { -var cap = $wnd.__captureElem; +var cap = @com.google.gwt.user.client.impl.DOMImplStandard::captureElem; if (cap !evt.relatedTarget) { // Mozilla has the interesting habit of sending a mouseout event // with an 'html' element as the target when the mouse is released -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Ant tests should fail with status 2
Reviewers: fabbott, Description: Description: === Currently, all ant failures exit with the default status of 1, making it impossible to differentiate a build failure (ex. checkstyle, compile) from a true test failure. In our build system, it would be nice to rebuild only on test failures (which are sometimes flaky) without rebuilding on build failures (which are almost never flaky). Fix: This patch sets the exit code to 2 if a test fails in the gwt.junit macro. We can setup the build system to rebuild only on exit code 2. Testing: Verified that the ant tests still work. Please review this at http://gwt-code-reviews.appspot.com/128803 Affected files: common.ant.xml Index: common.ant.xml === --- common.ant.xml (revision 7354) +++ common.ant.xml (working copy) @@ -241,7 +241,7 @@ /condition fail message=One or more junit tests failed for target: @{test.name} @{test.args} - if=junit.stop.build / + if=junit.stop.build status=2 / /sequential /macrodef -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Possible bug in DOMImplMozilla
committed as r7355 Thanks, John LaBanca jlaba...@google.com On Tue, Jan 5, 2010 at 11:54 AM, John LaBanca jlaba...@google.com wrote: Patch sent for review: http://gwt-code-reviews.appspot.com/128802/show Thanks for pointing out this bug. Thanks, John LaBanca jlaba...@google.com On Tue, Jan 5, 2010 at 11:05 AM, John LaBanca jlaba...@google.com wrote: It looks like this was broken way back in r2661 when we switched from $wnd.__captureElement to a static field in DOMImplStandard. I'm fixing it now and testing the code. Thanks, John LaBanca jlaba...@google.com On Mon, Jan 4, 2010 at 4:39 PM, John LaBanca jlaba...@google.com wrote: I'll look into it tomorrow morning. Thanks, John LaBanca jlaba...@google.com On Mon, Jan 4, 2010 at 2:37 PM, Joel Webber j...@google.com wrote: Looks like you're right about that. @jlabanca: Correct me if I'm wrong, but didn't you refactor this stuff a while back? Mind having a look to make sure I'm not missing something? On Sun, Jan 3, 2010 at 2:37 PM, Thomas Broyer t.bro...@gmail.comwrote: Hi googlers, In DOMImplMozilla's initSyntheticMouseUpEvents is a reference to $wnd.__captureElem, which is never set (or read) anywhere, making the workaround fail as being no-op in practice. Shouldn't it be @com.google.gwt.user.client.impl.DOMImplStandard::captureElem instead? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Ant tests should fail with status 2
LGTM. http://gwt-code-reviews.appspot.com/128803 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7356 committed - Setting the failure code of ant tests to 2 instead of 1 so we can diff...
Revision: 7356 Author: jlaba...@google.com Date: Tue Jan 5 10:03:42 2010 Log: Setting the failure code of ant tests to 2 instead of 1 so we can differentiate a test failures from build failures. Patch by: jlabanca Review by: fabbott http://code.google.com/p/google-web-toolkit/source/detail?r=7356 Modified: /trunk/common.ant.xml === --- /trunk/common.ant.xml Tue Dec 1 15:21:09 2009 +++ /trunk/common.ant.xml Tue Jan 5 10:03:42 2010 @@ -241,7 +241,7 @@ /condition fail message=One or more junit tests failed for target: @{test.name} @{test.args} - if=junit.stop.build / + if=junit.stop.build status=2 / /sequential /macrodef -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7357 committed - Introduces Microbenchmarks app in references. At the moment there...
Revision: 7357 Author: rj...@google.com Date: Tue Jan 5 10:30:31 2010 Log: Introduces Microbenchmarks app in references. At the moment there is only one benchmark, comparing widget creation strategies. Review by jaimeyap, tbroyer, jgw, jamesr http://gwt-code-reviews.appspot.com/127801 http://code.google.com/p/google-web-toolkit/source/detail?r=7357 Added: /trunk/reference/Microbenchmarks /trunk/reference/Microbenchmarks/src /trunk/reference/Microbenchmarks/src/com /trunk/reference/Microbenchmarks/src/com/google /trunk/reference/Microbenchmarks/src/com/google/gwt /trunk/reference/Microbenchmarks/src/com/google/gwt/reference /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/Microbenchmarks.gwt.xml /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/EmptyBinder.java /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/EmptyBinder.ui.xml /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/Microbenchmark.java /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/Microbenchmarks.java /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/Microbenchmarks.ui.xml /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestCursorDomCrawl.java /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestDom.java /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestDomBinder.java /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestDomBinder.ui.xml /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestFlows.java /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestRealisticDomCrawl.java /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestWidget.java /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestWidgetBinder.java /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/TestWidgetBinder.ui.xml /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/WidgetCreation.java /trunk/reference/Microbenchmarks/war /trunk/reference/Microbenchmarks/war/Microbenchmarks.html /trunk/reference/Microbenchmarks/war/WEB-INF /trunk/reference/Microbenchmarks/war/WEB-INF/web.xml Deleted: /trunk/samples/mail/war/WEB-INF/classes/marker === --- /dev/null +++ /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/Microbenchmarks.gwt.xml Tue Jan 5 10:30:31 2010 @@ -0,0 +1,21 @@ +?xml version=1.0 encoding=UTF-8? +module rename-to='microbenchmarks' + !-- Inherit the core Web Toolkit stuff.-- + inherits name='com.google.gwt.user.User'/ + + !-- Inherit the default GWT style sheet. You can change -- + !-- the theme of your GWT application by uncommenting -- + !-- any one of the following lines.-- + inherits name='com.google.gwt.user.theme.standard.Standard'/ + !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- + !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- + + !-- Other module inherits -- + + !-- Specify the app entry point class. -- + entry-point class='com.google.gwt.reference.microbenchmark.client.Microbenchmarks'/ + + !-- Specify the paths for translatable code-- + source path='client'/ + +/module === --- /dev/null +++ /trunk/reference/Microbenchmarks/src/com/google/gwt/reference/microbenchmark/client/EmptyBinder.java Tue Jan 5 10:30:31 2010 @@ -0,0 +1,43 @@ +/* + * Copyright 2009 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.reference.microbenchmark.client; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.uibinder.client.UiBinder; +import com.google.gwt.user.client.ui.Composite; +import com.google.gwt.user.client.ui.Widget; + +/** + * Creates an
[gwt-contrib] Re: Benchmark for widget creation times
Committed r7357 http://gwt-code-reviews.appspot.com/127801 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fix issue 4425 - bad escaping when converting strings from Java to JS
Reviewers: jat, Description: We were escaping \u000 as \0 when converting from Java to JavaScript -- however, this fails when the next character is a digit since that digit will be interpreted as part of the escape sequence. For example, \u6 is turned into \06, which is a one-character string 6. This patch fixes that bug and more generally uses one- and two-digit octal escapes (\X or \XX) where possible rather than 3-character hex escapes (\xXX). Please review this at http://gwt-code-reviews.appspot.com/128804 Affected files: dev/core/src/com/google/gwt/dev/js/JsToStringGenerationVisitor.java dev/core/test/com/google/gwt/dev/js/JsToStringGenerationVisitorAccuracyTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: JSNI references with * as the parameter list
On Tue, Jan 5, 2010 at 12:20 PM, sco...@google.com wrote: I haven't looked at this, but should JsniCheckerTest get a new case as well? Sure, I'll add one. -Lex -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 4425 - bad escaping when converting strings from Java to JS
LGTM with one comment http://gwt-code-reviews.appspot.com/128804/diff/1/3 File dev/core/src/com/google/gwt/dev/js/JsToStringGenerationVisitor.java (right): http://gwt-code-reviews.appspot.com/128804/diff/1/3#newcode1352 Line 1352: result.append(\\x); Have you tested this on all browsers? I seem to recall Safari 2 had some issues with escapes -- we don't care about that any more, but we should make sure that all supported browsers do the right thing. http://gwt-code-reviews.appspot.com/128804 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 4425 - bad escaping when converting strings from Java to JS
http://gwt-code-reviews.appspot.com/128804/diff/1/3 File dev/core/src/com/google/gwt/dev/js/JsToStringGenerationVisitor.java (right): http://gwt-code-reviews.appspot.com/128804/diff/1/3#newcode1352 Line 1352: result.append(\\x); It works on OSX/{Safari,Firefox,Chrome} and Windows/{IE7,Firefox}. Should I test it elsewhere? On 2010/01/05 19:41:34, jat wrote: Have you tested this on all browsers? I seem to recall Safari 2 had some issues with escapes -- we don't care about that any more, but we should make sure that all supported browsers do the right thing. http://gwt-code-reviews.appspot.com/128804 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Simple, inline actions in UiBinder
Hey all, I've been playing around with UiBinder, hoping to start replacing a lot of our custom templating code with it. One feature that would really improve the experience for our designer/developer interface would be inline actions. A lot of our boilerplate UI event code does one of the of the following: - hides/shows/toggles another element (ie: expando links) - adds/removes/toggers a CSS classname - starts an animation - changes a rollover image It would be really useful if there was a way to plug in actions inline, something like the following pseudo-gwtquery code: span class=actionLearnMore a title=Learn more about dots ui:click='${infoBox}.as(Effects).slideToggle()'Learn more/a div id=infoBox More info... /div /span I don't know what the ideal syntax would look like, but even something trivial would be able to replace 99% of the UI event code we have to write. Thoughts? Matt. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Simple, inline actions in UiBinder
Great idea, I was thinking of having something like ui:query/ui:query and use $(id) to wire up stuff, but this is even better since you avoid the lazy() or anonymous inner class. The alternative is to have a custom parser like gq:query $(.actionLearnMore a).click(lazy().as(Effects).slideToggle().end()); /gq:query This could be simplified further for callback actions: gq:click query=.actionLearnMore a as(Effects().slideToggle(); /gq:action -Ray On Tue, Jan 5, 2010 at 12:42 PM, Matt Mastracci matt...@mastracci.com wrote: Hey all, I've been playing around with UiBinder, hoping to start replacing a lot of our custom templating code with it. One feature that would really improve the experience for our designer/developer interface would be inline actions. A lot of our boilerplate UI event code does one of the of the following: - hides/shows/toggles another element (ie: expando links) - adds/removes/toggers a CSS classname - starts an animation - changes a rollover image It would be really useful if there was a way to plug in actions inline, something like the following pseudo-gwtquery code: span class=actionLearnMore a title=Learn more about dots ui:click='${infoBox}.as(Effects).slideToggle()'Learn more/a div id=infoBox More info... /div /span I don't know what the ideal syntax would look like, but even something trivial would be able to replace 99% of the UI event code we have to write. Thoughts? Matt. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors