Re: DataGrid inside InfoWindow doesn't show table data
Thanks for the reply. I ended up just using a CellTable: package com.test.client; import java.util.Arrays; import com.google.gwt.ajaxloader.client.AjaxLoader; import com.google.gwt.ajaxloader.client.AjaxLoader.AjaxLoaderOptions; import com.google.gwt.cell.client.TextCell; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.dom.client.Document; import com.google.gwt.user.cellview.client.CellTable; import com.google.gwt.user.cellview.client.Column; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.ScrollPanel; import com.google.maps.gwt.client.GoogleMap; import com.google.maps.gwt.client.InfoWindow; import com.google.maps.gwt.client.InfoWindowOptions; import com.google.maps.gwt.client.LatLng; import com.google.maps.gwt.client.MapOptions; import com.google.maps.gwt.client.MapTypeId; public class GwtTest implements EntryPoint { @Override public void onModuleLoad() { AjaxLoaderOptions options = AjaxLoaderOptions.newInstance(); options.setOtherParms(sensor=false); Runnable callback = new Runnable() { public void run() { createMap(); } }; AjaxLoader.loadApi(maps, 3, callback, options); //this works CellTable dg = createTable(); RootPanel.get(tableDiv).add(new ScrollPanel(dg)); } public void createMap() { MapOptions mapOpts = MapOptions.create(); mapOpts.setZoom(4); mapOpts.setCenter(LatLng.create(37.09024, -95.712891)); mapOpts.setMapTypeId(MapTypeId.TERRAIN); mapOpts.setStreetViewControl(false); GoogleMap map = GoogleMap.create(Document.get().getElementById(map_canvas ), mapOpts); CellTable dg = createTable(); InfoWindowOptions iwo = InfoWindowOptions.create(); iwo.setPosition(LatLng.create(37.09024, -95.712891)); iwo.setContent(dg.getElement()); InfoWindow infoWindow = InfoWindow.create(iwo); infoWindow.open(map); } public CellTable createTable(){ Column columnA = new Column(new TextCell()){ @Override public Object getValue(Object object) { return one; } }; Column columnB = new Column(new TextCell()){ @Override public Object getValue(Object object) { return two; } }; Column columnC = new Column(new TextCell()){ @Override public Object getValue(Object object) { return three; } }; CellTable dataGrid = new CellTable(); dataGrid.addColumn(columnA, A); dataGrid.addColumn(columnB, B); dataGrid.addColumn(columnC, C); dataGrid.setRowCount(1); dataGrid.setRowData(Arrays.asList(one, two, three)); dataGrid.setWidth(200px); dataGrid.setHeight(100px); return dataGrid; } } On Tuesday, January 13, 2015 at 3:42:45 AM UTC-5, Martijn Wijns wrote: (Also answered this on StackOverflow here http://stackoverflow.com/a/27916092/3660671) You need to use RootLayoutPanel in onModuleLoad instead of RootPanel. There need to be layout panels all the way from the root to the DataGrid. InfoWindow doesn't seem to be a layout panel, so you might need to hook up the resizing yourself, see: http://www.gwtproject.org/doc/latest/DevGuideUiPanels.html#Resize Furthermore, you put the DataGrid inside a scrollpanel. You can do that but then you have to give it an explicit size. DataGrid has its own scrollpanel so you can probably also get rid of the explicitly created one. Op maandag 12 januari 2015 16:49:54 UTC+1 schreef Kevin Workman: I posted this on StackOverflow here http://stackoverflow.com/questions/27847411/datagrid-inside-infowindow-doesnt-show-table-data, but nobody is biting, so I'm cross-posting here. I'm using GWT along with the GoogleMaps GWT API (v3.8 https://code.google.com/p/gwt-google-apis/downloads/list, and no, I can't use the branflakes GoogleMaps API). I'm trying to put a DataGrid table inside an InfoWindow on the map. I have the DataGrid working fine as long as I display it outside the map, but whenever I add a DataGrid inside an InfoWindow, none of the table rows show up: http://i.stack.imgur.com/JmU9z.png If I right-click the InfoWindow, go to inspect element, then trudge through the million divs that GWT creates, I can see that the data is there- it's just not visible for some reason. I've done quite a bit of googling, but all I've seen is that a DataGrid has to be a child of a LayoutPanel or ScrollPanel. But that's exactly what I'm doing: package com.test.client; import java.util.Arrays; import com.google.gwt.ajaxloader.client.AjaxLoader;import com.google.gwt.ajaxloader.client.AjaxLoader.AjaxLoaderOptions;import com.google.gwt.cell.client.TextCell;import com.google.gwt.core.client.EntryPoint;import com.google.gwt.dom.client.Document;import com.google.gwt.user.cellview.client.Column;import com.google.gwt.user.cellview.client.DataGrid;import com.google.gwt.user.client.ui.RootPanel;import com.google.gwt.user.client.ui.ScrollPanel;import com.google.maps.gwt.client.GoogleMap;import com.google.maps.gwt.client.InfoWindow;import com.google.maps.gwt.client.InfoWindowOptions;import
Too much recursion after repeating open and close tabs
Hello I have one Tab layout panel in which different tabs are created and destroyed acording to information received from server. That is, my site shows a list of items, which have different characteristics showed in tabs. The number and contain for each of them is different, so when user clicks over another item, the tab layout destroyes current tabs and builds new tabs. It is correctly working all, but after and intensive use, I get following error: (InternalError) stack: isc_Canvas__getNextTabWidget@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2060 isc_Canvas__shiftTabIndexForward@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2059 isc_Canvas__shiftTabIndexForward@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2060 [...] isc_Canvas__shiftTabIndexForward@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2060 isc_Canvas__shiftTabIndexForward@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2060 isc_Canvas__slotTabBetween@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2057 isc_Canvas__setTabBefore@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2053 isc_Canvas__slotChildrenIntoTabOrder@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2066 isc_Canvas__setTabBefore@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2053 isc_Canvas__slotChildrenIntoTabOrder@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2066 isc_Canvas__setTabBefore@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2053 isc_Canvas__slotChildrenIntoTabOrder@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2066 isc_Canvas__setTabAfter@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2056 isc_Layout_updateMemberTabIndex@http: //localhost:8080/web-app/sc/modules/ISC_Foundation.js:343 isc_Layout_addMembers@http: //localhost:8080/web-app/sc/modules/ISC_Foundation.js:322 isc_Layout_addMember@http: //localhost:8080/web-app/sc/modules/ISC_Foundation.js:313 isc_TabSet_createPane@http: //localhost:8080/web-app/sc/modules/ISC_Containers.js:198 isc_TabSet_updateTab@http: //localhost:8080/web-app/sc/modules/ISC_Containers.js:222 vDc@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:10525 oDc@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:8774 pDc@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:6183 Azc@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:10730 wzc@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:8427 Gzc@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:10730 CNb@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:5265 E0b@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:10721 $Mb@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:10718 Xne@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:10760 wwb@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:10439 Kf@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:8743 ng@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:10715 QBb/c.onreadystatechange@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:7200 uc@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:5357 xc@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:9104 wc/@http: //localhost:8080/web-app/948091592A29A34D73BF9E93D5967C3E.cache.html:7516 fileName: http://localhost:8080/web-app/sc/modules/ISC_Core.js lineNumber: 2060 columnNumber: 236: too much recursion isc_Canvas__shiftTabIndexForward@http: //localhost:8080/web-app/sc/modules/ISC_Core.js:2060 Any idea? I'm using GWT 2.6.0. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
GWT ignores source excludes in .gwt.xml
Hello, I'm facing a problem: when I enable incrementalCompileWarnings flag in gwt-maven-plugin, I'm starting to get errors like this: Tracing compile failure path for type 'my.module.servlet.SomeClass' [INFO] [ERROR] Errors in 'jar:file:/path/to/jar/servlet/SomeClass.java' [INFO] [ERROR] Line 15: No source code is available for type javax.servlet.ServletContext; did you forget to inherit a required module? But I have an exclude tag in the .gwt.xml file: source path= ... exclude name=servlet/**/ /source What can cause the problem? Without the incrementalCompileWarnings flag everything works fine. Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Errors migrating to GWT 2.7.0 . Can someone please help me ?
I am getting the following error while performing Ant Build. *Can someone please help me ?* Compiling module com.acg.mmsea.gwt.Appname [java][WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/core/Core.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837 [java][WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/user/User.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837 [java][WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/user/UI.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837 [java][WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/user/DOM.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837 [java][WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/user/RemoteService.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837 [java][WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/xml/XML.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837 [java]Ignored 2 units with compilation errors in first pass. [ERROR] Unexpected internal compiler error [java] java.lang.RuntimeException: Unexpected IOException on in-memory stream [java] at com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:383) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateSourceUnit(UnifyAst.java:999) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.internalFindType(UnifyAst.java:1595) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1653) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1645) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.resolveType(UnifyAst.java:1552) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateSourceUnit(UnifyAst.java:1010) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.internalFindType(UnifyAst.java:1595) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1653) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1645) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.resolveType(UnifyAst.java:1552) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateSourceUnit(UnifyAst.java:1010) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.internalFindType(UnifyAst.java:1595) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1653) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1645) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.resolveType(UnifyAst.java:1552) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateSourceUnit(UnifyAst.java:1010) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.internalFindType(UnifyAst.java:1595) [java] at com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:733) [java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1291) [java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038) [java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954) [java] at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303) [java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38) [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:286) [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229) [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145) [java] at com.google.gwt.dev.Compiler.run(Compiler.java:206) [java] at
GWT compile times between 2.6.0 2.7.0
I work with a rather large code base using GWT 2.6.0 currently. I'm currently evaluating GWT 2.7.0 for upgrade. In my initial tests, I'm noticing a 50% slow down in build times. With *GWT 2.6.0*, I'm able to build my war in *2.53 minutes*. After changing to *GWT 2.7.0*, my build has gone to *3.65 minutes*.I've provided my compile arguments below. I don't know if there's any new arguments in GWT to reduce the build time for development iterations. When building the file war, I'm not so worried about GWT compile build time but development iterations impact our 100+ developers working with this. *Notes about our product GWT usage:* - Extensive use of GWT Injection - Extensive use of UI binder (248 *.ui.xml) - We know this is problematic are actively looking for better ways to define maintain our UI. - Use of GWTP - The GWT compile generates ~50 MB of source files. - We know this is out of control are working to reduce the about of generated code. *GWT compile arguments:* - java - Note, we're not using Maven or Ant. We're invoking the GWT compile from the command line with customized build scripts. - -cp 85 jars - I don't know if the number of jars/directories impact this. - -Xmx5g - We've had to use up to 10 GB to build or product. We have optional modules which require a lot of extra memory. - -Dgwt.persistentunitcachedir=out/gwt-unitCache - com.google.gwt.dev.Compiler - -war out/war - -gen out/gen - -localWorkers 1 - -nocompileReport - -failOnError - -XnocheckCasts - -XnoclassMetadata - -XnocheckCasts - -logLevel INFO - -style OBF - -XfragmentCount 100 - -draftCompile -optimize 0 - I've use these in development builds. It increases the memory required for the GWT compile but tends to speed up the compile by almost a minute. - Module *Lines of code:* - Java - physical lines : 801029 - lines of source code : 446124 - number of files read : 5038 - JavaScript - physical lines : 85661 - lines of source code : 63079 - number of files read : 248 Thanks, Denny Chitwood -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Too much recursion after repeating open and close tabs
No idea how to help. You have some recursion in your code that executes too often for the given browser. Browsers have a stack size / recursion limit: http://stackoverflow.com/a/7828803/3478317 I guess you have to look at your code and refactor it. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GWT compile times between 2.6.0 2.7.0
I don't know why a developer wants to regularly compile an app during development except he want to optimize the amount of permutations. I can't remember when I did a full app compile during development. Anyways, keep in mind that you have 800k line of code that GWT generates an AST from. Then it walks that AST multiple times to apply optimizations on it, then transforms that Java AST into a JavaScript AST and again walks through it multiple times to optimize again. Also you have defined a fragment count of 100 which tells me that you probably have lots of GWT.runAsync() calls in your code base. All of these must be analyzed so code can be assigned to correct code fragments and if some fragments are better merged. Finally you have 85 jars on class path. Its probably not a big gain but you might want to split server and client code into separate projects with separate class paths. You don't need server classes / libraries if you compile the GWT client code to JavaScript. Overall I think a 3 min compile is pretty normal for that size. And if its 3 oder 4 minutes should literally be irrelevant. A developer should not need to compile the app regularly and you probably have a CI / build server anyways. What you should evaluate is how fast incremental SuperDevMode in GWT 2.7 is, because that is what matters most during development since most recent browsers do not support the classic DevMode plugin anymore. Also some report that Java8 might also slow down compilation a bit. If you have used it you could try Java7 instead. If nothing helps you have to split your app into smaller pieces (additional GWT modules + entry points that only start a sub set of your app) that can be worked on during development ... or buy beefier computers for developers :) -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
[gwt-contrib] Wrapping HTML Content into UIBinder
Hi Folks, I am using GWT 2.6 to develop my web application.Since i am getting the HTML prototype from UX/UI designer can i wrap the html directly into uibinder in GWT? - Is so,then how to write event handler or validation for the component? - Can i expect the same output (as looking in HTML prototype)? - Generated code will be match exactly as looking in HTML,Is this Possible using UIBinder Approch? - Is there any performance Issue? - some time HTML Prototype will internally having jquery component,Can i wrap JQuery in GWT using UIBinder Approach? Please give me your valuable suggestion?Thanks in advance? -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/487dcf9f-b3a5-4744-b249-56c86ccfb805%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
/* noflip */ GSS in GWT 2.7.0 doesn't seem to work
Hi group, I have the following very simple css inside some .gss file .closeButtonContainer { /* @noflip */ float: right; margin: 4px; } .footer { padding: 0 10px; /* @noflip */ text-align: right; } The no flip seems to be ignored because if i use an rtl locale, i get .closeButtonContainer { float: left; margin: 4px; } .footer { padding: 0 10px; text-align: left; } Is there any other way to specify no flipping for specific properties? some more info: I use GWT 2.7.0 with SDM i have set-configuration-property name=CssResource.enableGss value=true / in my module i use only .gss files for styling Thanks for any help -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.