Re: GWT1.7 -- GWT 2.X; Browser dependent error with hashmap
It looks like this http://imageupload.org/?d=4D7F147B1 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MySQL server in development mode
Here it is: ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/ classpathentry kind=src output=test-classes path=test/ classpathentry kind=con path=com.google.gwt.eclipse.core.GWT_CONTAINER/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry combineaccessrules=false kind=src path=/ GeniusBI/ classpathentry kind=lib path=/home/username/workspace/gwtchat/ war/WEB-INF/lib/mysql-connector-java-5.1.15-bin.jar/ classpathentry kind=output path=war/WEB-INF/classes/ /classpath On 9 מרץ, 18:49, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is classpath error problem. Show the .classpath file Juan 2011/3/9 Erel Segal erel...@gmail.com I added a mysql server to the default GWT application. I put the mysql connector jar in the lib folder under WEBINF, and also added it to the build path. I ran the web application in development mode and it worked fine. But then I restarted the server (from the eclipse development pane), and I started getting errors saying that the server cannot find a driver for jdbc:mysql connection! Can you please help me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Grouping Table Implementation
Cheers Raphaël, could it be that you are using a FlexTable and not a CellTable? I could not find the method you mentioned in the CellTable class. For now I implemented my table as a CellList with custom cells that contain HTML tables. Works fine, but relies of course on a mix of GWT and HTML code where a pure GWT solution would be more desirable. Thanks for your help Jerome 2011/3/14 Raphaël Brugier raphael.brug...@gmail.com Yes, we did a similar thing just last week. Just use cellTable.setRowSpan(row, colum, depth) on the cell you want to group and then delete the cell on the next row using cellTable.deleteCell(row, cell). This is just the normal way to group cells in a html table but using the cellTable api. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DropDown Button
Hi Jim, I've yet done as you have say to me. But can you tell me the instruction to insert an arrow on th face? Thx you, Marco On Mon, Mar 14, 2011 at 9:34 PM, Jim Douglas jdou...@basis.com wrote: Make a button with text and a dropdown arrow on the face, react to the button click by showing an autohide popup panel containing a menubar at the appropriate location. Implementation details left an an exercise for the student. On Mar 14, 1:12 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: +1 2011/3/14 Marco Gadaleta gadaleta.ma...@gmail.com Nothing??? On Wed, Mar 9, 2011 at 1:53 PM, gadaleta.marco gadaleta.ma...@gmail.comwrote: hello everyone, there a way to create a button in gwt like gmail more actions button without using external library? Thx, hope you can help me. -- Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT service that transforms a HTTP request including running javascript
Hi To clarify your problem: -== Problem A ==- You have a URL which is a mix of HTML and JavaScript You need to load the page, and someone get values or data out of the executed javascript. -== Problem B ==- You have a URL which is JUST javascript (i) that has to be executed (creates some data in javascript memory) and you want the results (ii) is just a data structure (like a javascript associative array) If it is (A) You are needing some software that will emulate a browser, running on the server. Effectively, you need a headless browser that can run in Java - that can be given a URL, that you can programmatically interrogate it's DOM (Document Object model) once it has loaded the URL. If it is (B)(i) you can just use apache commons httpclient to download the executable javascript and you can use Rhino to execute it. If it is (B)(ii) you can use apache commons httpclient to download the javascript data and use the JSON library to interpret the data into a Java Structure (or just send it straight to GWT if it is happy as is). (A) options:1. HTMLUnit 2. http://www.envjs.com/+Rhino (Interesting!! - certainly doable but complex) (B)(i) httpclient - Rhino - JSON (B)(ii) httpclient - JSON. regards Ramon On Mar 15, 1:55 am, fred at large scbw.webmas...@gmail.com wrote: thanks,which way to jump was hindering me, so Rhino, as a java code, should be able to package it into gwt server environment (I think - still learning!!) I kinda suspected google may already have something implemented, as in there are app scripts in spreadsheets, and sites. But those are not appearing to be the full thing like ability to pull in javascript and executing it like a browser canonly have a defined api available. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
FlexTable inquiry
i want to sort FlexTable if the user click on any cell in the header note: the table may contain anchor. cause i found some class but not support anchor. and i failed to support it in this code . please help me -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MySQL server in development mode
It seems that your classpath is good. When you said: But then I restarted the server (from the eclipse development pane), and I started getting errors saying that the server cannot find a driver for jdbc:mysql connection! You want to deploy the app in a servlet container?. Try make a war and put in it and test. Tell me if the error persist Juan 2011/3/15 Erel Segal erel...@gmail.com Here it is: ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/ classpathentry kind=src output=test-classes path=test/ classpathentry kind=con path=com.google.gwt.eclipse.core.GWT_CONTAINER/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry combineaccessrules=false kind=src path=/ GeniusBI/ classpathentry kind=lib path=/home/username/workspace/gwtchat/ war/WEB-INF/lib/mysql-connector-java-5.1.15-bin.jar/ classpathentry kind=output path=war/WEB-INF/classes/ /classpath On 9 מרץ, 18:49, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is classpath error problem. Show the .classpath file Juan 2011/3/9 Erel Segal erel...@gmail.com I added a mysql server to the default GWT application. I put the mysql connector jar in the lib folder under WEBINF, and also added it to the build path. I ran the web application in development mode and it worked fine. But then I restarted the server (from the eclipse development pane), and I started getting errors saying that the server cannot find a driver for jdbc:mysql connection! Can you please help me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Can not run GWT application?
Follow this instructions http://code.google.com/webtoolkit/gettingstarted.html http://code.google.com/webtoolkit/gettingstarted.html 2011/3/14 Quoc Hoan nmqh...@gmail.com I created a GWT hello project following these instruction in this document: http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial.html but there were some errors when I deployed: Missing required argument 'module[s]' Google Web Toolkit 2.2.0 DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist- string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | auto] [-server servletContainerLauncher[:args]] [- startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir] module[s] where -noserverPrevents the embedded web server from running -portSpecifies the TCP port for the embedded web server (defaults to ) -whitelist Allows the user to browse URLs that match the specified regexes (comma or space separated) -blacklist Prevents the user browsing URLs that match the specified regexes (comma or space separated) -logdir Logs to a file in the given directory, as well as graphically -logLevelThe level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL -gen Debugging: causes normally-transient generated types to be saved in the specified directory -bindAddress Specifies the bind address for the code server and web server (defaults to 127.0.0.1) -codeServerPort Specifies the TCP port for the code server (defaults to 9997) -server Specify a different embedded web server to run (must implement ServletContainerLauncher) -startupUrl Automatically launches the specified URL -war The directory into which deployable output files will be written (defaults to 'war') -deploy The directory into which deployable but not servable output files will be written (defaults to 'WEB-INF/deploy' under the -war directory/jar, and may be the same as the -extra directory/jar) -extra The directory into which extra files, not intended for deployment, will be written -workDir The compiler's working directory for internal use (must be writeable; defaults to a system temp dir) and module[s]Specifies the name(s) of the module(s) to host How can i fix it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Entity version checks / optimistic locking
On Saturday, March 12, 2011 9:58:11 AM UTC+1, Thomas Broyer wrote: The question is what would you do of other changes made by the user in the mean time? Because the proxies are locked, you cannot flush() the driver. And because you cannot edit() a given proxy twice at the same time, you cannot do a flush().fire() + edit(). But thinking a bit more about it, there might be a solution: instead of edit()ing the proxy, you'd create a copy of it that you give to the editor driver. Then you periodically flush() the driver, but never fire() its context. After the flush(), you copy the proxy values into the proxy you'll send to the server. The problem is: how to clone the proxy? See http://code.google.com/p/google-web-toolkit/issues/detail?id=5794 Ah ok, so each proxy instance holds its serialized version in a field somewhere in the generated autobean and just don't expose it so the developer do not have to bother with it? If so then its basically the same what we do and I guess thats the reason why RF locks the proxy until the response is received. That way RF avoids the issue we currently have by design. The reason RF locks the proxy until the response is received is that it will unlock them in case of constraint violations (so you could correct your proxies and fire the same RequestContext again). Ok a cloned proxy would be a solution. But I still need a queue or something in case the real non-cloned proxy isn't saved yet but the next auto save occures. So in general RF forces me to wait for the response. But its ok.. as I have to wait anyways because of the entity version (either by waiting for the response or by increasing auto save intervals). And you are right, in case of constraint violations one should lock the form and the entity during save. But in our aggressive auto save strategy we would like to not lock the form and display any constraint violations in a non intrusive way. In most cases the user will correct these violations anyways because most violations will occur because of unlucky auto saves (e.g. data not completely and thus maybe incorrect edited be the user). It's even better than that ;-) The user has to click a lock button to be able to edit the objects (creates a working copy). The form then switches to read/write mode and the save button appears. But the save button only saves changes to the working copy; there's a distinct unlock button that overwrites the public copy with the working copy (and another free button to unlock the public copy and simply discards the working copy). A user can keep his working copy for days, or even weeks or months. Uhh..so if I work on my private copy for 2 weeks and then unlock it to update the public copy, a second user can destroy my work by unlocking his copy a day later and thus overwriting my 2 weeks of work? :) Having working copies is a nice idea but merging them back into one public copy seems tricky. But of course it depends on the application. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
element type web-app must match
Noobie here. I want to run the StockWatcher example. I have ran in development mode. After a successful GWT 2.2.0 build in Eclipse Helios 3.6.1, while attempting to deploy the Stockwatcher.war built from the unchanged Stockwatcher example(except for the deprecated // Display timestamp fix in line 175 of StockWatcher.java) to glassfish3 (GlassFish Server Open Source Edition 3.1 (build 43)), I got the following exception. I'd like to pointed towards the tutorial section that explains how this works, and what I'm doing wrong. Thanks for your insight. Q Error occurred during deployment: Exception while deploying the app [StockWatcher] : org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display- name?,description?,distributable?,context-param*,filter*,filter- mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime- mapping*,welcome-file-list?,error-page*,taglib*,resource-env- ref*,resource-ref*,security-constraint*,login-config?,security- role*,env-entry*,ejb-ref*,ejb-local-ref*).. Please see server.log for more details. The web.xml is: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Default page to serve -- welcome-file-list welcome-fileStockWatcher.html/welcome-file /welcome-file-list !-- Servlets -- servlet servlet-namegreetServlet/servlet-name servlet- classcom.google.gwt.sample.stockwatcher.server.GreetingServiceImpl/ servlet-class /servlet servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/stockwatcher/greet/url-pattern /servlet-mapping /web-app Server log is: [#|2011-03-07T21:55:48.674-0700|SEVERE|glassfish3.1| javax.enterprise.system.tools.admin.org.glassfish.deployment.admin| _ThreadID=64;_ThreadName=Thread-1;|Exception while deploying the app [StockWatcher] : org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,filter-mapping*,listener*,servlet*,servlet- mapping*,session-config?,mime-mapping*,welcome-file-list?,error- page*,taglib*,resource-env-ref*,resource-ref*,security- constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local- ref*). at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java: 315) at snip com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java: 309) ... 74 more |#] -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.2 and gwt-maps.jar not compatible
This problem here. Is there a solution to this? On Feb 13, 3:34 pm, pac parvez.chau...@gmail.com wrote: Just upgraded to GWT 2.2 and getting in error in project compilation, looks gwt-maps library no longer compatible. Do I need something to make it work? [ERROR] Errors in 'jar:file:/myproject/war/WEB-INF/lib/gwt- maps.jar!/com/google/gwt/maps/client/impl/InfoWindowImpl.java' [ERROR] Internal compiler error java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenera tor.java: 277) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja va: 48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator ExtWrapper.java: 60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally (StandardGeneratorContext.java: 662) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 259) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 248) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAns wers(DistillerRebindPermutationOracle.java: 91) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe binds(WebModeCompilerFrontEnd.java: 106) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:254) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:175) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:288) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access $400(AbstractCompiler.java:145) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: 632) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations( BasicWebModeCompiler.java: 124) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio ns(WebModeCompilerFrontEnd.java: 54) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript Compiler.java: 517) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a: 35) at com.google.gwt.dev.Precompile.precompile(Precompile.java:541) at com.google.gwt.dev.Precompile.precompile(Precompile.java:495) at com.google.gwt.dev.Precompile.precompile(Precompile.java:407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu nner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Is there a way to detect the debug mode inside the code ?
Hello. I'm new to GWT development and I want to detect if the GWT application is in debug mode/session (i'm using Eclipse plugin), i have to do this because in Debug mode many POST and GET have different locations (cross site using a proxy in apache) than Release mode. Actually I use a constant property in my project but it's easy to forget and if another developer compile my GWT application it WILL be forgotten... Here is an example of my code to explain why i need to detect this : String GetUrlPost(String Url) { String res = GWT.getModuleBaseURL()+Url; if (constants.modeDebug()) res = constants.adresseServeurPost() + /proxyredir/ + Url; res = URL.encode(res); return(res); } Where adresseServeurPost is the IP of apache. I want to do a thing like : if (isDebugMode()) ... else ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Custom Serialization
Hi, I was wondering if it was possible to implement custom serialization (for RPC calls) in GWT, ie the same way it is possible in Java by rewriting the writeObject method? Thanks for any help, Thomas -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
A detailed Resource for learning UiBinder
Hello folks I have gone through the official tutorials of UiBinder but I found them quite precise and feel I am still lacking on my basics and a complete knowledge of declarative UI. I am really new to this. Are there any more detailed web resources available online? Regards Nitish -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Code splitting like Facebook
Hi! I need to create a web-application with the design like Facebook. So I want to have a single gwt-module for the entire app and use code splitting feature for dynamic loading of all needed pages. But there is some problem: From main page(when the module is already loaded) a user can navigate to any page of my app. The total amount of pages will be very huge(Let's say 1000). If I use code splitting feature I must to place the next code-fragment 1000 times in my module: GWT.runAsync(new RunAsyncCallback() { @Override public void onSuccess() { new SomePagelet().load(); } @Override public void onFailure(Throwable reason) { } }); Thus my single module will be a large size and the loading time will be very long as well. I want to find a way to say gwt what a pagelet to download in runtime! Now I see an only possible solution: 1)analyze compiled js scripts 2) then, extract the piece of the script that handles loading of the exclusive fragment 3)On the server I add extracted piece with specified pagelet-name to be downloaded to the output html. But this approach is hard. Does anybody have similar problems? Any useful advices would be very appreciated! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need Help for gwt-rpc mysql database connectivity
This is more for Ben then the original poster, but you can make your own serializble exception, catch the exception on the server side and then throw your Serializable Exception with the original message in it. It makes RCP so much easier to debug. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Custom Serialization
The magic term you're looking for is CustomFieldSerializer (google it, and you'll get lots of results) On 15/03/11 12:04, Thomas Lefort wrote: Hi, I was wondering if it was possible to implement custom serialization (for RPC calls) in GWT, ie the same way it is possible in Java by rewriting the writeObject method? Thanks for any help, Thomas -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Jetty in development/production
I know it is a GWT group but as GWT uses embedded Jetty I hope someone with a deeper Jetty knowledge is reading my questions and willing to answer :) We currently use Glassfish 3.1 with the following features: - EJB 3.1 Lite (only local no-interface beans, mainly for using @EJB) - @ManagedBean on some classes to be able to use @EJB inside - JPA 2.x (Eclipselink) - JAX-RS 1.1 - Servlet 3.0 - Session Failover / Clustering - Connection pooling and validation - maybe in the future: web sockets / push Our server code is pretty stateless and with some rewrite I guess we could get rid of @ManagedBean classes and maybe also of EJBs as we only use them for easy @EJB injection (could be done with google guice also). Is it possible to integrate these features into Jetty? Do you think this will result in some performance increase (and memory reduce)? Does anyone use GWT + Jetty in production or even has compared Jetty + J2EE features with Glassfish? If its possible to integrate all of these features, how robust is session failover / clustering? Could we also configure the embedded jetty used by GWT Eclipse Plugin to match our production settings (J2EE features + same application context root + hot redeploy)? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Get value of GWT property at runtime
Hi, is there a simple way to get a gwt-property when the GWT app is running? e.g. I have: define-property name=theme/ values=theme1, theme2/ Then at compile time I get nice permutations for theme1 and theme2. Cool so far. For some agile flexible fine-tuning it would be nice to get the value of theme. Something like GWT.getPermutationProperty(theme) Is this possible - or plain stupid because that's what compile time permutations are for... (I know that, but nevertheless...) ? Thanks! Raphael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I put Hyperlinks inside a CellTable, which behave the same as the Hyperlink widget?
If you want to allow both clicks and new tab clicks, try this: Render an anchor tag with the history token as the href: a href=#myTokenClick Me/a In your Cell, catch the click event and do the following: - If shift or ctrl is pressed, ignore the event. The user is opening a new window. - If the right button was pressed, ignore the event. The user will see the context menu. - If the left button was pressed, call Event.preventDefault() to prevent the page reload in IE, then call History.newItem(myToken). Thanks, John LaBanca jlaba...@google.com On Mon, Mar 14, 2011 at 6:45 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Does that allow for right-clicking? Because high on my list of HTML Tricks the piss me off is when websites have javascript links rather than real links that I can select, and do an Open New Tab / Open New Window. Greg On Mar 14, 9:58 am, John LaBanca jlaba...@google.com wrote: You can render an anchor tag with a no-op href: a href=javascript:;Click Me/a In your Cell, catch the click event and call History.newItem(myToken). This is basically what the Hyperlink Widget does. Thanks, John LaBanca jlaba...@google.com On Sat, Mar 12, 2011 at 1:07 PM, Jake carolinespe...@yahoo.com wrote: I want to create a CellTable with a column of Hyperlinks. I'm trying to get the same behavior as the Hyperlink widget - e.g.: If you click it, it'll call History.newItem(), but a user is also able to do 'right-click, open link in new window'. The two possibilities seem to be 1) put plain text into a column, and implement the selection model to trigger History.newItem. Unfortunately, if you do this, 'right click, open link in new window' does not work, as it is not a 'true' hyperlink 2) Put HTML into a column, using a a tag with a # URL. Unfortunately, this causes a page reload in IE, as per Issue #2152 in GWT's issue tracker. Has anyone found a solution to this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Custom Serialization
Thanks!!! On Mar 15, 1:44 pm, Paul Robinson ukcue...@gmail.com wrote: The magic term you're looking for is CustomFieldSerializer (google it, and you'll get lots of results) On 15/03/11 12:04, Thomas Lefort wrote: Hi, I was wondering if it was possible to implement custom serialization (for RPC calls) in GWT, ie the same way it is possible in Java by rewriting the writeObject method? Thanks for any help, Thomas -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.2 and gwt-maps.jar not compatible
Compile the sources with gwt 2.2 2011/3/15 culov cul...@gmail.com This problem here. Is there a solution to this? On Feb 13, 3:34 pm, pac parvez.chau...@gmail.com wrote: Just upgraded to GWT 2.2 and getting in error in project compilation, looks gwt-maps library no longer compatible. Do I need something to make it work? [ERROR] Errors in 'jar:file:/myproject/war/WEB-INF/lib/gwt- maps.jar!/com/google/gwt/maps/client/impl/InfoWindowImpl.java' [ERROR] Internal compiler error java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenera tor.java: 277) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja va: 48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator ExtWrapper.java: 60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally (StandardGeneratorContext.java: 662) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 259) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 248) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAns wers(DistillerRebindPermutationOracle.java: 91) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe binds(WebModeCompilerFrontEnd.java: 106) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:254) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:175) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:288) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access $400(AbstractCompiler.java:145) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: 632) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations( BasicWebModeCompiler.java: 124) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio ns(WebModeCompilerFrontEnd.java: 54) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript Compiler.java: 517) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a: 35) at com.google.gwt.dev.Precompile.precompile(Precompile.java:541) at com.google.gwt.dev.Precompile.precompile(Precompile.java:495) at com.google.gwt.dev.Precompile.precompile(Precompile.java:407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu nner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DropDown Button
http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/user/client/ui/PushButton.html#PushButton(com.google.gwt.user.client.ui.Image) http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/user/client/ui/Button.html#Button(com.google.gwt.safehtml.shared.SafeHtml) On Mar 15, 2:09 am, Marco Gadaleta gadaleta.ma...@gmail.com wrote: Hi Jim, I've yet done as you have say to me. But can you tell me the instruction to insert an arrow on th face? Thx you, Marco On Mon, Mar 14, 2011 at 9:34 PM, Jim Douglas jdou...@basis.com wrote: Make a button with text and a dropdown arrow on the face, react to the button click by showing an autohide popup panel containing a menubar at the appropriate location. Implementation details left an an exercise for the student. On Mar 14, 1:12 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: +1 2011/3/14 Marco Gadaleta gadaleta.ma...@gmail.com Nothing??? On Wed, Mar 9, 2011 at 1:53 PM, gadaleta.marco gadaleta.ma...@gmail.comwrote: hello everyone, there a way to create a button in gwt like gmail more actions button without using external library? Thx, hope you can help me. -- Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Code splitting like Facebook
try using MVP frame work, so that code spliting done in much better way. On Tue, Mar 15, 2011 at 5:50 PM, ss.require ss.requ...@gmail.com wrote: Hi! I need to create a web-application with the design like Facebook. So I want to have a single gwt-module for the entire app and use code splitting feature for dynamic loading of all needed pages. But there is some problem: From main page(when the module is already loaded) a user can navigate to any page of my app. The total amount of pages will be very huge(Let's say 1000). If I use code splitting feature I must to place the next code-fragment 1000 times in my module: GWT.runAsync(new RunAsyncCallback() { @Override public void onSuccess() { new SomePagelet().load(); } @Override public void onFailure(Throwable reason) { } }); Thus my single module will be a large size and the loading time will be very long as well. I want to find a way to say gwt what a pagelet to download in runtime! Now I see an only possible solution: 1)analyze compiled js scripts 2) then, extract the piece of the script that handles loading of the exclusive fragment 3)On the server I add extracted piece with specified pagelet-name to be downloaded to the output html. But this approach is hard. Does anybody have similar problems? Any useful advices would be very appreciated! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Regards Suresh Babu G http://www.AccountingGuru.in http://www.accountingguru.in/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Entity version checks / optimistic locking
On Tuesday, March 15, 2011 12:37:14 PM UTC+1, Jens wrote: On Saturday, March 12, 2011 9:58:11 AM UTC+1, Thomas Broyer wrote: It's even better than that ;-) The user has to click a lock button to be able to edit the objects (creates a working copy). The form then switches to read/write mode and the save button appears. But the save button only saves changes to the working copy; there's a distinct unlock button that overwrites the public copy with the working copy (and another free button to unlock the public copy and simply discards the working copy). A user can keep his working copy for days, or even weeks or months. Uhh..so if I work on my private copy for 2 weeks and then unlock it to update the public copy, a second user can destroy my work by unlocking his copy a day later and thus overwriting my 2 weeks of work? :) Having working copies is a nice idea but merging them back into one public copy seems tricky. But of course it depends on the application. There's no need to merge, because when you do a working copy, you're locking the public version. The idea of a working copy is that you work in private, and the public version stays the same until you publish your work. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Get value of GWT property at runtime
Possibly not as simple as you wanted, but you can do something like this: (1) Create base class com.foo.ThemeInfo and subclasses ThemeInfoOne and ThemeInfoTwo (2) Add this to your gwt.xml: replace-with class=com.foo.ThemeInfoOne when-type-is class=com.foo.ThemeInfo/ when-property-is name=theme value=theme1/ /replace-with replace-with class=com.foo.ThemeInfoTwo when-type-is class=com.foo.ThemeInfo/ when-property-is name=theme value=theme2/ /replace-with (3) In your client-side code: ThemeInfo info = GWT.create(ThemeInfo.class); and you'll get an instance of ThemeInfoOne when using theme1 and ThemeInfoTwo when using theme2 and an instance of the ThemeInfo base class otherwise This should let you do what you want, and also move the if using theme#1 test to compile time. HTH Paul On 15/03/11 12:46, Raphael André Bauer wrote: Hi, is there a simple way to get a gwt-property when the GWT app is running? e.g. I have: define-property name=theme/ values=theme1, theme2/ Then at compile time I get nice permutations for theme1 and theme2. Cool so far. For some agile flexible fine-tuning it would be nice to get the value of theme. Something like GWT.getPermutationProperty(theme) Is this possible - or plain stupid because that's what compile time permutations are for... (I know that, but nevertheless...) ? Thanks! Raphael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there a way to detect the debug mode inside the code ?
GWT.isProdMode()http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/GWT.html#isProdMode()? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Login Credentials Storage
I need a way to store a JSONObject that contains the users login credentials and privileges. I also need this object to be global to all of my composites. Should I use cookies, JSNI w/ Dictionary, ?. If anyone has any code to help me out I would greatly appreciate it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I put Hyperlinks inside a CellTable, which behave the same as the Hyperlink widget?
On Tuesday, March 15, 2011 1:42:17 PM UTC+1, John LaBanca wrote: In your Cell, catch the click event and do the following: - If shift or ctrl is pressed, ignore the event. The user is opening a new window. - If the right button was pressed, ignore the event. The user will see the context menu. - If the left button was pressed, call Event.preventDefault() to prevent the page reload in IE, then call History.newItem(myToken). which can be as easy as: if (GWT.create(HyperlinkImpl.class).handleAsClick(event)) { History.newItem(...); event.preventDefault(); } See http://code.google.com/p/google-web-toolkit/issues/detail?id=2901#c5 and http://code.google.com/p/google-web-toolkit/issues/detail?id=2901#c5 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Error in MapWidget
Did you try the options in this FAQ? http://code.google.com/p/gwt-google-apis/wiki/MapsFAQ#Why_is_my_map_showing_up_very_small_or_not_at_all? On Mon, Mar 14, 2011 at 5:25 AM, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote: hi all, i am trying to add MapWidget to VerticalPanel but the map added on the left corner the image http://www.4shared.com/photo/zSoEo2LB/Screenshot.html and i added marker and the marker should be centered on the image i can't see the marker when i load the map . i should navigate to this location to show map the code for this - private FormPanel form = new FormPanel(); private VerticalPanel main = new VerticalPanel(); public Map(){ ScrollPanel container = new ScrollPanel(); initWidget(container); container.setStyleName(FuoEgForm); form.setWidget(main); main.setSpacing(6); container.add(main); } public MapWidget addMapWidget(){ MapWidget map = new MapWidget(); //map.setSize(100%, 100%); map.setStyleName(gwt-map); map.removeMapType(MapType.getNormalMap()); map.removeMapType(MapType.getSatelliteMap()); map.addMapType(MapType.getPhysicalMap()); map.addMapType(MapType.getHybridMap()); map.setCurrentMapType(MapType.getHybridMap()); //map.setSize(100%, 100%); map.setWidth(500px); map.setHeight(500px); main.add(map); } how can i solve this issue . the map should fill the gray boundary ??? thanks for help . regards, ahmed shoeib GWT developer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Manage dependent GWT projects with Eclipse
Hi, I have a project that contains certain common stuff which is defined as a GWT module. I want to included that commons project into several other independent GWT projects. At design time there is no problem adding the commons project as a dependency. However, running jetty from Eclipse fails. The only simple solution that I'm aware of is to link the source folders from commons into the sub-projects. Is there any alternative to that? Thanks /SJ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Manage dependent GWT projects with Eclipse
You can use maven and add sources dependencies: dependency groupIdjavax.inject/groupId artifactIdjavax.inject/artifactId version1/version classifiersources/classifier scopeprovided/scope typejar/type /dependency Juan 2011/3/15 Samuru Jackson samurujack...@googlemail.com Hi, I have a project that contains certain common stuff which is defined as a GWT module. I want to included that commons project into several other independent GWT projects. At design time there is no problem adding the commons project as a dependency. However, running jetty from Eclipse fails. The only simple solution that I'm aware of is to link the source folders from commons into the sub-projects. Is there any alternative to that? Thanks /SJ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: element type web-app must match
Change http://java.sun.com/dtd/web-app_2_3.dtd; for 2.5 Juan 2011/3/15 QCS Info i...@quinlancomputing.com Noobie here. I want to run the StockWatcher example. I have ran in development mode. After a successful GWT 2.2.0 build in Eclipse Helios 3.6.1, while attempting to deploy the Stockwatcher.war built from the unchanged Stockwatcher example(except for the deprecated // Display timestamp fix in line 175 of StockWatcher.java) to glassfish3 (GlassFish Server Open Source Edition 3.1 (build 43)), I got the following exception. I'd like to pointed towards the tutorial section that explains how this works, and what I'm doing wrong. Thanks for your insight. Q Error occurred during deployment: Exception while deploying the app [StockWatcher] : org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display- name?,description?,distributable?,context-param*,filter*,filter- mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime- mapping*,welcome-file-list?,error-page*,taglib*,resource-env- ref*,resource-ref*,security-constraint*,login-config?,security- role*,env-entry*,ejb-ref*,ejb-local-ref*).. Please see server.log for more details. The web.xml is: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Default page to serve -- welcome-file-list welcome-fileStockWatcher.html/welcome-file /welcome-file-list !-- Servlets -- servlet servlet-namegreetServlet/servlet-name servlet- classcom.google.gwt.sample.stockwatcher.server.GreetingServiceImpl/ servlet-class /servlet servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/stockwatcher/greet/url-pattern /servlet-mapping /web-app Server log is: [#|2011-03-07T21:55:48.674-0700|SEVERE|glassfish3.1| javax.enterprise.system.tools.admin.org.glassfish.deployment.admin| _ThreadID=64;_ThreadName=Thread-1;|Exception while deploying the app [StockWatcher] : org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,filter-mapping*,listener*,servlet*,servlet- mapping*,session-config?,mime-mapping*,welcome-file-list?,error- page*,taglib*,resource-env-ref*,resource-ref*,security- constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local- ref*). at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java: 315) at snip com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java: 309) ... 74 more |#] -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need Help for gwt-rpc mysql database connectivity
Yeah, I've been meaning to do something like that in my application. The current lack of details on the client isn't very pleasant for users or developers. SSH-ing into the prod server is annoying as well. I'm always worried about breaking something with a twitchy rm - rf finger. I'm still curious as to why OP can't see the logs in his server, though. If it happens in development mode, odds are the server console is right there in eclipse, full stack trace and all. -Ben On Mar 15, 7:20 am, Sean slough...@gmail.com wrote: This is more for Ben then the original poster, but you can make your own serializble exception, catch the exception on the server side and then throw your Serializable Exception with the original message in it. It makes RCP so much easier to debug. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Code splitting like Facebook
MVP framework is a top-level gwt framework that uses all standard gwt features. In particular, it uses standard code splitting feature. I can split my code in the same way as MVP does, but my initial problem still remains. I don't see any advantages of using MVP. Maybe, you mean something else or you have not understand my problem! On Mar 15, 3:25 pm, suersh babu sureshgbab...@gmail.com wrote: try using MVP frame work, so that code spliting done in much better way. On Tue, Mar 15, 2011 at 5:50 PM, ss.require ss.requ...@gmail.com wrote: Hi! I need to create a web-application with the design like Facebook. So I want to have a single gwt-module for the entire app and use code splitting feature for dynamic loading of all needed pages. But there is some problem: From main page(when the module is already loaded) a user can navigate to any page of my app. The total amount of pages will be very huge(Let's say 1000). If I use code splitting feature I must to place the next code-fragment 1000 times in my module: GWT.runAsync(new RunAsyncCallback() { @Override public void onSuccess() { new SomePagelet().load(); } @Override public void onFailure(Throwable reason) { } }); Thus my single module will be a large size and the loading time will be very long as well. I want to find a way to say gwt what a pagelet to download in runtime! Now I see an only possible solution: 1)analyze compiled js scripts 2) then, extract the piece of the script that handles loading of the exclusive fragment 3)On the server I add extracted piece with specified pagelet-name to be downloaded to the output html. But this approach is hard. Does anybody have similar problems? Any useful advices would be very appreciated! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Regards Suresh Babu G http://www.AccountingGuru.inhttp://www.accountingguru.in/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Server Side ColumnSorting with AsyncDataProvider
I'm trying to implement server side sorting using CellTable and AsyncDataProvider in GWT 2.2. I've followed the example in the documentation and have everything working with the AsyncDataProvider only fetching ten objects at a time. But when it comes to sorting I can't make it work. I can't figure out how to tell the server on which of the objects attributes to sort the query result. In the onRangeChanged-method I can get the ColumnSortList and then get the columns. But the column object does not contain information like the columns headerString. If I could get the columns headerString I could figure out which attribute of the object to do the sorting on, but I can't and now I'm out of ideas. I could of course subclass the column-object and add some kind of identifier-method to it, but I have a feeling that it's something I've missed because it shouldn't be that tedious. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: image gallery with celltable or celllist
I find a cellList ok. The problem come with key navigation. With celllist I think you can just us Up and Down arrows and when you use a float or inline-block pressing up and down you move to right or left. The cell table doesn't resolve the problem because it works with rows. The other think I don't really understand is why to use a cell with image. I would just build a cell per image. Al On 15 March 2011 16:57, Ramon Salla rsal...@gmail.com wrote: float:left did the job. Thankyou -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Spring Security 3.0 authentication problem
Hi, I have a GWT client that communicates with a Spring/SpringSecurity 3.0 server via REST/JSON. Both run on the same tomcat/jetty perfectly, but I have a problem introducing the authentication: If I POST the server with an external HTTP client the url: http://localhost:8080/myserverapp/j_spring_security_check?j_username=julioj_password=mypass the server response is OK (200) but when GWT client tries the same, the status code returned is 0. This is the code I'm using at the moment: final StringBuilder content = new StringBuilder(); content.append(j_username= + URL.encode(julio)); content.append(j_password= + URL.encode(mypass)); final RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, URL.encode(BASEURL + / j_spring_security_check)); builder.setHeader(Content-Type, application/x-www-form- urlencoded); try { builder.sendRequest(content.toString(), new RequestCallback() { public void onResponseReceived(Request request, Response response) { Window.alert(STATUS : + response.getStatusCode()); // returns 0 ?? } public void onError(Request request, Throwable exception) { Window.alert(ERROR); } }); } catch (final RequestException e) { Window.alert(e.getLocalizedMessage()); } why does it return 0? any idea? Thanks, Julio -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server Side ColumnSorting with AsyncDataProvider
You can call CellTable#getColumn(int) to get the Column object from the index. Then you can use a Map of Column to ServerColumnId to resolve the value to send to the server. Thanks, John LaBanca jlaba...@google.com On Tue, Mar 15, 2011 at 12:21 PM, Stephan T stephan.tern...@gmail.comwrote: I'm trying to implement server side sorting using CellTable and AsyncDataProvider in GWT 2.2. I've followed the example in the documentation and have everything working with the AsyncDataProvider only fetching ten objects at a time. But when it comes to sorting I can't make it work. I can't figure out how to tell the server on which of the objects attributes to sort the query result. In the onRangeChanged-method I can get the ColumnSortList and then get the columns. But the column object does not contain information like the columns headerString. If I could get the columns headerString I could figure out which attribute of the object to do the sorting on, but I can't and now I'm out of ideas. I could of course subclass the column-object and add some kind of identifier-method to it, but I have a feeling that it's something I've missed because it shouldn't be that tedious. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
EditorDriver.setViolations in 2.3 release branch doesn't work as expected
Hi Lately I have a problem with calling isChanged on RequestContext here is the link to discussion on that topic https://groups.google.com/d/topic/google-web-toolkit/HznAkg94WUc/discussion Thomas has suggested that my problems can be solved by using editorDriver.isDirty introduced in gwt 2.3. Today I compiled gwt from 2.3 release branch and editorDriver.isDirty works as expected, but unfortunately setting violations on the editorDriver does not result of showing of the error messages in the view. The view is quite straightforward and it consists a bunch of ValueBoxEditorDecoratorString instances and one embedded address editor. After some debugging, I guess the problem lies in the line 112 of the com.google.gwt.editor.client.impl.SimpleViolation#pushViolations. /** * Maps an abstract representation of a violation into the appropriate * EditorDelegate. */ public static void pushViolations(IterableSimpleViolation violations, EditorDriver? driver, KeyMethod keyMethod) { DelegateMap delegateMap = DelegateMap.of(driver, keyMethod); // For each violation for (SimpleViolation error : violations) { * Object key = error.getKey();* ListAbstractEditorDelegate?, ? delegateList = delegateMap.get(key); if (delegateList != null) { // For each delegate editing some record... for (AbstractEditorDelegate?, ? baseDelegate : delegateList) { Calling error.getKey() always returns null, for every violation object in the collection and then delegateMap returns null for the null key. Am I right, or maybe in 2.3 passing the validation error should be done in different way ? I run the DynaTableRF example and in that app validation messages around textboxes are not displayed as well. Also, I'm confused, what kind of errors are recorded by the editorDriver during flushing. In DynaTableRF checking for errors after flush results in one error related to the zipCode field (so suprisingly it looks like client side validation ? ). But in my example it simply doesn't work, althought I also have the embeded Address ValueProxy with the zipCode member annotated by @Pattern. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to compile selectively or avoid compilation of inheriting/implementing classes?
Here is my situation. On the top level of my API is... com.mycompany.core.MODEL I have made this a GWT module, has a blank entry point and has MyModel.xml. Its structure is as below... module inherits name='com.google.gwt.user.User'/ super-source path=jre/ source path='client'/ source path='messages'/ source path='model'/ source path='transport'/ source path='util'/ entry-point class=com.attivio.MyModelEntryPoint / /module Now there are implementations of this model to make a default out of the box framework and those reside in the following packages com.mycompany.core.API com.mycompany.core.KERNAL i.e. Abstract and concrete classes in these 2 packages above implement interfaces from the MODEL package e.g AbstractMessageListner (in core.API) implements MessageListener (in core.MODEL) Now there is another GWT module... com.mycompany.DASHBOARD which inherits the MODEL When I compile all in eclipse or do a 'mvn clean install', there are no errors. There are Maven dependencies in Dashboard for MODEL source When I launch dashboard module from eclipse using my custom .launch file, I get a lot of No source code... found errors pointing to classes in API and KERNAL and also things like - No source code is available for type java.io.ByteArrayOutputStream; did you forget to inherit a required module? - The method close() is undefined for the type OutputStream - No...for type com.thoughtworks.xstream.io.StreamException; did you... - No...for type java.io.Writer; did you... So my question is: How can I avoid API and KERNEL being pulled in while compiling. My argument is MODEL does not depend on anything, rather everything depends on MODEL. Is there a way I can tell GWT compiler (preferably selectively) not to worry about classes that DEPEND ON core.MODEL with the exception of DASHBOARD of course. My end goal is that, I would like to use MODEL in DASHBOARD on client side and avoid writing new DTO interfacing between widgets and backend. Any ideas or help here would be super in taking me over this roadblock. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there a way to detect the debug mode inside the code ?
Tu peux utiliser - com.google.gwt.core.client.GWT.isProdMode(), ou - com.google.gwt.core.client.GWT.isScript() Si quelqu'un pouvait m'expliquer la différence entre les deux d'ailleurs ... :) On 15 mar, 10:32, oarguim...@labocom.com oarguim...@labocom.com wrote: Hello. I'm new to GWT development and I want to detect if the GWT application is in debug mode/session (i'm using Eclipse plugin), i have to do this because in Debug mode many POST and GET have different locations (cross site using a proxy in apache) than Release mode. Actually I use a constant property in my project but it's easy to forget and if another developer compile my GWT application it WILL be forgotten... Here is an example of my code to explain why i need to detect this : String GetUrlPost(String Url) { String res = GWT.getModuleBaseURL()+Url; if (constants.modeDebug()) res = constants.adresseServeurPost() + /proxyredir/ + Url; res = URL.encode(res); return(res); } Where adresseServeurPost is the IP of apache. I want to do a thing like : if (isDebugMode()) ... else ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Older version of GWT Eclipse plugin
I'm currently working on a piece of software that's still using GWT 2.0.4, and is not (yet) compatible with 2.2. I use eclipse, and the GWT plugin, and recently updated the plugin to GWT2.2, but since it's not working yet I'd like to switch back to GWT plugin 2.0.4; is this possible? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
FormPanel submit shows old page
Hi, I'm developing a web application based on GWT for client side and SpringFramework for server side. I submit a FormPanel on a SimpleFormController, the onSubmit method is called and it returns a new html but the browser shows me the old page. On start and on end jsp I have a GWT EntryPoint and I checks that the onModuleLoad method is called. I tryed to add these html tags to my jsp: meta http-equiv='Cache-Control' content='no-cache' meta http-equiv='expires' content='0' but I always saw the old page. I tryed to submit FormPanel on taget _blank and it works (the browser shows me the new page). Someone, can help me? If you need, I will send you sample of code. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT application requires Plugin to be installed in browser
Hi All, I am new to GWT(2.0) development. Problem statement: While accessing a GWT based web application, IE ask me to install GWT plugin. Solution: If i instal the plugin then it works perfectly fine. As per my knowledge Gmail is based on GWT. and if i try to access gmail from any where it does not ask me to install any plugin. I want my application to behave in similar manner. What i have googled till now is, there is something called GWT development mode, due to which this problem is caused. Any suggestion will be very helpful. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT application requires Plugin to be installed in browser
You are running your application in development mode, which means you are probably running it from your IDE. Its used for debugging and fun stuff like that. If you compile and deploy your web application to a server, like Apache or Tomcat, you wont get that. http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html -Ben On Mar 15, 7:57 am, BhaskerT bhasker.i...@gmail.com wrote: Hi All, I am new to GWT(2.0) development. Problem statement: While accessing a GWT based web application, IE ask me to install GWT plugin. Solution: If i instal the plugin then it works perfectly fine. As per my knowledge Gmail is based on GWT. and if i try to access gmail from any where it does not ask me to install any plugin. I want my application to behave in similar manner. What i have googled till now is, there is something called GWT development mode, due to which this problem is caused. Any suggestion will be very helpful. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT application requires Plugin to be installed in browser
Hi BhaskerT, welcome to GWT. Ben is correct. GWT development mode allows you to develop and debug quickly in the browser without having to do a full compile to JavaScript. If you haven't tried it already, be sure to try Debug As | Web Application and set a breakpoint in your app in Eclipse, then tickle it in the browser. When you're ready to publish your app, click the Compile button in Eclipse to create the war folder. FYI, Gmail was written before GWT and hasn't yet been rewritten. Many other Google apps use GWT, including the AdWords and AdSense admin consoles, parts of Docs and Maps, the new Groups interface, Google Moderator, and coming soon, Blogger, which I tweeted yesterday from @googledevtools. /dmc On Tue, Mar 15, 2011 at 2:31 PM, Ben Imp benlee...@gmail.com wrote: You are running your application in development mode, which means you are probably running it from your IDE. Its used for debugging and fun stuff like that. If you compile and deploy your web application to a server, like Apache or Tomcat, you wont get that. http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html -Ben On Mar 15, 7:57 am, BhaskerT bhasker.i...@gmail.com wrote: Hi All, I am new to GWT(2.0) development. Problem statement: While accessing a GWT based web application, IE ask me to install GWT plugin. Solution: If i instal the plugin then it works perfectly fine. As per my knowledge Gmail is based on GWT. and if i try to access gmail from any where it does not ask me to install any plugin. I want my application to behave in similar manner. What i have googled till now is, there is something called GWT development mode, due to which this problem is caused. Any suggestion will be very helpful. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Google Web Toolkit Plugin for RSA(Rational Software Architect)
I have a question for installing the Google Web Toolkit plugin for Rational Software Architect. In RSA, Under Help- Software Updates - Find and Install, I gave the urlhttp://dl.google.com/eclipse/plugin/3.6 And I can only see the Engine and Toolkit SDKs listed, but the plugin is not listed. My Proxy settings are good. Can some one help to resolve this. Thanks K -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Older version of GWT Eclipse plugin
This is what I would do.. Install sdks in a separate directory say DRIVE/gwt-sdks/2.0 , 2.1, 1.7 etc In Eclipse under Preferences, just choose which one you want to be active/default. Same goes for app engine Now under project properties, chose the desired sdk in Use Specific SDK If you reference versioned gwt jars in your project, then you better mavenize it if possible and change dependency as need be best KD On Mar 15, 9:21 am, Michiel Weggen michiel.weg...@gmail.com wrote: I'm currently working on a piece of software that's still using GWT 2.0.4, and is not (yet) compatible with 2.2. I use eclipse, and the GWT plugin, and recently updated the plugin to GWT2.2, but since it's not working yet I'd like to switch back to GWT plugin 2.0.4; is this possible? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Fwd: LOOK FROM THE JAPNEESEE'S GOV. LETTER
-- Forwarded message -- From: RAVI TELANG tazmahal.in...@gmail.com Date: 2011/3/16 Subject: LOOK FROM THE JAPNEESEE'S GOV. LETTER from 首相官邸HP発信専用 hen...@kantei.go.jp to tazmahal.in...@gmail.com date Tue, Mar 15, 2011 at 5:43 AM subject [首相官邸より] * mailed-by form1.kmail.kantei.go.jp Important mainly because of the words in the message. Images from this sender are always displayed. Don't display from now on. hide details 5:43 AM (18 hours ago) [image: Boxbe] https://www.boxbe.com/overview =?ISO-2022-JP?B?GyRCPHNBajQxRSEbKEJIUA==?= =?ISO-2022-JP?B?GyRCSC8/LkBsTVEbKEI=?= (hen...@kantei.go.jp) is on your Guest List https://www.boxbe.com/approved-list | Delete this guesthttps://www.boxbe.com/anno?action=removetc=7285041580_1286299657 We acknowledge receipt of your message. Best regards, E-mail Team, Cab inet Secretariat, Government of Japan -- RAVI TELANG (Director) Reliable Pro-Detect Biomedicals Pvt.Ltd. FLAT. NO. 303, THE MALL,FINGASK ESTATE, BHIYANW BUILDING *SHIMLA - 171003 (HP)* 0177-2814848 +91-8894310710 +91-9218784762 +91-9259164848 alternate email: telang_ravi@ telang_r...@gmail.comyahoo.co.in -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: EditorDriver.setViolations in 2.3 release branch doesn't work as expected
On Tuesday, March 15, 2011 7:09:08 PM UTC+1, Marcin Misiewicz wrote: Also, I'm confused, what kind of errors are recorded by the editorDriver during flushing. In DynaTableRF checking for errors after flush results in one error related to the zipCode field (so suprisingly it looks like client side validation ? ). But in my example it simply doesn't work, althought I also have the embeded Address ValueProxy with the zipCode member annotated by @Pattern. The zipCodehttp://code.google.com/p/google-web-toolkit/source/browse/releases/2.3/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/ZipPlusFourBox.javafield is a ValueBox, whose Parser throws ParseException; and the ValueBoxEditor translates these exceptions into errors: http://code.google.com/p/google-web-toolkit/source/browse/releases/2.3/user/src/com/google/gwt/editor/ui/client/adapters/ValueBoxEditor.java#82 Nothing to do with JSR 303 Bean Validation. Can't help on the validation side though. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Compiled GWT JS size handwritten JS size?
Let's take a common non very interactive page, like a common Wikipedia page. For such pages, where there is not a lot of javascript: Compiled GWT JS size handwritten JS size and it's more optimal(performance overhead) to use simple JavaScript than GWT On the other hand, if web-page is very interactive, like Gmail, then : Compiled GWT JS size handwritten JS size due to GWT's optimizations. In such cases it's more optimal(performance overhead) to use GWT than JavaScript. In general, It would be a mistake to use GWT for Wikipedia due to performance overhead. Am i right? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Eclipse plugin problem with OSX Java update 4?
FYI, the Google Plugin for Eclipse team is working on this issue. There will be a GPE point release which removes the -d32 argument from run configurations. In addition, we're in communication with Apple about the underlying JDK issue that affects the dev app server and will update the App Engine issue Stefaan referenced with more details as they become available: http://code.google.com/p/googleappengine/issues/detail?id=4712 /dmc On Sat, Mar 12, 2011 at 5:51 AM, JSwinger maneesh.godb...@gmail.com wrote: Thanks Stefaan for the link. I followed Shengta's solution and that worked for me. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Design of Breadcrumb Interaction
I have created a widget which allows for easy construction of the breadcrumb design pattern using common GWT patterns (including HasWidget) with relative ease. It is only when trying to wire this widget up to my MVP that I am running into issues. While the breadcrumbs could be history based, my implementation is of pure hierarchical structure mapped to the logic of what the pages represent. A good example would be a vehicle inventory. The inventory has vehicle manufacturers, each manufacturer has models, and each model has pages for viewing specific info on a component. Navigating into a more detailed view and adding the associated crumbs should be easy as you're only pushing items onto the stack via an event or injecting some kind of controller and calling a method. The things I am uncertain of are: - If the user starts the application directly on viewing a car from a bookmark, who is responsible for publishing the parent crumbs? Obviously work has to be done to fetch information from the server about the names of the parent crumbs. - Clicking a link which navigates up a crumb-level but to a different car/manufacturer/whatever requires both removing the more detailed breadcrumbs from the control and changing the current level to point to the correct page. Should the whole trail be rebuilt on every place change? My current line of thinking is for writing some kind of BreadcrumbController which would handle the (re)building of the crumbs and loading any information on parents. This would be a singleton injected with the place controller and request factory. I'd then inject this into each activity for the interaction. Does anyone have any thoughts on this whether critiques on my thoughts, suggestions for a better solution, or perhaps a link to something with similar functionality? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Compiled GWT JS size handwritten JS size?
I have been working with gwt for more than 2 years now and I can't imagine a page where I won't use gwt. If you really try you may find some cases where handwritten js produce a smaller page than gwt. It is also probable than in the small size of that cases the difference won't matter. But I doubt you will get a better performance from js than gwt. On Tue, Mar 15, 2011 at 4:27 PM, ss.require ss.requ...@gmail.com wrote: Let's take a common non very interactive page, like a common Wikipedia page. For such pages, where there is not a lot of javascript: Compiled GWT JS size handwritten JS size and it's more optimal(performance overhead) to use simple JavaScript than GWT On the other hand, if web-page is very interactive, like Gmail, then : Compiled GWT JS size handwritten JS size due to GWT's optimizations. In such cases it's more optimal(performance overhead) to use GWT than JavaScript. In general, It would be a mistake to use GWT for Wikipedia due to performance overhead. Am i right? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Compiled GWT JS size handwritten JS size?
Thanks for the vote of confidence, Dal. In fairness, there are some cases where you wouldn't use GWT, and writing a static Web page with NO Javascript is certainly one of them. GWT is intended for rich Internet applications. GWT incurs some overhead just to bring in the base JRE, so if all you need is a few lines of Javascript, there's not a compelling case for GWT. But I know of an app that started with a few lines and grew to 3000 lines of script, at which point the developers wished they'd used GWT even for the few lines. Apps that benefit the most from GWT are those that could not conceivably be written without it. One example that comes to mind is Sumwise, which implements a complete financial modeling language and spreadsheet in the browser. Large projects / teams also get the most from GWT due to the improved manageability of a strongly typed language vs. a dynamic language. /dmc On Tue, Mar 15, 2011 at 3:51 PM, Gal Dolber gal.dol...@gmail.com wrote: I have been working with gwt for more than 2 years now and I can't imagine a page where I won't use gwt. If you really try you may find some cases where handwritten js produce a smaller page than gwt. It is also probable than in the small size of that cases the difference won't matter. But I doubt you will get a better performance from js than gwt. On Tue, Mar 15, 2011 at 4:27 PM, ss.require ss.requ...@gmail.com wrote: Let's take a common non very interactive page, like a common Wikipedia page. For such pages, where there is not a lot of javascript: Compiled GWT JS size handwritten JS size and it's more optimal(performance overhead) to use simple JavaScript than GWT On the other hand, if web-page is very interactive, like Gmail, then : Compiled GWT JS size handwritten JS size due to GWT's optimizations. In such cases it's more optimal(performance overhead) to use GWT than JavaScript. In general, It would be a mistake to use GWT for Wikipedia due to performance overhead. Am i right? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Eclipse plugin problem with OSX Java update 4?
See also http://lists.apple.com/archives/java-dev/2011/Mar/msg00116.html /dmc On Tue, Mar 15, 2011 at 3:36 PM, David Chandler drfibona...@google.comwrote: FYI, the Google Plugin for Eclipse team is working on this issue. There will be a GPE point release which removes the -d32 argument from run configurations. In addition, we're in communication with Apple about the underlying JDK issue that affects the dev app server and will update the App Engine issue Stefaan referenced with more details as they become available: http://code.google.com/p/googleappengine/issues/detail?id=4712 /dmc On Sat, Mar 12, 2011 at 5:51 AM, JSwinger maneesh.godb...@gmail.comwrote: Thanks Stefaan for the link. I followed Shengta's solution and that worked for me. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Compiled GWT JS size handwritten JS size?
Thanks for mentioning Sumwire. I did not know about that application. I allways been interested in those types of applications to see what i can steal from them :) Regards, Alain 2011/3/15 David Chandler drfibona...@google.com Thanks for the vote of confidence, Dal. In fairness, there are some cases where you wouldn't use GWT, and writing a static Web page with NO Javascript is certainly one of them. GWT is intended for rich Internet applications. GWT incurs some overhead just to bring in the base JRE, so if all you need is a few lines of Javascript, there's not a compelling case for GWT. But I know of an app that started with a few lines and grew to 3000 lines of script, at which point the developers wished they'd used GWT even for the few lines. Apps that benefit the most from GWT are those that could not conceivably be written without it. One example that comes to mind is Sumwise, which implements a complete financial modeling language and spreadsheet in the browser. Large projects / teams also get the most from GWT due to the improved manageability of a strongly typed language vs. a dynamic language. /dmc On Tue, Mar 15, 2011 at 3:51 PM, Gal Dolber gal.dol...@gmail.com wrote: I have been working with gwt for more than 2 years now and I can't imagine a page where I won't use gwt. If you really try you may find some cases where handwritten js produce a smaller page than gwt. It is also probable than in the small size of that cases the difference won't matter. But I doubt you will get a better performance from js than gwt. On Tue, Mar 15, 2011 at 4:27 PM, ss.require ss.requ...@gmail.com wrote: Let's take a common non very interactive page, like a common Wikipedia page. For such pages, where there is not a lot of javascript: Compiled GWT JS size handwritten JS size and it's more optimal(performance overhead) to use simple JavaScript than GWT On the other hand, if web-page is very interactive, like Gmail, then : Compiled GWT JS size handwritten JS size due to GWT's optimizations. In such cases it's more optimal(performance overhead) to use GWT than JavaScript. In general, It would be a mistake to use GWT for Wikipedia due to performance overhead. Am i right? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for the Flash Platform http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: EditorDriver.setViolations in 2.3 release branch doesn't work as expected
Now I get it. I have missed ZipPlusCodeBox. Thanks again. Although I still got the problem with editorDriver.setViolations in my example and in DynaTableRf. 15-03-2011 20:13 użytkownik Thomas Broyer t.bro...@gmail.com napisał: -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Multiple requests in one context
Were you able to find the answer to this? I am having a similar issue On Feb 19, 12:42 pm, Mike Limansky mike.liman...@gmail.com wrote: Hi all. We are using GWT in our project. And we got the problem related with RequestFactory. The problem is following. Let's we have a some entity class which contain some formula and a data to evolute it. The calculation is performed on the server side. We are using RequestFactory to get intermediate result (this because in real application we have a huge object graph involved in this calculation process, so it's difficult to pass it via GWT RPC). The result is passed back to the form, and the user can check it, modify if it needed, and commit. Because of the are using RequestFactory to pass the proxies to server, the EntityProxy objects became to the frozen state, and we can not edit them anymore. If we call Request.edit(..) in the onSuccess handler it fails with Request is already in progress message. How it's better to solve it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT service that transforms a HTTP request including running javascript
... or java.net.HttpURLConnection instead of httpclient. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Proxy hell
I have bashed my head against this for almost two weeks now. I am trying to do something really simple - proxy a request from a stand- alone Jetty 6.1.22 instance to localhost to connect to my Bugzilla installation. My app is developed using GWT2.2.0. My Bugzilla runs just fine at http://localhost/bugzilla. The folder containing my webapp is to be found at jetty-6.1.22/webapps/ proxytest. I have read about proxies and GWT extensively, the most useful thing I found are the tales of woe (and advice) at http://code.google.com/p/google-web-toolkit/issues/detail?id=3131#c25 . Based on comment 46 on this page, I chose to use Jetty 6.1.22. My client code looks like this: public void onModuleLoad() { Frame frame = new Frame(/bugzilla/); frame.setHeight(100%); frame.setWidth(100%); RootPanel.get().add(frame); } My web.xml looks like this: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameJettyProxy/servlet-name servlet-classorg.mortbay.servlet.ProxyServlet$Transparent/ servlet-class init-param !-- This points to the actual server where requests are proxied to -- param-nameProxyTo/param-name param-valuehttp://localhost//param-value /init-param init-param !-- This will be stripped off the client request URL -- param-namePrefix/param-name param-value//param-value /init-param load-on-startup1/load-on-startup /servlet servlet servlet-namegreetServlet/servlet-name servlet-classcom.searchsystem.gwt.server.GreetingServiceImpl/ servlet-class /servlet servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/test/greet/url-pattern /servlet-mapping servlet-mapping servlet-nameJettyProxy/servlet-name url-pattern/bugzilla/*/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileTest.html/welcome-file /welcome-file-list /web-app In WEB-INF/lib I have jetty-util-6.1.22.jar and gwt-servlet.jar. When I run the app by hitting http://localhost:8080/proxytest, this is the output I get. Please please please can anyone help me get past this 404 error? I see there is no value in the output for javax.servlet.forward.context_path - is this fatal? Thanks in advance ... WebApp JSP Snoop page Request information Requested URL: http://localhost:8080/jspsnoop/ERROR/404 Request method: GET Request URI:/jspsnoop/ERROR/404 Request protocol: HTTP/1.1 Servlet path: /jspsnoop Path info: /ERROR/404 Path translated:/usr/share/java/jetty-6.1.22/webapps/test/ERROR/404 Query string: Content length: -1 Content type: null Server name:localhost Server port:8080 Remote user:null Remote address: 127.0.0.1 Remote host:127.0.0.1 Authorization scheme: null Request headers Header: Value: Hostlocalhost:8080 Connection keep-alive Referer http://localhost:8080/proxytest/ Accept application/xml,application/xhtml+xml,text/html;q=0.9,text/ plain;q=0.8,image/png,*/*;q=0.5 User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3 Accept-Encoding gzip,deflate,sdch Accept-Language en-GB,en-US;q=0.8,en;q=0.6 Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie LASTORDER=bug_status%2Cpriority%2Cassigned_to%2Cbug_id; JSESSIONID=igusquo0nqig Request Attributes Attribute: Value: javax.servlet.forward.request_uri /bugzilla/ org.mortbay.jetty.error_page/jspsnoop/ERROR/404 javax.servlet.forward.servlet_path /bugzilla/ testFilter 2 javax.servlet.error.message NOT_FOUND requestInitialized '' javax.servlet.forward.context_path javax.servlet.error.status_code 404 javax.servlet.error.servlet_namedefault org.mortbay.jetty.newSessionId ed9z6uthzmor javax.servlet.error.request_uri /bugzilla/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Jetty in development/production
On Tuesday, March 15, 2011 12:45:54 PM UTC, Jens wrote: I know it is a GWT group but as GWT uses embedded Jetty I hope someone with a deeper Jetty knowledge is reading my questions and willing to answer :) We currently use Glassfish 3.1 with the following features: - EJB 3.1 Lite (only local no-interface beans, mainly for using @EJB) - @ManagedBean on some classes to be able to use @EJB inside - JPA 2.x (Eclipselink) - JAX-RS 1.1 - Servlet 3.0 - Session Failover / Clustering - Connection pooling and validation - maybe in the future: web sockets / push Support for Servlet 3.0 is implemented in Jetty 8, which is not stable. Our server code is pretty stateless and with some rewrite I guess we could get rid of @ManagedBean classes and maybe also of EJBs as we only use them for easy @EJB injection (could be done with google guice also). Is it possible to integrate these features into Jetty? Do you think this will result in some performance increase (and memory reduce)? Does anyone use GWT + Jetty in production or even has compared Jetty + J2EE features with Glassfish? If its possible to integrate all of these features, how robust is session failover / clustering? Could we also configure the embedded jetty used by GWT Eclipse Plugin to match our production settings (J2EE features + same application context root + hot redeploy)? Thanks in advance. We have services running on Glassfish 2.1.1, 3.0.1 and 3.1, but in my team we are using embedded jetty during development. At the end, we generate a WAR that we deploy to a remote server using the asadmin command. We are not yet using Jetty in production, but we intend to do it later. We always had some problems with Glassfish that we never managed to solve. The six-monthly releases (iirc) does not help when it comes to bugs. Moreover, we only use a small part of JEE standard. The Jetty documentation is excellent. There are examples with connection pooling, clustering, websockets When it comes the performance, I think that Jetty is better. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Announcing Mvp4g 1.3.0:/1.3.1 the easiest way to implement MVP/event bus
Mvp4g 1.3.0/1.3.1 has been released. The 1.3.0 version is compatible with GWT 2.1 and older versions, whereas 1.3.1 is compatible with GWT 2.2. Mvp4g is a framework that allows GWT developers to easily implement the MVP/Event bus pattern thanks to one interface and a few annotations. The framework supports code splitting and browser history and comes with a lot of great features (lazy loading, navigation event, event filtering...). Among the new features available with 1.3.0/1.3.1, you will find: -Navigation event: thanks to this feature, you have the same control of user's navigation as with the GWT Activities/Place feature. You can easily detect when a user leaves a page and display a confirmation message. -Easily generate event token for hyperlink -Easily customize the place service to fit your needs -Better support for the Reverse MVP (or View Delegate) pattern thanks to Reverse View feature -Event feature improvement: event broadcast, passive event -APT: detect Mvp4g errors directly in Eclipse Mvp4g has been successfully used on several commercial projects including www.xplana.com. You can read feedback from other developers on the Mvp4g forum (http://groups.google.com/group/mvp4g) or on GWT marketplace (http://www.gwtmarketplace.com/). http://code.google.com/p/mvp4g Pierre -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Vertical menu
Hi I want a vertical menu, with submenus, which is always expanded. For example: menu_item_1 submenu_item_1.1 submenu_item_1.2 menu_item_2 menu_item_3 submenu_item_3.1 submenu_item_3.2 I'm using com.google.gwt.user.client.ui.MenuBar and com.google.gwt.user.client.ui.MenuItem. I've managed to create the vertical menu, including submenus. But how do I make all the items appear permanently expanded? Thanks, Peter -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to compile selectively or avoid compilation of inheriting/implementing classes?
It does not seem likely that the GWT compiler is bringing in any classes that are not in the source paths. I suggest looking at the imports within those directories to see which are referencing thoughworks etc. On Tue, Mar 15, 2011 at 11:21 AM, KD kanwald...@gmail.com wrote: Here is my situation. On the top level of my API is... com.mycompany.core.MODEL I have made this a GWT module, has a blank entry point and has MyModel.xml. Its structure is as below... module inherits name='com.google.gwt.user.User'/ super-source path=jre/ source path='client'/ source path='messages'/ source path='model'/ source path='transport'/ source path='util'/ entry-point class=com.attivio.MyModelEntryPoint / /module Now there are implementations of this model to make a default out of the box framework and those reside in the following packages com.mycompany.core.API com.mycompany.core.KERNAL i.e. Abstract and concrete classes in these 2 packages above implement interfaces from the MODEL package e.g AbstractMessageListner (in core.API) implements MessageListener (in core.MODEL) Now there is another GWT module... com.mycompany.DASHBOARD which inherits the MODEL When I compile all in eclipse or do a 'mvn clean install', there are no errors. There are Maven dependencies in Dashboard for MODEL source When I launch dashboard module from eclipse using my custom .launch file, I get a lot of No source code... found errors pointing to classes in API and KERNAL and also things like - No source code is available for type java.io.ByteArrayOutputStream; did you forget to inherit a required module? - The method close() is undefined for the type OutputStream - No...for type com.thoughtworks.xstream.io.StreamException; did you... - No...for type java.io.Writer; did you... So my question is: How can I avoid API and KERNEL being pulled in while compiling. My argument is MODEL does not depend on anything, rather everything depends on MODEL. Is there a way I can tell GWT compiler (preferably selectively) not to worry about classes that DEPEND ON core.MODEL with the exception of DASHBOARD of course. My end goal is that, I would like to use MODEL in DASHBOARD on client side and avoid writing new DTO interfacing between widgets and backend. Any ideas or help here would be super in taking me over this roadblock. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -- A. Stevko === If everything seems under control, you're just not going fast enough. M. Andretti -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
jquery jqGrid with GWT
I want to use jgQrid as my GWT widget. If anyone has done this please do help me with example code. I will be very grateful... coz i m in urgent need of that integration -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
on printing, link of that page print in Footer, I want remove those link from footer
Hi I am using code provided by Freller for Printing. Its working fine. Now I am facing one problem- Link of that page print on every page in footer. I want to remove that link from footer. Thanks in advance for help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Designer Exits Upon Loading
I see you are using a build from more than a month ago. Have you tried it using the latest build? http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html On Mar 15, 4:50 am, Arvind Ganesh arvi...@gmail.com wrote: I am seeing the same behavior. In my case, everything has been installed fresh and there are no 3rd party components. I installed Eclipse, then GWT and then the GWT designer. I've attached a screencap of version numbers, as well as the Eclipse crash log. Any help appreciated! My project is basic, it's the basic Hello, GWT World app. Thanks, Arvind - Couldn't attach the crash log. Pasting here - # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x3b41d7c4, pid=5392, tid=2084 # # JRE version: 6.0_23-b05 # Java VM: Java HotSpot(TM) Client VM (19.0-b09 mixed mode windows-x86 ) # Problematic frame: # C [cairo.dll+0x5d7c4] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --- T H R E A D --- Current thread (0x00b56800): JavaThread main [_thread_in_native, id=2084, stack(0x0003,0x0013)] siginfo: ExceptionCode=0xc005, reading address 0x Registers: EAX=0x, EBX=0x0003, ECX=0x, EDX=0x0003 ESP=0x0012cf1c, EBP=0x002e0a7f, ESI=0x2080, EDI=0x000e9aff EIP=0x3b41d7c4, EFLAGS=0x00210202 Register to memory mapping: EAX=0x 0x is pointing to unknown location EBX=0x0003 0x0003 is pointing to unknown location ECX=0x 0x is pointing to unknown location EDX=0x0003 0x0003 is pointing to unknown location ESP=0x0012cf1c 0x0012cf1c is pointing into the stack for thread: 0x00b56800 main prio=6 tid=0x00b56800 nid=0x824 runnable [0x0012e000] java.lang.Thread.State: RUNNABLE EBP=0x002e0a7f 0x002e0a7f is pointing to unknown location ESI=0x2080 0x2080 is pointing to unknown location EDI=0x000e9aff 0x000e9aff is pointing into the stack for thread: 0x00b56800 main prio=6 tid=0x00b56800 nid=0x824 runnable [0x0012e000] java.lang.Thread.State: RUNNABLE Top of Stack: (sp=0x0012cf1c) 0x0012cf1c: 0042 3bc423b8 3bc3e2e0 0x0012cf2c: 2002 2080 000e9aff 0x0012cf3c: 1d00 2002 002e0a7f 0x0012cf4c: 3bc42674 3bc42614 3bc14b00 0012d2fc 0x0012cf5c: 3b3d203e 0012d2fc 3bc39b60 78134c58 0x0012cf6c: 1518164d 0005 0005 0047 0x0012cf7c: 001d 3b41dac0 0003 0x0012cf8c: 3bc3e2e0 3bc423b8 001f Instructions: (pc=0x3b41d7c4) 0x3b41d7b4: 68 01 00 00 a1 04 47 47 3b 64 8b 0d 2c 00 00 00 0x3b41d7c4: 8b 04 81 05 08 00 00 00 89 44 24 20 33 d2 83 c0 Stack: [0x0003,0x0013], sp=0x0012cf1c, free space=1011k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [cairo.dll+0x5d7c4] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.google.gdt.eclipse.designer.webkit.BrowserShellWebKitImplWin32._makeSho t(Ljava/lang/Number;)Ljava/lang/Number;+0 j com.google.gdt.eclipse.designer.webkit.BrowserShellWebKitImplWin32.makeShot ()Lorg/eclipse/swt/graphics/Image;+5 j com.google.gdt.eclipse.designer.webkit.BrowserShellWebKit.createBrowserScre enshot()Lorg/eclipse/swt/graphics/Image;+4 j com.google.gdt.eclipse.designer.model.widgets.support.GwtState.createBrowse rScreenshot()Lorg/eclipse/swt/graphics/Image;+12 j com.google.gdt.eclipse.designer.model.widgets.UIObjectInfo.fetchImage(Ljava /lang/Object;)V+4 j com.google.gdt.eclipse.designer.model.widgets.UIObjectInfo.refresh_fetch()V +57 j org.eclipse.wb.core.model.ObjectInfo$5$1.run()V+17 j org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(L org/eclipse/wb/internal/core/utils/execution/RunnableEx;)V+9 j org.eclipse.wb.core.model.ObjectInfo$5.run()V+8 j org.eclipse.wb.core.model.ObjectInfo.doRefresh(Lorg/eclipse/wb/internal/cor e/utils/execution/RunnableEx;)V+1 j org.eclipse.wb.core.model.ObjectInfo.refresh()V+25 j org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(Lorg/ecl ipse/core/runtime/IProgressMonitor;)V+121 j org.eclipse.wb.internal.core.editor.DesignPage.access$9(Lorg/eclipse/wb/int ernal/core/editor/DesignPage;Lorg/eclipse/core/runtime/IProgressMonitor;)V+ 2 j org.eclipse.wb.internal.core.editor.DesignPage$7$1.run()V+11 j org.eclipse.swt.widgets.Synchronizer.syncExec(Ljava/lang/Runnable;)V+121 j org.eclipse.ui.internal.UISynchronizer.syncExec(Ljava/lang/Runnable;)V+91 j org.eclipse.swt.widgets.Display.syncExec(Ljava/lang/Runnable;)V+64 j
[gwt-contrib] There seems to be some issue in a Features.xml of the GWT 2.2 eclipse plugin.
I posted my message in the GWT group first, but no responses. https://groups.google.com/forum/#!topic/google-web-toolkit/2gWDTKw1tcA The problem is because of a parsing error in this Feature.xml file, I can no longer disable/enable other features in my eclipse environment. It is really annoying because the Oracle Enterprise Pack is adding a lot of stuff that I never use (like Python or Spring support). so I want them out of the way, out of the memory of my limited dev box. David Nouls. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Test for compile failure if attributes don't match. (issue1384803)
LGTM http://gwt-code-reviews.appspot.com/1384803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds a cache (PersistenUnitCache) to store CompilationUnits (issue1375802)
I didn't respond to Scott's initial comments: - My gut reaction is that it's odd to make it a command-line option. It's not really a user-facing 'option' in the same way that draftCompile or style=PRETTY is, it's just an internal implementation detail. It would seem more like a jvm flag, and perhaps later just always on. Toby, Jason and I had planned to put all of these dev mode changes behind a -X command line flag, but I went ahead and took out the command line flag and made it a system property because it simplified the API (enabled boolean flag in static api) - Same with having to encode the persistence dir into every single entry point. Throwing it into WEB-INF in dev mode seems weird, and there's no fundamental reason dev mode and the compiler shouldn't share a unit cache anyway. How about just using / creating a well-known directory under the current directory? If you fail to create the directory (permission problem) then you don't use the disk. First, I want to let you know I put a lot of thought into where to put the cache files and after discussions with Toby, we came up with the WEB-INF solution. There is precedent for putting the cache type files in WEB-INF (app engine integration with GWT does this). Also, its a terrific place when you consider that with our GWT ant setup, the cache gets removed when you run 'ant clean'.I've updated the Compiler entry point to also use the war/WEB-INF dir so the cache can be shared with web mode. The problem with using the current working directory is that potentially we are going to splatter cache directories all over the disk, and no user is going to thank us for that. Also, where would we tell users to clean things up? How could they write a reliable clean target? The problem with a 'well known' place, like /tmp/gwt-unitCache is that in a shared environment, that cache is not just going to be shared between compiles (what we want), it is going to be shared between different users on the same machine, and I'm pretty sure we don't want that. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9850 committed - Fix generated JS for getting the locale property value from the...
Revision: 9850 Author: gwt.mirror...@gmail.com Date: Tue Mar 15 07:52:10 2011 Log: Fix generated JS for getting the locale property value from the user agent. Public review at: http://gwt-code-reviews.appspot.com/1382803/ Patch by: jat Review by: jlabanca http://code.google.com/p/google-web-toolkit/source/detail?r=9850 Modified: /trunk/samples/showcase/src/com/google/gwt/sample/showcase/Showcase.gwt.xml /trunk/user/src/com/google/gwt/i18n/linker/LocalePropertyProviderGenerator.java === --- /trunk/samples/showcase/src/com/google/gwt/sample/showcase/Showcase.gwt.xml Mon Feb 28 08:19:11 2011 +++ /trunk/samples/showcase/src/com/google/gwt/sample/showcase/Showcase.gwt.xml Tue Mar 15 07:52:10 2011 @@ -25,4 +25,5 @@ extend-property name=locale values=zh/ set-property-fallback name=locale value=en/ set-configuration-property name=locale.cookie value=SHOWCASE_LOCALE/ + set-configuration-property name=locale.useragent value=Y/ /module === --- /trunk/user/src/com/google/gwt/i18n/linker/LocalePropertyProviderGenerator.java Tue Dec 21 05:40:19 2010 +++ /trunk/user/src/com/google/gwt/i18n/linker/LocalePropertyProviderGenerator.java Tue Mar 15 07:52:10 2011 @@ -280,9 +280,15 @@ + navigator.browserLanguage : navigator.language;); body.println(if (language) {); body.indent(); -body.println(locale = language.replace(/-/g, \_\);); +body.println(var parts = language.split(/[-_]/);); +body.println(if (parts.length 1) {); +body.indent(); +body.println(parts[1] = parts[1].toUpperCase();); body.outdent(); -body.println(); +body.println(}); +body.println(locale = parts.join(\_\);); +body.outdent(); +body.println(}); } /** -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 5807 on server side. Previously reviewed at 1370803. (issue1384802)
Add the base test class to RequestFactorySuite. http://gwt-code-reviews.appspot.com/1384802/diff/4001/user/src/com/google/gwt/requestfactory/server/ServiceLayer.java File user/src/com/google/gwt/requestfactory/server/ServiceLayer.java (right): http://gwt-code-reviews.appspot.com/1384802/diff/4001/user/src/com/google/gwt/requestfactory/server/ServiceLayer.java#newcode385 user/src/com/google/gwt/requestfactory/server/ServiceLayer.java:385: } Fix whitespace diff. http://gwt-code-reviews.appspot.com/1384802/diff/4001/user/test/com/google/gwt/requestfactory/server/ServiceInheritanceJreTest.java File user/test/com/google/gwt/requestfactory/server/ServiceInheritanceJreTest.java (right): http://gwt-code-reviews.appspot.com/1384802/diff/4001/user/test/com/google/gwt/requestfactory/server/ServiceInheritanceJreTest.java#newcode2 user/test/com/google/gwt/requestfactory/server/ServiceInheritanceJreTest.java:2: * Copyright 2010 Google Inc. Copyright date. http://gwt-code-reviews.appspot.com/1384802/diff/4001/user/test/com/google/gwt/requestfactory/shared/ServiceInheritanceTest.java File user/test/com/google/gwt/requestfactory/shared/ServiceInheritanceTest.java (right): http://gwt-code-reviews.appspot.com/1384802/diff/4001/user/test/com/google/gwt/requestfactory/shared/ServiceInheritanceTest.java#newcode2 user/test/com/google/gwt/requestfactory/shared/ServiceInheritanceTest.java:2: * Copyright 2010 Google Inc. Date. http://gwt-code-reviews.appspot.com/1384802/diff/4001/user/test/com/google/gwt/requestfactory/shared/ServiceInheritanceTest.java#newcode36 user/test/com/google/gwt/requestfactory/shared/ServiceInheritanceTest.java:36: System.out.println(clazz); Remove the println. Also, verify the input class is what you expect. http://gwt-code-reviews.appspot.com/1384802/diff/4001/user/test/com/google/gwt/requestfactory/shared/ServiceInheritanceTest.java#newcode94 user/test/com/google/gwt/requestfactory/shared/ServiceInheritanceTest.java:94: public void testInvokeMethodOnSubclass() { Add a second test to ensure that the method in the base class can still be invoked. http://gwt-code-reviews.appspot.com/1384802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9851 committed - Fix bug on IE where onload events don't fire for IFrames....
Revision: 9851 Author: p...@google.com Date: Mon Mar 14 09:06:35 2011 Log: Fix bug on IE where onload events don't fire for IFrames. This is a bugfix for http://code.google.com/p/google-web-toolkit/issues/detail?id=1720 Review at http://gwt-code-reviews.appspot.com/1294801 http://code.google.com/p/google-web-toolkit/source/detail?r=9851 Added: /trunk/user/test/com/google/gwt/dom/public-test/iframetest.html Modified: /trunk/user/src/com/google/gwt/user/client/impl/DOMImplTrident.java /trunk/user/src/com/google/gwt/user/client/ui/Frame.java /trunk/user/test/com/google/gwt/dom/DOMSuite.java /trunk/user/test/com/google/gwt/dom/client/FrameTests.java === --- /dev/null +++ /trunk/user/test/com/google/gwt/dom/public-test/iframetest.html Mon Mar 14 09:06:35 2011 @@ -0,0 +1,10 @@ +html + head +title + IFRAME TEST +/title + /head + body +IFRAME TEST + /body +/html === --- /trunk/user/src/com/google/gwt/user/client/impl/DOMImplTrident.java Tue Mar 1 06:29:34 2011 +++ /trunk/user/src/com/google/gwt/user/client/impl/DOMImplTrident.java Mon Mar 14 09:06:35 2011 @@ -30,6 +30,9 @@ @SuppressWarnings(unused) private static JavaScriptObject callDispatchDblClickEvent; + @SuppressWarnings(unused) + private static JavaScriptObject callDispatchOnLoadEvent; + @SuppressWarnings(unused) private static JavaScriptObject callDispatchUnhandledEvent; @@ -168,15 +171,18 @@ $wnd['__gwt_dispatchEvent_' + moduleName] = dispatchEvent; @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchEvent = new Function('w', 'return function() { w.__gwt_dispatchEvent_' + moduleName + '.call(this) }')($wnd); - + $wnd['__gwt_dispatchDblClickEvent_' + moduleName] = dispatchDblClickEvent; @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchDblClickEvent = new Function('w', 'return function() { w.__gwt_dispatchDblClickEvent_' + moduleName + '.call(this)}')($wnd); - + $wnd['__gwt_dispatchUnhandledEvent_' + moduleName] = dispatchUnhandledEvent; @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchUnhandledEvent = new Function('w', 'return function() { w.__gwt_dispatchUnhandledEvent_' + moduleName + '.call(this)}')($wnd); + @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchOnLoadEvent = new Function('w', + 'return function() { w.__gwt_dispatchUnhandledEvent_' + moduleName + '.call(w.event.srcElement)}')($wnd); + // We need to create these delegate functions to fix up the 'this' context. // Normally, 'this' is the firing element, but this is only true for // 'onclick = ...' event handlers, not for handlers setup via attachEvent(). @@ -268,8 +274,18 @@ @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchEvent : null; if (chMask 0x04000) elem.onscroll = (bits 0x04000) ? @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchEvent : null; -if (chMask 0x08000) elem.onload= (bits 0x08000) ? - @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchUnhandledEvent : null; +if (chMask 0x08000) { + if (elem.nodeName == IFRAME) { +if (bits 0x08000) { + elem.attachEvent('onload', @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchOnLoadEvent); +} else { + elem.detachEvent('onload', @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchOnLoadEvent); +} + } else { + elem.onload = (bits 0x08000) ? + @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchUnhandledEvent : null; + } +} if (chMask 0x1) elem.onerror = (bits 0x1) ? @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchEvent : null; if (chMask 0x2) elem.onmousewheel = (bits 0x2) ? === --- /trunk/user/src/com/google/gwt/user/client/ui/Frame.java Tue Mar 1 06:29:34 2011 +++ /trunk/user/src/com/google/gwt/user/client/ui/Frame.java Mon Mar 14 09:06:35 2011 @@ -19,6 +19,10 @@ import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.FrameElement; import com.google.gwt.dom.client.IFrameElement; +import com.google.gwt.event.dom.client.HasLoadHandlers; +import com.google.gwt.event.dom.client.LoadEvent; +import com.google.gwt.event.dom.client.LoadHandler; +import com.google.gwt.event.shared.HandlerRegistration; /** * A widget that wraps an IFRAME element, which can contain an arbitrary web @@ -37,7 +41,7 @@ * h3Example/h3 {@example com.google.gwt.examples.FrameExample} * /p */ -public class Frame extends Widget { +public class Frame extends Widget implements HasLoadHandlers { static final String DEFAULT_STYLENAME = gwt-Frame; @@ -91,6 +95,17 @@ IFrameElement.as(element); setElement(element); } + + /** + * Adds
[gwt-contrib] [google-web-toolkit] r9852 committed - Fixing touch scrolling support for devices that support it natively. O...
Revision: 9852 Author: gwt.mirror...@gmail.com Date: Tue Mar 15 07:55:50 2011 Log: Fixing touch scrolling support for devices that support it natively. Our current touch support overrides native touch scrolling on tablets, which breaks touch scrolling. Review at http://gwt-code-reviews.appspot.com/1369809 Review by: p...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9852 Added: /trunk/user/src/com/google/gwt/event/dom/TouchEvent.gwt.xml Modified: /trunk/user/src/com/google/gwt/event/dom/DomEvent.gwt.xml /trunk/user/src/com/google/gwt/event/dom/client/TouchEvent.java /trunk/user/src/com/google/gwt/touch/Touch.gwt.xml /trunk/user/src/com/google/gwt/touch/client/TouchScroller.java /trunk/user/test/com/google/gwt/touch/client/TouchScrollTest.java === --- /dev/null +++ /trunk/user/src/com/google/gwt/event/dom/TouchEvent.gwt.xml Tue Mar 15 07:55:50 2011 @@ -0,0 +1,37 @@ +!-- -- +!-- Copyright 2011 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 -- +!-- 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. License for the specific language governing permissions and -- +!-- limitations under the License. -- +module + inherits name=com.google.gwt.user.User / + + !-- Define the support property -- + define-property name=touchEventSupport values=maybe,no / + + !-- +Modern browsers either support touch events or will probably add touch +support in the future. + -- + set-property name=touchEventSupport value=maybe / + + !-- Older browsers do not support touch events. -- + set-property name=touchEventSupport value=no +any + when-property-is name=user.agent value=ie6 / +/any + /set-property + + replace-with class=com.google.gwt.event.dom.TouchEvent.TouchSupportDetectorNo +when-type-is class=com.google.gwt.event.dom.TouchEvent.TouchSupportDetector / +when-property-is name=touchEventSupport value=no / + /replace-with +/module === --- /trunk/user/src/com/google/gwt/event/dom/DomEvent.gwt.xml Fri Feb 6 13:06:24 2009 +++ /trunk/user/src/com/google/gwt/event/dom/DomEvent.gwt.xml Tue Mar 15 07:55:50 2011 @@ -1,5 +1,6 @@ module - inherits name=com.google.gwt.event.EventBase / - inherits name=com.google.gwt.dom.DOM / + inherits name=com.google.gwt.dom.DOM / + inherits name=com.google.gwt.event.EventBase / + inherits name=com.google.gwt.event.dom.TouchEvent / source path=client/ /module === --- /trunk/user/src/com/google/gwt/event/dom/client/TouchEvent.java Fri Dec 3 07:31:58 2010 +++ /trunk/user/src/com/google/gwt/event/dom/client/TouchEvent.java Mon Mar 14 09:18:30 2011 @@ -15,6 +15,7 @@ */ package com.google.gwt.event.dom.client; +import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.JsArray; import com.google.gwt.dom.client.Touch; import com.google.gwt.event.shared.EventHandler; @@ -27,6 +28,53 @@ */ public abstract class TouchEventH extends EventHandler extends HumanInputEventH { + + /** + * Dectector for browser support for touch events. + */ + private static class TouchSupportDetector { + +private final boolean isSupported = detectTouchSupport(); + +public boolean isSupported() { + return isSupported; +} + +private native boolean detectTouchSupport() /*-{ + var elem = document.createElement('div'); + elem.setAttribute('ontouchstart', 'return;'); + return (typeof elem.ontouchstart) == function; +}-*/; + } + + /** + * Detector for browsers that do not support touch events. + */ + @SuppressWarnings(unused) + private static class TouchSupportDetectorNo extends TouchSupportDetector { +@Override +public boolean isSupported() { + return false; +} + } + + /** + * The implementation singleton. + */ + private static TouchSupportDetector impl; + + /** + * Runtime check for whether touch scrolling is supported in this browser. Returns true if touch + * events are supported but touch based scrolling is not natively supported. + * + * @return true if touch events are supported, false if not
[gwt-contrib] Re: Fix problem with user-agent based locale selection (issue1382803)
Thanks, committed at r9850. http://gwt-code-reviews.appspot.com/1382803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9853 committed - Overhaul overlay types....
Revision: 9853 Author: cromwell...@google.com Date: Mon Mar 14 10:45:50 2011 Log: Overhaul overlay types. In general, JSOs now treated like other Java types, except for cast/instanceof and instantiability. 1) Eliminate JavaScriptObjectNormalizer. JSO subtypes are no longer rewritten as JSO, and trampoline functions not installed until after optimizations 2) No longer copy every Single JSO interface onto JSO itself 3) Teach TypeOracle about cross-cast JSO semantics 4) Each compiler pass recomputes whether a JSO interface is dually implemented 5) ControlFlowAnalyzer treats implicit casts to JSO as instantiations 6) JsoDevirtualizer now devirtualizes any JSO subtype method (not just java.lang.Object) 7) CastNormalizer treats non-dual Single JSO Interfaces as casts/instanceof against the concrete implementor. This patch allows the compiler to effectively remove trampoline functions from singlely implemented interface dispatches. It also rationalizes the way JSOs are treated to bring them more in line with regular Java types by preserving their type hierarchy in the AST. Review by: sco...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9853 Deleted: /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/JavaScriptObjectNormalizer.java Modified: /trunk/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JTypeOracle.java /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/CastNormalizer.java /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/JsoDevirtualizer.java /trunk/dev/core/test/com/google/gwt/dev/jjs/JavaAstConstructor.java /trunk/dev/core/test/com/google/gwt/dev/jjs/JjsTypeTest.java /trunk/dev/core/test/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzerTest.java /trunk/dev/core/test/com/google/gwt/dev/jjs/impl/JJSTestBase.java === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/JavaScriptObjectNormalizer.java Thu Mar 3 14:34:14 2011 +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Copyright 2008 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.dev.jjs.impl; - -import com.google.gwt.dev.jjs.SourceInfo; -import com.google.gwt.dev.jjs.ast.Context; -import com.google.gwt.dev.jjs.ast.JArrayType; -import com.google.gwt.dev.jjs.ast.JCastOperation; -import com.google.gwt.dev.jjs.ast.JClassLiteral; -import com.google.gwt.dev.jjs.ast.JClassType; -import com.google.gwt.dev.jjs.ast.JConditional; -import com.google.gwt.dev.jjs.ast.JDeclaredType; -import com.google.gwt.dev.jjs.ast.JExpression; -import com.google.gwt.dev.jjs.ast.JField; -import com.google.gwt.dev.jjs.ast.JInstanceOf; -import com.google.gwt.dev.jjs.ast.JLocal; -import com.google.gwt.dev.jjs.ast.JLocalRef; -import com.google.gwt.dev.jjs.ast.JMethod; -import com.google.gwt.dev.jjs.ast.JMethodBody; -import com.google.gwt.dev.jjs.ast.JMethodCall; -import com.google.gwt.dev.jjs.ast.JModVisitor; -import com.google.gwt.dev.jjs.ast.JNewArray; -import com.google.gwt.dev.jjs.ast.JNonNullType; -import com.google.gwt.dev.jjs.ast.JParameter; -import com.google.gwt.dev.jjs.ast.JProgram; -import com.google.gwt.dev.jjs.ast.JReferenceType; -import com.google.gwt.dev.jjs.ast.JType; -import com.google.gwt.dev.jjs.ast.js.JMultiExpression; -import com.google.gwt.dev.util.log.speedtracer.CompilerEventType; -import com.google.gwt.dev.util.log.speedtracer.SpeedTracerLogger; -import com.google.gwt.dev.util.log.speedtracer.SpeedTracerLogger.Event; - -import java.util.Stack; - -/** - * Replace references to JSO subtypes with JSO itself. - */ -public class JavaScriptObjectNormalizer { - /** - * Map types from JSO subtypes to JSO itself. - */ - private class NormalizeVisitor extends JModVisitor { - -private final StackJMethodBody currentMethodBody = new StackJMethodBody(); - -@Override -public void endVisit(JCastOperation x, Context ctx) { - JType newType = translate(x.getCastType()); - if (newType != x.getCastType()) { -ctx.replaceMe(new JCastOperation(x.getSourceInfo(), newType, -x.getExpr())); - } -} - -@Override -public void endVisit(JClassLiteral x, Context ctx) { - JType newType = translate(x.getRefType()); - if (newType != x.getRefType()) {
[gwt-contrib] [google-web-toolkit] r9855 committed - Rolling back jsinliner patch, issues have been identified...
Revision: 9855 Author: jbrosenb...@google.com Date: Mon Mar 14 12:59:51 2011 Log: Rolling back jsinliner patch, issues have been identified Review by: zun...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9855 Modified: /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java === --- /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java Mon Mar 14 11:04:13 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java Mon Mar 14 12:59:51 2011 @@ -612,25 +612,10 @@ private boolean maintainsOrder = true; private final ListJsName toEvaluate; private final ListJsName unevaluated; -private final SetJsName paramsOrLocals = new HashSetJsName(); - -public EvaluationOrderVisitor(ListJsName toEvaluate, JsFunction callee) { + +public EvaluationOrderVisitor(ListJsName toEvaluate) { this.toEvaluate = toEvaluate; this.unevaluated = new ArrayListJsName(toEvaluate); - // collect params and locals from callee function - new JsVisitor() { -@Override -public void endVisit(JsParameter x, JsContext ctx) { - paramsOrLocals.add(x.getName()); -} - -@Override -public boolean visit(JsVar x, JsContext ctx) { - // record this before visiting initializer - paramsOrLocals.add(x.getName()); - return true; -} - }.accept(callee); } @Override @@ -685,7 +670,12 @@ */ @Override public void endVisit(JsInvocation x, JsContext ctx) { - if (unevaluated.size() 0) { + /* + * The check for isExecuteOnce() is potentially incorrect here, however + * the original Java semantics of the clinit would have made the code + * incorrect anyway. + */ + if ((isExecuteOnce(x) == null) unevaluated.size() 0) { maintainsOrder = false; } } @@ -719,35 +709,11 @@ return maintainsOrder unevaluated.size() == 0; } -/** - * Check to see if the evaluation of this JsName will break program order assumptions given - * the parameters left to be substituted. - * - * The cases are as follows: - * 1) JsName is a function parameter name which has side effects or is affected by side effects - * (hereafter called 'volatile'), so it will be in 'toEvaluate' - * 2) JsName is a function parameter which is not volatile (not in toEvaluate) - * 3) JsName is a reference to a global variable - * 4) JsName is a reference to a local variable - * - * A reference to a global while there are still parameters left to evaluate / substitute - * implies an order violation. - * - * A reference to a volatile parameter is ok if it is the next parameter in sequence to - * be evaluated (beginning of unevaluated list). Else, it is either being evaluated out of - * order with respect to other parameters, or it is being evaluated more than once. - */ private void checkName(JsName name) { if (!toEvaluate.contains(name)) { -// if the name is a non-local/non-parameter (e.g. global) and there are params left to eval -if (!paramsOrLocals.contains(name) unevaluated.size() 0) { - maintainsOrder = false; -} -// else this may be a local, or all volatile params have already been evaluated, so it's ok. return; } - // either this param is being evaled twice, or out of order if (unevaluated.size() == 0 || !unevaluated.remove(0).equals(name)) { maintainsOrder = false; } @@ -1648,7 +1614,7 @@ * code to be inlined, but at a cost of larger JS output. */ private static final double MAX_COMPLEXITY_INCREASE = Double.parseDouble(System.getProperty( - gwt.jsinlinerRatio, 1.7)); + gwt.jsinlinerRatio, 5.0)); /** * Static entry point used by JavaToJavaScriptCompiler. @@ -1968,7 +1934,7 @@ * order. */ EvaluationOrderVisitor orderVisitor = new EvaluationOrderVisitor( - requiredOrder, callee); + requiredOrder); orderVisitor.accept(toInline); if (!orderVisitor.maintainsOrder()) { return false; === --- /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java Mon Mar 14 11:04:13 2011 +++ /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java Mon Mar 14 12:59:51 2011 @@ -83,120 +83,6 @@ + function c1() { return ex2 ? a1() :c1(); } c1(); compare(expected, input); } - - /** - * Test that a global array reference breaks argument ordering. - */ - public void testOrderingArrayGlobal() throws Exception { -StringBuffer code = new StringBuffer(); - -code.append(var array; ); -code.append(function clinit() { clinit = null; }); - -// callee references array[0] before evaluating argument
[gwt-contrib] [google-web-toolkit] r9854 committed - Reintroduces JsInliner patch with minor tweaks, addresses issue 5707 (...
Revision: 9854 Author: jbrosenb...@google.com Date: Mon Mar 14 11:04:13 2011 Log: Reintroduces JsInliner patch with minor tweaks, addresses issue 5707 (previously submitted by cromwellian at rev 9362) Review at http://gwt-code-reviews.appspot.com/1386801 http://code.google.com/p/google-web-toolkit/source/detail?r=9854 Modified: /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java === --- /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java Wed Feb 9 11:52:03 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java Mon Mar 14 11:04:13 2011 @@ -612,10 +612,25 @@ private boolean maintainsOrder = true; private final ListJsName toEvaluate; private final ListJsName unevaluated; - -public EvaluationOrderVisitor(ListJsName toEvaluate) { +private final SetJsName paramsOrLocals = new HashSetJsName(); + +public EvaluationOrderVisitor(ListJsName toEvaluate, JsFunction callee) { this.toEvaluate = toEvaluate; this.unevaluated = new ArrayListJsName(toEvaluate); + // collect params and locals from callee function + new JsVisitor() { +@Override +public void endVisit(JsParameter x, JsContext ctx) { + paramsOrLocals.add(x.getName()); +} + +@Override +public boolean visit(JsVar x, JsContext ctx) { + // record this before visiting initializer + paramsOrLocals.add(x.getName()); + return true; +} + }.accept(callee); } @Override @@ -670,12 +685,7 @@ */ @Override public void endVisit(JsInvocation x, JsContext ctx) { - /* - * The check for isExecuteOnce() is potentially incorrect here, however - * the original Java semantics of the clinit would have made the code - * incorrect anyway. - */ - if ((isExecuteOnce(x) == null) unevaluated.size() 0) { + if (unevaluated.size() 0) { maintainsOrder = false; } } @@ -709,11 +719,35 @@ return maintainsOrder unevaluated.size() == 0; } +/** + * Check to see if the evaluation of this JsName will break program order assumptions given + * the parameters left to be substituted. + * + * The cases are as follows: + * 1) JsName is a function parameter name which has side effects or is affected by side effects + * (hereafter called 'volatile'), so it will be in 'toEvaluate' + * 2) JsName is a function parameter which is not volatile (not in toEvaluate) + * 3) JsName is a reference to a global variable + * 4) JsName is a reference to a local variable + * + * A reference to a global while there are still parameters left to evaluate / substitute + * implies an order violation. + * + * A reference to a volatile parameter is ok if it is the next parameter in sequence to + * be evaluated (beginning of unevaluated list). Else, it is either being evaluated out of + * order with respect to other parameters, or it is being evaluated more than once. + */ private void checkName(JsName name) { if (!toEvaluate.contains(name)) { +// if the name is a non-local/non-parameter (e.g. global) and there are params left to eval +if (!paramsOrLocals.contains(name) unevaluated.size() 0) { + maintainsOrder = false; +} +// else this may be a local, or all volatile params have already been evaluated, so it's ok. return; } + // either this param is being evaled twice, or out of order if (unevaluated.size() == 0 || !unevaluated.remove(0).equals(name)) { maintainsOrder = false; } @@ -1614,7 +1648,7 @@ * code to be inlined, but at a cost of larger JS output. */ private static final double MAX_COMPLEXITY_INCREASE = Double.parseDouble(System.getProperty( - gwt.jsinlinerRatio, 5.0)); + gwt.jsinlinerRatio, 1.7)); /** * Static entry point used by JavaToJavaScriptCompiler. @@ -1934,7 +1968,7 @@ * order. */ EvaluationOrderVisitor orderVisitor = new EvaluationOrderVisitor( - requiredOrder); + requiredOrder, callee); orderVisitor.accept(toInline); if (!orderVisitor.maintainsOrder()) { return false; === --- /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java Wed Feb 2 13:13:58 2011 +++ /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java Mon Mar 14 11:04:13 2011 @@ -83,6 +83,120 @@ + function c1() { return ex2 ? a1() :c1(); } c1(); compare(expected, input); } + + /** + * Test that a global array reference breaks argument ordering. + */ + public void testOrderingArrayGlobal() throws Exception { +StringBuffer code = new StringBuffer(); + +code.append(var array; ); +code.append(function
[gwt-contrib] [google-web-toolkit] r9856 committed - Test for compile failure if attributes don't match....
Revision: 9856 Author: ncha...@google.com Date: Tue Mar 15 04:56:41 2011 Log: Test for compile failure if attributes don't match. [JSR 303 TCK Result] 117 of 257 (45.53%) Pass with 14 Failures and 8 Errors. Review at http://gwt-code-reviews.appspot.com/1384803 Review by: rchan...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9856 Added: /trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/OverriddenAttributesMustMatchInTypeTest.gwt.xml /trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/OverriddenAttributesMustMatchInTypeValidatorFactory.java Modified: /trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/ConstraintCompositionCompileTest.java /trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/ConstraintCompositionGwtTest.java /trunk/user/test/org/hibernate/jsr303/tck/util/TckCompileTestCase.java === --- /dev/null +++ /trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/OverriddenAttributesMustMatchInTypeTest.gwt.xml Tue Mar 15 04:56:41 2011 @@ -0,0 +1,27 @@ +?xml version=1.0 encoding=UTF-8? +!DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 2.0.1//EN http://google-web-toolkit.googlecode.com/svn/tags/2.0.1/distro-source/core/src/gwt-module.dtd; +!-- + Copyright 2010 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. +-- +module + inherits name=org.hibernate.jsr303.tck.tests.ValidationTck / + source path= +include name=*.java / +exclude name=*CompileTest.java / + /source + replace-with class=org.hibernate.jsr303.tck.tests.constraints.constraintcomposition.OverriddenAttributesMustMatchInTypeValidatorFactory +when-type-is class=javax.validation.ValidatorFactory/ + /replace-with +/module === --- /dev/null +++ /trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/OverriddenAttributesMustMatchInTypeValidatorFactory.java Tue Mar 15 04:56:41 2011 @@ -0,0 +1,32 @@ +package org.hibernate.jsr303.tck.tests.constraints.constraintcomposition; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.validation.client.AbstractGwtValidatorFactory; +import com.google.gwt.validation.client.GwtValidation; +import com.google.gwt.validation.client.impl.AbstractGwtValidator; + +import org.hibernate.jsr303.tck.tests.constraints.constraintcomposition.ConstraintCompositionTest.DummyEntityWithZipCode; + +import javax.validation.Validator; + +/** + * {@link AbstractGwtValidatorFactory} implementation that uses + * {@link com.google.gwt.validation.client.GwtValidation GwtValidation}. + */ +public final class OverriddenAttributesMustMatchInTypeValidatorFactory extends +AbstractGwtValidatorFactory { + + /** + * Validator for + * {@link ConstraintCompositionTest#testOverriddenAttributesMustMatchInType()} + */ + @GwtValidation(value = {DummyEntityWithZipCode.class}) + public static interface OverriddenAttributesMustMatchInTypeValidator extends + Validator { + } + + @Override + public AbstractGwtValidator createValidator() { +return GWT.create(OverriddenAttributesMustMatchInTypeValidator.class); + } +} === --- /trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/ConstraintCompositionCompileTest.java Mon Feb 28 07:12:19 2011 +++ /trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/ConstraintCompositionCompileTest.java Tue Mar 15 04:56:41 2011 @@ -24,6 +24,7 @@ import org.hibernate.jsr303.tck.util.TckCompileTestCase; +import javax.validation.ConstraintDefinitionException; import javax.validation.UnexpectedTypeException; /** @@ -53,4 +54,30 @@ MustBeApplicableValidatorFactory.MustBeApplicableValidator.class, Shoe.class); } -} + + /** + * Replacement for + * {@link ConstraintCompositionTest#testOverriddenAttributesMustMatchInType()} + * + * @throws UnableToCompleteException + */ + public void testOverriddenAttributesMustMatchInType() + throws UnableToCompleteException { +UnitTestTreeLogger.Builder builder = new UnitTestTreeLogger.Builder(); +builder.expect(Type.ERROR, Unable to create a validator for + + org.hibernate.jsr303.tck.tests.constraints.constraintcomposition. ++
[gwt-contrib] Re: Adds a cache (PersistenUnitCache) to store CompilationUnits (issue1375802)
On 2011/03/15 13:59:15, zundel wrote: First, I want to let you know I put a lot of thought into where to put the cache files and after discussions with Toby, we came up with the WEB-INF solution. There is precedent for putting the cache type files in WEB-INF (app engine integration with GWT does this). Also, its a terrific place when you consider that with our GWT ant setup, the cache gets removed when you run 'ant clean'.I've updated the Compiler entry point to also use the war/WEB-INF dir so the cache can be shared with web mode. SGTM, thanks for the explanation. http://gwt-code-reviews.appspot.com/1375802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Are there any docs describing internals of gwtc?
Hi Scott: I'm taking the opportunity to somewhat hijack this thread to ask a question regarding this topic: Is there an opportunity to use these internals to augment GWT testing strategies? Specifically, I'm wondering if the data structure generated during compilation can be used to help baseline testing. Can we take the information and create a network that represents a series of decisions taken in a particular way? This network would be used during the test phase. Cheers, jec -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fix the worst concurrent modification problems in compiler memory-light set/map. (issue1384804)
Reviewers: zundel, Message: (I ran into a bug while debugging your PersistentUnitCache patch.) Due to a bug in com.google.gwt.dev.util.collect.HashMap.put(), we were eagerly growing the underlying table even when the key was already mapped. This causes an iterators to be invalidated on a non-structural change. Of course, we weren't actually tracking structural changes, which would cause the iterator to quietly continue, returning a 'null' keyed entry when it should not have, and possibly duplicating / skipping other entries. 1) I fixed the bug in HashMap.put() and HashSet.add() to defer growth until we're sure the key doesn't exist already. 2) Added basic concurrent modification tracking to the associated iterators, in a way that doesn't add additional memory to the collections themselves. 3) Other various and sundry cleanups. Please review this at http://gwt-code-reviews.appspot.com/1384804/ Affected files: M dev/core/src/com/google/gwt/dev/util/collect/HashMap.java M dev/core/src/com/google/gwt/dev/util/collect/HashSet.java M dev/core/src/com/google/gwt/dev/util/collect/IdentityHashSet.java M dev/core/src/com/google/gwt/dev/util/collect/IdentitySets.java M dev/core/src/com/google/gwt/dev/util/collect/Sets.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds a cache (PersistenUnitCache) to store CompilationUnits (issue1375802)
Couple more comments after reading Jason's feedback. http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java File dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode188 dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:188: ObjectOutputStream stream = null; This never gets closed, either. http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode324 dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:324: super.add(newUnit); Agreed; although I also wonder if super.add() needs to wait for load to finish, otherwise newly-loaded-from-disk units will tend to clobber built units, unless you handle this in loadUnitMap(). http://gwt-code-reviews.appspot.com/1375802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds a cache (PersistenUnitCache) to store CompilationUnits (issue1375802)
Minor nits, overall looks like a good refactoring. http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/GWTCompiler.java File dev/core/src/com/google/gwt/dev/GWTCompiler.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/GWTCompiler.java#newcode179 dev/core/src/com/google/gwt/dev/GWTCompiler.java:179: tempWorkDir = true; What is the default here? Will we have a good persistentCacheDir in the default case, for free? I'd think that would be desirable. http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/GWTShell.java File dev/core/src/com/google/gwt/dev/GWTShell.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/GWTShell.java#newcode200 dev/core/src/com/google/gwt/dev/GWTShell.java:200: protected boolean doStartup() { If getWorkDir() is null, what will be the behavior here (shouldn't be the same as in GWTCompiler.java? http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java File dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java#newcode51 dev/core/src/com/google/gwt/dev/javac/BytecodeSignatureMaker.java:51: ~(Opcodes.ACC_DEPRECATED | Opcodes.ACC_NATIVE | Opcodes.ACC_STRICT line wrap? Bad formatter artifact? http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java File dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java#newcode258 dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java:258: } whitespace http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/Dependencies.java File dev/core/src/com/google/gwt/dev/javac/Dependencies.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/Dependencies.java#newcode182 dev/core/src/com/google/gwt/dev/javac/Dependencies.java:182: } else { all on one line? http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java File dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java#newcode32 dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java:32: /** What weak hash map are you referring to here? http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java#newcode74 dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java:74: */ Seems this doesn't need to be initialized to a value here, it can be declared final, and set to this value as a default else case in the constructor below. http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java#newcode93 dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java:93: This should be AtomicBoolean (or at least volatile). http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java File dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode109 dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:109: setName(UnitCacheLoader); Isn't this the default priority anyway? http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode228 dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:228: if (unitWriteQueue.isEmpty()) { flush if msg == UnitWriteMessage.SHUTDOWN_THREAD also? http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode231 dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:231: } catch (IOException ex) { Why use a level variable here? http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode303 dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:303: */ make final http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode307 dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:307: // TODO(zundel): do we need to be thread safe? It looks like addCount is only ever used for logging (in TRACE mode), so it's probably not required to use AtomicInteger for program correctness. But if you really want an accurate value, then AtomicInteger is a good
[gwt-contrib] Re: Adds a cache (PersistenUnitCache) to store CompilationUnits (issue1375802)
I think I now understand the high-level design. Definitely seems workable, and probably pretty fast, too. Just a lot of nits to work out, I think. http://gwt-code-reviews.appspot.com/1375802/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java File dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java#newcode232 dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java:232: logger.log(TreeLogger.TRACE, Invalid units found: + invalidatedUnits.size()); Okay, after some deep digging, this appears to be a bad interaction between Dependencies and HashMap, see note in Dependencies. http://gwt-code-reviews.appspot.com/1375802/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java File dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode324 dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:324: * out any old cached files. On 2011/03/14 23:24:26, zundel wrote: Here's my logic. If you are compiling new units, then it is likely you'd be invalidating old units. Plus, I am just frightened of a cache that never gets purged. This is currently the only mechanism to purge the cache. We had issues with the old CacheManager where you'd get into bad states and have to delete the cache directory to get back into a good state. I kind of think it would be better to assume from the start that the cache directory never, ever gets purged, and then prove to ourselves that we'll never do something incorrect, and that it won't grow without bound. http://gwt-code-reviews.appspot.com/1375802/diff/5002/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerPersistentUnitCache.java File dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerPersistentUnitCache.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/5002/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerPersistentUnitCache.java#newcode33 dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerPersistentUnitCache.java:33: return Enable persistent CompliationUnit caching. If this argument That's exactly what we told people with CacheManager. :D http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/Precompile.java File dev/core/src/com/google/gwt/dev/Precompile.java (left): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/Precompile.java#oldcode133 dev/core/src/com/google/gwt/dev/Precompile.java:133: Serializable { Does this change have anything to do with this CL? http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/Precompile.java File dev/core/src/com/google/gwt/dev/Precompile.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/Precompile.java#newcode664 dev/core/src/com/google/gwt/dev/Precompile.java:664: CompilationStateBuilder.init(logger, options.getWorkDir()); I would have expected this to be war dir. http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/PrecompileOnePerm.java File dev/core/src/com/google/gwt/dev/PrecompileOnePerm.java (right): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/PrecompileOnePerm.java#newcode186 dev/core/src/com/google/gwt/dev/PrecompileOnePerm.java:186: CompilationStateBuilder.init(logger, options.getWorkDir()); Seems weird that this is workDir sometimes, and war dir other times. http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java File dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java (left): http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java#oldcode394 dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java:394: ResourceTag tag = resourceContentCache.get(location); I think this cache is actually important. Essentially, this cache says assume a source file is the same if its lastModified is the same. Without this cache, you have no choice but to read in the contents of ALL source files on every refresh just to compute the content ID, and you can't take advantage of lastModified. I think you either need to roll into UnitCache the concept of a (Location,lastModified) - ContentId, or else resurrect some of this code and only compute ContentID on the initial load sequence rather than on every refresh. http://gwt-code-reviews.appspot.com/1375802/diff/9001/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java File dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java (right):
[gwt-contrib] Re: Fix issue 5807 on server side. Previously reviewed at 1370803. (issue1384802)
http://gwt-code-reviews.appspot.com/1384802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Operations like i += d where i is an int and d is a double are not properly (issue1385803)
Reviewers: scottb, Description: Operations like i += d where i is an int and d is a double are not properly truncated (narrowed) to the LHS type. This patch forces i += d to be written as i = i + d, and applies a narrowing cast as needed, e.g. i = (int)(i + d); Updated to fix String concat issue: Please review this at http://gwt-code-reviews.appspot.com/1385803/ Affected files: M dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java M dev/core/src/com/google/gwt/dev/jjs/impl/CompoundAssignmentNormalizer.java M dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java Index: dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java === --- dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java (revision 9856) +++ dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java (working copy) @@ -292,10 +292,10 @@ // (5) Normalize the high-level Java tree into a lower-level tree more // suited for JavaScript code generation. Don't go reordering these // willy-nilly because there are some subtle interdependencies. - LongCastNormalizer.exec(jprogram); JsoDevirtualizer.exec(jprogram); CatchBlockNormalizer.exec(jprogram); PostOptimizationCompoundAssignmentNormalizer.exec(jprogram); + LongCastNormalizer.exec(jprogram); LongEmulationNormalizer.exec(jprogram); CastNormalizer.exec(jprogram, options.isCastCheckingDisabled()); ArrayNormalizer.exec(jprogram); Index: dev/core/src/com/google/gwt/dev/jjs/impl/CompoundAssignmentNormalizer.java === --- dev/core/src/com/google/gwt/dev/jjs/impl/CompoundAssignmentNormalizer.java (revision 9856) +++ dev/core/src/com/google/gwt/dev/jjs/impl/CompoundAssignmentNormalizer.java (working copy) @@ -161,8 +161,10 @@ new JMultiExpression(x.getSourceInfo())); JExpression newLhs = replacer.accept(x.getLhs()); - JBinaryOperation operation = new JBinaryOperation(x.getSourceInfo(), + JExpression operation = new JBinaryOperation(x.getSourceInfo(), newLhs.getType(), op.getNonAssignmentOf(), newLhs, x.getRhs()); + operation = modifyResultOperation((JBinaryOperation) operation); + // newLhs is cloned below because it was used in operation JBinaryOperation asg = new JBinaryOperation(x.getSourceInfo(), newLhs.getType(), JBinaryOperator.ASG, cloner.cloneExpression(newLhs), @@ -285,6 +287,16 @@ return lhs; } + /** + * Decide what expression to return when breaking up a compound assignment of + * the form codelhs op= rhs/code. The breakup creates an expression of + * the form codelhs = lhs op rhs/code, and the right hand side of the + * newly created expression is passed to this method. + */ + protected JExpression modifyResultOperation(JBinaryOperation op) { +return op; + } + protected abstract boolean shouldBreakUp(JBinaryOperation x); protected abstract boolean shouldBreakUp(JPostfixOperation x); Index: dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java === --- dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java (revision 9856) +++ dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java (working copy) @@ -17,10 +17,13 @@ import com.google.gwt.dev.jjs.ast.JBinaryOperation; import com.google.gwt.dev.jjs.ast.JBinaryOperator; +import com.google.gwt.dev.jjs.ast.JCastOperation; +import com.google.gwt.dev.jjs.ast.JExpression; import com.google.gwt.dev.jjs.ast.JPostfixOperation; import com.google.gwt.dev.jjs.ast.JPrefixOperation; import com.google.gwt.dev.jjs.ast.JPrimitiveType; import com.google.gwt.dev.jjs.ast.JProgram; +import com.google.gwt.dev.jjs.ast.JType; /** * Normalize compound assignments as needed after optimization. Integer division @@ -36,6 +39,21 @@ } @Override + protected JExpression modifyResultOperation(JBinaryOperation op) { +JType lhsType = op.getLhs().getType(); +JType rhsType = op.getRhs().getType(); +if (lhsType != rhsType) { + // first widen binary op to encompass both sides, then add narrow cast + return new JCastOperation(op.getSourceInfo(), lhsType, + new JBinaryOperation(op.getSourceInfo(), + widenType(lhsType, rhsType), + op.getOp(), + op.getLhs(), op.getRhs())); +} +return op; + } + + @Override protected boolean shouldBreakUp(JBinaryOperation x) { if (x.getType() == JPrimitiveType.LONG) { return true; @@ -43,6 +61,13 @@ if (x.getOp() == JBinaryOperator.ASG_DIV x.getType() != JPrimitiveType.FLOAT x.getType() != JPrimitiveType.DOUBLE) { +
[gwt-contrib] Re: Operations like i += d where i is an int and d is a double are not properly (issue1385803)
http://gwt-code-reviews.appspot.com/1385803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Operations like i += d where i is an int and d is a double are not properly (issue1385803)
http://gwt-code-reviews.appspot.com/1385803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Operations like i += d where i is an int and d is a double are not properly (issue1385803)
http://gwt-code-reviews.appspot.com/1385803/diff/2002/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java File dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java (right): http://gwt-code-reviews.appspot.com/1385803/diff/2002/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java#newcode298 dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java:298: LongCastNormalizer.exec(jprogram); Can you just describe for posterity why this is needed? http://gwt-code-reviews.appspot.com/1385803/diff/2002/dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java File dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java (right): http://gwt-code-reviews.appspot.com/1385803/diff/2002/dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java#newcode70 dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java:70: if (isIntegral(lhsType) !isIntegral(rhsType)) { I almost think this ought to be: if (widen(lhsType, rhsType) != lhsType)) { ... } http://gwt-code-reviews.appspot.com/1385803/diff/2002/dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java#newcode95 dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java:95: widenType(type, JPrimitiveType.LONG) == JPrimitiveType.LONG; Cute, but it hard to just read this and prove to yourself it's correct. Can we just do the explicit thing here? http://gwt-code-reviews.appspot.com/1385803/diff/2002/dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java#newcode98 dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java:98: private JType widenType(JType lhsType, JType rhsType) { Did you copy this from somewhere, or is there a JLS section you can cite for this? http://gwt-code-reviews.appspot.com/1385803/diff/2002/dev/core/test/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizerTest.java File dev/core/test/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizerTest.java (right): http://gwt-code-reviews.appspot.com/1385803/diff/2002/dev/core/test/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizerTest.java#newcode74 dev/core/test/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizerTest.java:74: int x=2; short d=3; x += d;); OTOH, short += int should get split up, can you add a test for that? http://gwt-code-reviews.appspot.com/1385803/diff/2002/dev/core/test/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizerTest.java#newcode77 dev/core/test/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizerTest.java:77: int x=2; long d=3L; x += (int)d;); I'm surprised, I would have thought this would be split. If you write int = int + long you have to coerce the result to int. http://gwt-code-reviews.appspot.com/1385803/diff/2002/dev/core/test/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizerTest.java#newcode86 dev/core/test/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizerTest.java:86: float x=2; double d=3.0; x += d;); Same here, float = float + double forces you to coerce. http://gwt-code-reviews.appspot.com/1385803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix the worst concurrent modification problems in compiler memory-light set/map. (issue1384804)
LGTM http://gwt-code-reviews.appspot.com/1384804/diff/1/dev/core/src/com/google/gwt/dev/util/collect/HashMap.java File dev/core/src/com/google/gwt/dev/util/collect/HashMap.java (right): http://gwt-code-reviews.appspot.com/1384804/diff/1/dev/core/src/com/google/gwt/dev/util/collect/HashMap.java#newcode54 dev/core/src/com/google/gwt/dev/util/collect/HashMap.java:54: throw new ConcurrentModificationException(); I wonder how many places we'll find that start throwing this exception after this patch? http://gwt-code-reviews.appspot.com/1384804/diff/1/dev/core/src/com/google/gwt/dev/util/collect/HashMap.java#newcode111 dev/core/src/com/google/gwt/dev/util/collect/HashMap.java:111: HashMap.this.ensureSizeFor(Math.max(size(), c.size())); At first glance, this change doesn't make sense = couldn't we end up with size() + c.size() items in the worst case? (c is all new entries). OK, so we don't know until we see if the entries are actually in the map already. But do we really need this here? Is addAll() going to end up calling EntrySet.add()? We don't worry about ensureSizeFor there - we could just let HashMap.this.put() worry about it. My guess is that this is a heuristic to make sure we don't resize the table multiple times in the middle of addAll(). Comment please. http://gwt-code-reviews.appspot.com/1384804/diff/1/dev/core/src/com/google/gwt/dev/util/collect/HashMap.java#newcode482 dev/core/src/com/google/gwt/dev/util/collect/HashMap.java:482: HashMap.this.ensureSizeFor(Math.max(size(), m.size())); So here again, this looks odd http://gwt-code-reviews.appspot.com/1384804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix the worst concurrent modification problems in compiler memory-light set/map. (issue1384804)
Thanks, will add doc. http://gwt-code-reviews.appspot.com/1384804/diff/1/dev/core/src/com/google/gwt/dev/util/collect/HashMap.java File dev/core/src/com/google/gwt/dev/util/collect/HashMap.java (right): http://gwt-code-reviews.appspot.com/1384804/diff/1/dev/core/src/com/google/gwt/dev/util/collect/HashMap.java#newcode54 dev/core/src/com/google/gwt/dev/util/collect/HashMap.java:54: throw new ConcurrentModificationException(); Hehe, good question. :) All our tests pass, at least. http://gwt-code-reviews.appspot.com/1384804/diff/1/dev/core/src/com/google/gwt/dev/util/collect/HashMap.java#newcode111 dev/core/src/com/google/gwt/dev/util/collect/HashMap.java:111: HashMap.this.ensureSizeFor(Math.max(size(), c.size())); On 2011/03/16 03:33:45, zundel wrote: At first glance, this change doesn't make sense = couldn't we end up with size() + c.size() items in the worst case? (c is all new entries). OK, so we don't know until we see if the entries are actually in the map already. But do we really need this here? Is addAll() going to end up calling EntrySet.add()? We don't worry about ensureSizeFor there - we could just let HashMap.this.put() worry about it. My guess is that this is a heuristic to make sure we don't resize the table multiple times in the middle of addAll(). Comment please. Yes, the original reason for size() + c.size() was to prevent having to do a bunch of rehashes during an addAll(). However, I realized when debugging this that we had a map with 24 entries and 64 capacity. Since a big design goal for these classes is memory efficiency, it seemed better to err on the side of less memory. It's true we could end up with size() + c.size() in the worst case. But it works out not so bad, actually. In the worst case, where size() and c.size() are roughly equal and the sets are completely disjoint, you might do 1 initial rehash and then 1 additional rehash down the road. But even this is an edge case that requires you to get unlucky on both boundaries. Most of the time, you'll do either 1 initial rehash or 1 down the road. I'll add a comment, thanks. http://gwt-code-reviews.appspot.com/1384804/diff/1/dev/core/src/com/google/gwt/dev/util/collect/HashMap.java#newcode482 dev/core/src/com/google/gwt/dev/util/collect/HashMap.java:482: HashMap.this.ensureSizeFor(Math.max(size(), m.size())); I think I'll just factor out a method, and javadoc it. http://gwt-code-reviews.appspot.com/1384804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Add Support for @ReportAsSingleViolation. (issue1388801)
Reviewers: rchandia, Description: Add Support for @ReportAsSingleViolation. [JSR 303 TCK Result] 119 of 257 (46.30%) Pass with 12 Failures and 8 Errors. Please review this at http://gwt-code-reviews.appspot.com/1388801/ Affected files: M user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java M user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java M user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/ConstraintCompositionGwtTest.java M user/test/org/hibernate/jsr303/tck/tests/validation/ValidateGwtTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add Support for @ReportAsSingleViolation. (issue1388801)
http://gwt-code-reviews.appspot.com/1388801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add Support for @ReportAsSingleViolation. (issue1388801)
http://gwt-code-reviews.appspot.com/1388801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add Support for @ReportAsSingleViolation. (issue1388801)
On 2011/03/16 05:29:29, Nick Chalko wrote: Ok, tests are passing now. Please take a look. http://gwt-code-reviews.appspot.com/1388801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors