Re: GWT Compiled Application cannot interact with php backendGWT Compiled Application cannot interact with php backend
On Tue, Dec 6, 2011 at 7:29 AM, Noor baken...@gmail.com wrote: I was developing a GWT application with a PHP backend. During development, everything was OK. I was developing my GWT app from my webroot and everything was working correctly and was properly interacting with php. However, when I compiled the GWT app and place it the same place where my original GWT app was and try to run it, the interface shows up but every place where to i need to interact with the server, it fails outputting application error messages which i set whenever my web app cannot interact with the server Can someone help, I really needs to get this work!! Can you post the error messages and stacktrace? Also check the console of your browser and give us the error messages. I am sure it is only a tiny thing... Best, Raphael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- inc: http://ars-machina.raphaelbauer.com tech: http://ars-codia.raphaelbauer.com web: http://raphaelbauer.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: History tokens and vertical menu panel
Sorry, but your question is unclear. Please specify details and an example scenario. On Dec 6, 2:06 am, JavaCool4Me sascha.monte...@gmail.com wrote: Hi, I am building a new application with a vertical panel menu, which works fine, but within some pages I have links to other pages ( which is a history token), but I need the vertical panel to slide to the correct group. The links in the page work fine now, but the panel does not slide. When I click a link from i.e. page1 to page2, the whole page reloads, but the content is correct (I also pass a parameter in the string with href='?dep=blah#page2') I am not sure about the usage of History and fireCurrentHistory, but without that the inter page links don't seem to work -- public class GwtTest implements EntryPoint, ValueChangeHandlerString { MenuBuilder mb; public void onModuleLoad() { mb = new MenuBuilder(); mb.buildMenuFromXml(Test); hp = new HTMLPanel(div id='printWidget'/divdiv id='dateWidget'/divdiv id='reportWidget'/div); RootPanel.get(appPanel).add(hp); DoHomePage.render(hp); History.addValueChangeHandler(this); if(History.getToken().isEmpty()) { History.newItem(home); } History.fireCurrentHistoryState(); mb.setMenuPanelActive(History.getToken()); } public void onValueChange(ValueChangeEvent event) { if(History.getToken().equals(home)) { hp.clear(); DoHomePage.render(hp); mb.setMenuPanelActive(History.getToken()); }else if(History.getToken().equals(page1)) { hp.clear(); DoPage1.render(hp); mb.setMenuPanelActive(History.getToken()); }else if(History.getToken().equals(page2)) { hp.clear(); DoPage2.render(hp); mb.setMenuPanelActive(History.getToken()); } } } -- You received 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 do I set GWT headless mode for Maven?
I understand from the GWT FAQ that this isnt' possible with ImageBundles. See: http://code.google.com/webtoolkit/doc/1.6/FAQ_Troubleshooting.html On Dec 5, 11:12 pm, laredotornado laredotorn...@zipmail.com wrote: Hi, I'm using Maven 3.0.3, GWT 2.4 and the Bamboo integration suite. How do I set up my GWT tests to run in headless mode using Maven and GWT? I have tried setting both these environment variables ... JAVA_OPTS=-Djava.awt.headless=true MAVEN_OPTS=-Djava.awt.headless=true but to no avail. I still get the errors below ... Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.myco.clearing.product.client.resource.Resources$Images' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: 53) at com.google.gwt.core.client.GWT.create(GWT.java:97) at com.myco.clearing.product.client.resource.Resources.clinit(Resources.java : 38) ... 41 more Caused by: java.lang.Exception: java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access $100(X11GraphicsEnvironment.java:52) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java: 155) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java: 131) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen t.java: 68) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java: 1135) at com.google.gwt.resources.rg.ImageBundleBuilder.toPng(ImageBundleBuilder.jav a: 538) at com.google.gwt.resources.rg.ImageResourceGenerator.reencodeToTempFile(Image ResourceGenerator.java: 641) at com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGen erator.java: 567) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initA ndPrepare(AbstractClientBundleGenerator.java: 1043) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initA ndPrepare(AbstractClientBundleGenerator.java: 1069) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.gener ateIncrementally(AbstractClientBundleGenerator.java: 412) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally (StandardGeneratorContext.java: 647) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:78) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 268) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.j ava: 141) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:585) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 455) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: 49) Any ideas how and where I set the GWT headless mode for Maven-GWT? - Dave -- You received 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: Basic MDI (Multiple Document Interface) question
No problem. I do everything without any external lib (don't wanne be dependent of them). I would start by looking at code like the gwt windows manager and learn from it: http://code.google.com/p/gwtwindowmanager/ - Ed On Dec 6, 1:19 am, Zakaluka zakal...@gmail.com wrote: Hello all, I have been looking into doing an MDI application with GWT. Is it possible to do such a thing with plain GWT, i.e. without using any additional libraries like SmartGWT, Ext GWT, etc? I have searched in this forum, but the latest posts seem to be from 2009 (most are even older) and all the projects they reference are dead. I was thinking that DecoratedPopupPanel with a Composite of some sort inside it might do the trick, but I'd love to hear if someone already has such a system operational. Thank you for your time, zak. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What causes Deferred binding failed for class errors?
Some tips: 1) Make sure the sources (besides the classes) are present on your classpath. 2) Use the @Source annotation to define the picture file and make sure the path it correct. @Source(cellTreeItemImage.png) ImageResource cellTreeItemImage(); In this example the picutre has to be present in the same package. 3) Stay away from GWTTestCase unless reay necessary. For general GWT testing tips, see: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/87030a9ae66fe012/ Does it work in dev mode? On Dec 5, 4:52 pm, laredotornado laredotorn...@zipmail.com wrote: Hi, I'm using GWT 2.4. I'm trying to run some GWTTestCases in an environment and getting Deferred binding failed for class errors. How do I figure out what resource GWT is looking for? For a number of my tests, GWT dies with the following error log ... Rebinding com.myco.clearing.product.client.resource.Resources.Images Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator Preparing method cellTreeItemImage Finding resources [ERROR] No com.google.gwt.resources.client.ClientBundle $Source annotation and no resources found with default extensions Preparing method cellTreeLeafItemImage Finding resources [ERROR] No com.google.gwt.resources.client.ClientBundle $Source annotation and no resources found with default extensions [ERROR] Deferred binding failed for 'com.myco.clearing.product.client.resource.Resources.Images'; expect subsequent failures Below is the class in question. The relevant files appear to be in the classpath. Is there anything I can do to get GWT to tell me more about what's ailing it? Thanks, - Dave public class Resources { public interface Styles extends CssResource { String categoryPanel(); String productDetailsPanel(); String contextMenu(); String productDetailsHeader(); String COMMON_CSS = com/myco/clearing/product/client/resource/ common.css; } public interface Images extends ClientBundle { ImageResource cellTreeItemImage(); ImageResource cellTreeLeafItemImage(); @NotStrict @Source( Styles.COMMON_CSS ) Styles styles(); } private static Images resources; static { resources = GWT.create( Images.class ); resources.styles().ensureInjected(); } public static Styles styles() { return resources.styles(); } public static Images images() { return resources; } } -- You received 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 post data from one page to another
It all depends how you will setup your pages and what you mean by pages. The most obvious setup: the pages are part of the same GWT app. In this case they can interchange data by sharing some class that contains the value's you like to share. This class would be the so called Data Model. This basically has nothing to do with GWT, it's a general java setup. In case the pages are separate, but are present under the same base url, use: - Cookies if it concerns little bit of data. - session or local dom storage. - RequestBuilder. I can't tell you the correct solution due to lack of information. If the new page is constructed on the server (the old fashion way), the best way would be probably the RequestBuilder. - Ed On Dec 6, 6:13 am, -sowdri- sow...@gmail.com wrote: .i used formpanel but not sure what path should i set in setAction() Do not use form panel, unless you are posting your data to a servlet/jsp that is external to the gwt module. In this case you can also use RequestBuilderhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/index.htm... for accomplishing this. For changing pages within the module, use PlaceController.goTo(new MyNewPlace()); -sowdri- -- You received 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: SubmitCompleteEvent.getResults() is null in devmode
Try accessing your app using http://t410:/ instead of http://127.0.0.1:/ You'll likely have to pass the -bindAddress t410 or -bindAddress 0.0.0.0 option to the DevMode though: http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#What_options_can_be_passed_to_development_mode Note that I never developped for AppEngine; there might be a way to tell the BlobstoreService#createUploadUrl to use http://127.0.0.1:/ as a prefix to the generated URL. -- 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/-/sS70M2CBbwIJ. 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 sink a custom defined event class ?
As I said: addHandlerhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/Widget.html#addHandler(H, com.google.gwt.event.shared.GwtEvent.Type)(myHandler, PageEvent.TYPE); -- 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/-/SNGdTBIRjBgJ. 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 sink a custom defined event class ?
Cell widgets are special, because they have to listen to any event their Cell(s) want to be notified about, and they process (almost) all of these events the same: 1) find the relevant value and Cell, 2) dispatch the event to the CellPreviewEvent.Handlers if any, then 3) pass the event down to the Cell. (with a few exceptions needing special treatment in addition to the above: keyboard navigation and hover styling) -- 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/-/hQGVUq1UlXkJ. 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.
Opera 11.60 + GWT 2.4.0: Code load failed!
Hi folks, I just installed Opera 11.60 (see system details below) and tried to access my GWT application, which results in a Code load failed! message. All other browsers, inlcuding Opera 11.10, work like a charm. Can anyone confirm this problem? What's the cause? Is it a bug in Opera or does GWT misinterpret the UA string? All the best, Michael System Details: Opera Version: 11.60 Build: 1185 Platform: Linux System: x86_64, 2.6.35-31-generic UA: Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.10.229 Version/ 11.60 GWT: Version: 2.4.0 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Form factor support using GIN
Hi there, I am trying to follow your example but I get multiple double-bound: key errors for instance Double-bound: Key[type=MyActivity, annotation=[none]]. ActivityGinModule.configure(ActivityGinModule.java:9),ActivityGinModule.configure(ActivityGinModule.java:9) I've copied my SharedGinModule and DesktopGinModule public class SharedGinModule extends AbstractGinModule { @Override protected void configure() { install(new ActivityGinModule()); install(new MvpGinModule()); } } public class DesktopGinModule extends AbstractGinModule { @Override protected void configure() { install(new SharedGinModule()); install(new DesktopViewModule()); } } In my module entry point I do the following final GinjectorProviderinjector = GWT.create(GinjectorProvider.class); up to this point everything is ok, and when stepping through the code I can see that the GinjectorProvider.class is an instannce of DesktopGinjectorProvider. I get errors when I try to injector.get().getResource()... Any ideas? Thanks, George -- Please consider the environment before printing this e-mail The Newspaper Marketing Agency: Opening Up Newspapers: http://www.nmauk.co.uk/ This e-mail and any attachments are confidential, may be legally privileged and are the property of NI Group Limited (which is the holding company for the News International group, is registered in England under number 81701 and whose registered office is 3 Thomas More Square, London E98 1XY, VAT number GB 243 8054 69), on whose systems they were generated. If you have received this e-mail in error, please notify the sender immediately and do not use, distribute, store or copy it in any way. Statements or opinions in this e-mail or any attachment are those of the author and are not necessarily agreed or authorised by NI Group Limited or any member of its group. NI Group Limited may monitor outgoing or incoming emails as permitted by law. It accepts no liability for viruses introduced by this e-mail or attachments. -- 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/-/hhJqJVgIqIgJ. 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.
setSource(Object source) in class GwtEvent
in the class GwtEvent,there is a method setSource(Object source),its not a public method,so we can not call it in subclass. then what's the meaning of its existence. -- You received 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.
Event Bubbling
Hello, Is it possible in GWT to use Event bubbling? For example i would like to propagate an event from a GWT component to all it's sub components. Is there a mechanism that implements this feature? Thanks a lot for the reply -- You received 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: Module Include Distorting CSS
Thomas, thanks for the tip. Removing the Theme include does not appear to remove the symptoms. thanks! Joshua Zeidner http://gwt.joshuazeidner.com On Dec 5, 9:07 am, Thomas Broyer t.bro...@gmail.com wrote: Could it be that the GWT app is using a built-in theme? It would then inject the theme's CSS in the host page, and built-in themes define rules for the document's body (at least; and maybe a few other general prupose elements). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Code Split / Prefetching Mechanics
Hi, I am wondering how the prefetching described in http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodeSplitting.html works exactly. Will the code always be loaded when a runAsync call is performed or just the 1st time the method is invoked? In my opinion it makes only sense if the code is just loaded once. Otherwise I don't really see a benefit in using the code split/ prefetching. If it is just loaded only once. How much is the overhead in calling the runAsync method (when the code is already loaded)? Thanks for your help Regards Watnuss -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
gwt-diagrams
Hii all, I have a problem with this examples : http://code.google.com/p/gwt-diagrams/wiki/CodeExamples the widgets can appear but not the connectors! any idear?? thxx -- *Rihab SAIDI* -- You received 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 Styles in IE
Hi, I have problem with my styles in a celltable I have the following bits of code interface TableResources extends CellTable.Resources { @Source({CellTable.Style.DEFAULT_CSS, tablestyles.css}) CellTable.Style cellTableStyle(); } public void createTable() { CellTable.Resources resources = GWT.create(TableResources.class); table = new CustomCellTableTableData(0, resources); } this is my css @def selectionBorderWidth 1px; .cellTableWidget { } .cellTableFirstColumn { } .cellTableLastColumn { } .cellTableFooter { } .cellTableHeader { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #00; padding: 0; text-align: center; background: #f0f0f0; /* legend headings */ border-left: 1px solid #aaa; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; white-space: normal; vertical-align:bottom; } .cellTableCell { font-size : 10px; text-align: left; padding: 1px 1px; cursor: pointer; cursor: hand; /*border: 2px solid #00;*/ } .cellTableFirstColumnFooter { } .cellTableFirstColumnHeader { } .cellTableLastColumnFooter { } .cellTableLastColumnHeader { } .cellTableSortableHeader { cursor: pointer; cursor: hand; } .cellTableSortableHeader:hover { /*color: #6c6b6b;*/ } .cellTableSortedHeaderAscending { } .cellTableSortedHeaderDescending { } .cellTableEvenRow { background: #ff; } .cellTableEvenRowCell { border: selectionBorderWidth solid #cc; } .cellTableOddRow { /*background: #f3f7fb;*/ background: #f0f0f0; } .cellTableOddRowCell { /*border: selectionBorderWidth solid #f3f7fb;*/ border: selectionBorderWidth solid #cc; } .cellTableHoveredRow { background: #aa; } .cellTableHoveredRowCell { border: selectionBorderWidth solid #cc; } .cellTableKeyboardSelectedRow { background: #aa; } .cellTableKeyboardSelectedRowCell { border: selectionBorderWidth solid #cc; } .cellTableSelectedRow { background: #aa; color: #00; height: auto; overflow: auto; } .cellTableSelectedRowCell { border: selectionBorderWidth solid #cc; } /** * The keyboard selected cell is visible over selection. */ .cellTableKeyboardSelectedCell { border: selectionBorderWidth solid #cc; } .cellTableLoading { margin: 30px; } I'm trying to override the odd/even row and selection styles on the table. The styles appear perfectly in Firefox and Chrome but do not display inside IE. Really need some help.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do I set GWT headless mode for Maven?
I understand that it says if you're using any widgets that use ImageBundle in their underlying implementations, the GWT compiler will search for the DISPLAY environment variable and try to connect to an X11 Graphics Window but then it lists the work-around after, but you're saying the work-around never applies for ImageBundles? I didn't get that from reading this section. What is the alternative? - Dave On Dec 6, 3:19 am, Ed post2edb...@gmail.com wrote: I understand from the GWT FAQ that this isnt' possible with ImageBundles. See:http://code.google.com/webtoolkit/doc/1.6/FAQ_Troubleshooting.html On Dec 5, 11:12 pm, laredotornado laredotorn...@zipmail.com wrote: Hi, I'm using Maven 3.0.3, GWT 2.4 and the Bamboo integration suite. How do I set up my GWT tests to run in headless mode using Maven and GWT? I have tried setting both these environment variables ... JAVA_OPTS=-Djava.awt.headless=true MAVEN_OPTS=-Djava.awt.headless=true but to no avail. I still get the errors below ... Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.myco.clearing.product.client.resource.Resources$Images' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: 53) at com.google.gwt.core.client.GWT.create(GWT.java:97) at com.myco.clearing.product.client.resource.Resources.clinit(Resources.java : 38) ... 41 more Caused by: java.lang.Exception: java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access $100(X11GraphicsEnvironment.java:52) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java: 155) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java: 131) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen t.java: 68) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java: 1135) at com.google.gwt.resources.rg.ImageBundleBuilder.toPng(ImageBundleBuilder.jav a: 538) at com.google.gwt.resources.rg.ImageResourceGenerator.reencodeToTempFile(Image ResourceGenerator.java: 641) at com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGen erator.java: 567) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initA ndPrepare(AbstractClientBundleGenerator.java: 1043) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initA ndPrepare(AbstractClientBundleGenerator.java: 1069) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.gener ateIncrementally(AbstractClientBundleGenerator.java: 412) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally (StandardGeneratorContext.java: 647) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:78) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 268) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.j ava: 141) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:585) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 455) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: 49) Any ideas how and where I set the GWT headless mode for Maven-GWT? - Dave -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT for Eclipse on linux
Some of the Fedora folks have been making Eclipse plugins that ease the rpm packaging for Fedora systems. There isn't much in that set of plugins for Java. Fedora does package other Eclipse plugins. If you do yum list \*eclipse\* you will see them. I think you want eclipse-jdt While the packaging has gotten better than it used to be, I still prefer to install directly from the source/upstream without using rpm's. My preferred method is 1) Install java from the Oracle site 2) Install Eclipse (classic or Java) from eclipse.org 3) Install the GWT/Appengine plugins from the Google update sites afterwards. darrell On Dec 5, 9:28 pm, sachin sreenivasan sachin.sreenivasa...@gmail.com wrote: Hi ppl, I had GWT working fine on windows. then i decided to try it on linux. I gave the command yum install eclipse-fedorapackager and the eclipse got installed on Linux. But when I gave the GWT link in the Install Software it failed saying some prerequisites were missing. Then I noticed that there were no Java elements at all in eclipse. I dint see options like New Java Project and all. Can someone please tell me how to install those Java components after installing eclipse? Also, is this the main problem that is preventing GWT from getting installed? Any other things I need to do after this? Regards, Sachin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT for Eclipse on linux
I always just download eclipse separately into my own home directory and run it from its own ~/eclipse directory. Package managers never seem to set things up the way I want them to. I've never had any problems using GWT with Eclipse on Linux. I'm doing it even now. :) Derek On Dec 6, 12:28 am, sachin sreenivasan sachin.sreenivasa...@gmail.com wrote: Hi ppl, I had GWT working fine on windows. then i decided to try it on linux. I gave the command yum install eclipse-fedorapackager and the eclipse got installed on Linux. But when I gave the GWT link in the Install Software it failed saying some prerequisites were missing. Then I noticed that there were no Java elements at all in eclipse. I dint see options like New Java Project and all. Can someone please tell me how to install those Java components after installing eclipse? Also, is this the main problem that is preventing GWT from getting installed? Any other things I need to do after this? Regards, Sachin -- You received 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: setSource(Object source) in class GwtEvent
I had the same problem and wrote my own event bus to be able to set the source. See also this issue: 6525 http://code.google.com/p/google-web-toolkit/issues/detail?id=6525 - Ed On Dec 6, 2:06 pm, wahaha il...@yahoo.com.cn wrote: in the class GwtEvent,there is a method setSource(Object source),its not a public method,so we can not call it in subclass. then what's the meaning of its existence. -- You received 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: setSource(Object source) in class GwtEvent
BTW: the meaning is that the source should be set on the event bus, see SimpleEventBus, through the constructor. The bus is able to set the source. YOu aren't allowed to do that. Such that you must change the bus to be able to change it (that's what I did). - Ed On Dec 6, 2:06 pm, wahaha il...@yahoo.com.cn wrote: in the class GwtEvent,there is a method setSource(Object source),its not a public method,so we can not call it in subclass. then what's the meaning of its existence. -- You received 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: History tokens and vertical menu panel
I also pass a parameter in the string with href='?dep=blah#page2') if any portion of the url prior to the # changes then app will reload (come through onModuleLoad() again. I'm not sure if that is what you are doing as I don't see the menu event handling in your sample On Dec 5, 8:06 pm, JavaCool4Me sascha.monte...@gmail.com wrote: Hi, I am building a new application with a vertical panel menu, which works fine, but within some pages I have links to other pages ( which is a history token), but I need the vertical panel to slide to the correct group. The links in the page work fine now, but the panel does not slide. When I click a link from i.e. page1 to page2, the whole page reloads, but the content is correct (I also pass a parameter in the string with href='?dep=blah#page2') I am not sure about the usage of History and fireCurrentHistory, but without that the inter page links don't seem to work -- public class GwtTest implements EntryPoint, ValueChangeHandlerString { MenuBuilder mb; public void onModuleLoad() { mb = new MenuBuilder(); mb.buildMenuFromXml(Test); hp = new HTMLPanel(div id='printWidget'/divdiv id='dateWidget'/divdiv id='reportWidget'/div); RootPanel.get(appPanel).add(hp); DoHomePage.render(hp); History.addValueChangeHandler(this); if(History.getToken().isEmpty()) { History.newItem(home); } History.fireCurrentHistoryState(); mb.setMenuPanelActive(History.getToken()); } public void onValueChange(ValueChangeEvent event) { if(History.getToken().equals(home)) { hp.clear(); DoHomePage.render(hp); mb.setMenuPanelActive(History.getToken()); }else if(History.getToken().equals(page1)) { hp.clear(); DoPage1.render(hp); mb.setMenuPanelActive(History.getToken()); }else if(History.getToken().equals(page2)) { hp.clear(); DoPage2.render(hp); mb.setMenuPanelActive(History.getToken()); } } } -- You received 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 do I set GWT headless mode for Maven?
you're saying the work-around never applies for ImageBundles? I didn't get that from reading this section. I think so. Especially because of this sentence in the faq: --- Even if you are not using the ImageBundle explicitly in your client code, ... I think it's understandable that it always needs the graphics lib's to modify the images, such that it always needs them when it encounter images. BTW: In my test environment I do proxy my ClienbBundle classes (I don't use GWTTestCase, I hate it ;) ). - Ed On Dec 6, 2:47 pm, laredotornado laredotorn...@zipmail.com wrote: I understand that it says if you're using any widgets that use ImageBundle in their underlying implementations, the GWT compiler will search for the DISPLAY environment variable and try to connect to an X11 Graphics Window but then it lists the work-around after, but you're saying the work-around never applies for ImageBundles? I didn't get that from reading this section. What is the alternative? - Dave On Dec 6, 3:19 am, Ed post2edb...@gmail.com wrote: I understand from the GWT FAQ that this isnt' possible with ImageBundles. See:http://code.google.com/webtoolkit/doc/1.6/FAQ_Troubleshooting.html On Dec 5, 11:12 pm, laredotornado laredotorn...@zipmail.com wrote: Hi, I'm using Maven 3.0.3, GWT 2.4 and the Bamboo integration suite. How do I set up my GWT tests to run in headless mode using Maven and GWT? I have tried setting both these environment variables ... JAVA_OPTS=-Djava.awt.headless=true MAVEN_OPTS=-Djava.awt.headless=true but to no avail. I still get the errors below ... Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.myco.clearing.product.client.resource.Resources$Images' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: 53) at com.google.gwt.core.client.GWT.create(GWT.java:97) at com.myco.clearing.product.client.resource.Resources.clinit(Resources.java : 38) ... 41 more Caused by: java.lang.Exception: java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access $100(X11GraphicsEnvironment.java:52) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java: 155) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java: 131) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen t.java: 68) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java: 1135) at com.google.gwt.resources.rg.ImageBundleBuilder.toPng(ImageBundleBuilder.jav a: 538) at com.google.gwt.resources.rg.ImageResourceGenerator.reencodeToTempFile(Image ResourceGenerator.java: 641) at com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGen erator.java: 567) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initA ndPrepare(AbstractClientBundleGenerator.java: 1043) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initA ndPrepare(AbstractClientBundleGenerator.java: 1069) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.gener ateIncrementally(AbstractClientBundleGenerator.java: 412) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally (StandardGeneratorContext.java: 647) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:78) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 268) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.j ava: 141) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:585) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 455) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: 49) Any ideas how and where I set the GWT headless mode for Maven-GWT? - Dave -- You received 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
Re: GWT for Eclipse on linux
Just download and use the eclipse version from eclipse.org. I work only on linux (ubuntu) and had no problems whatsoever with eclipse and the google plugin for eclipse. -- 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/-/3B2vz2a4MBsJ. 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: FileWriter Server Side
If you don't actually need to use appengine on your server side, then disable it in your project settings and then you can use FileWriter. Otherwise, you can't use it in appengine - you are not allowed filesystem access when running on it (here's the app engine whitelist: http://code.google.com/appengine/docs/java/jrewhitelist.html). There's several ways around the restrction. On Dec 4, 8:13 am, Arthur arthur.bren...@gmail.com wrote: Hi, I'm trying to use FileWriter java class on server side but the google app engine validator tells me that java.lang.NoClassDefFoundError: java.io.FileWriter is a restricted class. I excluded the server package of my application from google App Engine validation but I still have this problem. Do you have any hint on how to solve this issue ? Thank you -- You received 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: Opera 11.60 + GWT 2.4.0: Code load failed!
Using the exact same build, I can successfully load the showcase sample (online; built against some version earlier than 2.4 I guess) and the GWT-based https://groups.google.com/forum/ (Google is known to always build from trunk, so it's after 2.4). An old app (built with GWT 2.0.3) loads just fine as well. We don't build our current app for Opera so I can't test, sorry (but we build against GWT trunk, not 2.4.0) BTW, I can't find any Code load failed message in GWT's source. -- 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/-/qsXShAN36B0J. 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: Event Bubbling
You can use a global EventBus: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/event/shared/SimpleEventBus.html and just have only the widgets that need to listen for particular events (you can add custom events for any situation) register with the global EventBus Sorry if this doesn't answer your question or only presents things you already know. I have sometimes used the exact same idea to create custom local eventBus that handle event notification within certain areas. -- 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/-/n7nHnmtsQNgJ. 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: Opera 11.60 + GWT 2.4.0: Code load failed!
Is this in hosted mode or for the compiled app? Also, are you using this project http://code.google.com/p/gwt-platform/? That seems to have a Code load failed that pops up in an alert window. On Dec 6, 5:28 am, Michael Würtinger wuertin...@cip.ifi.lmu.de wrote: Hi folks, I just installed Opera 11.60 (see system details below) and tried to access my GWT application, which results in a Code load failed! message. All other browsers, inlcuding Opera 11.10, work like a charm. Can anyone confirm this problem? What's the cause? Is it a bug in Opera or does GWT misinterpret the UA string? All the best, Michael System Details: Opera Version: 11.60 Build: 1185 Platform: Linux System: x86_64, 2.6.35-31-generic UA: Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.10.229 Version/ 11.60 GWT: Version: 2.4.0 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Opera 11.60 + GWT 2.4.0: Code load failed!
Hi Thomas, https://groups.google.com/forum/#!overview doesn't work in my Opera either! The page remains empty, no error is reported. Seems to be a general GWT - Opera 11.60 problem... Which appears only on my system. On Dec 6, 4:09 pm, Thomas Broyer t.bro...@gmail.com wrote: Using the exact same build, I can successfully load the showcase sample (online; built against some version earlier than 2.4 I guess) and the GWT-basedhttps://groups.google.com/forum/(Google is known to always build from trunk, so it's after 2.4). An old app (built with GWT 2.0.3) loads just fine as well. We don't build our current app for Opera so I can't test, sorry (but we build against GWT trunk, not 2.4.0) BTW, I can't find any Code load failed message in GWT's source. -- You received 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: Opera 11.60 + GWT 2.4.0: Code load failed!
Hi Kevin, the compiled application doesn't work. I haven't tested development mode. You are right, I'm using gwt-platform. I assume that the problem would be the same without this library, but the popup message wouldn't appear. Cheers! Michael On Dec 6, 4:36 pm, Kevin Jordan ke...@kjordan.net wrote: Is this in hosted mode or for the compiled app? Also, are you using this projecthttp://code.google.com/p/gwt-platform/? That seems to have a Code load failed that pops up in an alert window. On Dec 6, 5:28 am, Michael Würtinger wuertin...@cip.ifi.lmu.de wrote: Hi folks, I just installed Opera 11.60 (see system details below) and tried to access my GWT application, which results in a Code load failed! message. All other browsers, inlcuding Opera 11.10, work like a charm. Can anyone confirm this problem? What's the cause? Is it a bug in Opera or does GWT misinterpret the UA string? All the best, Michael System Details: Opera Version: 11.60 Build: 1185 Platform: Linux System: x86_64, 2.6.35-31-generic UA: Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.10.229 Version/ 11.60 GWT: Version: 2.4.0 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Server side gwt-validation doesn't work (?)
We use gwt-validation-2.0-BETA-SNAPSHOT-r269.jar and GWT 2.4. The field of the entity is annotated with javax.validation.constraints.NotNull Client side validation works and also server side validation in hosted mode (jetty). But when deployed in tomcat (6.0.20), we get the following exception when server side validation is invoked: Caused by: javax.validation.UnexpectedTypeException: No validator was found for javax.validation.constraints.NotNull with type [...deleted...] at com.em.validation.client.CoreValidatorImpl.validateConstraint(CoreValidatorImpl.java: 372) at com.em.validation.client.CoreValidatorImpl.validateValue(CoreValidatorImpl.java: 202) at com.em.validation.client.CoreValidatorImpl.validateProperty(CoreValidatorImpl.java: 119) at com.em.validation.client.CoreValidatorImpl.validate(CoreValidatorImpl.java: 76) at com.em.validation.client.CoreValidatorImpl.validate(CoreValidatorImpl.java: 96) at com.em.validation.client.ValidatorImpl.validate(ValidatorImpl.java: 48) at ... Our war-file contains the gwt-validation-2.0-BETA-SNAPSHOT-r269.jar and also the validation-api-1.0.0.GA.jar. Replacing the gwt-validation-2.0-BETA-SNAPSHOT-r269.jar in the war file with hibernate-validator-4.2.0.Final.jar seems to fix the problem (as a workaround). Thanks for help in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do I set GWT headless mode for Maven?
Have you tried -Dgwt.extraJvmArgs=-Djava.awt.headless=true? http://mojo.codehaus.org/gwt-maven-plugin/test-mojo.html#extraJvmArgs -- 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/-/G4URTKUW83oJ. 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: Basic MDI (Multiple Document Interface) question
I build my whole MDI Web app with http://code.google.com/p/gwtwindowmanager/ -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Ed Sent: Tuesday, December 06, 2011 4:25 AM To: Google Web Toolkit Subject: Re: Basic MDI (Multiple Document Interface) question No problem. I do everything without any external lib (don't wanne be dependent of them). I would start by looking at code like the gwt windows manager and learn from it: http://code.google.com/p/gwtwindowmanager/ - Ed On Dec 6, 1:19 am, Zakaluka zakal...@gmail.com wrote: Hello all, I have been looking into doing an MDI application with GWT. Is it possible to do such a thing with plain GWT, i.e. without using any additional libraries like SmartGWT, Ext GWT, etc? I have searched in this forum, but the latest posts seem to be from 2009 (most are even older) and all the projects they reference are dead. I was thinking that DecoratedPopupPanel with a Composite of some sort inside it might do the trick, but I'd love to hear if someone already has such a system operational. Thank you for your time, zak. -- You received 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. _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server side gwt-validation doesn't work (?)
On Tue, Dec 6, 2011 at 7:46 AM, Nicolas.Rocca nicolas.ro...@t-online.dewrote: We use gwt-validation-2.0-BETA-SNAPSHOT-r269.jar and GWT 2.4. The field of the entity is annotated with javax.validation.constraints.NotNull Client side validation works and also server side validation in hosted mode (jetty). But when deployed in tomcat (6.0.20), we get the following exception when server side validation is invoked: Caused by: javax.validation.UnexpectedTypeException: No validator was found for javax.validation.constraints.NotNull with type [...deleted...] at com.em.validation.client.CoreValidatorImpl.validateConstraint(CoreValidatorImpl.java: 372) at com.em.validation.client.CoreValidatorImpl.validateValue(CoreValidatorImpl.java: 202) at com.em.validation.client.CoreValidatorImpl.validateProperty(CoreValidatorImpl.java: 119) at com.em.validation.client.CoreValidatorImpl.validate(CoreValidatorImpl.java: 76) at com.em.validation.client.CoreValidatorImpl.validate(CoreValidatorImpl.java: 96) at com.em.validation.client.ValidatorImpl.validate(ValidatorImpl.java: 48) at ... Our war-file contains the gwt-validation-2.0-BETA-SNAPSHOT-r269.jar and also the validation-api-1.0.0.GA.jar. Replacing the gwt-validation-2.0-BETA-SNAPSHOT-r269.jar in the war file with hibernate-validator-4.2.0.Final.jar seems to fix the problem (as a workaround). Partially Correct, Try just adding the hibernate-validator jar. and leave the GWT one in place. To have server side validation you need hibernate or some other vilidation provider like apache-bval. GWT validation only handles the client side part -- You received 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: setSource(Object source) in class GwtEvent
If you fire an event via the EventBus, you can fire it with or without a specific source (EventBus.fire() and EventBus.fireFromSource() ). The same applies to listening for events on the EventBus. You can listen for every Event of a given Type or you can only listen for Events of a given Type and from a specific source. If you use a custom Event inside a custom Widget using Widget.addHandler() and Widget.fire(), GWT will set widget as source automatically. So you don't really need access to setSource() because its already handled for you. -- J. -- 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/-/bR0sqUfSDS4J. 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: Basic MDI (Multiple Document Interface) question
Thank you both for the suggestion. I'm looking into it now. Sergey, are you still using the GwtWM project? Regards, zak. On Dec 6, 8:52 am, Armishev, Sergey sarmis...@idirect.net wrote: I build my whole MDI Web app withhttp://code.google.com/p/gwtwindowmanager/ -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Ed Sent: Tuesday, December 06, 2011 4:25 AM To: Google Web Toolkit Subject: Re: Basic MDI (Multiple Document Interface) question No problem. I do everything without any external lib (don't wanne be dependent of them). I would start by looking at code like the gwt windows manager and learn from it:http://code.google.com/p/gwtwindowmanager/ - Ed On Dec 6, 1:19 am, Zakaluka zakal...@gmail.com wrote: Hello all, I have been looking into doing an MDI application with GWT. Is it possible to do such a thing with plain GWT, i.e. without using any additional libraries like SmartGWT, Ext GWT, etc? I have searched in this forum, but the latest posts seem to be from 2009 (most are even older) and all the projects they reference are dead. I was thinking that DecoratedPopupPanel with a Composite of some sort inside it might do the trick, but I'd love to hear if someone already has such a system operational. Thank you for your time, zak. -- You received 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 athttp://groups.google.com/group/google-web-toolkit?hl=en. _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Code Split / Prefetching Mechanics
Good question, but if you only use it once, you don't need to worry about it. I would only use it once such that you aren't dependent on the implementation details as you never know how it will be in the future. I use it a bit like in the example of the link you specify. I check if the instance is initialized. If not, you initialize it in a runAsync, which is then only called once. - Ed On Dec 6, 11:03 am, Watnuss tonk...@gmail.com wrote: Hi, I am wondering how the prefetching described inhttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodeS... works exactly. Will the code always be loaded when a runAsync call is performed or just the 1st time the method is invoked? In my opinion it makes only sense if the code is just loaded once. Otherwise I don't really see a benefit in using the code split/ prefetching. If it is just loaded only once. How much is the overhead in calling the runAsync method (when the code is already loaded)? Thanks for your help Regards Watnuss -- You received 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: Event Bubbling
The event bubbling you are looking for has nothing to do with GWT. It's a java design issue. Like Ashton suggests: use a local (or global) event bus. Or a parent child relation. Example: Archive controller with a Declaration and Wallet Archive controller that will show them self depending if the user want's to see the wallet or declarations. The Archive will forward the events to his child's when needs. You can put this event orchestration in a base class which classes like Archive extend. GWT Event bubbling works great but just the other way around as you suggest. Example: A panel contains a Button widget. You attach a click handler to the panel and will receive the Button click events. Very handy when the Panel has many buttons for example (event bubbles up). This doesn't work for focus events btw. Ed -- You received 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: Basic MDI (Multiple Document Interface) question
I dont use a completely full windowing system as such, but my review website does use extensive popups to enter data while still looking at other information if you wish. It does this more or less exactly as you suggested, decorated popups containing composites. The only modifcations I did was to get the x in the corner so you can close the popups. http://www.rateoholic.co.uk/ You have to login to demo the windowing (ie, when you go to post or edit reviews, they are new windows). You can login via OpenID though. In addition I used a combination of iframes to switch between different main views of the app without any code needing to reload. Its all still very rough around the edges, but I think it shows the power of what GWT can do. On Dec 6, 6:40 pm, Zakaluka zakal...@gmail.com wrote: Thank you both for the suggestion. I'm looking into it now. Sergey, are you still using the GwtWM project? Regards, zak. On Dec 6, 8:52 am, Armishev, Sergey sarmis...@idirect.net wrote: I build my whole MDI Web app withhttp://code.google.com/p/gwtwindowmanager/ -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Ed Sent: Tuesday, December 06, 2011 4:25 AM To: Google Web Toolkit Subject: Re: Basic MDI (Multiple Document Interface) question No problem. I do everything without any external lib (don't wanne be dependent of them). I would start by looking at code like the gwt windows manager and learn from it:http://code.google.com/p/gwtwindowmanager/ - Ed On Dec 6, 1:19 am, Zakaluka zakal...@gmail.com wrote: Hello all, I have been looking into doing an MDI application with GWT. Is it possible to do such a thing with plain GWT, i.e. without using any additional libraries like SmartGWT, Ext GWT, etc? I have searched in this forum, but the latest posts seem to be from 2009 (most are even older) and all the projects they reference are dead. I was thinking that DecoratedPopupPanel with a Composite of some sort inside it might do the trick, but I'd love to hear if someone already has such a system operational. Thank you for your time, zak. -- You received 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 athttp://groups.google.com/group/google-web-toolkit?hl=en. _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received 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.
Spell Check for GWT
Hi all, Does anyone know of a good spell check solution for gwt? I'm working on a project that requires one and installing spell check plugins on the users browser is not an option. Also the system runs in a closed network and cannot access the internet so I would have to host the spell checking myself. It seems very strange to me that I can't find any spell check packages that work with gwt's front end. I've come across Other Rich Text editors like TinyMCE and CKEditor that have wrappers, but is there a project out there that works with native gwt rich text? Many thanks in advance Sina -- You received 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: Basic MDI (Multiple Document Interface) question
I just support this project that I built back in 2009. And it is using GWT 1.5.3. So you need some prototyping if you want to start using it on latest GWT. I know about one problem in GWT 2 that I found (and easily fixed) that one name violates CamelCase convention that GWT compiler now testing. You probably need to test it on new browsers as well since library has no new development from 2008. -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Zakaluka Sent: Tuesday, December 06, 2011 12:40 PM To: Google Web Toolkit Subject: Re: Basic MDI (Multiple Document Interface) question Thank you both for the suggestion. I'm looking into it now. Sergey, are you still using the GwtWM project? Regards, zak. On Dec 6, 8:52 am, Armishev, Sergey sarmis...@idirect.net wrote: I build my whole MDI Web app withhttp://code.google.com/p/gwtwindowmanager/ -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Ed Sent: Tuesday, December 06, 2011 4:25 AM To: Google Web Toolkit Subject: Re: Basic MDI (Multiple Document Interface) question No problem. I do everything without any external lib (don't wanne be dependent of them). I would start by looking at code like the gwt windows manager and learn from it:http://code.google.com/p/gwtwindowmanager/ - Ed On Dec 6, 1:19 am, Zakaluka zakal...@gmail.com wrote: Hello all, I have been looking into doing an MDI application with GWT. Is it possible to do such a thing with plain GWT, i.e. without using any additional libraries like SmartGWT, Ext GWT, etc? I have searched in this forum, but the latest posts seem to be from 2009 (most are even older) and all the projects they reference are dead. I was thinking that DecoratedPopupPanel with a Composite of some sort inside it might do the trick, but I'd love to hear if someone already has such a system operational. Thank you for your time, zak. -- You received 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 athttp://groups.google.com/group/google-web-toolkit?hl=en. _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received 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. _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received 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: Basic MDI (Multiple Document Interface) question
One more point to consider. This MDI solution is hard to use on mobile phones -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Armishev, Sergey Sent: Tuesday, December 06, 2011 2:03 PM To: google-web-toolkit@googlegroups.com Subject: RE: Basic MDI (Multiple Document Interface) question I just support this project that I built back in 2009. And it is using GWT 1.5.3. So you need some prototyping if you want to start using it on latest GWT. I know about one problem in GWT 2 that I found (and easily fixed) that one name violates CamelCase convention that GWT compiler now testing. You probably need to test it on new browsers as well since library has no new development from 2008. -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Zakaluka Sent: Tuesday, December 06, 2011 12:40 PM To: Google Web Toolkit Subject: Re: Basic MDI (Multiple Document Interface) question Thank you both for the suggestion. I'm looking into it now. Sergey, are you still using the GwtWM project? Regards, zak. On Dec 6, 8:52 am, Armishev, Sergey sarmis...@idirect.net wrote: I build my whole MDI Web app withhttp://code.google.com/p/gwtwindowmanager/ -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Ed Sent: Tuesday, December 06, 2011 4:25 AM To: Google Web Toolkit Subject: Re: Basic MDI (Multiple Document Interface) question No problem. I do everything without any external lib (don't wanne be dependent of them). I would start by looking at code like the gwt windows manager and learn from it:http://code.google.com/p/gwtwindowmanager/ - Ed On Dec 6, 1:19 am, Zakaluka zakal...@gmail.com wrote: Hello all, I have been looking into doing an MDI application with GWT. Is it possible to do such a thing with plain GWT, i.e. without using any additional libraries like SmartGWT, Ext GWT, etc? I have searched in this forum, but the latest posts seem to be from 2009 (most are even older) and all the projects they reference are dead. I was thinking that DecoratedPopupPanel with a Composite of some sort inside it might do the trick, but I'd love to hear if someone already has such a system operational. Thank you for your time, zak. -- You received 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 athttp://groups.google.com/group/google-web-toolkit?hl=en. _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received 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. _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received 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
Re: GWT Developer Plugin for Firefox 8
Many thanks Alan - saved me much frustration and re-installs! -- You received 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.
Object deep copy or serialization
Hi, I have a requirement in my project where a screen data is to be rendered from a cloned or object copy rather than on actual object. This way, if user wish to cancel the changes, the original object will not be affected and if user accepts the changes, the modified cloned object replaces the original object. Is there any proven technique to clone an object in GWT? I was thinking of using serialization classes, like SerializerBase, SerializationStreamReader, SerializationStreamWriter in GWT API but their implementation is not clear to me. Moreover, our project does not support 3rd party APIs and hence I cannot use the supporting Jars for this objective. Any help in this context would be appreciated. Thanks, Anky -- You received 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: Basic MDI (Multiple Document Interface) question
Thank you for the link. It's always better to see the code's effects. that's something along the lines of what I was thinking of, except not making the popups modal. Looks like the GwtWM project uses SimplePanels within an AbsolutePanel. I'm going to try these 2 techniques out and see which one works better. Regards, zak. On Dec 6, 10:22 am, darkflame darkfl...@gmail.com wrote: I dont use a completely full windowing system as such, but my review website does use extensive popups to enter data while still looking at other information if you wish. It does this more or less exactly as you suggested, decorated popups containing composites. The only modifcations I did was to get the x in the corner so you can close the popups. http://www.rateoholic.co.uk/ You have to login to demo the windowing (ie, when you go to post or edit reviews, they are new windows). You can login via OpenID though. In addition I used a combination of iframes to switch between different main views of the app without any code needing to reload. Its all still very rough around the edges, but I think it shows the power of what GWT can do. On Dec 6, 6:40 pm, Zakaluka zakal...@gmail.com wrote: Thank you both for the suggestion. I'm looking into it now. Sergey, are you still using the GwtWM project? Regards, zak. On Dec 6, 8:52 am, Armishev, Sergey sarmis...@idirect.net wrote: I build my whole MDI Web app withhttp://code.google.com/p/gwtwindowmanager/ -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Ed Sent: Tuesday, December 06, 2011 4:25 AM To: Google Web Toolkit Subject: Re: Basic MDI (Multiple Document Interface) question No problem. I do everything without any external lib (don't wanne be dependent of them). I would start by looking at code like the gwt windows manager and learn from it:http://code.google.com/p/gwtwindowmanager/ - Ed On Dec 6, 1:19 am, Zakaluka zakal...@gmail.com wrote: Hello all, I have been looking into doing an MDI application with GWT. Is it possible to do such a thing with plain GWT, i.e. without using any additional libraries like SmartGWT, Ext GWT, etc? I have searched in this forum, but the latest posts seem to be from 2009 (most are even older) and all the projects they reference are dead. I was thinking that DecoratedPopupPanel with a Composite of some sort inside it might do the trick, but I'd love to hear if someone already has such a system operational. Thank you for your time, zak. -- You received 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 athttp://groups.google.com/group/google-web-toolkit?hl=en. _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received 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: Basic MDI (Multiple Document Interface) question
Sergey, Thanks for the information. I'm going to re-create the GwtWM in the latest GWT and see how it goes (just the very basics). As for mobile, you are very correct. I'm setting the project to use different GUIs for phones, desktops and tablets. Regards, zak. On Dec 6, 11:08 am, Armishev, Sergey sarmis...@idirect.net wrote: One more point to consider. This MDI solution is hard to use on mobile phones -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Armishev, Sergey Sent: Tuesday, December 06, 2011 2:03 PM To: google-web-toolkit@googlegroups.com Subject: RE: Basic MDI (Multiple Document Interface) question I just support this project that I built back in 2009. And it is using GWT 1.5.3. So you need some prototyping if you want to start using it on latest GWT. I know about one problem in GWT 2 that I found (and easily fixed) that one name violates CamelCase convention that GWT compiler now testing. You probably need to test it on new browsers as well since library has no new development from 2008. -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Zakaluka Sent: Tuesday, December 06, 2011 12:40 PM To: Google Web Toolkit Subject: Re: Basic MDI (Multiple Document Interface) question Thank you both for the suggestion. I'm looking into it now. Sergey, are you still using the GwtWM project? Regards, zak. On Dec 6, 8:52 am, Armishev, Sergey sarmis...@idirect.net wrote: I build my whole MDI Web app withhttp://code.google.com/p/gwtwindowmanager/ -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Ed Sent: Tuesday, December 06, 2011 4:25 AM To: Google Web Toolkit Subject: Re: Basic MDI (Multiple Document Interface) question No problem. I do everything without any external lib (don't wanne be dependent of them). I would start by looking at code like the gwt windows manager and learn from it:http://code.google.com/p/gwtwindowmanager/ - Ed On Dec 6, 1:19 am, Zakaluka zakal...@gmail.com wrote: Hello all, I have been looking into doing an MDI application with GWT. Is it possible to do such a thing with plain GWT, i.e. without using any additional libraries like SmartGWT, Ext GWT, etc? I have searched in this forum, but the latest posts seem to be from 2009 (most are even older) and all the projects they reference are dead. I was thinking that DecoratedPopupPanel with a Composite of some sort inside it might do the trick, but I'd love to hear if someone already has such a system operational. Thank you for your time, zak. -- You received 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 athttp://groups.google.com/group/google-web-toolkit?hl=en. _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received 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 athttp://groups.google.com/group/google-web-toolkit?hl=en. _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the
Re: SubmitCompleteEvent.getResults() is null in devmode
Thank you, Thomas. As so often, i've found a posting on stackoverflow after i asked here... http://stackoverflow.com/questions/7476420/gwt-blobstore-error-calling-createuploadurl Will try things out tomorrow. -- 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/-/vtS6wiYkdxgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Server side method in Transport Object
Is it possible to put a transient method that contains non gwt objects inside a transport object? I am transferring a DTO back and forth from the server to the client and would like to be able to give the object functionality to run sql statements and work with my session connection when its on the server side. -- You received 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: DataGrid in TabLayoutPanel is empty/filled depending on the order of the tabs
Ok this seems to fix it @UiHandler(tabLayoutPanel) public void onClick(SelectionEventInteger event) { table.onResize(); } but i am not sure wether this is best practice ?? -- 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/-/u_EypkUzWaQJ. 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: History tokens and vertical menu panel
the onValueChange is my menu handler which works fine for the links in the menu panel On page1 I have a celltable with links to page2, if I click on a link (a href='?dep=Sales#page2'Sales/a) it does go to page2, but the page fully reloads and the Vertical Menu Panel is in initial state, not on the 2nd group When looking for examples I saw that I had to put ?dep=Sales before the history token, is that not correct? Should I have a href='#page2?dep=Sales'Sales/a instead? Or will that break access from IE browsers? On Dec 7, 1:03 am, David levy...@gmail.com wrote: I also pass a parameter in the string with href='?dep=blah#page2') if any portion of the url prior to the # changes then app will reload (come through onModuleLoad() again. I'm not sure if that is what you are doing as I don't see the menu event handling in your sample On Dec 5, 8:06 pm, JavaCool4Me sascha.monte...@gmail.com wrote: Hi, I am building a new application with a vertical panel menu, which works fine, but within some pages I have links to other pages ( which is a history token), but I need the vertical panel to slide to the correct group. The links in the page work fine now, but the panel does not slide. When I click a link from i.e. page1 to page2, the whole page reloads, but the content is correct (I also pass a parameter in the string with href='?dep=blah#page2') I am not sure about the usage of History and fireCurrentHistory, but without that the inter page links don't seem to work -- public class GwtTest implements EntryPoint, ValueChangeHandlerString { MenuBuilder mb; public void onModuleLoad() { mb = new MenuBuilder(); mb.buildMenuFromXml(Test); hp = new HTMLPanel(div id='printWidget'/divdiv id='dateWidget'/divdiv id='reportWidget'/div); RootPanel.get(appPanel).add(hp); DoHomePage.render(hp); History.addValueChangeHandler(this); if(History.getToken().isEmpty()) { History.newItem(home); } History.fireCurrentHistoryState(); mb.setMenuPanelActive(History.getToken()); } public void onValueChange(ValueChangeEvent event) { if(History.getToken().equals(home)) { hp.clear(); DoHomePage.render(hp); mb.setMenuPanelActive(History.getToken()); }else if(History.getToken().equals(page1)) { hp.clear(); DoPage1.render(hp); mb.setMenuPanelActive(History.getToken()); }else if(History.getToken().equals(page2)) { hp.clear(); DoPage2.render(hp); mb.setMenuPanelActive(History.getToken()); } } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Performance Issues
I was wondering if anyone has had any issues with performance in GWT and how you solved it. Right now there is a project I'm working on where I get some json and generate some views and it's maybe 100 items long and GWT takes around 8 seconds to render it in Chrome. I'm concerned because I'm going to be working on a bigger project and was planning on using GWT but now I'm not so sure. On the bigger project it could end up taking 30 seconds or more just to render the views each time they open a new page. I've read about using timers to try and keep the DOM from freezing, but it prolongs the rendering period. Is there any way to improve performance in GWT, or is this just how the framework is? I've done stuff in Sproutcore before and didn't have any issues with performance, but I'm not sure it's the right framework for the project I'll be doing. Any thoughts would help. Thanks in advance! -- 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/-/V3mLBnZLcBsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT RPC mechanism
thanks! On Nov 25, 7:11 pm, Tomasz Gawel tomaszga...@op.pl wrote: it is serialized to text but not json. - you can catch a glimpse of it in firebug :) however you can overwrite it - look athttp://timepedia.blogspot.com/2009/04/gwt-rpc-over-arbitrary-transpor... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RE: GWT Performance Issues
Publish your code. I suspect the problem might be there. Also Chrome in development mode might be slow (or very slow) compare to production where it usually the fastest browser -Sergey From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of CSchulz Sent: Tuesday, December 06, 2011 4:33 PM To: google-web-toolkit@googlegroups.com Subject: GWT Performance Issues I was wondering if anyone has had any issues with performance in GWT and how you solved it. Right now there is a project I'm working on where I get some json and generate some views and it's maybe 100 items long and GWT takes around 8 seconds to render it in Chrome. I'm concerned because I'm going to be working on a bigger project and was planning on using GWT but now I'm not so sure. On the bigger project it could end up taking 30 seconds or more just to render the views each time they open a new page. I've read about using timers to try and keep the DOM from freezing, but it prolongs the rendering period. Is there any way to improve performance in GWT, or is this just how the framework is? I've done stuff in Sproutcore before and didn't have any issues with performance, but I'm not sure it's the right framework for the project I'll be doing. Any thoughts would help. Thanks in advance! -- 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/-/V3mLBnZLcBsJ. 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. _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Code Split / Prefetching Mechanics
The code will only be loaded once and if its already available you wont recognize any delay in code execution. So I think there is little to no overhead when reaching a code split point more than once. At least I havent seen any issues in my apps (about 20 split points, which are executed multiple times based on navigation inside the app). They just work like expected. -- J -- 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/-/-Bb27PAsH-MJ. 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.
SS0 and GWT
Hi All- I'm a new user who has been tasked with refactoring a GWT 2.3 application so that it can work behind something like Schibboleth or OpenAM, as well as maintain a it's own authentication page/panel. Searching the forum, I notice that most people when talking about authentication are suggesting that systems authenticate via some RPC service. This works fine so long as you're not behind a SSO Gateway/ proxy that sticks a user key on as a http header, works fine. Given a requirement that it work in this type of environment, is there a best-practice, GWT-thumbs up way to do this? Are servlet filters still a suggested way to do this? Can I integrate a redirecting servlet filter so that it'll behave with regard to RPC calls(redirecting the whole browser when the RPC call is redirected to the SSO Auth page)? Any suggestions would be approved thanks Mike -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Performance Issues
Just keep in mind that development mode is really a lot slower than the final compiled javascript code (development mode in Firefox seems to be the fastest, Safari is ok, Chrome feels slow). How do you generate your views? I am not quite sure but I think something like: FlowPanel wrapper = new FlowPanel() for(Person p : persons) { wrapper.add(new PersonView(person)); } containerView.add(wrapper) could have a better performance than: for(Person p : persons) { containerView.add(new PersonView(person)); } because the first example fills the wrapper while it is not attached to the DOM yet. -- J. -- 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/-/KZagJXnFXM0J. 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: Object deep copy or serialization
I think you only have the standard options: - Use the Editor Framework of GWT (using it you would have to call a flush() method that writes changes to your object. If a user hits cancel you just won't call flush() - no need for cloning) - You could implement Object.clone(), implement a custom .copy() method or use copy constructors. - If you want to traverse your object graph more often for different purposes, it may be a good idea to implement the visitor pattern and then implement a CreateCopyVisitor. Currently I can only think of GWT's AutoBean Framework which supports cloning out of the box using the AutoBeanUtils class, e.g. AutoBeanUtils.decodeInto(AutoBeanUtils.encode(autobean), newAutoBean). But that would require that your objects are AutoBeans. -- J. -- 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/-/KXDkxcEyGRYJ. 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: Canvas, ImageData, and IE9
First of all, I found that I'm not the only one who stumbled on this bug. See http://groups.google.com/group/google-web-toolkit/browse_thread/thread/96f842dd3a23fc3a/cb447e0aa23997f8 Second, I have reliable workaround, at least for rectangles (and probably for lines, ovals, etc.). I've tested in in FFx 8, IE9, Chrome, and Safari 5. To explain, I have a number of Rectangle's (which implement Annotation) in an ArrayList area. On click, I test for selection: boolean testForSelection(int x, int y) { ghostContext.clearRect(0, 0, WIDTH, HEIGHT); for (int i = 0; i areas.size(); i++) { Annotation rect = areas.get(i); if (rect.isPointInPath(ghostContext, x, y)) { currRect = (Rectangle)rect; return true; } } return false; } In Rectangle, my first attempt was @Override public boolean isPointInPath(Context2d ctx, int x0, int y0) { ctx.setGlobalCompositeOperation(Context2d.Composite.SOURCE_OVER); ctx.setFillStyle(black); ctx.fillRect(x, y, width, height); int alpha = ctx.getImageData(x0, y0, 1, 1).getAlphaAt(0, 0); if (alpha 0) { GWT.log(found!); return true; } return false; } As I said, this did not work in IE until the 3rd click. Why? I dunno. I started looking into the GWT source code when an idea hit me. So here's my new approach, a new method that uses path not alpha. It works. @Override public boolean isPointInPath(Context2d ctx, int x0, int y0) { ctx.beginPath(); ctx.rect(x, y, width, height); if (ctx.isPointInPath(x0, y0)) { GWT.log(found!); ctx.closePath(); return true; } ctx.closePath(); return false; } Since we're dealing with a path and not an alpha, I don't set fill or composite. On Dec 5, 5:01 pm, Thad thad.humphr...@gmail.com wrote: I'm working on a small canvas drawing program with GWT 2.3 and I'm hitting a problem with IE9. After a user draws a rectangle to the canvas, I want to allow dragging or resizing. To catch the mouse down in the rectangle I'm using a technique similar to the one show in this example:http://simonsarris.com/blog/225-canvas-selecting-resizing-shape Basically I keep an ArrayList of my rectangles (other shapes will follow). On mouse down, if my state is NONE (no drawing, dragging, etc.) I clear a a hidden canvas and draw each item in my ArrayList to to that canvas with fill style black and test for alpha. If alpha is greater than zeor, I return the object clicked. In Firefox, this works perfectly each time. However in IE I don't get alpha 0 till the 3rd click. If keep the mouse in a rectangle--NO MOVEMENT--it takes 3 clicks in the same spot, 3 calls to my test method, before alpha 0. What's the reason for this delay with IE? The example above is pure Javascript,and it works in IE9 (if copy it locally and change the doctype header). What gives with GWT? Is there some problem with GWT's ImageData in IE? Is there some work around? -- You received 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.
the parameter of the method addHandler
in class Widget,there is a method addHandler(final H handler, GwtEvent.TypeH type). in a customer defined Widget which has a customer defined event,i call the method addHandler(final H handler, GwtEvent.TypeH type),and transmit parameter like this: addHandler(handler,new TypeXxxHandler) but the customer defined event do not take effect at all at the last. i modified it like this: addHandler(handler,MyEvent.getType),and in the MyEvent class: public TypeXxxHandler getType() { if(type==null){ type=new TypeXxxHandler(); } return type; } now,it have no problem. why?does it will inject the value for type auto automatically ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Performance Issues
Yeah, it entirely was running in Eclipse and when I compile the project and publish it, it does run much faster. I always generate the views first and then push the changes out to the DOM in one or two steps because I know that's the fastest way to do it. I just didn't realize how much slower it ran in dev mode. Thanks again! -- 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/-/wTmJGdPxSWUJ. 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: Object deep copy or serialization
Autobean directly have a clone() method: clone() An AutoBean http://code.google.com/p/google-web-toolkit/wiki/AutoBean and the property values stored within it can be cloned. The clone() method has a boolean parameter that will trigger a deep or a shallow copy. Any tag values associated with the AutoBeanhttp://code.google.com/p/google-web-toolkit/wiki/AutoBean will not be cloned. AutoBeans that wrap a delegate object cannot be cloned. e.g. AutoBeanUtils.decodeInto(AutoBeanUtils.encode(autobean), newAutoBean) Is there any advantage of doing it this way? Am I missing something? Thanks, -- 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/-/N8ovWakxDFMJ. 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: the parameter of the method addHandler
Does this help creating custom events?: https://github.com/ashtonthomas/beans/blob/master/src/com/billy/bob/client/event/HeaderNotificationEvent.java https://github.com/ashtonthomas/beans/blob/master/src/com/billy/bob/client/event/HeaderNotificationHandler.java Also register handler with eventbus https://github.com/ashtonthomas/beans/blob/master/src/com/billy/bob/client/application/DesktopApp.java this.eventBus.addHandler(HeaderNotificationEvent.TYPE, shell); And then the fireing: https://github.com/ashtonthomas/beans/blob/master/src/com/billy/bob/client/activity/main/HomeActivity.java HeaderNotificationEvent event = new HeaderNotificationEvent(Processing the Home Activity); eventBus.fireEvent(event); -- 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/-/wy9pWt3XYTwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Fix leak in LayoutImplIE6 (issue1601804)
http://gwt-code-reviews.appspot.com/1601804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix leak in LayoutImplIE6 (issue1601804)
Thomas, can you take a look at this? I haven't fully wrapped my head around LayoutImplIE6, but it seems to be setting up several expando properties that are either not unset on detach (__styleRuler) or setup pre-attach (__layer) and so not detached if the user just instantiates the widget but doesn't attach it. I put some comments in the patch that highlight what I'm concerned/thinking about. I'm not sure if there's an easy way to defer setting up the expando properties until onattach, or if it's worth doing. I was going to start trying to do that, but thought I'd stop and ask for a sanity check first. http://gwt-code-reviews.appspot.com/1601804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix for ScrollImplTrident leak (issue1601803)
LGTM, but see comment below. http://gwt-code-reviews.appspot.com/1601803/diff/9/user/src/com/google/gwt/user/client/ui/ScrollImpl.java File user/src/com/google/gwt/user/client/ui/ScrollImpl.java (right): http://gwt-code-reviews.appspot.com/1601803/diff/9/user/src/com/google/gwt/user/client/ui/ScrollImpl.java#newcode73 user/src/com/google/gwt/user/client/ui/ScrollImpl.java:73: // initialize static, leak-safe scroll/resize handlers Correct me if I'm wrong but there's chance it could leak if the compiler inlines initHandlers here. Calling it from the constructor or static initializer we'd be assured it's not inlined (AFAICT) so that there won't be any element in-scope to trigger a leak. Static initializer would introduce a clinit so it's not a good idea IMO. So either a constructor, or an explicit init() call from ScrollImpl.get() below (with a no-op method in ScrollImpl for the non-IE case) http://gwt-code-reviews.appspot.com/1601803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Issue 6331: Let AutoBean serialize dates as numbers when possible. (issue1601805)
http://gwt-code-reviews.appspot.com/1601805/diff/1/user/src/com/google/web/bindery/autobean/shared/ValueCodex.java File user/src/com/google/web/bindery/autobean/shared/ValueCodex.java (right): http://gwt-code-reviews.appspot.com/1601805/diff/1/user/src/com/google/web/bindery/autobean/shared/ValueCodex.java#newcode106 user/src/com/google/web/bindery/autobean/shared/ValueCodex.java:106: if (value.isNumber()) { On 2011/12/06 01:54:28, skybrian wrote: This seems fine, but could you add a test to AutoBeanCodexTest to make sure it continues to work? Done. http://gwt-code-reviews.appspot.com/1601805/diff/1/user/src/com/google/web/bindery/autobean/shared/ValueCodex.java#newcode114 user/src/com/google/web/bindery/autobean/shared/ValueCodex.java:114: long timestamp = ((Date) value).getTime(); On 2011/12/06 01:54:28, skybrian wrote: As I said in the bug, I'm not sure this is a good idea. And as I said, I tend to agree. I've thus reverted that change. http://gwt-code-reviews.appspot.com/1601805/diff/1/user/src/com/google/web/bindery/autobean/shared/ValueCodex.java#newcode368 user/src/com/google/web/bindery/autobean/shared/ValueCodex.java:368: if (clazz.isEnum()) { On 2011/12/06 01:54:28, skybrian wrote: On 2011/12/01 17:18:36, tbroyer wrote: Oh, I don't know why I had that in this CL, but the rationale is: in the only case where findType can be called with an enum-value-with-overridden-methods' class (a subclass of the isEnum class), it's OK for findType to return null because the value will be upcasted (and ENUM.canUpcast will then return true, so it'll correctly be used); see encode(Object) above. So the question is whether to add an overhead for every encoded value (checking getSuperClass.isEnum here) or only for those specific enum values (loop over the types and ask them if they canUpcast the value). I'd rather say the latter, hence this change. It looks like you're right that the answer will still be correct, but I'm not sure about the performance implications, so I'd be inclined to leave it as is unless you've done some performance testing showing that it's a win. I haven't done any testing (yet), but the perf implications seem rather obvious to me (not how *much* perf would be impacted though): for *every* type other than an enum, clazz.isEnum() will be false, so clazz.getSuperclass() != null clazz.getSuperclazz().isEnum() will be tested (and will return false for Strings, Dates, and primitives and their wrappers). There's only a rare case where this test is useful: an enum value with a body (such as AutoBeanCodexTest.MyEnum.BAR). MyEnum.BAR.getClass().isEnum() is false, but getSuperclass() returns MyEnum.class where isEnum() is true. If you remove the test on the super-class, then for such an enum value it'll fallback to TYPES_BY_CLASS.get() which will be null (then, when called from encode(Object), it'll then loop over the Type.values() until it finds Type.ENUM, whose canUpcast would return true). There are two cases that this change would break: encode(MyEnum.BAR.getClass(), MyEnum.BAR) and decode(MyEnum.BAR.getClass(), StringQuoter.quote(BAR)) (passing MyEnum.BAR.getClass() instead of MyEnum.class) but they're no much different than encode(java.sql.Date.class, someDate) vs. encode(java.util.Date.class, someDate); and note also that AbstractAutoBeanFactory.getEnum() would fail too with MyEnum.BAR.getClass() as argument. Doesn't the 80/20 rule apply? (and it's rather 98/2 here) I'm OK to revert the change though, and possibly reintroduce it later after some perf testing. (I'll try to do that testing right now though, so we can have numbers on which to base our decision). http://gwt-code-reviews.appspot.com/1601805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix for ScrollImplTrident leak (issue1601803)
http://gwt-code-reviews.appspot.com/1601803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix for ScrollImplTrident leak (issue1601803)
Correct me if I'm wrong but there's chance it could leak if the compiler inlines initHandlers here. Tricky! That seems like it could happen; I don't know for sure, but I think it makes more sense to init the handlers in the cstr anyway. Updated the patch accordingly. http://gwt-code-reviews.appspot.com/1601803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors