<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Dobesland - Latest Comments in Faster GWT startup with objects embedded in the HTML host page</title><link>http://dobesland.disqus.com/</link><description>Dobes Vandermeer's blog - software engineering, java programming, enlightenment</description><atom:link href="https://dobesland.disqus.com/faster_gwt_startup_with_objects_embedded_in_the_html_host_page/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 24 Aug 2009 16:41:47 -0000</lastBuildDate><item><title>Re: Faster GWT startup with objects embedded in the HTML host page</title><link>http://www.dobesland.com/2009/02/17/faster-gwt-startup-with-pre-loaded-objects/#comment-15324494</link><description>&lt;p&gt;Sure, here's an example:&lt;/p&gt;&lt;p&gt;interface MyInitialData extends DictionaryConstants {&lt;br&gt;  // ...&lt;br&gt;}&lt;/p&gt;&lt;p&gt;MyInitialData initialData = new MyInitialData() {&lt;br&gt;	                @Override&lt;br&gt;	                public UserInfo myUser() {&lt;br&gt;	                    return myUser;&lt;br&gt;	                }&lt;br&gt;	                @Override&lt;br&gt;	                public AuthToken sessionToken() {&lt;br&gt;	                    return token;&lt;br&gt;	                }&lt;/p&gt;&lt;p&gt;	            };&lt;/p&gt;&lt;p&gt;request.setAttribute("initialData", DictionaryConstantsWriter.serializeConstants("initialData", initialData, MyInitialData.class, true));&lt;/p&gt;&lt;p&gt;Then I use this inside a freemarker template as ${initialData}, along with the usual GWT stuff.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobes_vandermeer</dc:creator><pubDate>Mon, 24 Aug 2009 16:41:47 -0000</pubDate></item><item><title>Re: Faster GWT startup with objects embedded in the HTML host page</title><link>http://www.dobesland.com/2009/02/17/faster-gwt-startup-with-pre-loaded-objects/#comment-15323826</link><description>&lt;p&gt;Any chance you could post an example of how to use the DictionaryConstantsWriter class.  I think this could be useful in decreasing the load time for one of my GWT components which contains several input picklist fields, each resulting in a RPC call back to the server at load time.  An example would be greatly appreciated.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Mon, 24 Aug 2009 16:27:10 -0000</pubDate></item><item><title>Re: Faster GWT startup with objects embedded in the HTML host page</title><link>http://www.dobesland.com/2009/02/17/faster-gwt-startup-with-pre-loaded-objects/#comment-7400319</link><description>&lt;p&gt;LOL, nice idea ...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobes_vandermeer</dc:creator><pubDate>Sat, 21 Mar 2009 13:15:16 -0000</pubDate></item><item><title>Re: Faster GWT startup with objects embedded in the HTML host page</title><link>http://www.dobesland.com/2009/02/17/faster-gwt-startup-with-pre-loaded-objects/#comment-7392098</link><description>&lt;p&gt;You should make a class called Lexicographer.  A lexicographer is a person who writes dictionaries.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ken Fehling</dc:creator><pubDate>Sat, 21 Mar 2009 04:16:08 -0000</pubDate></item></channel></rss>