'gwtOnLoad' of object [object DOMWindow] is not a function
i've tried compiled my gwt project and run the project html in my pc, all ie, firefox and safari can open my page except google chrome displays a blank page. errors are displayed in the chrome console. anyone has solution to this? 3Unsafe JavaScript attempt to access frame with URL file:///C:/Users/me/workspace/my%20login/war/my_login.html from frame with URL file:///C:/Users/me/workspace/my%20login/war/my_login/8FB7DF6ED638C1B56A5E3F10B2F065A8.cache.html. Domains, protocols and ports must match. Unsafe JavaScript attempt to access frame with URL file:///C:/Users/me/workspace/my%20login/war/my_login/8FB7DF6ED638C1B56A5E3F10B2F065A8.cache.html from frame with URL file:///C:/Users/me/workspace/my%20login/war/my_login/8FB7DF6ED638C1B56A5E3F10B2F065A8.cache.html. Domains, protocols and ports must match. Uncaught TypeError: Property 'gwtOnLoad' of object [object DOMWindow] is not a function my_login/my_login.nocache.js:39 i tried remove the compiled files and compile again, cannot solve the problem... thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Prototype call failes using JSNI with GWT
Hi all, I've the following code: public final native JavaScriptObject addNode(...) { ... outputPort.createCommand=function(request) { alert(request); $wnd.draw2d.OutputPort.prototype.createCommand.call(this, request); alert(done); } ... } When the function is called, [Object] will be promted. After that, an JS-Error occurs: undefined is null or not an object. It seems to be that the parameter request is not submitted to the underlaying function. If I uncomment the function outputPort.createCommand=function(request)... it works very well. The variable outputPort is an instance of draw2d.OutputPort and draw2d.OutputPort contains the function createComment(request). I've done this with oder functions without parameter and it works... Any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HOWTO Simulating Mouse and Key Presses in GWT
Hi Thomas, Thanks for your reply. I will try it. Garin On Thu, Jun 3, 2010 at 10:04 PM, Thomas Broyer t.bro...@gmail.com wrote: On 3 juin, 11:11, Garin Yan yangu...@gmail.com wrote: Hi All, Is there any method to simulate key presses in GWT? Document.get().createXxxEvent() and DomEvent.fireNativeEvent() -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Garin Yan Software Engineer, International Service Founder International Co.,Ltd. Address: Suzhou International Science Park (Phase V) 328 Xinghu Rd., Suzhou, Jiangsu, P.R.China, 215123 Tel:+86 512 86665500-7063 Fax:+86 512 87183808 Cell:151 0621 9276 yangu...@gmail.com || www.founderinternational.com Enjoying 20 years of success satisfying global leaders with every IT need -- Founder’s 30,000 employees are committed to helping you succeed. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.0
Hi Sri, Thanks for your reply. The issue got already resolved. My os is windows 7 64 bit. I was using eclipse 32 bit and jdk 32 bit. I just switched to 64 bit version of eclipse and jdk and everything was all set. On Jun 3, 10:01 am, Sripathi Krishnan sripathi.krish...@gmail.com wrote: java.lang.Class.getCanonicalName()Ljava/lang/String; Can you double check your JDK Version? Do you have multiple versions of JRE libraries in your classpath? --Sri On 1 June 2010 15:24, Kapil Kulkarni kapilkulkarnip...@gmail.com wrote: Hi, I am new to GWT and in learning mode. I working with GWT 2.0 / Eclipse 3.5 / JDK 1.5 / IE 8.0 As per getting started guide if I paste the url which i get in deployment mode to IE 8.0, then I get following but browser is not displaying text box Web Application Starter Project Please enter your name: And in eclipse I am getting following error: 09:50:37.302 [ERROR] [test_gwt] Failed to create an instance of 'com.kapil.test.client.Test_GWT' via deferred binding java.lang.RuntimeException: Deferred binding failed for 'com.kapil.test.client.GreetingService' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:43) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.kapil.test.client.Test_GWT.init(Test_GWT.java:36) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 422) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 361) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 380) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoSuchMethodError: java.lang.Class.getCanonicalName()Ljava/lang/String; at com.google.gwt.user.rebind.rpc.ProxyCreator.getSourceWriter(ProxyCreator.java: 759) at com.google.gwt.user.rebind.rpc.ProxyCreator.create(ProxyCreator.java: 225) at com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator.generate(ServiceInterfaceProxyGenerator.java: 57) at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java: 418) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 38) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.tryRebind(StandardRebindOracle.java:108) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:54) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 154) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java: 119) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java: 531) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 414) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.kapil.test.client.Test_GWT.init(Test_GWT.java:36) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 422) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 361) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 380) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Unknown Source) 09:50:37.369 [DEBUG] [test_gwt] Rebinding com.google.gwt.core.client.impl.SchedulerImpl 09:50:37.380 [WARN] [test_gwt] For the following type(s), generated source was never committed (did you forget to call commit()?) 09:50:37.427 [WARN] [test_gwt] com.kapil.test.client.GreetingService_Proxy 09:50:37.489 [ERROR] [test_gwt] Unable to load module entry point class com.kapil.test.client.Test_GWT (see associated exception for details) 09:50:37.531 [ERROR] [test_gwt] Failed to load module 'test_gwt' from user agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
Getting Http Header info using FormPanel
Hi All, I am using FormPanel to upload a file to server. I need to get some information from response header after file upload completes and onSubmitComplete fires. Is there any way I could get the http response header information here? Thanks, Fahim -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Google Web Toolkit will release new GWT Developer Plugin for Chrome on Linux ?????
Me too! Ubuntu + Chrome for debugging GWT :) On Apr 26, 6:42 am, branflake2267 branflake2...@gmail.com wrote: I vote for this too :), and having plugin for mac too. I love using GWT onUbuntu. Brandon Donnelsonhttp://gwt-examples.googlecode.com On Apr 22, 10:13 pm, demo999 jasonho0...@gmail.com wrote: Hi , I am use gwt-2.0.3 to develop web app when I useChrometo test gwt , It will appear Development Mode requires the Google Web Toolkit Developer Plugin I find this message GWT Developer Plugin forChromeon Winx86 , But I am useChromeon Linux(Ubuntu) , So , Google Web Toolkit will release new GWT Developer Plugin for Chromeon Linux ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Any plans for UIBinder to allow custom parsers?
For users of SmartGWT, or any other highly customised GWT framework, you might say that we should let them develop their own xml ui definition strategy. To preempt any possibility that UIBinder architects might remotely have such an attitude - I would say that attitude, if existent, is wrong. Wrong because - that would cause all of us to vacillate across a few ui xml conventions within the same project. - it would miss the opportunity to provide the whole gwt community with a unified convention as jsp and jsf had been for the jee community. Now, that I think I have somewhat successfully preempted anyone from thinking each to his/her own ui xml strategy, comes the actual question. What are any plans for implementing strategies for UIBinder to allow custom widgets? The current situation for UIBinder is untenable, - due to the reliance on individualised element parsers - the inability to stick my own parser into gwt compilation process For example, - I cannot define my own widget hierarchy like menubar or tabbar can, with pseudo-elements like tab, header, directions, etc - I cannot define a custom widget that effectively implements both HasWidgets and HasHTML. If my custom widget implemented HasWidgets with either HasHTML or HasText, the uibinder parsing part of gwt compiler seems to ignore HasHTML and HasWidget and barfs at me for having forbidden html nodes or text. (Is this a bug or a feature?) There should be a plan and strategy, perhaps by programmers supplying a DTD to signify the allowed nodes and the DTD is compiled with the parser java code. i.e., a gwt element-parser compiler. So, any plans for a gwt element-parser compiler? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Getting Http Header info using FormPanel
Is there any way I could get the http response header information here? No. Browsers don't allow access to response headers unless you are using XmlHttpRequest, or you are using a plugin such as Flash. If you want to get back some data, return it as part of the response body. --Sri On 4 June 2010 13:56, Fahim fahimr...@gmail.com wrote: Hi All, I am using FormPanel to upload a file to server. I need to get some information from response header after file upload completes and onSubmitComplete fires. Is there any way I could get the http response header information here? Thanks, Fahim -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Prototype call failes using JSNI with GWT
Sorry, found the fault by myself... I forgot to return the result of the prototype call :) On 4 Jun., 09:37, malibubu webmas...@mailball.de wrote: Hi all, I've the following code: public final native JavaScriptObject addNode(...) { ... outputPort.createCommand=function(request) { alert(request); $wnd.draw2d.OutputPort.prototype.createCommand.call(this, request); alert(done); } ... } When the function is called, [Object] will be promted. After that, an JS-Error occurs: undefined is null or not an object. It seems to be that the parameter request is not submitted to the underlaying function. If I uncomment the function outputPort.createCommand=function(request)... it works very well. The variable outputPort is an instance of draw2d.OutputPort and draw2d.OutputPort contains the function createComment(request). I've done this with oder functions without parameter and it works... Any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Basic support question about gwt
All major browsers. Platform independent. Note: About mobile platforms i am not very sure, but it supports iphone and android. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: cross-platform
GWT definitely works on iPhone and iPad as it supports Webkit browsers. What do you mean are all the features available? You get all the features that those mobile browsers support. GWT 2.1 Bikeshed seems to include touch events, so that might be helpful for those type of devices. -- Arthur Kalmenson On Thu, Jun 3, 2010 at 6:28 AM, arvind cools...@gmail.com wrote: Which Browsers and platforms does gwt support? Do mobile devices like iPhone\iPad support it as well? If yes, does all features are available? Does output remains the same across browsers and devices? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ($_(), Z_).b is null
Recompile with -STYLE DETAILED, then look at the code. On Thu, Jun 3, 2010 at 6:26 AM, Marcus mar...@alexit.se wrote: Hi, My application works fine in development mode, but when I tried to deploy the application to glassfish (ant war and deploying resulting .war file) i get a blank screen with a JavaScript error telling me: ($_(), Z_).b is null, Any ideas ? Kind Regards Marcus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RichTextToolbar in Uibinder
Ok, taking a look at the RichTextArea in showcase http://gwt.google.com/samples/Showcase/Showcase.html#!CwRichText it looks like in order to get the toolbar you need to use RichTextToolbar and give it the area. // Create the text area and toolbar RichTextArea area = new RichTextArea(); area.ensureDebugId(cwRichText-area); area.setSize(100%, 14em); RichTextToolbar toolbar = new RichTextToolbar(area); toolbar.ensureDebugId(cwRichText-toolbar); toolbar.setWidth(100%); As one widget will require another one, this will probably help: http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_a_widget Cheers! Tristan On Jun 3, 9:13 am, krz ichatsa...@googlemail.com wrote: I need RichTextArea for my TextPresenter I have an interface TextPresenter, and TextPresenterImp.java as its implementation: public class TextPresenterImp extends BasePresenterDisplay implements TextPresenter{ @Inject public TextPresenterImp(EventBus eventBus, Display display) { super(eventBus, display); } @Override public void bind() { super.bind(); } I also have a TextWidget.java what extends Composite and implements Display, and there knows the objects in TextWidget.ui.xml Now it looks like this: public class TextWidget extends Composite implements Display{ private static TextWidgetUiBinder uiBinder = GWT.create(TextWidgetUiBinder.class); @UiTemplate(ui/TextWidget.ui.xml) interface TextWidgetUiBinder extends UiBinderWidget, TextWidget { } @UiField RichTextArea textInputField; public TextWidget() { initWidget(uiBinder.createAndBindUi(this)); } public HasHTML getEnteredText() { return this.textInputField; } public Widget asWidget() { return this; } } And my TextWidget.ui.xml looks like this: !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui g:HTMLPanel g:RichTextArea ui:field=textInputField/g:RichTextArea /g:HTMLPanel /ui:UiBinder The problem is that if TextWidget is shown, it only has the text input fielt, but no text formation toolbar big thanx for any help On 3 Jun., 08:47, Tristan tristan.slomin...@gmail.com wrote: you're going to have to be more specific. There are many ways of hooking up MVP and UiBinder together, what way are you using? Where are you putting your RichTextArea? What do your presenters and views look like and how are they wired together? On Jun 2, 3:19 pm, krz ichatsa...@googlemail.com wrote: Hello, For my programm i use MVP, and UIbinder for drawing the GUI. i wanted to create an RichTextArea with the toolbar ( richTextToolbar), i spend now 2 hours trying things out, im totaly frustrated, and dont know how to do it... can anyone help me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Basic support question about gwt
Hi, for the most mobile platforms opera is available. opera is supported by GWT iphone and android are using a webkit based browser (webkit = safari, chrome) Stefan Bachert http://gwtworld.de On 3 Jun., 13:44, arvind cools...@gmail.com wrote: Which platforms and browsers does gwt support? Is it fully supported by mobile devices like iPhone/iPad? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: new GWT MVP article (part 2)
I'm trying to figure out how to make this parallel composite views / presenter hierarchies. And in my opinion it just break the MVP pattern. One of the goals you pursuit with MVP is to decouple the View object from the logic it contains (the presenter). Making the Presenter unaware of how the view is actually rendered. And also implicitly by using the EventBus decoupling the presenters from the others. In the moment you have a 'parent' presenter, everything screw up: 1. The parent presenter has a knowledge of the children presenters. You may be attempt to move the logic relating the children (before in the event bus) to the parent presenter. Coupling them unnecessarily. 2. Worst. The parent presenter has good knowledge of the view he manages. The view needs to provide hook for the children. So the presenter can attach the views of it child presenters to it. Of course, it may be cases where having a 'Parent presenter' is a good idea. But I think of this cases where actually you make the separation for no conceptual issues (be able to reuse code, like you could do in a table, separating the rows as views). Maybe I misunderstood something here. But I think the 'guy' responsible for the layout can be the AppController. As in the first first part of the article states. 'The AppController is responsible to handle logic that is not specific to any presenter.' But I don't like to much the idea. It makes the AppController aware of the view and layout. But on the other hand it may make sense, he is already aware of the History tokens. And probably if you are also deploying for mobile devices you will end up you need to rewrite the AppController. Other idea I kind of like more. Is using this new concept of Activity (Google IO 2010, Architecture GWT) So each activity will be a page in the application. The AppController is listening the EventBus for events requesting a new Activity. Then the AppController load the new Activity and tells it to display the page. So basically splitting the AppController into Activities. What do you think about this? Are this parent presenters a good idea. Better to move them to other 'entities' like AppController or Activity? Thank you -Fran On Apr 25, 12:54 pm, interdev jason.ved...@gmail.com wrote: Thank you everyone for sharing. @Chris Ramsdale, We use the technique described in part II. Composite views are responsible for instantiating their own children, and making them available for the parallel composite presenters. Regarding the nested layer presenters, thanks for the feedback and I'll look into our codebase for examples that we can share publicly. Chris, I was wondering if you can share any code samples, or if possible ask google team to write a tutorial on more complex layouts and navigation. (parent/ child, composite views). I've visited many forums, and this has been an area where many are struggling. TheMVPtutorial is great for introducing the concepts, but for real world applications with complex layout, i think more examples/ resources are definitely helpful for those who want to follow best practices. almost all GWT books are written prior to 2009, mainly dealing with widgets, and very little on architecture, especiallyMVP. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problems releated to javaMail in GWT application
Please can you tell me how to use javaMail in gwt application. Because when i insert the code related to the mailing in my application. I find these errors when i wanted to compile my code: [ERROR] Errors in 'file:/D:/workspace/ilemERP/osi/osi-client/src/main/ java/ch/ilem/erp/osi/client/panel/cust/OsiReqNewPanel.java' [ERROR] Line 985: No source code is available for type java.util.Properties; did you forget to inherit a required module? [ERROR] Line 986: No source code is available for type com.framework.genie.utilities.Utilities; did you forget to inherit a required module? [ERROR] Line 995: No source code is available for type javax.mail.Session; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.Message; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.internet.MimeMessage; did you forget to inherit a required module? [ERROR] Line 1001: No source code is available for type javax.mail.internet.InternetAddress; did you forget to inherit a required module? [ERROR] Line 1002: No source code is available for type javax.mail.Message.RecipientType; did you forget to inherit a required module? [ERROR] Line 1005: No source code is available for type javax.mail.internet.MimeUtility; did you forget to inherit a required module? [ERROR] Line 1029: No source code is available for type javax.mail.Transport; did you forget to inherit a required module? [ERROR] Line 1031: No source code is available for type com.framework.genie.log.LoggerFactory; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'ch.ilem.erp.osi.client.IlemErpOsi' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly So how can i resolve this problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problems releated to javaMail in GWT application
Hi Send email from the server side via an RPC call. Paul -Original Message- From: samounas elmokhtari.as...@gmail.com Date: Fri, 4 Jun 2010 08:57:36 To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com Subject: Problems releated to javaMail in GWT application Please can you tell me how to use javaMail in gwt application. Because when i insert the code related to the mailing in my application. I find these errors when i wanted to compile my code: [ERROR] Errors in 'file:/D:/workspace/ilemERP/osi/osi-client/src/main/ java/ch/ilem/erp/osi/client/panel/cust/OsiReqNewPanel.java' [ERROR] Line 985: No source code is available for type java.util.Properties; did you forget to inherit a required module? [ERROR] Line 986: No source code is available for type com.framework.genie.utilities.Utilities; did you forget to inherit a required module? [ERROR] Line 995: No source code is available for type javax.mail.Session; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.Message; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.internet.MimeMessage; did you forget to inherit a required module? [ERROR] Line 1001: No source code is available for type javax.mail.internet.InternetAddress; did you forget to inherit a required module? [ERROR] Line 1002: No source code is available for type javax.mail.Message.RecipientType; did you forget to inherit a required module? [ERROR] Line 1005: No source code is available for type javax.mail.internet.MimeUtility; did you forget to inherit a required module? [ERROR] Line 1029: No source code is available for type javax.mail.Transport; did you forget to inherit a required module? [ERROR] Line 1031: No source code is available for type com.framework.genie.log.LoggerFactory; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'ch.ilem.erp.osi.client.IlemErpOsi' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly So how can i resolve this problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problems releated to javaMail in GWT application
*Thank you Paul for responding.But there is'nt another way to resolve this problem. Because i heared that we can insert some inheritis in the file x.gwt.xml?* 2010/6/4 Paul Grenyer paul.gren...@gmail.com Hi Send email from the server side via an RPC call. Paul -Original Message- From: samounas elmokhtari.as...@gmail.com Date: Fri, 4 Jun 2010 08:57:36 To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com Subject: Problems releated to javaMail in GWT application Please can you tell me how to use javaMail in gwt application. Because when i insert the code related to the mailing in my application. I find these errors when i wanted to compile my code: [ERROR] Errors in 'file:/D:/workspace/ilemERP/osi/osi-client/src/main/ java/ch/ilem/erp/osi/client/panel/cust/OsiReqNewPanel.java' [ERROR] Line 985: No source code is available for type java.util.Properties; did you forget to inherit a required module? [ERROR] Line 986: No source code is available for type com.framework.genie.utilities.Utilities; did you forget to inherit a required module? [ERROR] Line 995: No source code is available for type javax.mail.Session; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.Message; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.internet.MimeMessage; did you forget to inherit a required module? [ERROR] Line 1001: No source code is available for type javax.mail.internet.InternetAddress; did you forget to inherit a required module? [ERROR] Line 1002: No source code is available for type javax.mail.Message.RecipientType; did you forget to inherit a required module? [ERROR] Line 1005: No source code is available for type javax.mail.internet.MimeUtility; did you forget to inherit a required module? [ERROR] Line 1029: No source code is available for type javax.mail.Transport; did you forget to inherit a required module? [ERROR] Line 1031: No source code is available for type com.framework.genie.log.LoggerFactory; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'ch.ilem.erp.osi.client.IlemErpOsi' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly So how can i resolve this problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problems releated to javaMail in GWT application
One of the biggest concepts to get your mind around with GWT is that while you develop everything in Java, in the end the GWT compiler converts your Java into Javascript (mostly, but some CSS HTML too). So when you create a Java class called foo.java, what will result is something like foo.js. So if in foo.java, you use java.lang.String, you think you're using the one in the standard Java JRE. But you're not. What GWT has is a large set of JRE emulated classes, written in Javascript. So the compiler knows how to convert java.lang.String into something appropriate to run in a browser. So in foo.java, you do what every good Java developer does and import something like javax.mail.Message and so on, and crank out some beautiful code. And you then ask the GWT compiler to convert that into Javascriptand it can't. It has no idea how to do javax.mail type of things in a web browsermostly because it can't. The browser is a heavily constrained runtime environment and things like filesystem access, port/packet operations (which I believe javamail does down in the bowels), data access, and whole bunch of other Java stuff can't be done in Javascript, in a web browser and therefore GWT can't do them on client. The only way to achieve this is to build a GWT client that communicates with a GWT server (preferably with GWT-RPC, but that's your call) where you can run full fledged Java and are not bound by the issues inside a web browser. I write this a lot, but it's worth mentioning again: this is not a limitation per se of GWT...all web browser based clients that run natively in Javascript are bound by the same security rules. Plugins like Flash, Silverlight and Java Applets are outside of this control umbrella. The amount of Java that is emulated in Javascript by the GWT compiler is staggering, but not infinite... Hope this helps. Later, Shaffer On Jun 4, 11:57 am, samounas elmokhtari.as...@gmail.com wrote: Please can you tell me how to use javaMail in gwt application. Because when i insert the code related to the mailing in my application. I find these errors when i wanted to compile my code: [ERROR] Errors in 'file:/D:/workspace/ilemERP/osi/osi-client/src/main/ java/ch/ilem/erp/osi/client/panel/cust/OsiReqNewPanel.java' [ERROR] Line 985: No source code is available for type java.util.Properties; did you forget to inherit a required module? [ERROR] Line 986: No source code is available for type com.framework.genie.utilities.Utilities; did you forget to inherit a required module? [ERROR] Line 995: No source code is available for type javax.mail.Session; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.Message; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.internet.MimeMessage; did you forget to inherit a required module? [ERROR] Line 1001: No source code is available for type javax.mail.internet.InternetAddress; did you forget to inherit a required module? [ERROR] Line 1002: No source code is available for type javax.mail.Message.RecipientType; did you forget to inherit a required module? [ERROR] Line 1005: No source code is available for type javax.mail.internet.MimeUtility; did you forget to inherit a required module? [ERROR] Line 1029: No source code is available for type javax.mail.Transport; did you forget to inherit a required module? [ERROR] Line 1031: No source code is available for type com.framework.genie.log.LoggerFactory; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'ch.ilem.erp.osi.client.IlemErpOsi' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly So how can i resolve this problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT internal documentation
I am looking for a document / book / tutorial providing information about GWT internals. e.g.: I am looking for information about javascript templates used, logic / concept of generating javascript code from java. Van somebody provide me the links / pointers? Thanks Sangam -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problems releated to javaMail in GWT application
Nope. You can't send email from the client as far as I'm aware. Paul -Original Message- From: Asmaa EL MOKHTARI elmokhtari.as...@gmail.com Date: Fri, 4 Jun 2010 16:22:19 To: google-web-toolkit@googlegroups.com Subject: Re: Problems releated to javaMail in GWT application *Thank you Paul for responding.But there is'nt another way to resolve this problem. Because i heared that we can insert some inheritis in the file x.gwt.xml?* 2010/6/4 Paul Grenyer paul.gren...@gmail.com Hi Send email from the server side via an RPC call. Paul -Original Message- From: samounas elmokhtari.as...@gmail.com Date: Fri, 4 Jun 2010 08:57:36 To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com Subject: Problems releated to javaMail in GWT application Please can you tell me how to use javaMail in gwt application. Because when i insert the code related to the mailing in my application. I find these errors when i wanted to compile my code: [ERROR] Errors in 'file:/D:/workspace/ilemERP/osi/osi-client/src/main/ java/ch/ilem/erp/osi/client/panel/cust/OsiReqNewPanel.java' [ERROR] Line 985: No source code is available for type java.util.Properties; did you forget to inherit a required module? [ERROR] Line 986: No source code is available for type com.framework.genie.utilities.Utilities; did you forget to inherit a required module? [ERROR] Line 995: No source code is available for type javax.mail.Session; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.Message; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.internet.MimeMessage; did you forget to inherit a required module? [ERROR] Line 1001: No source code is available for type javax.mail.internet.InternetAddress; did you forget to inherit a required module? [ERROR] Line 1002: No source code is available for type javax.mail.Message.RecipientType; did you forget to inherit a required module? [ERROR] Line 1005: No source code is available for type javax.mail.internet.MimeUtility; did you forget to inherit a required module? [ERROR] Line 1029: No source code is available for type javax.mail.Transport; did you forget to inherit a required module? [ERROR] Line 1031: No source code is available for type com.framework.genie.log.LoggerFactory; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'ch.ilem.erp.osi.client.IlemErpOsi' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly So how can i resolve this problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problems releated to javaMail in GWT application
Thank u so mutch shaffer for all these explanations.Really, i can now understand the source of the problem.But i don't khow how to use GWT-RPC is it difficult? 2010/6/4 Paul Grenyer paul.gren...@gmail.com Nope. You can't send email from the client as far as I'm aware. Paul -- *From: * Asmaa EL MOKHTARI elmokhtari.as...@gmail.com *Date: *Fri, 4 Jun 2010 16:22:19 + *To: *google-web-toolkit@googlegroups.com *Subject: *Re: Problems releated to javaMail in GWT application *Thank you Paul for responding.But there is'nt another way to resolve this problem. Because i heared that we can insert some inheritis in the file x.gwt.xml?* 2010/6/4 Paul Grenyer paul.gren...@gmail.com Hi Send email from the server side via an RPC call. Paul -Original Message- From: samounas elmokhtari.as...@gmail.com Date: Fri, 4 Jun 2010 08:57:36 To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com Subject: Problems releated to javaMail in GWT application Please can you tell me how to use javaMail in gwt application. Because when i insert the code related to the mailing in my application. I find these errors when i wanted to compile my code: [ERROR] Errors in 'file:/D:/workspace/ilemERP/osi/osi-client/src/main/ java/ch/ilem/erp/osi/client/panel/cust/OsiReqNewPanel.java' [ERROR] Line 985: No source code is available for type java.util.Properties; did you forget to inherit a required module? [ERROR] Line 986: No source code is available for type com.framework.genie.utilities.Utilities; did you forget to inherit a required module? [ERROR] Line 995: No source code is available for type javax.mail.Session; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.Message; did you forget to inherit a required module? [ERROR] Line 998: No source code is available for type javax.mail.internet.MimeMessage; did you forget to inherit a required module? [ERROR] Line 1001: No source code is available for type javax.mail.internet.InternetAddress; did you forget to inherit a required module? [ERROR] Line 1002: No source code is available for type javax.mail.Message.RecipientType; did you forget to inherit a required module? [ERROR] Line 1005: No source code is available for type javax.mail.internet.MimeUtility; did you forget to inherit a required module? [ERROR] Line 1029: No source code is available for type javax.mail.Transport; did you forget to inherit a required module? [ERROR] Line 1031: No source code is available for type com.framework.genie.log.LoggerFactory; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'ch.ilem.erp.osi.client.IlemErpOsi' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly So how can i resolve this problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send
Color Picker that work for google wave gadget
i need a color picker that work in a google wave gadget. i tried auroris, but when it show broken image link on where the colors are (the vertical bar and the color map). many other color picker also have this problem (some use css file, but it can't find the css file cos it use relative path and it try to find the file in the wave server rather than my server that is hosting the gadget), it would be great if GWT has it own color picker -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Optical Character Recognition
not sure if this is the correct place to ask, is there a OCR lib that recognize other language such chinese character or korean character? and it must not restrict on the size of the character (i try google OCR, i input a png image where i hand draw some alphabet,it dont work). it would better if the OCR does not need to call a server to parse it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Root Panel
hi i have created Ui using rootpanel ,nut i have some problem using rootpanel i want use other than rootpanel is it possible to create ui with out using rootpanel.plz help me in get rid of this. Thanks Regards bobby -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Simple working example of the Data Presentation Widget CellTable
Spring Roo has some example for last milestone. But compared with above examples it looks like horrible :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
An example Place Service(Activity Manager) implementation maintains complex dependency between presenters in MVP
When I looked at MVP related articles, demos and so many implementations, I keep ask myself following questions. (1) How to make Place definition simple yet flexible? (2) How to elegantly decouple presenters and decouple a presenter and it's container and it's children presenters? (3) What is the responsibility of Place Service (or Activity Manager in GWT2.1)? and what does the API look like? Since I struggled so long to try to find the answers, I'd like to share what I got so far (I've written a Place Service implementation). My own humble opinion regarding these questions are: (1). Most of time, place can be just a string but some times it need to carry parameters or even extend from other places. Therefore, a Place should be an interface instead of concrete class so enum can be used to define simple static places. public enum Pages implements PagePlace, GenericPlace { HOME, HELP, SECURITY_PERMISSION, SECURITY_ROLE // ... @override public String getHistoryToken() { return name().toLowerCase(); } } There are places which carry history tokens but some are not, for example, header and footer of application are places but does not require history token. public enum CommonComponents implements ComponentPlace { ROOT, HEADER, FOOTER, TOPMENU, SUBMENU, HELPCENTER, MAIN } For the places need to carry a parameter, it'll need to be defined as a class instead of enum. public class IdentifiablePlaceExample extends IdentifiablePlace implements PagePlace, GenericPlace { // Runtime place instance will use this constructor to create place with identifier public IdentifiablePlaceExample(String identifier) { this.identifier = identifier; } // Return history token for Browser - #!(token):(identifier) will be displayed in browser url @Override public String getHistoryToken() { return history-token-you-want; } } (2). In my opinion, a presenter should NOT attach the corresponding view to DOM or a container presenter itself. public interface Presenter { public Viewable bind(Place place); public void unbind(Place place); } public interface Container extends Presenter { public void showChild(Place place, Viewable childView); public void closeChild(Place place, Viewable childView); } In my Place Service implementation, Place Service knows the dependency between presenters but not presenter themselves. Therefore, when a view been required, Place Service will call the Presenter.bind(Place place) function to ask the corresponding Presenter to provide a View instance. After that, Place Service will find out which Container (a special type of Presenter) is responsible for displaying that type of Place and call Container.showChild(Place place, Viewable view) function to let the Container handle displaying the view in the container view. E.g. display a particular tab page (The View returned by the Presenter) in a tab container (The Container presenter). This way, in my main presenter which handles multiple children pages will no longer need to know any of other presenters but a generic Place type. public class MainPresenter implements Container { @Override public void closeChild(Place place, Viewable childView) { view.getPageContainer().remove(childView.asWidget()); } @Override public void showChild(Place place, Widget childView) { if (place instanceof PagePlace) { view.getPageContainer().add(childView.asWidget()); } } } (3). Besides controller simple presenters, a Place Service should provide automatic (invisible to Presenters) bind/unbind support to complex dependency graph. E.g. Root (C) - Header (P) - PageContainer (C) - Login (P) - Main (C) - Page1 (P) - Page2 (P) - Page3 (P) - ... - Footer (P) To build this kind of complex graph, I've created a Place Binder to simplify configuration and used a GIN module to centralize them. // setToRoot is a special function to let place service know when to stop scanning. bind(root).serve(Places.ROOT).setToRoot().contains(Places.Header, Places.PageContainer, Places.Footer); bind(header).serve(Places.HEADER); bind(pageContainer).serve(Places.PAGE_CONTAINER).contains(Places.Login, Places.Main); // setToDefault make the current presenter default entry of application (If history token is not specified by user) bind(login).serve(Places.LOGIN).setToDefault(); // contains function can take a Place class type instead of specific instance, this way any Place extends PagePlace will be handled by MainPresenter. bind(main).serve(Places.MAIN).contains(PagePlace.class); bind(page1).serve(Pages.PAGE1); bind(page2).serve(Pages.PAGE2); bind(page3).serve(Pages.PAGE3); bind(footer).serve(Places.FOOTER); After configuring the graph, we can navigate to any HistoryPlace through Place Service API or
GWT2.1 M1- Issues with KeyPressEvent and registering the Enter key pressed
Hi I just updated to GWT 2.1 Milestone 1 build and after that I am having problems with registering the Enter key pressed in a text box. If I have the following block , it never enters it. if (event.getCharCode() == KeyCodes.KEY_ENTER) { // DO SOMETHING IN HER } I tried printing out the event.getCharCode() when the ENTER KEY is pressed and all I get is a blank String. Was this changed on purpose or is this a bug ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
cookies and expiry
Hi all, Just been pondering my head over this piece of code. Date expires = new Date(new Date().getTime() + (1000 * 60 * 60 * 24 * 30)); Cookies.setCookie(token, token, expires); Cookies.setCookie(secret, secret, expires, localhost, /, true); Cookies.setCookie(uname, ram, null); Can anyone correct me. First two calls completely fail to set cookies, last one does set it but expiry time is set to current browser session. (looking at googles test code for last call should have set to never expire) Cheers! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to declare a dynamic generate image in UiBinder
Hello, I am facing pretty much the same problem and I thought of using the g:Image tag but the thing is that I don't knot how many pictures I will receive (It's a gallery), and AFAIK there is no iteration mechanism in UI:Binder, so the only option is to manually manage this in Java code, right? On 3 Cze, 23:57, Thomas Broyer t.bro...@gmail.com wrote: On 3 juin, 16:52, cody lse...@gmail.com wrote: Hi, Below line is to declare a static a image 'default_photo.jpg' into 'photo' field ui:image field='photo' src='default_photo.jpg'/ So how do I declare a dynamic image which will generated from server side? ui:image declares an ImageResource, which must be known at compile- time (to be @sprite-able for instance). Maybe you're just looking for img ui:field='photo' alt='Er...' / and then photo.setSrc(urlOnTheServer) or g:Image ui:field='photo' altText='Er...' / and then photo.setUrl(urlOnTheServer) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Prevent Selection of Image
Hi, I've got several Image Widgets on my Site. Is there a way to prevent the selection with the mouse? Selection of an image means its getting a blue background and being draggable to other windows. Can you think of an HTML or GWT solution? I read that one option was to add an mouseMove event handler and let it return false;. This was a pure JavaScript solution, not related to GWT. Sincerely, Erik -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Root Panel
You should not use RootPanel in the UiBinder. You need to use any of the types extending SimplePanel or LayoutPanel. RootPanel and his equivalent RootLayoutPanel represents the BODY in the HTML page. At some point in the onModuleLoad() you need to have RootPanel.get().add(new MyWidget()); Take a look at: http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html for a guideline of how to use UiBinder. On Jun 4, 8:55 am, bob dveeraprasad...@gmail.com wrote: hi i have created Ui using rootpanel ,nut i have some problem using rootpanel i want use other than rootpanel is it possible to create ui with out using rootpanel.plz help me in get rid of this. Thanks Regards bobby -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Prevent Selection of Image
Hi Use div style='background: url(image.png); GWT can help you writing this code. http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#Image_Sprites Other option is to try to prevent the browser for taking the default action. (I did not try myself) image.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { event.preventDefault(); } }); Regards -Fran On Jun 4, 10:51 am, Erik M. erik.rost...@googlemail.com wrote: Hi, I've got several Image Widgets on my Site. Is there a way to prevent the selection with the mouse? Selection of an image means its getting a blue background and being draggable to other windows. Can you think of an HTML or GWT solution? I read that one option was to add an mouseMove event handler and let it return false;. This was a pure JavaScript solution, not related to GWT. Sincerely, Erik -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
can not set breakpoint (2)
Hi Everybody, In GWT 2 Dev Mode, I can't make the breakpoints work in eclipse : client app doesn't stop on any breakpoint. My config is: GWT 2.0.3, Eclipse 3.4.2 + GWT Plugin 1.3.2, JDK 1.6.0_20. Firefox 3.6.3 (+ FF GWT Plugin) As I suspected something wrong in the structure of my project in eclipse, I tried with the GWT sample Hello. Thus, after running ant eclipse.generate on Hello, I imported Hello into Eclipse. Here is an extract of the client code: public void onModuleLoad() { Button b = new Button(Click me, new ClickHandler() { public void onClick(ClickEvent event) { Window.alert(Hello, AJAX); } }); I put 2 breakpoints on lines Button b = ... and Window.alert... I tried 2 ways to run the dev mode. First way: select the file Hello.launch and then Run (Ctrl+F11). This opens the GWT Development Mode shell. Second way: In Properties window check the option Use Google Web Toolkit, then select menu Run As Web Application. This opens the Development Mode eclipse tab. During both trials I could play with the application running into the browser, and the breakpoints didn't worked in eclipse. Does anybody could help me find what is wrong ? Thanks Yves -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: can not set breakpoint (2)
Maybe try Debug As instead of Run As, also make sure the ? gwt.codesvr=... parameter is in your browser's url On Jun 4, 12:45 pm, yves yves.ko...@gmail.com wrote: Hi Everybody, In GWT 2 Dev Mode, I can't make the breakpoints work in eclipse : client app doesn't stop on any breakpoint. My config is: GWT 2.0.3, Eclipse 3.4.2 + GWT Plugin 1.3.2, JDK 1.6.0_20. Firefox 3.6.3 (+ FF GWT Plugin) As I suspected something wrong in the structure of my project in eclipse, I tried with the GWT sample Hello. Thus, after running ant eclipse.generate on Hello, I imported Hello into Eclipse. Here is an extract of the client code: public void onModuleLoad() { Button b = new Button(Click me, new ClickHandler() { public void onClick(ClickEvent event) { Window.alert(Hello, AJAX); } }); I put 2 breakpoints on lines Button b = ... and Window.alert... I tried 2 ways to run the dev mode. First way: select the file Hello.launch and then Run (Ctrl+F11). This opens the GWT Development Mode shell. Second way: In Properties window check the option Use Google Web Toolkit, then select menu Run As Web Application. This opens the Development Mode eclipse tab. During both trials I could play with the application running into the browser, and the breakpoints didn't worked in eclipse. Does anybody could help me find what is wrong ? Thanks Yves -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Google Web Toolkit will release new GWT Developer Plugin for Chrome on Linux ?????
Download the plugin from here, point #2: http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html I'm curious if they are smart to figure out your OS and donwload the right version :-) So, don't be shy to reply me back, please. Cheers! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: cross-platform
Here I've wrote few interesting things about GWT, maybe it helps you :-) http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html Cheers! PS: to quick answer to your question, it works in any browser that can run javascript. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Basic support question about gwt
Here I've wrote some interesting things about GWT; maybe it helps you :-) http://ui-programming.blogspot.com/2009/12/update-your-application-to... Cheers! PS: to quick answer to your question, it works in any browser that can run javascript. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Basic support question about gwt
oops -- wrong link -- This is the complete link: http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html Cheers! It's working on iPhone/iPad -- though the application must be optimized very well, due to the not so powerful devices :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.0
If you want more info about GWT you can find it here: http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html Cheers! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Developer Plugin is not found in Firefox
Download the GWT dev plugin from here, point #2: http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html Cheers! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Authenticating User for GWT-Data (Contacts) in GWT App
Hello: I'm using the latest gwt-gdata package to allow users of my app (written in GWT) to access their Google contacts. But the problem I'm having is that when I check for a valid login using the User.login() method the package takes the user to a new page to authenticate/login and then I lose all state of my GWT application. So my question is this: Is there a way to do an in-app authentication that does not force the browser to go to a new site? If someone has some sample code illustrating this I would appreciate it. Thanks! Chri -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Design Problem
Nice GWT books you can find here ... http://gwt-books.blogspot.com/ Cheers! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do I detect Mouse Up, Mouse Out, Mouse Over, etc on Grid Cells?
Do you use pure GWT grid, or somthing else from, let's say, SmartGWT or GXT, or even GWT-Ext ? 'cause it might be different fromm each another. Cheers! PS: how you change cell background and other GWT hints, you can find here: http://ui-programming.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Google Web Toolkit will release new GWT Developer Plugin for Chrome on Linux ?????
To be more specific, we solve our issue of GWT 2.0.3 and 2.1.0.M1 in Debian 5.04 by using Mozilla Firefox and Mozilla plugins rather than using the default debian version of firefox browser. Hope this can save someone an hour or so. Duong BaTien On Jun 4, 1:24 pm, Sorinel C scristescu...@hotmail.com wrote: Download the plugin from here, point #2: http://ui-programming.blogspot.com/2009/12/update-your-application-to... I'm curious if they are smart to figure out your OS and donwload the right version :-) So, don't be shy to reply me back, please. Cheers! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RootPanel vs RootLayoutPanel
I'm new to GWT and trying to put together a simple login screen that displays an alert window when the user presses the Login button. The layout is done using UIBinder in a g:DockLayoutPanel. Which means that my LoginWindow class has to be added to the RootLayoutPanel in the onModuleLoad() function of my EntryPoint class: public void onModuleLoad() { DockLayoutPanel root = uiBinder.createAndBindUi(this); RootLayoutPanel.get().add(root); } However, none of the @UIHandler functions get triggered. If I instead add the LoginWindow to the RootPanel, nothing gets shown, but from what I've read events should then work: DockLayoutPanel root = uiBinder.createAndBindUi(this); DockLayoutPanel root = uiBinder.createAndBindUi(this); RootPanel.get().add(root); } Now, I may be missing something very simple, but I haven't been able to find anything online that describes how to fix this problem. My question basically boils down to, how do you enable event triggering of UIBinder layouts with nothing in the RootPanel? Thanks! John -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
SimplePager with UiBinder
Hello, I'm trying to get a CellTable example working with the UiBinder, and I'm getting the following error: [ERROR] [tree] h:SimplePager ui:field='pager' missing required attribute(s): location view Element h:SimplePager ui:field='pager' (PeopleWidget.ui.xml:9) Here's my ui.xml: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:h='urn:import:com.google.gwt.user.cellview.client' g:VerticalPanel h:CellTable ui:field=peopletable /h:CellTable h:SimplePager ui:field=pager /h:SimplePager /g:VerticalPanel /ui:UiBinder The error makes it look like I'm missing an attribute in my SimplePager definition, but I'm not sure what it would be. Anyone have any ideas? Thanks, Chris -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Asynchronous callback
It's a servlet request, just like any other request. I don't think there is a tremendous amount of overhead ... the gwt framework just has to dispatch the request to the proper method and deserialize whatever you passed. Making a request is expensive in general, but I don't think rpc calls are substantially more expensive than any other request. What you do to compose the response could be expensive, though. On Jun 2, 11:42 pm, Ren rentius2...@gmail.com wrote: Hi Everyone. How expensive is the Asynchronous callback to the Impl class? Is it good practice to keep the asynchronous calls to a minimum? I see it the same as using a custom taglib to perform an action on the back end, example: checking permission before displaying a table or a hyperlink. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Fix issue 4423 - RPC ProxyCreator doesn't support methods with Type Parameters (issue575801)
With that new found information you have presented it certainly seems as though it is a problem with the JDT as opposed to the proxy generator. It seems to me the best solution would be to fix the JDT rather than fix up my band-aid solution (which is not entirely correct). Playing around further I have managed to narrow it down the the following that produces the problem. The cause of the problem appears to be in that the I type parameter references the O type parameter. public class Broken implements EntryPoint { static class InO { } static interface Interface { I extends InO, O void method(I in); } public void onModuleLoad() { final Interface impl = new Interface() { public void method(final In in) { } }; } } On 2010/06/03 21:50:06, Lex wrote: Thanks for the extra detail. I can verify that the given interface does not translate correctly. The surprising thing is that this problem was supposed to be fixed in JDT 3.4.2, which is exactly the version GWT is using: https://bugs.eclipse.org/bugs/show_bug.cgi?id=243820 Maybe we aren't really using 3.4.2, or maybe the fix really isn't in there, or maybe this is a new instance of that JDT bug. Further investigation is needed to see which. Alternatively, we could generate type parameters. However, it requires more development of the patch. One thing is that the bounds on the type parameters need to be added. Also, what about type parameters of the enclosing class? Those would need to be handled as well. Using erased types means that all these questions go away, so it would be great if we can simply upgrade our version of the JDT to solve the problem. http://gwt-code-reviews.appspot.com/575801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Command pattern and GWT.runAsync
Less maintenance on the async, declarative transaction management, undo, batching, less web.xml tweeking, ... there are many reasons why we also use a command pattern. On Thu, Jun 3, 2010 at 3:11 PM, Miroslav Pokorny miroslav.poko...@gmail.com wrote: Why use a uber command pattern for all services. This only leads to some controller code to dispatch the command on the server which means everything gets funneled thru a single point with no real gain. Keep the services separate each w/ their own respective end points and service interfaces. That way the exact problem described below is also avoided as an added benefit. Command pattern for browser apps is so struts and imho not needed for GWT RPC. After all what do you gain ? On Sun, May 30, 2010 at 10:35 PM, Julio Faerman jfaer...@gmail.com wrote: Hi, I am trying to split a GWT app that uses the command (action) pattern. The problem is that GWT.create(ActionService.class) causes every subclass of the return and parameter types to be included in the initial fragment. For instance, my action interface is: public interface ActionService extends RemoteService { T extends Response, V extends Request T execute(V req) throws ActionFailedException; } the problem is that module1.SomeRequest and module2.OtherRequest gets included in the initial fragment. Do you see a way around this? Thanks, Julio Faerman -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- mP -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Tabless
OMG, That will severly impact existing applications. We have a rule that states that we should not use deprecated methods or types ... This means rewriting hundred thousands of lines of GUI code... I'm not sure how I will sell this to my development manager! And do the new Layout widgets actually fix all issues we had with the old widgets ? David On Thu, Jun 3, 2010 at 7:55 PM, Lex Spoon sp...@google.com wrote: On Thu, Jun 3, 2010 at 12:56 PM, Ray Ryan rj...@google.com wrote: No argument. And since we've never, ever managed to actually delete a deprecated class so far as I know, the issue may not come up for a while… There are some counterexamples. For example: http://gwt-code-reviews.appspot.com/139804/show To get deprecated things removed, it's key that users have something to switch to. Lex -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Command pattern and GWT.runAsync
Does it really make sense to give all serivices the same intf. Im sure because everything comes back to a big switch of some sort to dispatch the different types of command results. With different end points this problem does not exist. If you really must batch pick the ones that actually belong to each other, as they are a logical unit and sharing an intf makes sense. The command pattern is for operations that are related its not intended for each and every type of operation no matter how unrelated they are. GWT buys you great type safety something one loses with Javascript and this uber command pattern throws all that out. On Fri, Jun 4, 2010 at 7:13 PM, David david.no...@gmail.com wrote: Less maintenance on the async, declarative transaction management, undo, batching, less web.xml tweeking, ... there are many reasons why we also use a command pattern. On Thu, Jun 3, 2010 at 3:11 PM, Miroslav Pokorny miroslav.poko...@gmail.com wrote: Why use a uber command pattern for all services. This only leads to some controller code to dispatch the command on the server which means everything gets funneled thru a single point with no real gain. Keep the services separate each w/ their own respective end points and service interfaces. That way the exact problem described below is also avoided as an added benefit. Command pattern for browser apps is so struts and imho not needed for GWT RPC. After all what do you gain ? On Sun, May 30, 2010 at 10:35 PM, Julio Faerman jfaer...@gmail.com wrote: Hi, I am trying to split a GWT app that uses the command (action) pattern. The problem is that GWT.create(ActionService.class) causes every subclass of the return and parameter types to be included in the initial fragment. For instance, my action interface is: public interface ActionService extends RemoteService { T extends Response, V extends Request T execute(V req) throws ActionFailedException; } the problem is that module1.SomeRequest and module2.OtherRequest gets included in the initial fragment. Do you see a way around this? Thanks, Julio Faerman -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- mP -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- mP -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Command pattern and GWT.runAsync
Miroslav, There are plenty of solutions to avoid a big switch statement. I'm using a combination of inheritance and the visitor pattern to group things. By using annotations I can even build a repository of CommandHandlers at startup time with 0 configuration. So why not ? Every application has the right for their design choices, no ? Or can you give the ultimate approach that we all should be using ? David On Fri, Jun 4, 2010 at 2:25 PM, Miroslav Pokorny miroslav.poko...@gmail.com wrote: Does it really make sense to give all serivices the same intf. Im sure because everything comes back to a big switch of some sort to dispatch the different types of command results. With different end points this problem does not exist. If you really must batch pick the ones that actually belong to each other, as they are a logical unit and sharing an intf makes sense. The command pattern is for operations that are related its not intended for each and every type of operation no matter how unrelated they are. GWT buys you great type safety something one loses with Javascript and this uber command pattern throws all that out. On Fri, Jun 4, 2010 at 7:13 PM, David david.no...@gmail.com wrote: Less maintenance on the async, declarative transaction management, undo, batching, less web.xml tweeking, ... there are many reasons why we also use a command pattern. On Thu, Jun 3, 2010 at 3:11 PM, Miroslav Pokorny miroslav.poko...@gmail.com wrote: Why use a uber command pattern for all services. This only leads to some controller code to dispatch the command on the server which means everything gets funneled thru a single point with no real gain. Keep the services separate each w/ their own respective end points and service interfaces. That way the exact problem described below is also avoided as an added benefit. Command pattern for browser apps is so struts and imho not needed for GWT RPC. After all what do you gain ? On Sun, May 30, 2010 at 10:35 PM, Julio Faerman jfaer...@gmail.com wrote: Hi, I am trying to split a GWT app that uses the command (action) pattern. The problem is that GWT.create(ActionService.class) causes every subclass of the return and parameter types to be included in the initial fragment. For instance, my action interface is: public interface ActionService extends RemoteService { T extends Response, V extends Request T execute(V req) throws ActionFailedException; } the problem is that module1.SomeRequest and module2.OtherRequest gets included in the initial fragment. Do you see a way around this? Thanks, Julio Faerman -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- mP -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- mP -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Command pattern and GWT.runAsync
Hiho The initial problem only exists because of the introduction of a uber cmd pattern. Wish avoid it break up all those bits into logical groups. You alreAdy know there a always tradeoffs. In this case uber cmd pat means code splitting can't work perfectly because of reachability due to the command intf. That's life... On 04/06/2010, at 11:09 PM, David david.no...@gmail.com wrote: Miroslav, There are plenty of solutions to avoid a big switch statement. I'm using a combination of inheritance and the visitor pattern to group things. By using annotations I can even build a repository of CommandHandlers at startup time with 0 configuration. The command intf and impl it is still something it's just done in java. Sure it's more concise but it's not nothing- yes I'm being pedantic. So why not ? Every application has the right for their design choices, no ? Or can you give the ultimate approach that we all should be using ? Yes and discussed above sometimes things don't alwyas work out perfectly - that's life David On Fri, Jun 4, 2010 at 2:25 PM, Miroslav Pokorny miroslav.poko...@gmail.com wrote: Does it really make sense to give all serivices the same intf. Im sure because everything comes back to a big switch of some sort to dispatch the different types of command results. With different end points this problem does not exist. If you really must batch pick the ones that actually belong to each other, as they are a logical unit and sharing an intf makes sense. The command pattern is for operations that are related its not intended for each and every type of operation no matter how unrelated they are. GWT buys you great type safety something one loses with Javascript and this uber command pattern throws all that out. On Fri, Jun 4, 2010 at 7:13 PM, David david.no...@gmail.com wrote: Less maintenance on the async, declarative transaction management, undo, batching, less web.xml tweeking, ... there are many reasons why we also use a command pattern. On Thu, Jun 3, 2010 at 3:11 PM, Miroslav Pokorny miroslav.poko...@gmail.com wrote: Why use a uber command pattern for all services. This only leads to some controller code to dispatch the command on the server which means everything gets funneled thru a single point with no real gain. Keep the services separate each w/ their own respective end points and service interfaces. That way the exact problem described below is also avoided as an added benefit. Command pattern for browser apps is so struts and imho not needed for GWT RPC. After all what do you gain ? On Sun, May 30, 2010 at 10:35 PM, Julio Faerman jfaer...@gmail.com wrote: Hi, I am trying to split a GWT app that uses the command (action) pattern. The problem is that GWT.create(ActionService.class) causes every subclass of the return and parameter types to be included in the initial fragment. For instance, my action interface is: public interface ActionService extends RemoteService { T extends Response, V extends Request T execute(V req) throws ActionFailedException; } the problem is that module1.SomeRequest and module2.OtherRequest gets included in the initial fragment. Do you see a way around this? Thanks, Julio Faerman -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- mP -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- mP -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8220 committed - Merging r8209 from the 2.1 I/O branch into trunk....
Revision: 8220 Author: sp...@google.com Date: Fri May 28 05:09:29 2010 Log: Merging r8209 from the 2.1 I/O branch into trunk. Review by: mmen...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8220 Modified: /trunk/user/src/com/google/gwt/user/client/impl/DOMImplTrident.java === --- /trunk/user/src/com/google/gwt/user/client/impl/DOMImplTrident.java Thu Feb 25 06:49:47 2010 +++ /trunk/user/src/com/google/gwt/user/client/impl/DOMImplTrident.java Fri May 28 05:09:29 2010 @@ -24,15 +24,14 @@ * {...@link com.google.gwt.user.client.impl.DOMImpl}. */ public abstract class DOMImplTrident extends DOMImpl { - @SuppressWarnings(unused) - private static JavaScriptObject dispatchEvent; + private static JavaScriptObject callDispatchEvent; @SuppressWarnings(unused) - private static JavaScriptObject dispatchDblClickEvent; + private static JavaScriptObject callDispatchDblClickEvent; @SuppressWarnings(unused) - private static JavaScriptObject dispatchUnhandledEvent; + private static JavaScriptObject callDispatchUnhandledEvent; /** * Let every GWT app on the page preview the current event. If any app cancels @@ -106,7 +105,7 @@ return @com.google.gwt.user.client.DOM::previewEvent(Lcom/google/gwt/user/client/Event;)($wnd.event); }); -@com.google.gwt.user.client.impl.DOMImplTrident::dispatchEvent = $entry(function() { +var dispatchEvent = $entry(function() { // IE doesn't define event.currentTarget, so we squirrel it away here. It // also seems that IE won't allow you to add expandos to the event object, // so we have to store it in a global. This is ok because only one event @@ -139,7 +138,7 @@ @com.google.gwt.dom.client.DOMImplTrident::currentEventTarget = oldEventTarget; }); -@com.google.gwt.user.client.impl.DOMImplTrident::dispatchDblClickEvent = $entry(function() { +var dispatchDblClickEvent = $entry(function() { var newEvent = $doc.createEventObject(); // Synthesize a click event if one hasn't already been synthesized. // Issue 4027: fireEvent is undefined on disabled input elements. @@ -147,7 +146,7 @@ $wnd.event.srcElement.fireEvent('onclick', newEvent); } if (this.__eventBits 2) { - @com.google.gwt.user.client.impl.DOMImplTrident::dispatchEvent.call(this); +dispatchEvent.call(this); } else if ($wnd.event.returnValue == null) { // Ensure that we preview the event even if we aren't handling it. $wnd.event.returnValue = true; @@ -155,16 +154,34 @@ } }); - @com.google.gwt.user.client.impl.DOMImplTrident::dispatchUnhandledEvent = $entry(function() { +var dispatchUnhandledEvent = $entry(function() { this.__gwtLastUnhandledEvent = $wnd.event.type; - @com.google.gwt.user.client.impl.DOMImplTrident::dispatchEvent.call(this); + dispatchEvent.call(this); }); +// Hook the above functions on the current window object, and +// create a caller function for each one that indirects via +// the global object. Make sure that the caller function has +// no direct reference to the GWT program. +var moduleName = @com.google.gwt.core.client.GWT::getModuleName()().replace(/\./g,'_'); + +$wnd['__gwt_dispatchEvent_' + moduleName] = dispatchEvent; +@com.google.gwt.user.client.impl.DOMImplTrident::callDispatchEvent = new Function('w', + 'return function() { w.__gwt_dispatchEvent_' + moduleName + '.call(this) }')($wnd); + +$wnd['__gwt_dispatchDblClickEvent_' + moduleName] = dispatchDblClickEvent; + @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchDblClickEvent = new Function('w', + 'return function() { w.__gwt_dispatchDblClickEvent_' + moduleName + '.call(this)}')($wnd); + +$wnd['__gwt_dispatchUnhandledEvent_' + moduleName] = dispatchUnhandledEvent; + @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchUnhandledEvent = new Function('w', + 'return function() { w.__gwt_dispatchUnhandledEvent_' + moduleName + '.call(this)}')($wnd); + // We need to create these delegate functions to fix up the 'this' context. // Normally, 'this' is the firing element, but this is only true for // 'onclick = ...' event handlers, not for handlers setup via attachEvent(). -var bodyDispatcher = $entry(function() { @com.google.gwt.user.client.impl.DOMImplTrident::dispatchEvent.call($doc.body); }); -var bodyDblClickDispatcher = $entry(function() { @com.google.gwt.user.client.impl.DOMImplTrident::dispatchDblClickEvent.call($doc.body); }); +var bodyDispatcher = $entry(function() { dispatchEvent.call($doc.body); }); +var bodyDblClickDispatcher = $entry(function() { dispatchDblClickEvent.call($doc.body); }); $doc.body.attachEvent('onclick', bodyDispatcher); $doc.body.attachEvent('onmousedown',
[gwt-contrib] [google-web-toolkit] r8221 committed - Merges r7983 from the 2.1 I/O branch into trunk....
Revision: 8221 Author: gwt.mirror...@gmail.com Date: Fri Jun 4 08:24:52 2010 Log: Merges r7983 from the 2.1 I/O branch into trunk. This disables external DTD fetches when validating gwt.xml files. Review by: mmen...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8221 Modified: /trunk/dev/core/src/com/google/gwt/dev/ServletValidator.java === --- /trunk/dev/core/src/com/google/gwt/dev/ServletValidator.java Tue Mar 30 12:00:11 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/ServletValidator.java Fri May 28 05:59:34 2010 @@ -185,6 +185,9 @@ SAXParserFactory fac = SAXParserFactory.newInstance(); fac.setValidating(false); fac.setNamespaceAware(false); + fac.setFeature( + http://apache.org/xml/features/nonvalidating/load-external-dtd;, + false); SAXParser parser = fac.newSAXParser(); parser.getXMLReader().setFeature( http://xml.org/sax/features/validation;, false); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] FileUpload.setEnabled(false) causing invalid access of stack red zone 0x141055ff8 rip=0x101098a05
I'm seeing something fairly funky occur if I disable a FormUpload widget in a FormPanel.onSubmit() handler (here's the code: http://pastebin.com/SSSqGtB1). Basically the Dev server and browser crashes with the following console message: Invalid access of stack red zone 0x141055ff8 rip=0x101098a05 Running it with log=SPAM prints the following output over and over and over again until the crash: Invoke native method @com.google.gwt.dom.client.Element::setPropertyBoolean(Ljava/lang/String;Z) - this=JavaScript object(12) - arg[0]=string: 'disabled' - arg[1]=bool: true - return void Invoke native method @com.google.gwt.dom.client.Element::setPropertyBoolean(Ljava/lang/String;Z) - this=JavaScript object(7) - arg[0]=string: 'disabled' - arg[1]=bool: true - return void What's the expected behavior if a FormUpload is disabled in the FormPanel.onSubmit() handler (if disabling a FormUpload is kind of a stupid thing to do, uh, FHMP)? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8224 committed - Merges r8060 from the 2.1 I/O branch into trunk....
Revision: 8224 Author: gwt.mirror...@gmail.com Date: Fri May 28 09:34:24 2010 Log: Merges r8060 from the 2.1 I/O branch into trunk. This lazy initializes enum maps. Review by: mmen...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8224 Modified: /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java /trunk/user/super/com/google/gwt/emul/java/lang/Class.java /trunk/user/super/com/google/gwt/emul/java/lang/Enum.java /trunk/user/test/com/google/gwt/dev/jjs/test/EnumsTest.java === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java Fri Apr 2 14:35:01 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java Fri May 28 09:34:24 2010 @@ -94,25 +94,37 @@ if (classType instanceof JEnumType) { JEnumType enumType = (JEnumType) classType; JMethod valuesMethod = null; +JMethod valueOfMethod = null; for (JMethod methodIt : enumType.getMethods()) { if (values.equals(methodIt.getName())) { if (methodIt.getParams().size() != 0) { continue; } valuesMethod = methodIt; -break; + } + if (valueOf.equals(methodIt.getName())) { +if (methodIt.getParams().size() != 1) { + continue; +} +valueOfMethod = methodIt; } } if (valuesMethod == null) { throw new InternalCompilerException( Could not find enum values() method); } -JsniMethodRef jsniMethodRef = new JsniMethodRef(info, null, -valuesMethod, program.getJavaScriptObject()); -call.addArg(jsniMethodRef); +if (valueOfMethod == null) { + throw new InternalCompilerException( + Could not find enum valueOf() method); +} +call.addArg(new JsniMethodRef(info, null, valuesMethod, +program.getJavaScriptObject())); +call.addArg(new JsniMethodRef(info, null, valueOfMethod, +program.getJavaScriptObject())); } else if (isEnumOrSubclass) { // A subclass of an enum class call.addArg(program.getLiteralNull()); +call.addArg(program.getLiteralNull()); } } else if (type instanceof JArrayType) { JArrayType arrayType = (JArrayType) type; === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java Fri Apr 2 11:54:38 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java Fri May 28 09:34:24 2010 @@ -95,7 +95,6 @@ import com.google.gwt.dev.jjs.ast.js.JsniFieldRef; import com.google.gwt.dev.jjs.ast.js.JsniMethodBody; import com.google.gwt.dev.jjs.ast.js.JsniMethodRef; -import com.google.gwt.dev.jjs.ast.js.JsonObject; import com.google.gwt.dev.js.ast.JsContext; import com.google.gwt.dev.js.ast.JsExpression; import com.google.gwt.dev.js.ast.JsModVisitor; @@ -342,10 +341,8 @@ } public void processEnumType(JEnumType type) { - // Create a JSNI map for string-based lookup. - JField mapField = createEnumValueMap(type); - // Generate the synthetic values() and valueOf() methods. + JField valuesField = null; for (JMethod method : type.getMethods()) { currentMethod = method; if (values.equals(method.getName())) { @@ -353,8 +350,15 @@ continue; } currentMethodBody = (JMethodBody) method.getBody(); - writeEnumValuesMethod(type); -} else if (valueOf.equals(method.getName())) { + valuesField = writeEnumValuesMethod(type); +} +currentMethodBody = null; +currentMethod = null; + } + // Generate the synthetic values() and valueOf() methods. + for (JMethod method : type.getMethods()) { +currentMethod = method; +if (valueOf.equals(method.getName())) { if (method.getParams().size() != 1) { continue; } @@ -362,7 +366,7 @@ continue; } currentMethodBody = (JMethodBody) method.getBody(); - writeEnumValueOfMethod(type, mapField); + writeEnumValueOfMethod(type, valuesField); } currentMethodBody = null; currentMethod = null; @@ -2090,28 +2094,6 @@ JLocal local, JExpression value) { return new JDeclarationStatement(info, new JLocalRef(info, local), value); } - -private JField createEnumValueMap(JEnumType type) { - SourceInfo sourceInfo = type.getSourceInfo().makeChild( - JavaASTGenerationVisitor.class, enum value lookup map); - JsonObject map = new JsonObject(sourceInfo, program.getJavaScriptObject()); - for (JEnumField field : type.getEnumList()) { -// JSON maps require leading underscores to prevent collisions. -
[gwt-contrib] [google-web-toolkit] r8225 committed - Fix checkstyle warning....
Revision: 8225 Author: gwt.mirror...@gmail.com Date: Fri Jun 4 10:53:37 2010 Log: Fix checkstyle warning. Patch by: jat Review by: spoon http://code.google.com/p/google-web-toolkit/source/detail?r=8225 Modified: /trunk/user/super/com/google/gwt/emul/java/lang/Math.java === --- /trunk/user/super/com/google/gwt/emul/java/lang/Math.java Mon Feb 22 13:53:24 2010 +++ /trunk/user/super/com/google/gwt/emul/java/lang/Math.java Fri Jun 4 10:53:37 2010 @@ -58,7 +58,7 @@ return Math.atan2(y,x); }-*/; - public static double cbrt (double x) { + public static double cbrt(double x) { return Math.pow(x, 1.0 / 3.0); } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A new model for external types (issue589801)
On Thu, Jun 3, 2010 at 6:12 PM, to...@google.com wrote: Do you need to make any changes to GenerateJavaScriptAst to prevent/change code-gen for external types? Yes, we would not want to code-gen external types, and there may need to be some linkage issues. (I.E. references to external type can't be mangled). I'd like to see that work in a future follow-up patch. Any ideas about where we would put TODOs? I propose that external types ought to be eliminated by the time you get to GenerateJavaScriptAST, since they can't contain any code. http://gwt-code-reviews.appspot.com/589801/diff/1/7 File dev/core/src/com/google/gwt/dev/jjs/impl/DeadCodeElimination.java (right): http://gwt-code-reviews.appspot.com/589801/diff/1/7#newcode612 dev/core/src/com/google/gwt/dev/jjs/impl/DeadCodeElimination.java:612: // We can't eliminate code from an external type On 2010/06/03 20:48:04, bobv wrote: The assumption being that the external type representation in our AST is basically a full model of the external type as opposed to modeling just what is actually referred to? I'm not sure what you mean. External types model all of the declaration elements of a type, but not any of the implementation. Since the type isn't part of the program, we can't deadcode eliminate any of it, so we just early out here. Actually... since external types can't contain any code, it *ought* to be harmless to NOT early-out here, since no code will be visited. We should be able to remove this check, right? Scott -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A new model for external types (issue589801)
On Fri, Jun 4, 2010 at 2:41 PM, Scott Blum sco...@google.com wrote: On Thu, Jun 3, 2010 at 6:12 PM, to...@google.com wrote: Do you need to make any changes to GenerateJavaScriptAst to prevent/change code-gen for external types? Yes, we would not want to code-gen external types, and there may need to be some linkage issues. (I.E. references to external type can't be mangled). I'd like to see that work in a future follow-up patch. Any ideas about where we would put TODOs? I propose that external types ought to be eliminated by the time you get to GenerateJavaScriptAST, since they can't contain any code. I don't think I quite understand this point. In a program that uses external types, GenerateJavaScriptAST will have to eventually generate the corresponding javascript code that uses the external types - so external types should continue to remain present in the AST for that to take place, no? Also, since those external types will exist in other linked-in javascript, you'll also have to worry about name-mangling, right? http://gwt-code-reviews.appspot.com/589801/diff/1/7 File dev/core/src/com/google/gwt/dev/jjs/impl/DeadCodeElimination.java (right): http://gwt-code-reviews.appspot.com/589801/diff/1/7#newcode612 dev/core/src/com/google/gwt/dev/jjs/impl/DeadCodeElimination.java:612: // We can't eliminate code from an external type On 2010/06/03 20:48:04, bobv wrote: The assumption being that the external type representation in our AST is basically a full model of the external type as opposed to modeling just what is actually referred to? I'm not sure what you mean. External types model all of the declaration elements of a type, but not any of the implementation. Since the type isn't part of the program, we can't deadcode eliminate any of it, so we just early out here. Actually... since external types can't contain any code, it *ought* to be harmless to NOT early-out here, since no code will be visited. We should be able to remove this check, right? Hrm - I thought that this check was here, because the traversal would trip an assertion in JMethod.getBody. It turns out, though, that JMethod.visitChildren doesn't use JMethod.getBody. Shouldn't we early out anyway instead of traversing all the members of the class? Scott -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A new model for external types (issue589801)
I re-rolled this, removing the existing JExternalType and modifying the annotation support to use the newer stuff. Apologies that the 'diff vs. patch 1' didn't quite work correctly. http://gwt-code-reviews.appspot.com/589801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors