Hot deploy updates to CDN without restarting application server?
We are looking at moving our static assets to a CDN. Does anyone know how this works with GWT-RPC since it compiles new signatures for client/server communication each time? What we would love to be able to do is deploy a new version of the client assuming there were no breaking changes to classes used with RPC, without having to re-deploy the java on the server. Is this even possible? Thanks! -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/90fe6f33-17fb-4cdb-a380-39f5039122b2%40googlegroups.com.
Re: [gwt-contrib] Patch for RichTextEditor
It looks like he posted a complete patch almost three years ago. What do we need to do to get this into trunk? http://code.google.com/p/google-web-toolkit/issues/detail?can=2start=0num=100q=formatBlockcolspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Starsgroupby=sort=id=4554 On Wednesday, February 10, 2010 6:52:20 AM UTC-8, Joel Webber wrote: Sebastian, Sorry it's taken so long for anyone to respond. This sounds like useful functionality, and I would suggest creating an issue ( http://code.google.com/p/google-web-toolkit/issues/) and a patch for public discussion (http://gwt-code-reviews.appspot.com/). That way it will be easier for people to try out your patch and refine it. Cheers, joel. On Fri, Jan 22, 2010 at 9:55 AM, Sebastian use...@laliluna.dejavascript: wrote: Hello, I was missing the ability to format a block with h1 - h6 tags. I researched the topic and build a patch which allows to insert block tags. It makes use of the FormatBlock command. I would like to ask, if you are interested in the patch and discuss the coding decision I took. 1) I couldn't find any guidance on testing. I have tested with Safari 4, Firefox 3.5, IE 6, IE 8 and IE 8 in IE 7 mode. 2) Currently only the tags h1 to h6, pre, address and p work stable across browsers. To limit the choice of tags, I have created an enum to limit the possible values. public static enum BlockTag { H1, H2, H3, H4, H5, H6, PRE, ADDRESS, P; final String OPEN = ; final String CLOSE = ; public String toTag() { return OPEN+name()+CLOSE; } } The advantage is that you cannot provide the wrong tags. The disadvantage is that you cannot provide tags which are for example supported in newer browser versions. The rest of the tag is just a new method in RichTextAreaImplStd. public void formatBlock(RichTextArea.BlockTag blockTag) { execCommand(FormatBlock, blockTag.toTag()); } Shall I leave it that way or turn it into a String parameter? 3) Should I create a bug tracking entry for this? If somebody is interested, here are some links, I found interesting while exploring the topic. http://discerning.com/topics/software/ttw.html http://help.dottoro.com/ljcvtcaw.php http://www.quirksmode.org/dom/execCommand.html Best Regards Sebastian Hennebrueder -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: DevMode not working in Chrome after update
The incognito trick didn't work for me on mac osx chrome... didn't work for me either. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2EOPf94JJVAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.5.0-rc1 on IPad not firing click events
In GWT 2.5.0-rc1 buttons (and anchors) will only fire the click event every few clicks. Meaning you have to click on buttons multiple times to get them to fire. Is anyone else having this issue? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/lwK4_xzgAFUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: sort handler in datagrid problem
I'm having the same issue. What was your solution? On Dec 13, 9:00 am, Rodrigue Lagoue rlag...@googlemail.com wrote: Hi Ed, thank you for your response. I just solved the problem. The cause was the use of the method ListDataProvider#setList(), it assigns the field listWrapper to a new instance, and since the ListHandler was initialized with first value of listWrapper, the sortHandler continued to point on a list no more maintained by the dataprovider, that's why the sorting didn't work. Thank you again for the answer. Best. On Tue, Dec 13, 2011 at 4:06 PM, Ed post2edb...@gmail.com wrote: How did you debug this? and what happens when you click on the column in the code (debugging it)? On Dec 13, 2:56 pm, Rodrigue Lagoue rlag...@googlemail.com wrote: Hi all, I'm experiencing a problem with column sorting in datagrid. I think all is done like in the show case, but when I click on a column nothing happens, the sort icon (the triangle) only appears after (without sorting), when I select a row (via the checkbox). What could be the causes of such a problem? Thank you Bests -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: sort handler in datagrid problem
I was able to work around this by adding a setList method to ListHandlerT. With the new method I was able to execute the following code after the grid row data had been updated: ListDataProvider.setList(data); listSortHandler.setList(ListDataProvider.getList()); That set the new listWrapper to the ListHandler. I've created an enhancement request to the GWT project so that we can have access to a ListHandler.setList method: http://code.google.com/p/google-web-toolkit/issues/detail?id=7072 On Dec 15, 3:48 pm, Casey j.casey.one...@gmail.com wrote: I'm having the same issue. What was your solution? On Dec 13, 9:00 am, Rodrigue Lagoue rlag...@googlemail.com wrote: Hi Ed, thank you for your response. I just solved the problem. The cause was the use of the method ListDataProvider#setList(), it assigns the field listWrapper to a new instance, and since the ListHandler was initialized with first value of listWrapper, the sortHandler continued to point on a list no more maintained by the dataprovider, that's why the sorting didn't work. Thank you again for the answer. Best. On Tue, Dec 13, 2011 at 4:06 PM, Ed post2edb...@gmail.com wrote: How did you debug this? and what happens when you click on the column in the code (debugging it)? On Dec 13, 2:56 pm, Rodrigue Lagoue rlag...@googlemail.com wrote: Hi all, I'm experiencing a problem with column sorting in datagrid. I think all is done like in the show case, but when I click on a column nothing happens, thesorticon (the triangle) only appears after (without sorting), when I select a row (via the checkbox). What could be the causes of such a problem? Thank you Bests -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Code Splitting Code Bloat
Has anyone experienced an issue where code splitting has actually increased the size of their application by a significant amount? Before I introduced code splitting my application weighed in at around 109KB. While that' not gigantic considering there is logic for over 10 screens I thought that maybe I could get it down to around 40KB once I introduced code splitting. Once I introduced code splitting the project grew to 429KB! The initial file download is now 181KB. How can this be possible?!! I've looked at the compile report and everything seems to be where it should. Does anyone have any ideas as to why the compiler is inflating the code size by 400%? I know that certain classes may be repeated for each split but the initial shell of the application is now weighing in at 181KB(without incubator grid or any screens) where the entire application (with incubator grid and 10 screens) used to weigh in at only 109KB. BTW, I'm using GWT 2.1.1 and the trunk snapshot of Gin. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Facing some problems after switching to GWT 2.1 from GWT 2.0.4
I too was using KeyPressEvent in 2.0.4 and it was working perfectly but when I upgraded to 2.1.1 it stopped working. Based on Brian Reilly's comment I changed the event to KeyDownHandler and the comparison to event.getNativeKeyCode() == RETURN_KEY and it's back to working again. So even though the workaround worked, I do believe that this is a bug since it used to work in 2.0.4. On Dec 3, 6:38 am, Brian Reilly brian.irei...@gmail.com wrote: I fiddled with this quite a bit a while back, and I just upgraded to 2.1 so I panicked when I read this. However, I just tested in Safari and Firefox (both on Mac) and everything still works. The key, as Dominic mentioned, is to handle KEY_ENTER in a handler for KeyDownEvent instead of KeyPressEvent. Actually, I also just noticed that I'm not using event.getCharCode(). I'm using event.getNativeEvent().getKeyCode(). In fact, looking at the JavaDoc for KeyCode, it says, Contains the native key codes ..., so that gives me some confidence that getting the key code from the native event is the way to go. I suspect that it's the combination of using KeyDownEvent and event.getNativeEvent().getKeyCode(). Character codes are probably more to represent printable characters. While you could consider a new line a printable character, the enter key doesn't translate to a new line in all input contexts. I suspect you're in one of those contexts (if you're trying to add some behavior for it), so it makes sense that you want the native event in this case instead of whatever character it would be interpreted as. -Brian On Fri, Dec 3, 2010 at 7:57 AM, aditya sanas 007aditya.b...@gmail.comwrote: hi dominic, I m receiving key press event in all the browser the thing that i have noticed which doesn't work in GWT 2.1 is - *if(event.getCharCode()==KeyCodes.KEY_ENTER){ * the o/p of event.getCharCode() in GWT 2.1 is nothing not even 0 so i cnt compare it with KeyCodes.KEY_ENTER i had tried one more new method that has been introduced in GWT 2.1 which getUnicodeCode() which gives 0 whenever i presses ENTER but this is not the right because i m getting 0 even when i m pressing any arrow key. how to figure this out...? -- Aditya On Fri, Dec 3, 2010 at 5:46 PM, dominic jansen dom.jan...@googlemail.comwrote: hi aditya, i ve noticed that there are different behaviours for the KeyPressHandler for each browser (e.g. for me the safari browser did not recognize the keypressevent). maybe you can use the KeyDownHandler or KeyUpHandler instead of the KeyPressHandler. this worked for me best, dom 2010/12/3 Aditya 007aditya.b...@gmail.com: Hi, I have updated my GWT version to 2.1 and faced some of the problems regarding textbox' key press handlers... the code which works completely fine in previous version is txtPassword.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { if(event.getCharCode()==KeyCodes.KEY_ENTER){ // some processing here to send username password to server } // class closures. whenever user presses an ENTER key the code from 'if' condition gets executed but this does nt work in GWT 2.1 is there any other way to perform this validation to know user has striked ENTER or not...? Thanks, Aditya -- 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
Reusing GWT Localization in Server Side Code
Does anyone know if with Google Web Toolkit there is an easy way to reuse your client size localization files (constants and messages) in the server side code? I think in GWT 1.6 or 1.8 you could actually call the same GWT localization code on the server side that you called on the client side. I just upgraded from 1.6 to 2.0 and all of a sudden I'm receiving the following message: ERROR: GWT.create() is only usable in client code! That makes sense to me but there must be an easy way to reuse your Constant and Message files on the server. It's been awhile since I've opened this project but I'm pretty sure that this was working before. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 Hosted Mode crashing after Snow Leopard 10.6.2 Update
The downgrading doesn't work for me. I'm running Snow Leopard and when I try to select my hard drive for installation it says that I must have version 10.5.8 or newer installed. Any thoughts? On Nov 13, 10:36 am, jtyrrell james.t.tyrr...@gmail.com wrote: Hey All, If you are having this issue and want to downgrade back to 4.0.3 I have added the files here,http://populationjim.com/2009/11/13/downgrade-safari-from-404-to-get-... Cheers, Jim On Nov 14, 2:26 am, eric73 e...@pentila.com wrote: Thanks a lot for your Jar Fix ! Why it so ugly ? Eric -- 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=.
Re: GWT Hosted Mode crashing after Snow Leopard 10.6.2 Update
Same here. Everything was fine until I installed the new Safari On Nov 12, 8:27 pm, JeanV jve...@gmail.com wrote: I can confirm that I have the same problem since upgrading to Safari 4.0.4. Help is needed on this one On Nov 12, 10:10 am, Daniel kurka.dan...@googlemail.com wrote: After I installed the OSX update 10.6.2 I can start the hosted mode anymore. I get a Invalid memory access: Im suspecting the safari update from 4.0.3 to 4.0.4 to be responsible. Anyone any hints? Invalid memory access of location 0010 eip=969cf77b Process: java [524] Path: /System/Library/Frameworks/JavaVM.framework/Versions/ 1.6.0/Home/bin/java Identifier: java Version: ??? (???) Code Type: X86 (Native) Parent Process: idea [485] PlugIn Path: /Users/danielkurka/.m2/repository/com/google/gwt/ gwt-dev/1.7.1/libgwt-ll.jnilib PlugIn Identifier: libgwt-ll.jnilib PlugIn Version: ??? (???) Date/Time: 2009-11-12 09:54:18.141 +0100 OS Version: Mac OS X 10.6.2 (10C540) Report Version: 6 Interval Since Last Report: 5237 sec Crashes Since Last Report: 4 Per-App Crashes Since Last Report: 4 Anonymous UUID: 6C95C9C4-48BF-48FE-B53E- C90E1BF89E54 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0010 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Application Specific Information: Java information: Exception type: Bus Error (0xa) at pc=0x969cf77b Java VM: Java HotSpot(TM) Client VM (14.1-b02-90 mixed mode macosx- x86) Current thread (0x038b6000): JavaThread Thread-0 daemon [_thread_in_native, id=-1610181376, stack(0xbf80,0xc000)] Stack: [0xbf80,0xc000] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J com.google.gwt.dev.shell.mac.LowLevelSaf.gcUnprotect(II)V J com.google.gwt.dev.shell.JsValue.mainThreadCleanup()V j com.google.gwt.dev.shell.ModuleSpace.invokeNative(Ljava/lang/ String;Ljava/lang/Object;[Ljava/lang/Class;[Ljava/lang/Object;)Lcom/ google/gwt/dev/shell/JsValue;+0 j com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(Ljava/lang/ String;Ljava/lang/Object;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/ lang/Object;+6 j com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(Ljava/ lang/String;Ljava/lang/Object;[Ljava/lang/Class;[Ljava/lang/Object;) Ljava/lang/Object;+7 j com.google.gwt.dom.client.DOMImpl.eventGetType(Lcom/google/gwt/dom/ client/NativeEvent;)Ljava/lang/String;+20 j com.google.gwt.dom.client.NativeEvent$.getType$(Lcom/google/gwt/dom/ client/NativeEvent;)Ljava/lang/String;+4 j com.google.gwt.user.client.impl.DOMImpl.eventGetTypeInt(Lcom/google/ gwt/user/client/Event;)I+2 j com.google.gwt.user.client.DOM.eventGetType(Lcom/google/gwt/user/ client/Event;)I+4 j com.google.gwt.user.client.ui.Widget.onBrowserEvent(Lcom/google/gwt/ user/client/Event;)V+1 j com.google.gwt.user.client.DOM.dispatchEventImpl(Lcom/google/gwt/ user/client/Event;Lcom/google/gwt/user/client/Element;Lcom/google/gwt/ user/client/EventListener;)V+31 j com.google.gwt.user.client.DOM.dispatchEventAndCatch(Lcom/google/ gwt/user/client/Event;Lcom/google/gwt/user/client/Element;Lcom/google/ gwt/user/client/EventListener;Lcom/google/gwt/core/client/GWT $UncaughtExceptionHandler;)V+3 j com.google.gwt.user.client.DOM.dispatchEvent(Lcom/google/gwt/user/ client/Event;Lcom/google/gwt/user/client/Element;Lcom/google/gwt/user/ client/EventListener;)V+12 v ~StubRoutines::call_stub j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/ Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object; [Ljava/lang/Object;)Ljava/lang/Object;+87 J sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object; [Ljava/lang/Object;)Ljava/lang/Object; J java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/ Object;)Ljava/lang/Object; j com.google.gwt.dev.shell.MethodAdaptor.invoke(Ljava/lang/Object; [Ljava/lang/Object;)Ljava/lang/Object;+13 J com.google.gwt.dev.shell.mac.MethodDispatch.invoke(II[I[I)I v ~StubRoutines::call_stub j org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(I[IDZ[I)I+0 j org.eclipse.swt.widgets.Display.readAndDispatch()Z+50 j com.google.gwt.dev.SwtHostedModeBase.processEvents()V+4 j com.google.gwt.dev.HostedModeBase.pumpEventLoop()V+13 j com.google.gwt.dev.HostedModeBase.run()V+19 j com.google.gwt.dev.GWTShell.main([Ljava/lang/String;)V+40 v ~StubRoutines::call_stub Java Threads: ( = current thread ) 0x038af400 JavaThread http--Processor8 daemon [_thread_in_Java, id=-1308504064, stack(0xb1f1d000,0xb201d000)] 0x038aec00 JavaThread http--Processor7 daemon [_thread_blocked, id=-1309560832, stack(0xb1e1b000,0xb1f1b000)]
Re: GWT and Tapestry 5 integration
Great sample project and instructions. I was able to get up and running using Eclipse and Jetty. On Feb 13, 7:48 am, Casey j.casey.one...@gmail.com wrote: Thanks for putting this up. I'm going to take a look it at now. On Jan 6, 1:51 pm, Daniel Jue teamp...@gmail.com wrote: Hi, I'm relatively new to GWT, but I've been working with Apache Tapestry 5 for a while now. I've written a tutorial (with source code as an Eclipse project) on the Tapestry Wiki. It's based on some older tutorials that are out there (thanks Pär Dahlberg). It includes cases for using multiple instantiations of an entrypoint on one page, each acting independently. The source includes a single Tapestry page that runs two simple dialog boxes, and two independant stock watchers. ( In other examples online, there was no example for mixing in an RPC entrypoint.) http://wiki.apache.org/tapestry/Tapestry5GWTIntegration This setup has Tapestry as the parent web app framework, which handles multiple pages and components (and nested components). The tutorial outlines a way to embed your GWT application as a component on a page. (either the component template or the page template supplies the html you were using in your .html files with GWT development) I am not using Hosted Mode in this tutorial. I got the Stock Watcher app up and running in another project, and then copied the Java source over. The tutorial uses Maven to build your entrypoints and feeds the JS output back into the web app source. RPC Service class files end up in the target dir with the Tapestry class files. If you are interested, please let me know what improvements I can make. Regards, Daniel Jue --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and Tapestry 5 integration
Were you able to get this to work in GWT hosted mode? On Feb 15, 11:10 am, Casey j.casey.one...@gmail.com wrote: Great sample project and instructions. I was able to get up and running using Eclipse and Jetty. On Feb 13, 7:48 am, Casey j.casey.one...@gmail.com wrote: Thanks for putting this up. I'm going to take a look it at now. On Jan 6, 1:51 pm, Daniel Jue teamp...@gmail.com wrote: Hi, I'm relatively new to GWT, but I've been working with Apache Tapestry 5 for a while now. I've written a tutorial (with source code as an Eclipse project) on the Tapestry Wiki. It's based on some older tutorials that are out there (thanks Pär Dahlberg). It includes cases for using multiple instantiations of an entrypoint on one page, each acting independently. The source includes a single Tapestry page that runs two simple dialog boxes, and two independant stock watchers. ( In other examples online, there was no example for mixing in an RPC entrypoint.) http://wiki.apache.org/tapestry/Tapestry5GWTIntegration This setup has Tapestry as the parent web app framework, which handles multiple pages and components (and nested components). The tutorial outlines a way to embed your GWT application as a component on a page. (either the component template or the page template supplies the html you were using in your .html files with GWT development) I am not using Hosted Mode in this tutorial. I got the Stock Watcher app up and running in another project, and then copied the Java source over. The tutorial uses Maven to build your entrypoints and feeds the JS output back into the web app source. RPC Service class files end up in the target dir with the Tapestry class files. If you are interested, please let me know what improvements I can make. Regards, Daniel Jue --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and Tapestry 5 integration
To me, GWT and Tapestry seem like the perfect mix so I was very excited when I found your tutrial. I think it will be great to use tapestry to do basic things like authentication and then use GWT to enhance the UI. I have four years of experience with tapestry 3. 0 and about a year with GWT 1.4. Unfortunately that has been followed by about 9 months off but I'm trying to get back to it. Anyway, in my previous GWT 1.4 project, I developed in Eclipse and I was able to have Jetty host the back end while using a Java application launcher to run the GWT hosted browser in no server mode. Unfortunately I haven't had any such luck trying to get the your GWT components running either in full hosted mode or no server mode. I've targeted the StockWatcher module since it's the only one with an html file in the public directory but when it launches I get the following error: [ERROR] Unable to find type 'se.pmdit.tutorial.t5gwt.gwt.client.StockWatcher' [ERROR] Hint: Check that the type name 'se.pmdit.tutorial.t5gwt.gwt.client.StockWatcher' is really what you meant [ERROR] Hint: Check that your classpath includes all required source roots I've specifically added the src directory to the Java app but still no luck. With your sample project, are you able to launch hosted mode for a single (or multiple) module? Like you said, I really want to shoot for a rapid development environment where you could develop tapestry and GWT and the same time. On Feb 15, 11:52 am, Daniel Jue teamp...@gmail.com wrote: Hi, Thanks for trying out the tutorial. I hope this list doesn't mind the cross traffic. Glad you were able to get it working with Jetty. My projects have so many Tomcat dependencies that I tend to develop with it exclusively, and haven't had much time to play with Jetty. I didn't really try getting it to work in hosted mode. I don't think hosted mode would handle loading the Tapestry servlet filter, but I may be wrong. I'm still not very experienced in GWT project setups, beyond the standard archetype. I feel that if your entrypoint is self-reliant, you can have an HTML file in your public directory, allowing you to do some rapid development on a single entrypoint at a time. The HTML file in the public directory is not being used by the application in the tutorial, but could be used in development with some tweaking. --That is, the public HTML files could be used as a development aids, but ultimately the Tapestry templates will be hosting the entrypoints. Tapestry uses templates with it's own DTD, but the syntax is so close to HTML as to be editable by artsy web designers. It's not like a JSP that gets turned inside out. The goal was to keep artsy designers from messing up code, and keep the coders from trying to be artsy. ;-) The person who wrote an older tutorial said he had his GWT entrypoints as a separate project (with all the standard GWT project settings), and then the source was combined into the main Tapestry application later. On Sun, Feb 15, 2009 at 11:27 AM, Casey j.casey.one...@gmail.com wrote: Were you able to get this to work in GWT hosted mode? On Feb 15, 11:10 am, Casey j.casey.one...@gmail.com wrote: Great sample project and instructions. I was able to get up and running using Eclipse and Jetty. On Feb 13, 7:48 am, Casey j.casey.one...@gmail.com wrote: Thanks for putting this up. I'm going to take a look it at now. On Jan 6, 1:51 pm, Daniel Jue teamp...@gmail.com wrote: Hi, I'm relatively new to GWT, but I've been working with Apache Tapestry 5 for a while now. I've written a tutorial (with source code as an Eclipse project) on the Tapestry Wiki. It's based on some older tutorials that are out there (thanks Pär Dahlberg). It includes cases for using multiple instantiations of an entrypoint on one page, each acting independently. The source includes a single Tapestry page that runs two simple dialog boxes, and two independant stock watchers. ( In other examples online, there was no example for mixing in an RPC entrypoint.) http://wiki.apache.org/tapestry/Tapestry5GWTIntegration This setup has Tapestry as the parent web app framework, which handles multiple pages and components (and nested components). The tutorial outlines a way to embed your GWT application as a component on a page. (either the component template or the page template supplies the html you were using in your .html files with GWT development) I am not using Hosted Mode in this tutorial. I got the Stock Watcher app up and running in another project, and then copied the Java source over. The tutorial uses Maven to build your entrypoints and feeds the JS output back into the web app source. RPC Service class files end up in the target dir with the Tapestry class files. If you are interested, please let me know what improvements I can make. Regards, Daniel Jue
Re: GWT and Tapestry 5 integration
Got it! Apparently under the lanucher classpath entries, pointing the src directory was not enough. I had to place an entry to src/main/ java. I am now able to edit tapestry pages and GWT components in the hosted mode browser without the need to refresh any directories. All changes are live! I could possibly be missing something but so far I've editied the GWT java files and the Tapestry Start.html, both are in the source directory, and both changes show up in the browser without the need for a restart. Here is what I did: Back End., I like to you the JettyLanucher Eclipse plugin so I created a new Jetty Launch dialog and pointed it to my jetty.xml file.My VM arguments are as follow -Djetty.home=/Users/casey/Projects/opt/jetty-5.1.11RC0 -Dorg.apache.tapestry.disable-caching=true -DignoreDuplicateModuleError=true -Xmx512m -Xms128m -XX:PermSize=256M Now that I have the back end up and running like a regular tapestry project, I want to run GWT in hosted mode so that I can make like changes to GWT components without having to run the maven GWT compile command and then refreshing the src/main/webapp directory in eclipse. 1. Go to the debug menu and create a new Java Application Launcher 2. On the main tab set the following: a. Project to myapp b. Set the main class to com.google.gwt.dev.GWTShell 3. On the arguments tab: a. Set the program arguments to: -noserver -out www -whitelist localhost[:]8080 -port 8080 b. Set the VM arguments to: -XstartOnFirstThread -Xmx512M 4. On the Classpath tab, select the user entries click the Advanced button and choose add folder. Then select the src/main/java folder. This must be the java folder and not the src folder. I have the java folder ahead of the myapp entry but I'm not sure if it makes a difference. 5. Everything else stays the same so just click the Debug button. At this point you clicked the Debug button for both your Jetty entry and the Java application entry. Both need to be running at the same time. 6. When the GWT Hosted Browser pops up, click the Hosted Browser button. At that point, you should be able to make changes to tapestry and GWT. Let me know if you have any problems. On Feb 15, 1:31 pm, Casey j.casey.one...@gmail.com wrote: To me, GWT and Tapestry seem like the perfect mix so I was very excited when I found your tutrial. I think it will be great to use tapestry to do basic things like authentication and then use GWT to enhance the UI. I have four years of experience with tapestry 3. 0 and about a year with GWT 1.4. Unfortunately that has been followed by about 9 months off but I'm trying to get back to it. Anyway, in my previous GWT 1.4 project, I developed in Eclipse and I was able to have Jetty host the back end while using a Java application launcher to run the GWT hosted browser in no server mode. Unfortunately I haven't had any such luck trying to get the your GWT components running either in full hosted mode or no server mode. I've targeted the StockWatcher module since it's the only one with an html file in the public directory but when it launches I get the following error: [ERROR] Unable to find type 'se.pmdit.tutorial.t5gwt.gwt.client.StockWatcher' [ERROR] Hint: Check that the type name 'se.pmdit.tutorial.t5gwt.gwt.client.StockWatcher' is really what you meant [ERROR] Hint: Check that your classpath includes all required source roots I've specifically added the src directory to the Java app but still no luck. With your sample project, are you able to launch hosted mode for a single (or multiple) module? Like you said, I really want to shoot for a rapid development environment where you could develop tapestry and GWT and the same time. On Feb 15, 11:52 am, Daniel Jue teamp...@gmail.com wrote: Hi, Thanks for trying out the tutorial. I hope this list doesn't mind the cross traffic. Glad you were able to get it working with Jetty. My projects have so many Tomcat dependencies that I tend to develop with it exclusively, and haven't had much time to play with Jetty. I didn't really try getting it to work in hosted mode. I don't think hosted mode would handle loading the Tapestry servlet filter, but I may be wrong. I'm still not very experienced in GWT project setups, beyond the standard archetype. I feel that if your entrypoint is self-reliant, you can have an HTML file in your public directory, allowing you to do some rapid development on a single entrypoint at a time. The HTML file in the public directory is not being used by the application in the tutorial, but could be used in development with some tweaking. --That is, the public HTML files could be used as a development aids, but ultimately the Tapestry templates will be hosting the entrypoints. Tapestry uses templates with it's own DTD, but the syntax is so close to HTML as to be editable by artsy web designers. It's not like a JSP that gets turned inside out. The goal