tag:blogger.com,1999:blog-34312450245233431582023-06-21T01:02:43.563-04:00GWT TipsGWT (Google Web Toolkit) TipsAnonymoushttp://www.blogger.com/profile/15632168143178144657noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3431245024523343158.post-53285804981009226562008-05-01T19:03:00.000-04:002008-05-01T19:04:03.869-04:00Stubbing RPC calls in Google Web Toolkit's Hosted Mode<div id="ilx40" style="margin-left: 40px;"> Level: Intermediate<br /> Date: Originally <a title="published 10/07" target="_blank" href="http://code.google.com/p/google-web-toolkit-incubator/wiki/StubbingRPC" id="zdxw">published 10/07</a>, updated 4/08. <br /> Author: Richard Bondi, <img id="y9e50" style="vertical-align: text-bottom; width: 124px; height: 15px;" src="http://docs.google.com/File?id=dw2zgx2_330grncwkdn_b" align="bottom" /><br /> </div> <br /> <p style="margin-left: 40px;" id="d8yb10">In this post I describe a way to "fake" or "stub" your RPC calls in GWT's hosted mode. It allows you to deploy to web mode without having to change any code, change any configurations, and without any stub or development-only code being deployed. It's very clean, and will work with any web application setup (for example, Spring is optional).</p><p style="margin-left: 40px;" id="d8yb10">The full post is available at <a href="http://docs.google.com/Doc?docid=dw2zgx2_106fd4mtt&hl=en">http://docs.google.com/Doc?docid=dw2zgx2_106fd4mtt&hl=en</a>.<br /></p>Anonymoushttp://www.blogger.com/profile/15632168143178144657noreply@blogger.com0tag:blogger.com,1999:blog-3431245024523343158.post-32664807881556654072008-01-01T12:12:00.001-05:002008-05-01T19:02:20.059-04:00How to Integrate Spring 2.x with the Google Web Toolkit (GWT)<div id="rycz0" style="margin-left: 40px;"> Level: Intermediate<br /> Date: Originally <a title="published 10/07" target="_blank" href="http://code.google.com/p/google-web-toolkit-incubator/wiki/IntegratingWithSpring" id="zdxw">published 10/07</a>, updated 4/08.<br /> Author: Richard Bondi, <img id="y9e50" style="vertical-align: text-bottom; width: 124px; height: 15px;" src="http://docs.google.com/File?id=dw2zgx2_330grncwkdn_b" align="bottom" /><br /> <br /> </div> <p style="margin-left: 40px;" id="zlln10"> This post explains how to manage your GWT server-side services with Spring and Spring MVC, and to inject Spring beans into them.<br /><br /><br />The complete post is available at <a href="http://docs.google.com/Doc?docid=dw2zgx2_25492p5qxfq&hl=en">http://docs.google.com/Doc?docid=dw2zgx2_25492p5qxfq&hl=en</a>.</p>Anonymoushttp://www.blogger.com/profile/15632168143178144657noreply@blogger.com0tag:blogger.com,1999:blog-3431245024523343158.post-77818352955247016832007-07-17T09:43:00.002-04:002008-05-01T21:52:17.511-04:00Passing Events instead of Widgets to Listeners in the Google Web Toolkit (GWT)<div id="ilx40" style="margin-left: 40px;"> Level: Advanced<br /> Date: Originally published 10/07<br /> Author: Richard Bondi, <img id="y9e50" style="vertical-align: text-bottom; width: 124px; height: 15px;" src="http://docs.google.com/File?id=dw2zgx2_330grncwkdn_b" align="bottom" /><br /> </div> <blockquote><br /> In GWT, a listener object A may attach itself to many other widgets. These widgets will call A's onChange (or similar) method, and pass themselves as onChange's only parameter. Inside onChange, A must then decide which widget called it. The problem at this point is for a programmer unfamiliar with the code: there is no easy way for her to tell which of the widget's many methods and properties are intended to be used by A. The solution given here is to create an interface, named [widget's name]Event, that has only methods to be used inside of onChange. This makes for clean and understandable code.<br /><br />The full text of this post is available at <a href="http://docs.google.com/Doc?id=dw2zgx2_331ns4qh527">http://docs.google.com/Doc?id=dw2zgx2_331ns4qh527</a>.<br /></blockquote>Anonymoushttp://www.blogger.com/profile/15632168143178144657noreply@blogger.com0