GWT Internal Compiler Exception
Hello, when compiling a GWT project in Eclipse, an internal compiler exception is reported. See the console output below. (Compiling with log level debug produced too much output.) What is going on there? GWT 2.4, Eclipse Juno, using eclipse plugin Magnus Compiling module bcs.bcs Validating newly compiled units Ignored 1 unit with compilation errors in first pass. Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors. [ERROR] An internal compiler exception occurred com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140) at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71) at com.google.gwt.dev.jjs.impl.BuildTypeMap.getType(BuildTypeMap.java:730) at com.google.gwt.dev.jjs.impl.BuildTypeMap.access$000(BuildTypeMap.java:99) at com.google.gwt.dev.jjs.impl.BuildTypeMap$BuildDeclMapVisitor.visit(BuildTypeMap.java:145) at org.eclipse.jdt.internal.compiler.ast.Argument.traverse(Argument.java:154) at org.eclipse.jdt.internal.compiler.ast.TryStatement.traverse(TryStatement.java:856) at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:239) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1239) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:687) at com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(BuildTypeMap.java:637) at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:514) at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:523) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:599) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33) at com.google.gwt.dev.Precompile.precompile(Precompile.java:284) at com.google.gwt.dev.Precompile.precompile(Precompile.java:233) at com.google.gwt.dev.Precompile.precompile(Precompile.java:145) at com.google.gwt.dev.Compiler.run(Compiler.java:232) at com.google.gwt.dev.Compiler.run(Compiler.java:198) at com.google.gwt.dev.Compiler$1.run(Compiler.java:170) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82) at com.google.gwt.dev.Compiler.main(Compiler.java:177) [ERROR] no source info: public class java.lang.InterruptedException extends java.lang.Exception /* methods */ [unresolved] public void init() [unresolved] public void init(java.lang.String) org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding [ERROR] at Supervisor.java(262): InterruptedException e org.eclipse.jdt.internal.compiler.ast.Argument -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/JiZWu_OwIRQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: SuggestBox implementation
It depends how you want to access your backend. Assuming you do a normal Ajax call you could do something like this: private ListCustomSuggestion getMatchingCities(String query, int limit) { ListCustomSuggestion list = new ArrayListCustomSuggestion(); RequestBuilder request = new RequestBuilder(RequestBuilder.GET,url+?query=+query+limit= + limit); request.setCallback(new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { //parse the result (maybe JSON) and populate your ArrayList } @Override public void onError(Request request, Throwable exception) { // TODO Auto-generated method stub } }); try { request.send(); } catch (Exception e) { } } On Sunday, August 26, 2012 11:20:31 PM UTC+2, Deepak Singh wrote: Hi, I tried this way public class CustomSuggestion implements Suggestion{ public CityNameDTO dto = null; public CustomSuggestion(CityNameDTO dto) { this.dto = dto; } @Override public String getDisplayString() { return dto.getCityName(); } @Override public String getReplacementString() { return dto.getCityId(); } } public class CustomSuggestOracle extends SuggestOracle{ ListCustomSuggestion citySugggestions = null; @Override public void requestSuggestions(Request request, Callback callback) { Response response = new Response(getMatchingCities(request.getQuery(), request.getLimit())); } private ListCustomSuggestion getMatchingCities(String query, int limit) { ListCustomSuggestion list = new ArrayListCustomSuggestion(); } } Now i am not able to understand how to go ahead with this customSuggestOracle. Could you pls guide me here? Thanks Deepak On Sun, Aug 26, 2012 at 11:18 PM, Thomas Broyer t.br...@gmail.comjavascript: wrote: On Sunday, August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote: But after selecting a value, how do i get the id of the selected value? SuggestBox works best if you use the ID as the replacementString and the label as the displayString of the Suggestions in your SuggestOracle. In that case, you don't have to do anything, the ID will be set in the text box upon selecting a suggestion. (e.g. the replacement string is an email address, and the display string also contains the full name, the oracle using both the full name and email address for providing suggestions) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Ldxgth8ifd0J. To post to this group, send email to google-we...@googlegroups.comjavascript: . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cGP5gBfv5soJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 switch css-Obfuscation ON?
i know how to switch css obuscation off: set-configuration-property name=CssResource.style value=pretty/ this is don in my default gwt.xml. But how to turn it on again - in my ci.gwt.xml/ release.gwt.xml? i asked this already at stackoverflowhttp://stackoverflow.com/questions/11772627/gwt-cssresource-style-possible-values-how-to-turn-obfuscation-onbut it seems to be a very hard question?! So what values could be asigned to CssResource.style and what value is the default value - the value that activates the obfuscation? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/6Ey8YK2GnDMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder ERROR: Attribute 'from' does not have a computed value Element
On Monday, August 27, 2012 7:50:02 AM UTC+2, jopaki wrote: An compile error like can't implement the constants interface: It must implement TextResource or _. I forget the other type the error states. My semantics here are: interface MyResources extends ClientBundle { @Source(MyConstants.properties) MyConstants constants(); } where MyConstants interface is auto-generated via the gwt-maven-plugin. I'm on 2.4 Why are you trying to put the Constants within a ClientBundle? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VycIWPWSmNMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 switch css-Obfuscation ON?
On Monday, August 27, 2012 9:40:25 AM UTC+2, tanteanni wrote: i know how to switch css obuscation off: set-configuration-property name=CssResource.style value=pretty/ this is don in my default gwt.xml. But how to turn it on again - in my ci.gwt.xml/ release.gwt.xml? i asked this already at stackoverflowhttp://stackoverflow.com/questions/11772627/gwt-cssresource-style-possible-values-how-to-turn-obfuscation-onbut it seems to be a very hard question?! So what values could be asigned to CssResource.style and what value is the default value - the value that activates the obfuscation? Answered on SO: That configuration property is defined in com/google/gwt/ressources/Ressources.gwt.xmlhttp://code.google.com/p/google-web-toolkit/source/browse/releases/2.4/user/src/com/google/gwt/resources/Resources.gwt.xml that way: define-configuration-property name=CssResource.style is-multi-valued=false / set-configuration-property name=CssResource.style value=obf / I.e. the default value is obf. I believe obfuscate or obfuscated would work too (if you find them more readable). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/kMS-qgHVrVMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 switch css-Obfuscation ON?
thx i'll try i read the mentiond doc already but the comment above the code was somehow misleading: !-- This can be used to make CssResource produce human-readable CSS -- On Monday, 27 August 2012 10:07:02 UTC+2, Thomas Broyer wrote: On Monday, August 27, 2012 9:40:25 AM UTC+2, tanteanni wrote: i know how to switch css obuscation off: set-configuration-property name=CssResource.style value=pretty/ this is don in my default gwt.xml. But how to turn it on again - in my ci.gwt.xml/ release.gwt.xml? i asked this already at stackoverflowhttp://stackoverflow.com/questions/11772627/gwt-cssresource-style-possible-values-how-to-turn-obfuscation-onbut it seems to be a very hard question?! So what values could be asigned to CssResource.style and what value is the default value - the value that activates the obfuscation? Answered on SO: That configuration property is defined in com/google/gwt/ressources/Ressources.gwt.xmlhttp://code.google.com/p/google-web-toolkit/source/browse/releases/2.4/user/src/com/google/gwt/resources/Resources.gwt.xml that way: define-configuration-property name=CssResource.style is-multi-valued=false / set-configuration-property name=CssResource.style value=obf / I.e. the default value is obf. I believe obfuscate or obfuscated would work too (if you find them more readable). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/7S6S8vAXoCQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder ERROR: Attribute 'from' does not have a computed value Element
ahh - and therein lies the rub. ty! On Mon, Aug 27, 2012 at 1:01 AM, Thomas Broyer t.bro...@gmail.com wrote: On Monday, August 27, 2012 7:50:02 AM UTC+2, jopaki wrote: An compile error like can't implement the constants interface: It must implement TextResource or _. I forget the other type the error states. My semantics here are: interface MyResources extends ClientBundle { @Source(MyConstants.**properties) MyConstants constants(); } where MyConstants interface is auto-generated via the gwt-maven-plugin. I'm on 2.4 Why are you trying to put the Constants within a ClientBundle? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VycIWPWSmNMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -jpk- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 switch css-Obfuscation ON?
On Monday, August 27, 2012 11:09:25 AM UTC+2, tanteanni wrote: thx i'll try i read the mentiond doc already but the comment above the code was somehow misleading: !-- This can be used to make CssResource produce human-readable CSS -- It should be understood as defaults to obfuscating the stylesheet, but can be used to produce human-readable CSS (by setting the value to 'pretty'). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/yZ47l8h425oJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable TextInputCell styling
I've been trying out various methods of getting a table-like page for 1-10 rows of data for an invoice editor. One approach uses the CellTable and 5 columns containing TextInputCells. I want to style them with a specific border, and each column has a different width. After much head-knocking of searching for style settings and trying separate CellTable style bundles and who knows what else, I overrode the TextInputCell render method to hammer actual HTML out. When I saw that I have to manually fiddle with the tab index as well, I thought I'd just check here. Is there a cleaner way of doing all this? Current favourite idea is to just have a widget for the table, and widgets for each row. Those at least will play with the editor framework and I can style them reasonably easily. Richard -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0WrbaEO99HMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best serverside architecture(framework/stack) to use with GWT for large application...please show me the light
I use Guice on the server side and GIN on the client side. I generally use DTOs over GWT-RPC since RequestFactory isn't what I need / want to migrate to. On Saturday, August 25, 2012 7:48:12 PM UTC-4, GWTter wrote: Hi all, I've been doing research on this for the past 2, almost 3 days now. I feel like I've googled everything under the sun on the matter (including these forums) and am almost all tutorialed-out. Before I go into any more details on the question I just want to give a quick overview of the scope and plan for the project to see what will suit it best: -Large application, non-trivial -50+ DB tables -Large user base -User management/authentication/sessions -transactions -security -MVP (as per GWT recommendation) -focus on performance and scalability (naturally :), am using GWT after all) I've also read and watched all of the best practices on architecture for large applications (Google/GWT). Now in the last talk I could find on best architecture practices involving GWT was back in 2010 by Ray Ryan in which he states that they don't think JavaBeans and property change events work terribly well so it's better to use DTOs for the Model. My big questions are if this is still the belief and the recommended route, and if so, what should I be looking at in order to achieve this? a Framework? My preference would be to keep coding in Java on the serverside since I'm already doing so with GWT on the client. I've been investigating serverside frameworks and seem to have arrive at 2: Seam or Spring? However I can figure out which of these are best suited for the task. All of the doc I've found out there discussing the issue is at the most recent about a year old but most of it is from =2010 so it makes it even harder to tell considering that both of these frameworks have evolved considerably since then. There's also been the coming of JEE 6. Can anyone give any insight on who's best suited for the task, or what I should do to fulfill my requirements but stay inline with what is recommended by GWT? I know I only mentioned Seam and Spring since that's what I've been led to mostly, but I'm open to any suggestions that fit what I'm looking for. I've already ruled a couple of solutions such as Spring Roo for this kind of task. This is my first project of this scale and the last thing I want to do is head down a path and figure out that I've wasted a lot of my and my team's time and energy because of some wrong decisions I made at the get-go. Thanks a lot in advance for your help, I really just want to figure this out so I can get back to coding instead of googling the ends of the earth ;). -Seth -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OOH7j5_J5-kJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: enable closure compiler
After reading this I thought I'd give it a try, too and got the same error: [ERROR] Unexpected internal compiler error [INFO] java.lang.IllegalStateException: Expected non-empty string. Reference node STRING Any hints? : ) Am Sonntag, 26. August 2012 23:59:09 UTC+2 schrieb Deepak Singh: enabling the closure compiler gives following exception (GWT2.5Rc1) [ERROR] Unexpected internal compiler error java.lang.IllegalStateException: Expected non-empty string. Reference node STRING at com.google.gwt.thirdparty.javascript.jscomp.AstValidator$1.handleViolation(AstValidator.java:51) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.violation(AstValidator.java:763) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateNonEmptyString(AstValidator.java:328) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLiteralKeyName(AstValidator.java:739) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLitStringKey(AstValidator.java:726) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLitKey(AstValidator.java:683) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLit(AstValidator.java:670) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExpression(AstValidator.java:252) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLitStringKey(AstValidator.java:727) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLitKey(AstValidator.java:683) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLit(AstValidator.java:670) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExpression(AstValidator.java:252) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateAssignmentExpression(AstValidator.java:603) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExpression(AstValidator.java:219) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateVar(AstValidator.java:399) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateStatement(AstValidator.java:123) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateBlock(AstValidator.java:280) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateFunctionExpression(AstValidator.java:363) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExpression(AstValidator.java:268) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateCall(AstValidator.java:377) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExpression(AstValidator.java:260) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExprStmt(AstValidator.java:476) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateStatement(AstValidator.java:126) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateBlock(AstValidator.java:280) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateFunctionStatement(AstValidator.java:355) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateStatement(AstValidator.java:102) at com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateScript(AstValidator.java:89) at com.google.gwt.dev.js.ClosureJsAstTranslator.translate(ClosureJsAstTranslator.java:127) at com.google.gwt.dev.js.ClosureJsRunner.createClosureJsAst(ClosureJsRunner.java:273) at com.google.gwt.dev.js.ClosureJsRunner.createClosureModule(ClosureJsRunner.java:284) at com.google.gwt.dev.js.ClosureJsRunner.createClosureModules(ClosureJsRunner.java:293) at com.google.gwt.dev.js.ClosureJsRunner.compile(ClosureJsRunner.java:185) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.generateJavaScriptCode(JavaToJavaScriptCompiler.java:1035) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:462) at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:134) at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:195) at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:49) at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:73) at java.lang.Thread.run(Thread.java:619) [ERROR] Unrecoverable exception, shutting down com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.javac.CompilationProblemReporter.logAndTranslateException(CompilationProblemReporter.java:96) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:503) at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:134) at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:195) at
Re: SuggestBox implementation
I understand this. But my question is how do i implement CustomSuggestOracle.java What will be implementation of the method getMatchingCities() in customSuggestionOracle ? Thanks Deepak On Mon, Aug 27, 2012 at 12:42 PM, Ümit Seren uemit.se...@gmail.com wrote: It depends how you want to access your backend. Assuming you do a normal Ajax call you could do something like this: private ListCustomSuggestion getMatchingCities(String query, int limit) { ListCustomSuggestion list = new ArrayListCustomSuggestion(); RequestBuilder request = new RequestBuilder(RequestBuilder.GET,url+?query=+query+limit= + limit); request.setCallback(new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { //parse the result (maybe JSON) and populate your ArrayList } @Override public void onError(Request request, Throwable exception) { // TODO Auto-generated method stub } }); try { request.send(); } catch (Exception e) { } } On Sunday, August 26, 2012 11:20:31 PM UTC+2, Deepak Singh wrote: Hi, I tried this way public class CustomSuggestion implements Suggestion{ public CityNameDTO dto = null; public CustomSuggestion(CityNameDTO dto) { this.dto = dto; } @Override public String getDisplayString() { return dto.getCityName(); } @Override public String getReplacementString() { return dto.getCityId(); } } public class CustomSuggestOracle extends SuggestOracle{ ListCustomSuggestion citySugggestions = null; @Override public void requestSuggestions(Request request, Callback callback) { Response response = new Response(getMatchingCities(**request.getQuery(), request.getLimit())); } private ListCustomSuggestion getMatchingCities(String query, int limit) { ListCustomSuggestion list = new ArrayListCustomSuggestion(); } } Now i am not able to understand how to go ahead with this customSuggestOracle. Could you pls guide me here? Thanks Deepak On Sun, Aug 26, 2012 at 11:18 PM, Thomas Broyer t.br...@gmail.comwrote: On Sunday, August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote: But after selecting a value, how do i get the id of the selected value? SuggestBox works best if you use the ID as the replacementString and the label as the displayString of the Suggestions in your SuggestOracle. In that case, you don't have to do anything, the ID will be set in the text box upon selecting a suggestion. (e.g. the replacement string is an email address, and the display string also contains the full name, the oracle using both the full name and email address for providing suggestions) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/** msg/google-web-toolkit/-/**Ldxgth8ifd0Jhttps://groups.google.com/d/msg/google-web-toolkit/-/Ldxgth8ifd0J . To post to this group, send email to google-we...@**googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+** unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://groups.google.com/group/google-web-toolkit?hl=en **. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cGP5gBfv5soJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: SuggestBox implementation
it depends how you access your backend? How do you transmit your DTO's from the backend to the frontend? Manually parsing JSON? RequestFactory? RPC? On Mon, Aug 27, 2012 at 4:49 PM, Deepak Singh deepaksingh...@gmail.com wrote: I understand this. But my question is how do i implement CustomSuggestOracle.java What will be implementation of the method getMatchingCities() in customSuggestionOracle ? Thanks Deepak On Mon, Aug 27, 2012 at 12:42 PM, Ümit Seren uemit.se...@gmail.com wrote: It depends how you want to access your backend. Assuming you do a normal Ajax call you could do something like this: private ListCustomSuggestion getMatchingCities(String query, int limit) { ListCustomSuggestion list = new ArrayListCustomSuggestion(); RequestBuilder request = new RequestBuilder(RequestBuilder.GET,url+?query=+query+limit= + limit); request.setCallback(new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { //parse the result (maybe JSON) and populate your ArrayList } @Override public void onError(Request request, Throwable exception) { // TODO Auto-generated method stub } }); try { request.send(); } catch (Exception e) { } } On Sunday, August 26, 2012 11:20:31 PM UTC+2, Deepak Singh wrote: Hi, I tried this way public class CustomSuggestion implements Suggestion{ public CityNameDTO dto = null; public CustomSuggestion(CityNameDTO dto) { this.dto = dto; } @Override public String getDisplayString() { return dto.getCityName(); } @Override public String getReplacementString() { return dto.getCityId(); } } public class CustomSuggestOracle extends SuggestOracle{ ListCustomSuggestion citySugggestions = null; @Override public void requestSuggestions(Request request, Callback callback) { Response response = new Response(getMatchingCities(request.getQuery(), request.getLimit())); } private ListCustomSuggestion getMatchingCities(String query, int limit) { ListCustomSuggestion list = new ArrayListCustomSuggestion(); } } Now i am not able to understand how to go ahead with this customSuggestOracle. Could you pls guide me here? Thanks Deepak On Sun, Aug 26, 2012 at 11:18 PM, Thomas Broyer t.br...@gmail.com wrote: On Sunday, August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote: But after selecting a value, how do i get the id of the selected value? SuggestBox works best if you use the ID as the replacementString and the label as the displayString of the Suggestions in your SuggestOracle. In that case, you don't have to do anything, the ID will be set in the text box upon selecting a suggestion. (e.g. the replacement string is an email address, and the display string also contains the full name, the oracle using both the full name and email address for providing suggestions) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Ldxgth8ifd0J. To post to this group, send email to google-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cGP5gBfv5soJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: enable closure compiler
On Monday, August 27, 2012 4:13:24 PM UTC+2, Alex opn wrote: After reading this I thought I'd give it a try, too and got the same error: [ERROR] Unexpected internal compiler error [INFO] java.lang.IllegalStateException: Expected non-empty string. Reference node STRING Any hints? : ) See http://code.google.com/p/google-web-toolkit/issues/detail?id=7469 The issue seems to only happen if you have a switch/case in JSNI with an empty string as a 'case' value (see http://code.google.com/p/gwtquery/source/detail?r=1035) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/f2WhuUW6-UkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: DART vs. GWT
Google is an incubator. They throw a lot of darts at the wall to see what sticks (pun intended). When you have 10 irons in the fire, one or 2 of them are bound to glow hot. There's no reason to believe that Dart will win over GWT in the next 2-3 years if you're building something of modest complexity. My company (onlyinsight.com) is a start-up. We use wordpress for our main site (so basically PHP) which is super-simple (5-10 pages). For our first big real product, with half a million lines of code, we're using GWT (and wouldn't consider Ruby/PHP). Ruby/Rails/PHP to me is like a chainsaw - it's super-easy to cut down trees with, but it's just as easy to cut your arm off. You don't want a million lines of a scripting language. Ryan On Sunday, August 26, 2012 6:42:07 PM UTC-5, b0b wrote: On Wednesday, 22 August 2012 17:57:42 UTC+2, deepak chauhan wrote: One question is disturbing me from a long time. Why Google invented DART, when GWT is already there? To have one more project to can in a few months/years, instead of puting all resources behind GWT. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/7ZK-h8gH6OQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: enable closure compiler
Thanks for pointing this out! Google didn't come up with the issue. Trying with the new GQuery-Snapshot now. Am Montag, 27. August 2012 17:32:03 UTC+2 schrieb Thomas Broyer: On Monday, August 27, 2012 4:13:24 PM UTC+2, Alex opn wrote: After reading this I thought I'd give it a try, too and got the same error: [ERROR] Unexpected internal compiler error [INFO] java.lang.IllegalStateException: Expected non-empty string. Reference node STRING Any hints? : ) See http://code.google.com/p/google-web-toolkit/issues/detail?id=7469 The issue seems to only happen if you have a switch/case in JSNI with an empty string as a 'case' value (see http://code.google.com/p/gwtquery/source/detail?r=1035) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/oDSZBHOG6_EJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
SOME KIND OF SOLVED #-) - GWT Internal Compiler Exception
Hi, for your interest: The source file and line number above (Supervisor.java, 262) pointed to an unused method. I commented it out and the compiler exception disappeared. Here is the method: private static void sleepLocal (long ms) { try { Thread.sleep (ms); } catch (InterruptedException e) { e.printStackTrace (); } } The compiler error message pointed at the line with the InterupptedException. The method was untouched for more than a year. I wonder why it now caused this problem, and also why the compiler behaves like this. Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9bC1C0xNoEQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Annotated time Line (GWT-Visualization) question
Is there a way to edit (read, the way the text is shown) the left-upper line on the annotated time line graph of the GWT-Visualization library? Im talking about the line that goes like '1y 1m 2w 5d 1h'... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/C7cz_OxBSq8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Annotated time Line (GWT-Visualization) question
I should have mentioned, im using the GWT porter library. Em segunda-feira, 27 de agosto de 2012 17h22min32s UTC+1, Endovélico escreveu: Is there a way to edit (read, the way the text is shown) the left-upper line on the annotated time line graph of the GWT-Visualization library? Im talking about the line that goes like '1y 1m 2w 5d 1h'... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PAEf7zg3Hc0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Gin module binding using annotatedWith and AsyncProvider
Well, I have to apologize - I have it working now, although I don't think I actually changed anything related to the problem. FYI, the error message I printed was incorrect and *not *the cause of the problem - the actual annotation I was using was indeed @Async and not @Special, which I changed in the code examples I gave to avoid any implication that it wasn't just a made-up annotation. As an aside, I also got a Provider version working, which was a bear. I ended up creating a proxy class that wrapped an of the class I wanted (and implemented the same interface), then passed all the methods through to the contained object, then added another method to kick off the runAsync call. Two things I don't like about that approach are: - I ended up explicitly instantiating my class in the runAsync call, which seems to render some of the injection concept moot - because of my additional method to load the proxy, I either had to add that to my interface, or typecast what I got from the provider to the proxy class in order to invoke it. I chose the latter. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/X_D6SIDhy5MJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Gin module binding using annotatedWith and AsyncProvider
Well, I have to apologize - I have it working now, although I don't think I actually changed anything related to the problem. FYI, the error message I printed was incorrect and *not *the cause of the problem - the actual annotation I was using was indeed @Async and not @Special, which I changed in the code examples I gave to avoid any implication that it wasn't just a made-up annotation. As an aside, I also got a Provider version working, which was a pretty ugly, and not something that seems easily reusable. I ended up creating a proxy class that wrapped an instance of the class I wanted (and implemented the same interface), passed all the methods through to the contained object, then added another method to kick off the runAsync call. Two things I don't like about that approach are: - I ended up explicitly instantiating my class in the runAsync call, which seems to render some of the injection concept moot - because of my additional method to load the proxy, I either had to add that to my base interface, or typecast what I got from the provider, to the proxy class, in order to invoke it. I chose the latter. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/wut0xvRnYMUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
implement equals in entityproxy
Hi there I have 2 CellLists with EntityProxies. I want to add a selected item from one only if it is not present in the other. Is there a better way to do this than: a) creating a wrapper object implementing equals and using list.contains b) comparing all selected elements to each element in the other list(for example database id filed)? cheers -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: CellTable - Synchronization problem with AsyncDataProvider
Hello, when I add a delay of 1 sec before the reload it works. So there must still be some sync problem... What can I test next? Magnus - public void setFilter (UserFilter flt) { sel.setFilter(flt); this.flt = flt; //reload (); delayedReload (); } public void delayedReload () { Timer t = new Timer () { public void run() { reload (); } }; t.schedule (1000); } public void reload () { Range r = tbl.getVisibleRange(); tbl.setVisibleRangeAndClearData (r,true); Pager p = getPager (); p.firstPage(); loadRecordCount (); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/tOYq7nEehw0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
FF DevMode plugin + Memory leaks (+ Address already in use)
When I analyze a DevMode process's memory usage (e.g. using jconsole), it shows that Heap and Non-Heap (PermGen) Memory usage increases, whenever the page is reloaded. This happens both when I run DevMode with Firefox 14, as well as Chrome 21. The difference is however, that - with Chrome, Heap and PermGen usage restores to a very low value after calling Perform GC - whereas in Firefox the PermGen stays at the high value, and the Heap just decreases slightly. After a number of reloads, this leads to an out of memory (Heap or PermGen, depending on which reaches the limit first). More often than not, the out of memory is not printed (which is usual for out of memory errors). *How to reproduce the error?* Create a simple GWT project (e.g. the one that's auto-generated by Eclipse), use Firefox, press the reload-button repeatedly (tested on OS X 10.6, but I've encountered similar memory problems on Linux amd64, too) *Solution?* Without knowing anything about the details of the FF plugin, it looks as if the Chrome plugin discards the ClassLoader entirely (so the PermGen space can be freed up http://stackoverflow.com/a/148707/291741), whereas FF probably keeps a reference to the ClassLoader somewhere (?) *Problems when restarting DevMode* The problem may also explain, why many people are seeing an [ERROR] Unable to bind socket on port 9997 -- is another session active? java.net.BindException: Address already in use after restarting DevMode (see e.g. https://groups.google.com/d/topic/google-web-toolkit/btPIOoriq_o/discussion , http://code.google.com/p/google-web-toolkit/issues/detail?id=4312 , http://code.google.com/p/google-web-toolkit/issues/detail?id=4514 , ...). It would also explain, why it's often dismissed as cannot reproduce (because it cannot be reproduced with Chrome). But when stopping a DevMode server that is (nearly) out of memory, it may hang. And you usually won't see an error message (the reason why I finally found this issue, is that I did get it a few times now). Plus, in Eclipse it looks as if DevMode had already terminated (the red stop button turns gray). *Question:* Is it a good idea to create another new issue for this? I'd like to ask here first, if anybody knows what the Status is? @AlanLeung? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aDdcADCmUbIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: SuggestBox implementation
I would be using RPC and returning the ListDTO. Then how should i go ahead for implementation of CustomSuggestOracle ? On Mon, Aug 27, 2012 at 8:26 PM, Ümit Seren uemit.se...@gmail.com wrote: it depends how you access your backend? How do you transmit your DTO's from the backend to the frontend? Manually parsing JSON? RequestFactory? RPC? On Mon, Aug 27, 2012 at 4:49 PM, Deepak Singh deepaksingh...@gmail.com wrote: I understand this. But my question is how do i implement CustomSuggestOracle.java What will be implementation of the method getMatchingCities() in customSuggestionOracle ? Thanks Deepak On Mon, Aug 27, 2012 at 12:42 PM, Ümit Seren uemit.se...@gmail.com wrote: It depends how you want to access your backend. Assuming you do a normal Ajax call you could do something like this: private ListCustomSuggestion getMatchingCities(String query, int limit) { ListCustomSuggestion list = new ArrayListCustomSuggestion(); RequestBuilder request = new RequestBuilder(RequestBuilder.GET,url+?query=+query+limit= + limit); request.setCallback(new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { //parse the result (maybe JSON) and populate your ArrayList } @Override public void onError(Request request, Throwable exception) { // TODO Auto-generated method stub } }); try { request.send(); } catch (Exception e) { } } On Sunday, August 26, 2012 11:20:31 PM UTC+2, Deepak Singh wrote: Hi, I tried this way public class CustomSuggestion implements Suggestion{ public CityNameDTO dto = null; public CustomSuggestion(CityNameDTO dto) { this.dto = dto; } @Override public String getDisplayString() { return dto.getCityName(); } @Override public String getReplacementString() { return dto.getCityId(); } } public class CustomSuggestOracle extends SuggestOracle{ ListCustomSuggestion citySugggestions = null; @Override public void requestSuggestions(Request request, Callback callback) { Response response = new Response(getMatchingCities(request.getQuery(), request.getLimit())); } private ListCustomSuggestion getMatchingCities(String query, int limit) { ListCustomSuggestion list = new ArrayListCustomSuggestion(); } } Now i am not able to understand how to go ahead with this customSuggestOracle. Could you pls guide me here? Thanks Deepak On Sun, Aug 26, 2012 at 11:18 PM, Thomas Broyer t.br...@gmail.com wrote: On Sunday, August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote: But after selecting a value, how do i get the id of the selected value? SuggestBox works best if you use the ID as the replacementString and the label as the displayString of the Suggestions in your SuggestOracle. In that case, you don't have to do anything, the ID will be set in the text box upon selecting a suggestion. (e.g. the replacement string is an email address, and the display string also contains the full name, the oracle using both the full name and email address for providing suggestions) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Ldxgth8ifd0J. To post to this group, send email to google-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cGP5gBfv5soJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email 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. -- Deepak
Re: enable closure compiler
Can i also have the new Gwtquery-snapshot to avoid this error ? On Mon, Aug 27, 2012 at 9:23 PM, Alex opn opn...@gmail.com wrote: Thanks for pointing this out! Google didn't come up with the issue. Trying with the new GQuery-Snapshot now. Am Montag, 27. August 2012 17:32:03 UTC+2 schrieb Thomas Broyer: On Monday, August 27, 2012 4:13:24 PM UTC+2, Alex opn wrote: After reading this I thought I'd give it a try, too and got the same error: [ERROR] Unexpected internal compiler error [INFO] java.lang.**IllegalStateException: Expected non-empty string. Reference node STRING Any hints? : ) See http://code.google.com/p/**google-web-toolkit/issues/**detail?id=7469http://code.google.com/p/google-web-toolkit/issues/detail?id=7469 The issue seems to only happen if you have a switch/case in JSNI with an empty string as a 'case' value (see http://code.google.com/p/** gwtquery/source/detail?r=1035http://code.google.com/p/gwtquery/source/detail?r=1035 ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/oDSZBHOG6_EJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable - style specific columns
I'm using a CellTable element via UIBinder, and I'm trying to come up with a way to simply style specific columns in the table to make them look distinct. To make it as simple as possible, I set up a separate css style for them: .special_column_style { background-color: pink; } and used the code table.addColumnStyleName(colIndex, special_column_style); ...and it does nothing. Is there additional setup for the table that needs to be done to make the above code work? It seems like it should be simple, and yet it does nothing. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/YneTtXIy0mgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: enable closure compiler
You can get it here: http://code.google.com/p/gwtquery/wiki/Downloads?tm=2 Direct Download: https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/gwtquery/gwtquery/1.1.1-SNAPSHOT/gwtquery-1.1.1-20120724.210322-26.jar Maven users of the SNAPSHOT version you have to add these lines: repositories repository idsonatype-snapshots/id urlhttp://oss.sonatype.org/content/repositories/snapshots/url snapshotsenabledtrue/enabled/snapshots releasesenabledfalse/enabled/releases /repository repositories dependencies dependency groupIdcom.googlecode.gwtquery/groupId artifactIdgwtquery/artifactId version1.1.1-SNAPSHOT/version scopeprovided/scope /dependency /dependencies Am Montag, 27. August 2012 20:52:45 UTC+2 schrieb Deepak Singh: Can i also have the new Gwtquery-snapshot to avoid this error ? On Mon, Aug 27, 2012 at 9:23 PM, Alex opn opn...@gmail.com javascript:wrote: Thanks for pointing this out! Google didn't come up with the issue. Trying with the new GQuery-Snapshot now. Am Montag, 27. August 2012 17:32:03 UTC+2 schrieb Thomas Broyer: On Monday, August 27, 2012 4:13:24 PM UTC+2, Alex opn wrote: After reading this I thought I'd give it a try, too and got the same error: [ERROR] Unexpected internal compiler error [INFO] java.lang.**IllegalStateException: Expected non-empty string. Reference node STRING Any hints? : ) See http://code.google.com/p/**google-web-toolkit/issues/** detail?id=7469http://code.google.com/p/google-web-toolkit/issues/detail?id=7469 The issue seems to only happen if you have a switch/case in JSNI with an empty string as a 'case' value (see http://code.google.com/p/** gwtquery/source/detail?r=1035http://code.google.com/p/gwtquery/source/detail?r=1035 ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/oDSZBHOG6_EJ. To post to this group, send email to google-we...@googlegroups.comjavascript: . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8DPc0LGWsBoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: enable closure compiler
Sorry for double post : ) Forgot to say that using the snapshot indeed solved the problem. Am Montag, 27. August 2012 22:14:46 UTC+2 schrieb Alex opn: You can get it here: http://code.google.com/p/gwtquery/wiki/Downloads?tm=2 Direct Download: https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/gwtquery/gwtquery/1.1.1-SNAPSHOT/gwtquery-1.1.1-20120724.210322-26.jar Maven users of the SNAPSHOT version you have to add these lines: repositories repository idsonatype-snapshots/id urlhttp://oss.sonatype.org/content/repositories/snapshots/url snapshotsenabledtrue/enabled/snapshots releasesenabledfalse/enabled/releases /repository repositories dependencies dependency groupIdcom.googlecode.gwtquery/groupId artifactIdgwtquery/artifactId version1.1.1-SNAPSHOT/version scopeprovided/scope /dependency /dependencies Am Montag, 27. August 2012 20:52:45 UTC+2 schrieb Deepak Singh: Can i also have the new Gwtquery-snapshot to avoid this error ? On Mon, Aug 27, 2012 at 9:23 PM, Alex opn opn...@gmail.com wrote: Thanks for pointing this out! Google didn't come up with the issue. Trying with the new GQuery-Snapshot now. Am Montag, 27. August 2012 17:32:03 UTC+2 schrieb Thomas Broyer: On Monday, August 27, 2012 4:13:24 PM UTC+2, Alex opn wrote: After reading this I thought I'd give it a try, too and got the same error: [ERROR] Unexpected internal compiler error [INFO] java.lang.**IllegalStateException: Expected non-empty string. Reference node STRING Any hints? : ) See http://code.google.com/p/**google-web-toolkit/issues/** detail?id=7469http://code.google.com/p/google-web-toolkit/issues/detail?id=7469 The issue seems to only happen if you have a switch/case in JSNI with an empty string as a 'case' value (see http://code.google.com/p/** gwtquery/source/detail?r=1035http://code.google.com/p/gwtquery/source/detail?r=1035 ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/oDSZBHOG6_EJ. To post to this group, send email to google-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aNRPR-97yCcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: CellTable - style specific columns
Doing some additional debugging, it appears the browser is unable to locate special_column_style, because GWT translates the css file into it's own custom resource. Is there some way I can figure out what GWT transforms my css into, so I can set that style class for a column? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/EEJiaqy44KoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Override body style with CssResource
Hi, I am relatively new to GWT. I am creating a GWT application that will be embedded into a DIV of an existing webapp . Obviously, I would like to keep the existing webapp's styling, especially on the common elements, e.g. body, td, select, etc. I've read that CssResource is the way to go. So, I gave it a try. My .gwt.xml has the following lines: inherits name='com.google.gwt.user.theme.standard.Standard'/ inherits name=com.google.gwt.resources.Resources / In my css file, I put the styles of the webapp there. I created the ClientBundle and inject my CSS in my EntryPoint. All seems fine. However, when I invoke the app. on IE8, I see the GWT Standard styles applied first and in a flash, my overridden styles are applied. So, I think I am overriding the styles successfully. However, how do I avoid that flash when the Standard styles are being applied before my styles? Thanks in advance. Charles -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/y5fRMAgcXaUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: enable closure compiler
So what's benefit of this closure compiler ? On Tue, Aug 28, 2012 at 1:46 AM, Alex opn opn...@gmail.com wrote: Sorry for double post : ) Forgot to say that using the snapshot indeed solved the problem. Am Montag, 27. August 2012 22:14:46 UTC+2 schrieb Alex opn: You can get it here: http://code.google.com/p/**gwtquery/wiki/Downloads?tm=2http://code.google.com/p/gwtquery/wiki/Downloads?tm=2 Direct Download: https://oss.sonatype.org/**content/repositories/** snapshots/com/googlecode/**gwtquery/gwtquery/1.1.1-** SNAPSHOT/gwtquery-1.1.1-**20120724.210322-26.jarhttps://oss.sonatype.org/content/repositories/snapshots/com/googlecode/gwtquery/gwtquery/1.1.1-SNAPSHOT/gwtquery-1.1.1-20120724.210322-26.jar Maven users of the SNAPSHOT version you have to add these lines: repositories repository idsonatype-snapshots/id urlhttp://oss.sonatype.org/**content/repositories/snapshots http://oss.sonatype.org/content/repositories/snapshots**/url snapshotsenabledtrue/**enabled/snapshots releasesenabledfalse/**enabled/releases /repository repositories dependencies dependency groupIdcom.googlecode.**gwtquery/groupId artifactIdgwtquery/**artifactId version1.1.1-SNAPSHOT/**version scopeprovided/scope /dependency /dependencies Am Montag, 27. August 2012 20:52:45 UTC+2 schrieb Deepak Singh: Can i also have the new Gwtquery-snapshot to avoid this error ? On Mon, Aug 27, 2012 at 9:23 PM, Alex opn opn...@gmail.com wrote: Thanks for pointing this out! Google didn't come up with the issue. Trying with the new GQuery-Snapshot now. Am Montag, 27. August 2012 17:32:03 UTC+2 schrieb Thomas Broyer: On Monday, August 27, 2012 4:13:24 PM UTC+2, Alex opn wrote: After reading this I thought I'd give it a try, too and got the same error: [ERROR] Unexpected internal compiler error [INFO] java.lang.**IllegalStateExceptio**n: Expected non-empty string. Reference node STRING Any hints? : ) See http://code.google.com/p/**g**oogle-web-toolkit/issues/**detai** l?id=7469http://code.google.com/p/google-web-toolkit/issues/detail?id=7469 The issue seems to only happen if you have a switch/case in JSNI with an empty string as a 'case' value (see http://code.google.com/p/ gwtquery/source/detail?r=1035http://code.google.com/p/gwtquery/source/detail?r=1035 ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/** msg/google-web-toolkit/-/**oDSZBHOG6_EJhttps://groups.google.com/d/msg/google-web-toolkit/-/oDSZBHOG6_EJ . To post to this group, send email to google-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+** unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://groups.google.com/group/google-web-toolkit?hl=en **. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups gwtquery group. To view this discussion on the web visit https://groups.google.com/d/msg/gwtquery/-/aNRPR-97yCcJ. To post to this group, send email to gwtqu...@googlegroups.com. To unsubscribe from this group, send email to gwtquery+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/gwtquery?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best serverside architecture(framework/stack) to use with GWT for large application...please show me the light
Hi Derek, Thanks a lot for the reply. I did consider Guice for DI on the serverside but not sure if it would be redundant if using a framework like Spring. I do want to utilize RF though as it has a nice set of features which I'd like to include, e.g. caching and only delta posts. And I'll definitely take a look at GIN again since DI on my clientside might be pretty nice too. Thanks again, -Seth On Monday, August 27, 2012 4:05:05 PM UTC+2, Derek wrote: I use Guice on the server side and GIN on the client side. I generally use DTOs over GWT-RPC since RequestFactory isn't what I need / want to migrate to. On Saturday, August 25, 2012 7:48:12 PM UTC-4, GWTter wrote: Hi all, I've been doing research on this for the past 2, almost 3 days now. I feel like I've googled everything under the sun on the matter (including these forums) and am almost all tutorialed-out. Before I go into any more details on the question I just want to give a quick overview of the scope and plan for the project to see what will suit it best: -Large application, non-trivial -50+ DB tables -Large user base -User management/authentication/sessions -transactions -security -MVP (as per GWT recommendation) -focus on performance and scalability (naturally :), am using GWT after all) I've also read and watched all of the best practices on architecture for large applications (Google/GWT). Now in the last talk I could find on best architecture practices involving GWT was back in 2010 by Ray Ryan in which he states that they don't think JavaBeans and property change events work terribly well so it's better to use DTOs for the Model. My big questions are if this is still the belief and the recommended route, and if so, what should I be looking at in order to achieve this? a Framework? My preference would be to keep coding in Java on the serverside since I'm already doing so with GWT on the client. I've been investigating serverside frameworks and seem to have arrive at 2: Seam or Spring? However I can figure out which of these are best suited for the task. All of the doc I've found out there discussing the issue is at the most recent about a year old but most of it is from =2010 so it makes it even harder to tell considering that both of these frameworks have evolved considerably since then. There's also been the coming of JEE 6. Can anyone give any insight on who's best suited for the task, or what I should do to fulfill my requirements but stay inline with what is recommended by GWT? I know I only mentioned Seam and Spring since that's what I've been led to mostly, but I'm open to any suggestions that fit what I'm looking for. I've already ruled a couple of solutions such as Spring Roo for this kind of task. This is my first project of this scale and the last thing I want to do is head down a path and figure out that I've wasted a lot of my and my team's time and energy because of some wrong decisions I made at the get-go. Thanks a lot in advance for your help, I really just want to figure this out so I can get back to coding instead of googling the ends of the earth ;). -Seth -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/zhSt9Mez-HcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best serverside architecture(framework/stack) to use with GWT for large application...please show me the light
Hi all, I also posted this question on SO and revised it a little since, but received one really great response so far if anyone is interested: http://stackoverflow.com/questions/12132213/recommended-serverside-architectureframework-stack-to-use-with-gwt-for-large-a -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8O06mXQjVUwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: enable closure compiler
On Monday, August 27, 2012 11:08:53 PM UTC+2, Deepak Singh wrote: So what's benefit of this closure compiler ? See https://developers.google.com/events/io/sessions/gooio2012/218/ at 9'00, slide #9 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/TMg-WkQSNl0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: CellTable - style specific columns
How have you specified your CSS? Do you use UiBinder with inline CssResource? If so, take a look at https://developers.google.com/web-toolkit/doc/latest/DevGuideUiBinder#Programmatic_access . Instead of adding special_column_style to the column you would call the CssResource method for that css class to get the obfuscated class name generated by GWT, e.g. table.addColumnStyleName(colIndex, tableStyles.specialColumnStyle()); -- J. Am Montag, 27. August 2012 22:41:53 UTC+2 schrieb Kevin Buikema: Doing some additional debugging, it appears the browser is unable to locate special_column_style, because GWT translates the css file into it's own custom resource. Is there some way I can figure out what GWT transforms my css into, so I can set that style class for a column? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/gP4Gtd_JohgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: enable closure compiler
In my case the generated javascript is about 10% smaller now. Can't tell exactly because I just made a quick test and the compileReport flag is ignored with the closure compiler enabled. I read on g+ some time ago that some people had even better results (I think up to 20% and more code size reduction? Can't find the post with the comments anymore). Am Montag, 27. August 2012 23:08:08 UTC+2 schrieb Deepak Singh: So what's benefit of this closure compiler ? On Tue, Aug 28, 2012 at 1:46 AM, Alex opn opn...@gmail.com javascript:wrote: Sorry for double post : ) Forgot to say that using the snapshot indeed solved the problem. Am Montag, 27. August 2012 22:14:46 UTC+2 schrieb Alex opn: You can get it here: http://code.google.com/p/**gwtquery/wiki/Downloads?tm=2http://code.google.com/p/gwtquery/wiki/Downloads?tm=2 Direct Download: https://oss.sonatype.org/**content/repositories/** snapshots/com/googlecode/**gwtquery/gwtquery/1.1.1-** SNAPSHOT/gwtquery-1.1.1-**20120724.210322-26.jarhttps://oss.sonatype.org/content/repositories/snapshots/com/googlecode/gwtquery/gwtquery/1.1.1-SNAPSHOT/gwtquery-1.1.1-20120724.210322-26.jar Maven users of the SNAPSHOT version you have to add these lines: repositories repository idsonatype-snapshots/id urlhttp://oss.sonatype.org/**content/repositories/snapshots http://oss.sonatype.org/content/repositories/snapshots**/url snapshotsenabledtrue/**enabled/snapshots releasesenabledfalse/**enabled/releases /repository repositories dependencies dependency groupIdcom.googlecode.**gwtquery/groupId artifactIdgwtquery/**artifactId version1.1.1-SNAPSHOT/**version scopeprovided/scope /dependency /dependencies Am Montag, 27. August 2012 20:52:45 UTC+2 schrieb Deepak Singh: Can i also have the new Gwtquery-snapshot to avoid this error ? On Mon, Aug 27, 2012 at 9:23 PM, Alex opn opn...@gmail.com wrote: Thanks for pointing this out! Google didn't come up with the issue. Trying with the new GQuery-Snapshot now. Am Montag, 27. August 2012 17:32:03 UTC+2 schrieb Thomas Broyer: On Monday, August 27, 2012 4:13:24 PM UTC+2, Alex opn wrote: After reading this I thought I'd give it a try, too and got the same error: [ERROR] Unexpected internal compiler error [INFO] java.lang.**IllegalStateExceptio**n: Expected non-empty string. Reference node STRING Any hints? : ) See http://code.google.com/p/**g**oogle-web-toolkit/issues/**detai** l?id=7469http://code.google.com/p/google-web-toolkit/issues/detail?id=7469 The issue seems to only happen if you have a switch/case in JSNI with an empty string as a 'case' value (see http://code.google.com/p/ gwtquery/source/detail?r=1035http://code.google.com/p/gwtquery/source/detail?r=1035 ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/* *msg/google-web-toolkit/-/**oDSZBHOG6_EJhttps://groups.google.com/d/msg/google-web-toolkit/-/oDSZBHOG6_EJ . To post to this group, send email to google-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+** unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://groups.google.com/group/google-web-toolkit?hl=en **. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups gwtquery group. To view this discussion on the web visit https://groups.google.com/d/msg/gwtquery/-/aNRPR-97yCcJ. To post to this group, send email to gwtq...@googlegroups.comjavascript: . To unsubscribe from this group, send email to gwtquery+u...@googlegroups.com javascript:. For more options, visit this group at http://groups.google.com/group/gwtquery?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-It2Bo0eUacJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Override body style with CssResource
I should correct myself that it's not really a flash (which implies a page refresh). Instead, I saw the Standard stylesheet applied and then in a split second, my stylesheet is applied. Charles On Monday, August 27, 2012 4:49:07 PM UTC-4, Charles Chan wrote: Hi, I am relatively new to GWT. I am creating a GWT application that will be embedded into a DIV of an existing webapp . Obviously, I would like to keep the existing webapp's styling, especially on the common elements, e.g. body, td, select, etc. I've read that CssResource is the way to go. So, I gave it a try. My .gwt.xml has the following lines: inherits name='com.google.gwt.user.theme.standard.Standard'/ inherits name=com.google.gwt.resources.Resources / In my css file, I put the styles of the webapp there. I created the ClientBundle and inject my CSS in my EntryPoint. All seems fine. However, when I invoke the app. on IE8, I see the GWT Standard styles applied first and in a flash, my overridden styles are applied. So, I think I am overriding the styles successfully. However, how do I avoid that flash when the Standard styles are being applied before my styles? Thanks in advance. Charles -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FcgrCEXhA1AJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: FF DevMode plugin + Memory leaks (+ Address already in use)
That's an interesting report. We always want to garbage collect the ClassLoader when the session is over and if that doesn't happen, it's a bug. I don't know why Firefox would behave differently; the JVM side should work the same way for Firefox versus Chrome. The only thing I can think of is some difference in distributed garbage collection, but that shouldn't matter once the session ends. Alan's not on the team anymore. I'd like to fix this, but I'm busy with other things and I don't have a good idea where to begin. If someone's handy with a memory profiler, figuring out what's preventing the classloader from being gc-ed in this case would be very useful. - Brian On Monday, August 27, 2012 10:07:08 AM UTC-7, Chris Lercher wrote: When I analyze a DevMode process's memory usage (e.g. using jconsole), it shows that Heap and Non-Heap (PermGen) Memory usage increases, whenever the page is reloaded. This happens both when I run DevMode with Firefox 14, as well as Chrome 21. The difference is however, that - with Chrome, Heap and PermGen usage restores to a very low value after calling Perform GC - whereas in Firefox the PermGen stays at the high value, and the Heap just decreases slightly. After a number of reloads, this leads to an out of memory (Heap or PermGen, depending on which reaches the limit first). More often than not, the out of memory is not printed (which is usual for out of memory errors). *How to reproduce the error?* Create a simple GWT project (e.g. the one that's auto-generated by Eclipse), use Firefox, press the reload-button repeatedly (tested on OS X 10.6, but I've encountered similar memory problems on Linux amd64, too) *Solution?* Without knowing anything about the details of the FF plugin, it looks as if the Chrome plugin discards the ClassLoader entirely (so the PermGen space can be freed up http://stackoverflow.com/a/148707/291741), whereas FF probably keeps a reference to the ClassLoader somewhere (?) *Problems when restarting DevMode* The problem may also explain, why many people are seeing an [ERROR] Unable to bind socket on port 9997 -- is another session active? java.net.BindException: Address already in use after restarting DevMode (see e.g. https://groups.google.com/d/topic/google-web-toolkit/btPIOoriq_o/discussion , http://code.google.com/p/google-web-toolkit/issues/detail?id=4312 , http://code.google.com/p/google-web-toolkit/issues/detail?id=4514 , ...). It would also explain, why it's often dismissed as cannot reproduce (because it cannot be reproduced with Chrome). But when stopping a DevMode server that is (nearly) out of memory, it may hang. And you usually won't see an error message (the reason why I finally found this issue, is that I did get it a few times now). Plus, in Eclipse it looks as if DevMode had already terminated (the red stop button turns gray). *Question:* Is it a good idea to create another new issue for this? I'd like to ask here first, if anybody knows what the Status is? @AlanLeung? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/I3cf0A4RHKUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: SOME KIND OF SOLVED #-) - GWT Internal Compiler Exception
Thread and InterruptedException aren't available in JavaScript. Possibly some change in a different file caused the compiler to reach this file when it was never reached before (because it's unused). You could confirm this by rolling back to a previous version of your source code and recompiling. An internal compiler error is a bug, but the fix would probably just be to report a nicer error. - Brian On Monday, August 27, 2012 8:58:37 AM UTC-7, Magnus wrote: Hi, for your interest: The source file and line number above (Supervisor.java, 262) pointed to an unused method. I commented it out and the compiler exception disappeared. Here is the method: private static void sleepLocal (long ms) { try { Thread.sleep (ms); } catch (InterruptedException e) { e.printStackTrace (); } } The compiler error message pointed at the line with the InterupptedException. The method was untouched for more than a year. I wonder why it now caused this problem, and also why the compiler behaves like this. Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/oQavAQ5qG0MJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!
So all this form/FormPanel mangling implies that the form tag is required to be present in the original markup yes? Otherwise, one could just have the username and password fields in the orig. markup and manually submit to server by trapping an onclick to a simple button and then construct the request via RequestBuilder. What do you guys think about this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vcL7hYiHy7UJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!
Correct. The form must be the thing doing the submit. Although, as I pointed out, Chrome stopped working with a JavaScript call to trigger the form to submit. So I now let the form do its own submit. All I use GWT for is positioning the widgets. It sucks, but it's the only way I could get it to work. On Tuesday, 28 August 2012 15:20:05 UTC+10, jopaki wrote: So all this form/FormPanel mangling implies that the form tag is required to be present in the original markup yes? Otherwise, one could just have the username and password fields in the orig. markup and manually submit to server by trapping an onclick to a simple button and then construct the request via RequestBuilder. What do you guys think about this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/IuFKrjK5o6cJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!
Gotcha. Thanks much for the quick reply and good info! - j On Monday, August 27, 2012 10:47:18 PM UTC-7, Craig Mitchell wrote: Correct. The form must be the thing doing the submit. Although, as I pointed out, Chrome stopped working with a JavaScript call to trigger the form to submit. So I now let the form do its own submit. All I use GWT for is positioning the widgets. It sucks, but it's the only way I could get it to work. On Tuesday, 28 August 2012 15:20:05 UTC+10, jopaki wrote: So all this form/FormPanel mangling implies that the form tag is required to be present in the original markup yes? Otherwise, one could just have the username and password fields in the orig. markup and manually submit to server by trapping an onclick to a simple button and then construct the request via RequestBuilder. What do you guys think about this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/xrn45jNgjk0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] devmode for Firefox 15
It looks like we're going to be late getting the plugin updated for Firefox 15 (which releases tomorrow); I have it working on Linux, but I'm still working out how to build on the Mac and I don't know the status on Windows. While I'm here, does anyone know what the deal is with 32-bit versus 64-bit architecture on the Mac? It looks like we only have one Darwin directory per gecko version under plugin-sdks, unlike Linux where we have both 32-bit and 64-bit. - Brian -- http://groups.google.com/group/Google-Web-Toolkit-Contributors