LayoutPanel's height set by it's content?
Hi, I have a question, is it possible to setup some LayoutPanel to resize with it's interior? I'd like to put content of unknown size (a plain text for example) into a LayoutPanel and avoid having scrollbars inside of it. I want to use scrollbar of the body - make the application behave kinda like a regular web page. Is it possible? What is the preffered way? Using old panels? But their javadocs say that they are compatible only with quirks mode... -- Regards, MB -- 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.
Get sessionId on verry first request to the server.
Hi I'm new to the gwt and have following question. I need to get session id on the first request to the server ... When user first tries to load the page, not after some part of the page is loaded. eg( login screen). I would like to have a session id before login screen shows up so when i make login request I pass the sessionId with it. Regards . -- 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: Empty Response From HTTP Request
All web services were returning json but not in a way that is treated as jsonp for the GWT client. Once that was fixed no more timeouts occurred for future requests. However there is now a bizarre issue where the ArrayList that was populated in the defined onSuccess method (for the AsyncCallback object) is now empty outside of the method definition. How can that happen when no items have been removed from the ArrayList? The ArrayList was defined outside of the object. On May 13, 5:34 pm, A. Stevko andy.ste...@gmail.com wrote: Can you at least see the size of the response like in an apache log file? Try using FireBug's Net Panel to see the request/response size/duration. -- 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: pass variable from JavaScript to GWT
On 12 Mai, 23:34, gpike gop...@gmail.com wrote: If I understand your question correctly, you want to use a value that has been populated by JavaScript then it should be as simple as: public final native String getValue() /*-{ return $wnd.a; }-*/; but if you are wanting to pass the value to the JavaScript then it would be like: public static final native void setValue(String myValue) /*-{ $wnd.a = myValue; }-*/; Is that what you are asking for? Thanks, Gordon Pretty much that, yes, thanks so far. But I also need to call the method getValue() out of the JS code, that is the point where my knowlege collapses. Calling it using @com.mypackage.xx.client.Example::getValue (); does not work. -- 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.
Add Google Maps API on GWT-ext
Hi: I want to create a project using the Google Maps API with GWT-ext on Eclipse. I'm a newbie using GWT-ext, does anyone knows about a tutotial o have a tutorial to add de google maps API? I put a pic of the component I want to activate in GWT-ext http://www.flickr.com/photos/57139144@N02/5715458100/ Any help will be appreciated. -- 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.
Adding new Entity properties causes old entity records not to be found in appengine queries
Until recently, adding new properties to an existing entity used by an application just involved adding the new properties and setters/ getters to the entity class. The currently existing records that do not have the new properties could still be found by queries. However, we found that our application could no longer find old records after adding a few new properties to our entity. Since this was a live application, we reverted the app back to its previous state and it is now able to find the old records again. But now we cannot add the new properties needed to update the application without losing the old records. The entity class in question uses JDO and the following annotations: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Page implements Serializable { private static final long serialVersionUID = 1L; @PrimaryKey @Persistent private String ID; @Persistent private String status; ... And this is the query code that searches for records using JDO Persistence Manager: Query query = pm.newQuery(Page.class); query.setFilter(ID == ' + ID + '); ListPage pages = (ListPage)query.execute(); Now we need to add a couple of new strings and a boolean property, but cannot without running into the problem described earlier. This is not the first time however, that we've added properties to this entity before but we did not encounter this problem back then. Aside from this, we've also just recently upgraded from AppEngine 1.4.3 to 1.5.0. Might this be a factor in the situation that we're facing? - Owen -- 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.
Adding new Entity properties problem
Until recently, adding new properties to an existing entity used by an application just involved adding the new properties and setters/ getters to the entity class. The currently existing records that do not have the new properties could still be found by queries. However, we found that our application could no longer find old records after adding a few new properties to our entity. Since this was a live application, we reverted the app back to its previous state and it is now able to find the old records again. But now we cannot add the new properties needed to update the application without losing the old records. The entity class in question uses JDO and the following annotations: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Page implements Serializable { private static final long serialVersionUID = 1L; @PrimaryKey @Persistent private String ID; @Persistent private String status; ... And this is the query code that searches for records using JDO Persistence Manager: Query query = pm.newQuery(Page.class); query.setFilter(ID == ' + ID + '); ListPage pages = (ListPage)query.execute(); Now we need to add a couple of new strings and a boolean property, but cannot without running into the problem described earlier. This is not the first time however, that we've added properties to this entity before but we did not encounter this problem back then. Aside from this, we've also just recently upgraded from AppEngine 1.4.3 to 1.5.0. Might this be a factor in the situation that we're facing? - Owen -- 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: Get sessionId on verry first request to the server.
normally sessionid is set with Set-Cookie header, u'll get it before the page content get loaded, i think you can read it throu Cookies. On Fri, May 13, 2011 at 6:55 AM, sergetk tkatchs...@gmail.com wrote: Hi I'm new to the gwt and have following question. I need to get session id on the first request to the server ... When user first tries to load the page, not after some part of the page is loaded. eg( login screen). I would like to have a session id before login screen shows up so when i make login request I pass the sessionId with it. Regards . -- 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.
Plural forms and I18NCreator
Hi everybody, we are trying to generate i18n interfaces from our property files via the com.google.gwt.i18n.tools.I18NCreator. In principle it works perfectly fine. But there is one thing that does not work: Generating the interface from plural forms [1] using com.google.gwt.i18n.tools.I18NCreator . Something like: cartItems=There are {0,number} items in your cart. cartItems[one]=There is {0,number} item in your cart. should become: @DefaultLocale(en) // not required since this is the default public class MyMessages extends Messages { @DefaultText(There are {0,number} items in your cart.) @PluralText({one, There is 1 item in your cart.) String cartItems(@PluralCount int itemCount); } ...but does not get converted in an interface. Does anybody know if that’s our fault or just not supported com.google.gwt.i18n.tools.I18NCreator (GWT 2.3)? Thanks a lot, Raphael [1] http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideI18nPluralForms.html -- 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.
IE9 and SuggestBox
Hi, when using a SuggestBox in IE9 it won't work correctly as the generated code still contains setExpression calls - such css method calls are not available anymore since IE9 and should not be generated in general. Is this a known issue? (I don't want to set IE8 fallback mode in order to get this working) Greetings - Marcel -- 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.
how to get new size when doing onResize() in SplitLayoutPanel?
Hello, I am using GWT 2.2 SplitLayoutPanel. The user is given the option of resizing using the vertical splitter. In the right panel, a CellTable is inside a ScrollPanel . When i resize, the scroll panel should automatically increase in width i.e, the scroll panel should occupy the total space in the right side. My Sample code is: public class FiaDisplayT extends ResizeComposite implements ProvidesResize, RequiresResize, FiaDisplayInterfaceT { public void onResize() { Window.alert(resize); } } How to get the new width of the panel? I am able to get the alert on resizing but i am unable to do anything on the page after the alert. I tried in IE7. Thanks in Advance, kalpana -- 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.
json post not working
Hi I have a json POST like this: { first: 10 , second : 50 } with content-type:application/json With an external client the server replies correctly, but using: RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url); rb.setHeader(content-type, application/json); try { rb.sendRequest({ \first\: 10 , \second\ : 50 }, new RequestCallback() { public void onResponseReceived(Request request, Response response) {} public void onError(Request request, Throwable exception) {} }); } catch (RequestException e) { Window.alert(e.toString()); } look like the server even hasn't get the request. How can I fix it? Thanks, Julio -- 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: Disabling Symbol Maps?
Would removing them from being included in app engine's static files or resources help? http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files -- 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: json post not working
Sorry forget it, it works properly, was a XSS problem Julio On May 13, 11:57 am, julio antongiuli...@gmail.com wrote: Hi I have a json POST like this: { first: 10 , second : 50 } with content-type:application/json With an external client the server replies correctly, but using: RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url); rb.setHeader(content-type, application/json); try { rb.sendRequest({ \first\: 10 , \second\ : 50 }, new RequestCallback() { public void onResponseReceived(Request request, Response response) {} public void onError(Request request, Throwable exception) {} }); } catch (RequestException e) { Window.alert(e.toString()); } look like the server even hasn't get the request. How can I fix it? Thanks, Julio -- 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: Re : Re: UiBinder and child HTML 'widgets'
On May 12, 4:13 pm, Thomas Broyer t.bro...@gmail.com wrote: It's not HTML vs. Widget, it's innerHTML vs. DOM's document.createElement/appendChild. So in GWT, as soon as you start making reusable components, you're breaking the innerHTML layer and have to introduce a Widget. From what I've seen in most of the modern browsers, the difference between innerHTML and DOM manipulation isn't vast (e.g. http://andrew.hedges.name/experiments/innerhtml/). I have to admit, the presentations that have talked about performance differences between using widgets and emphasizing html in GWT haven't been incredibly clear on the reasons why -- other than talking about the level at which events are handled. Given that I don't have a performance problem that I'm trying to solve, I'm happy to chalk this up to premature optimization. The point of HTML vs. Widget is: don't use FlexTable/Grid/FlowPanel for layout and Button/TextBox/etc. if you can simply use an HTMLPanel with HTML inside (and event delegation for event handling) Sure. From the limited descriptions I'd seen, I imagined that a reusable component containing HTML might offer the same benefit over a reusable component containing GWT widgets. That might not be true. -- 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.
Scroll table border design
I have a tab panel that inside it has a list of clickable labels on the left side. When the label is clicked, I will create a scroll panel to the right of the labels. Here is a screenshot of it on dropbox. http://www.dropbox.com/gallery/2374591/1/Screen%20Shot?h=8204f3. Is there any way for me to draw the border of the scroll panel so that it can point to the label clicked, sort of like what happens for google instant previews that the link you hover over has a pop up to the right that points to it? To further explain myself I want it to have that sideways triangle that points to the label like google instant preview. Is that possible to do either with the css of the scroll panel or the border? Any insight would be much appreciated. -- 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: No UiBinder type (WindowBuilder/GWT Designer)
Okay, this was a dumb question brought on by too little sleep and too much office time. The solution (of course) is to rename the *View.ui.xml file to *ViewImpl.ui.xml. Duh! Now my stumbling block is the version of xulrunner. In Eclipse 3.6, WindowBuilder wants 1.9.1.x or 1.9.2.x. I'm running openSuSE 11.4, and it has xulrunner-2.0.1 installed. I've tried `ln -s xulrunner-2.0.1 xulrunner-1.9.1.17` (just picking a version one up from an old one) but that didn't work. I'll dittle with this for a while (though considering past frustrations with WindowBuilder, I dunno why). On May 12, 6:42 pm, Thad thad.humphr...@gmail.com wrote: I'm starting a new project. Unlike previous project which stumbled along from GWT 1.1 to till now, I'm trying to be a good Do Bee--I'm attempting to use MVP and UiBinder as shown in the Contacts2 demo (http://code.google.com/webtoolkit/articles/mvp-architecture-2.html). (My project is both practical and a chance for me to try these techniques.) I also thought this would be an ideal time to try out WindowBuilder/ GWT Designer. I'd tried it way back with GWT 1.3 or 1.4, and wasn't pleased. But now--my first UiBinder endeavor--I thought I'd give it a go. However, because of conflicting naming conventions between the MVP example and WindowBuilder, I can't get WindowBuilder to open my *.ui.xml file in Design mode. Here's an example of the error message from the Contacts2 example (note this is copied right from Eclipse, with all the formatting and missing /'s): You are attempting to use UiBinder for Contacts2srccomgooglegwtsamplecontactsclientviewContactsViewuixml however your form class comgooglegwtsamplecontactsclientviewContactsView does not have a UiBinder inner type subclass This is recommended GWT pattern and requirement of GWT Designer So what gives? It seems odd that in GWT 2.3.0 the WindowDesigner tool won't work with a naming convention that the GWT team espouses. Is there a way around this? If I stick to the MVP example, it seems that I can't use WindowDesigner. If I cave to WindowDesigner and drop the ViewImpl implements View paradigm, what am I giving up? -- 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: Add Google Maps API on GWT-ext
Henry, I'm not exactly sure how far along you are based on your question. Have you already been through the example at http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted ? I found that I had to use GWT SDK 2.1.1 in order to work with the GWT maps API. The latest maps API didn't seem to work for me with GWT 2.2.0 and I haven't tried GWT 2.3 yet. I also found that I had to use gxt-2.1.1 (instead of gxt-2.2.3) to work with GWT 2.1.1. Long story short, I had to revert to some older versions of the GWT SDK and gxt in order to work with the latest GWT maps API. Perhaps someone else reading this can confirm or deny that this was necessary. Hope this helps. Bill On May 13, 2:17 am, Henry henryubu...@gmail.com wrote: Hi: I want to create a project using the Google Maps API with GWT-ext on Eclipse. I'm a newbie using GWT-ext, does anyone knows about a tutotial o have a tutorial to add de google maps API? I put a pic of the component I want to activate in GWT-exthttp://www.flickr.com/photos/57139144@N02/5715458100/ Any help will be appreciated. -- 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.
UiBinder Concept
In the sample code when building GUI with UiBinder the following declaration are very common-- xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' However now when we declare an Image,we do it as *ui*:image field='logo' src='logo.png'/ why *ui *and not *g *? The Image class lies in com.google.gwt.user.client.ui package. Actually I am unclear on the sole purpose of xmlns:ui='urn:ui:com.google.gwt.uibinder, there is no corresponding com.google.gwt.uibinder package in Jdocs as well. -- 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.
Activities Places, token question
Hi all, Firstly, please bare with me as I'm still getting to grips with GWT and Activities Places (AP), which I'm really keen to use in my projects. While experimenting with AP it looks like a token is always a requirement. My question is, what token would you provide for a page that would not typically have any additional arguments, such as a contact us page. I would vision it looking like (/#ContactUsPlace:randomToken) with a random token appended, when in a ideal world I would like (/ #contactus). Is it possible to do this, but still use AP with its navigation/history strengths? NOTE: In regards to source code, I've been following the GWT MVP tutorial at http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html Many thanks Alex -- 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.
RadioButton exception on create in IE9
Helow, First my develop enviroment : Windows 7 x64 Netbeans 7.0 ( tried also 6.9.1) Gwt4nb 2.10 GWT2.2.0 today I have upgraded my html to HTML5 and have encountered this error: 00:01:30,687 [ERROR] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: (null): DOM Exception: INVALID_CHARACTER_ERR (5) code: 5 ABORT_ERR: 20 ... WRONG_DOCUMENT_ERR: 4 at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 237)at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 129)at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561)at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269)at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.dom.client.DOMImplTrident.createInputRadioElement(DOMImplTrident.java) at com.google.gwt.dom.client.Document$.createRadioInputElement$ (Document.java:961) at com.google.gwt.user.client.DOM.createInputRadio(DOM.java:214) at com.google.gwt.user.client.ui.RadioButton.init(RadioButton.java:64) at com.google.gwt.user.client.ui.RadioButton.init(RadioButton.java: 100)at si.tridens.esmserver.client.common.CPM.createFilterRadio(CPM.java:525) at si.tridens.esmserver.client.widget.FilterPanel.addFilterColumn(FilterPanel.java: 65) at si.tridens.esmserver.client.page.ProcessesTab.initTab(ProcessesTab.java: 96) at si.tridens.esmserver.client.MainEntryPoint.addProcessesTab(MainEntryPoint.java: 335)at si.tridens.esmserver.client.MainEntryPoint $3.execute(MainEntryPoint.java:504) at com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$ (SchedulerImpl.java:50) at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java: 229)at com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(SchedulerImpl.java: 389)at com.google.gwt.core.client.impl.SchedulerImpl $Flusher.execute(SchedulerImpl.java:78) at com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java: 139)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java: 71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157)at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 326)at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 207)at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 129)at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561)at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269)at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java)at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java: 71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157)at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 281)at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 531)at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352)at java.lang.Thread.run(Thread.java:662) I get this exception only on IE9, Firefox and Chrome are working perfect. I have upgraded to HTML5 because of rounded edges in IE. With debuging I have located problem, and it occours on RadioButton create. I have also tested this with fresh dummy project showing only one radio button and I got same error than in my project. Have anyone expirienced similar problem ? I haven't found any solution for my problem using 'mr.google'. Any help will be appriciate. -- 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: IE9 and SuggestBox
There's no deferred binding in SuggestBox proper. Are you talking about the one on PopupImpl, used by the DefaultSuggestionDisplay? if so, IE9 should use PopupImpl, just like IE8, not PopupImplIE6. BTW, setExpression throws in IE8 (AFAIK, it still exists there, contrary to IE9, but throws). There might be a bug in how GWT's deferred binding implementation (which changed a bit in 2.3 to add support for ie9 without breaking libraries in introducing the new user.agent property value, introducing a fallback mechanism) works, but that would probably fail somewhere else first... -- 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: UiBinder Concept
ui:image declares an ImageResource added to the implicit ClientBundle generated by each ui.xml file (where the ui:data and ui:style are put too, as DataResource and CssResource respectively). If you want an Image widget, then yes, use a g:Image. Note also, that ui:image are top level elements (direct children of the ui:UiBinder root element) while g:Image are widgets, so either they're your root widget (and single widget, given that they're not containers) or they appear inside other container widgets. In other words: it should not be possible to confuse them and use one for the other, it would fail very early (and probably be marked as an error in Eclipse). -- 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: Activities Places, token question
First, you could use the empty string instead of a random token, and it would give you a /#ContactUsPlace: token. There's also the possibility to either put a bunch of places into a single Place class, and using the token to disambiguate them (e.g. /#CommonPlace:ContactUs); or you could instead use different Place classes but a single PlaceTokenizer (better IMO) with the same results. ...and because an empty @Prefix is simply ignored when generating the token, you could have /#contactus that way. Finally, but you shouldn't need it for your use case, you can provide your own implementation of PlaceHistoryMapper instead of relying on the generator (you'd lose all the magic related to @WithTokenizers and @Prefix though and have to do it all by yourself). -- 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 Activity - Places = DialogBox ?
As I understand it, the main benefit to using Places/Activities is history/URL management. Therefore, the first question is do you want users to be able to save a URL directly to the detail popup? I think it might be a little odd from the user's point of view, but that's entirely up to you. If you decide you don't need that behavior, then I don't think there's any benefit to having using an activity. If you do want to have separate history state for the popup (which would mean that the back/forward buttons would dismiss/reshow the popup, by the way), you can probably get something to work. You might need to add hidden display area that can be controlled by a separate ActivityManager. That ActivityManager can map the detail place to an activity that shows the popup. That's just an idea... not something I have tried... but I imagine something like that should work. -- Brian On Thu, May 12, 2011 at 4:54 AM, Bertrand b.legallu...@gmail.com wrote: Hi guys, I'm trying to use the GWT Activity Place model, but I'm having some troubles with it about how to use my activities. I've got a LoginActivity which drives the user to another activity : DemandsActivity. My DemandsActivity manages a view (DemandsView) which displays a simple list of demands (with a CellTable). The whole works fine. I would like to be able to show the details of a demand, from a selected line of my cellTable, by displaying a DialogBox with the informations. I thought I could use one more activity to do that : DemandDetailsActivity. But I don't know how to do that. Any idea ? 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-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.
High-performance GWT: best practices for writing smaller, faster apps
Hi, in the Google I/O, David Chandler did a presentation about best practices with GWT. I have gone to youtube, on the google developer chanel http://www.youtube.com/user/GoogleDevelopers but I cannot see the video about this presentation. Is someone from google reading this message can tell us if a video will be available online since I think it would be a very interresting topic for all of us :) 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-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: UiBinder and child HTML 'widgets'
On May 12, 3:19 pm, Geoffrey Wiseman geoffrey.wise...@gmail.com wrote: On May 12, 1:22 pm, Gal Dolber gal.dol...@gmail.com wrote: In real its ok what you are doing(in theory Widget should be used only when you need events), but the truth is that gwt's panels don't have any support for UiObjects so you need to use Widget. So even HTMLPanel can't easily absorb HTML once you bundle it up as a GWT UiBuilder component. Ah well. Coming back to this point -- the UiBinder documentation shows bundling HTML as a UiObject (http://code.google.com/webtoolkit/doc/latest/ DevGuideUiBinder.html#Hello_World) and the Google Plugin for Eclipse has an option to allow you to do this, but there doesn't seem to be much you can do with it having done so: all panels from RootPanel on down require you to insert a widget. So why would you create a UiObject component using UiBinder? -- 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: Thanks GWT Devs
I'll second Jeff's statement. It was a great experience, and I was glad there was enough GWT/DevTools content to keep me busy. It was also great to get a chance to meet some of the GWT team and other GWT developers. -- Brian On Thu, May 12, 2011 at 12:46 PM, nino ekambi jazzmatad...@googlemail.com wrote: Nice David. Danke ! :) 2011/5/12 David Chandler drfibona...@google.com We'll have all the talks and slides up by the end of the week and I'll post back then. /dmc On Thu, May 12, 2011 at 9:31 AM, nino ekambi jazzmatad...@googlemail.com wrote: Is it possible to see the talks somewhere online ? 2011/5/12 Jeff Larsen larse...@gmail.com Thanks so much for all the great talks at io this year. I didn't get to see all of them in person, but everyone that I saw was fantastic. I learned something new in each one. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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: Problem passing a SetValueProxy as a parameter in RequestFactory?
It looks like I'm running into the problem inside EntityCodex.decode() : In the red code below, I see it iterate over all three items in my collection, but each time the element that comes out of the decode call has the same hashCode, so the HashSet ignores it. The hashCode always seems to be 1832980284, regardless of what the actual hashCode of my underlying object is. Does anyone know if it is possible to control this behavior? I guess worst case I could change my Set to a List and just remove any duplicates myself, but it seems weird to have Set support if it doesn't work right. Thanks, Eric public static Object decode(EntitySource source, Class? type, Class? elementType, Splittable split) { if (split == null || split == Splittable.NULL) { return null; } // Collection support if (elementType != null) { CollectionObject collection = null; if (List.class.equals(type)) { collection = new ArrayListObject(); } else if (Set.class.equals(type)) { collection = new HashSetObject(); } else { throw new UnsupportedOperationException(); } // Decode values if (ValueCodex.canDecode(elementType)) { for (int i = 0, j = split.size(); i j; i++) { if (split.isNull(i)) { collection.add(null); } else { Object element = ValueCodex.decode(elementType, split.get(i)); collection.add(element); } } } else { for (int i = 0, j = split.size(); i j; i++) { if (split.isNull(i)) { collection.add(null); } else { Object element = decode(source, elementType, null, split.get(i)); collection.add(element); } } } return collection; } if (source.isEntityType(type) || source.isValueType(type) || EntityProxyId.class.equals(type)) { return source.getBeanForPayload(split).as(); } // Fall back to values return ValueCodex.decode(type, split); } -- 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: High-performance GWT: best practices for writing smaller, faster apps
Here's the link : http://www.youtube.com/wat http://www.youtube.com/watch?v=imiquTOLl64 ch?v=imiquTOLl64 http://www.youtube.com/watch?v=imiquTOLl64 Cheers, On Fri, May 13, 2011 at 9:42 AM, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: Hi, in the Google I/O, David Chandler did a presentation about best practices with GWT. I have gone to youtube, on the google developer chanel http://www.youtube.com/user/GoogleDevelopers but I cannot see the video about this presentation. Is someone from google reading this message can tell us if a video will be available online since I think it would be a very interresting topic for all of us :) 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-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. -- Christian Goudreau www.arcbees.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Thanks GWT Devs
That's right ! I wished we could had more time to met everyone that I didn't get the chance to meet ! Oh and next year, could we have a private party ? :P On Fri, May 13, 2011 at 9:44 AM, Brian Reilly brian.irei...@gmail.comwrote: I'll second Jeff's statement. It was a great experience, and I was glad there was enough GWT/DevTools content to keep me busy. It was also great to get a chance to meet some of the GWT team and other GWT developers. -- Brian On Thu, May 12, 2011 at 12:46 PM, nino ekambi jazzmatad...@googlemail.com wrote: Nice David. Danke ! :) 2011/5/12 David Chandler drfibona...@google.com We'll have all the talks and slides up by the end of the week and I'll post back then. /dmc On Thu, May 12, 2011 at 9:31 AM, nino ekambi jazzmatad...@googlemail.com wrote: Is it possible to see the talks somewhere online ? 2011/5/12 Jeff Larsen larse...@gmail.com Thanks so much for all the great talks at io this year. I didn't get to see all of them in person, but everyone that I saw was fantastic. I learned something new in each one. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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. -- Christian Goudreau www.arcbees.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem passing a SetValueProxy as a parameter in RequestFactory?
This sounds like a problem that I ran into this as well, and even had a chance to sit down with David Chandler at Google I/O to look over it. Your case is more straightforward than mine (which involved trying to add to a Set on fetched ValueProxy) but I'd bet it's the same problem. I'm planning to file a bug about it after gathering a little more information and simplifying my test case. In the mean time, Lists don't seem to have the same problem, if that helps you at all. -- Brian On Thu, May 12, 2011 at 4:19 PM, Eric Andresen ericandre...@gmail.com wrote: I have an application that creates a SetMyClassProxy (a ValueProxy), and sends that set across the wire using the RequestFactory. When I add 3 distinct elements into the set and fire the context, I only get one item in the set on the server side. What is interesting is that I can see my setters being called inside my bean class, so I know all three instances are constructed. I only see the hashCode() method called once, meaning something inside the RequestFactory must be clobbering them before they're added to the HashSet. Has anyone seen this behavior before? I have other places in the application that pass SetEntityProxys across the wire, so it's not happening all the time. Thanks, 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-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.
Aw: Re: Activities Places, token question
Am Freitag, 13. Mai 2011 15:28:28 UTC+2 schrieb Thomas Broyer: ...and because an empty @Prefix is simply ignored when generating the token, you could have /#contactus that way. But you can only have on PlaceTokenizer with an empty @Prefix. Just keep it in mind if you now think you could do /#contactus and /#impress with two places and both tokenizer have an empty @Prefix. You will get an exception, at least thats what me happened yesterday. -- 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: GPE 2.2 download
Alex, The link you specify for reverting to GPE 2.2 seems to be broken. When I try to go there I get: Error CodeNoSuchKey/Code MessageThe specified key does not exist./Message /Error On May 9, 3:01 pm, Alex Humesky ahume...@google.com wrote: Hi Roy,GPE2.2 can be downloaded fromhttp://commondatastorage.googleapis.com/eclipse_toolreleases/products... What problems are you having withGPE2.3? Alex,GPETeam On May 8, 10:30 am, Roy roy.smith@gmail.com wrote: Any ideas where I can download thepreviousversionof the eclipse plugin as myGPE2.3 is lying dead in the water and I have a deadline to meet :-( best regards Roy -- 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.
Big Daddy example problems
I've been trying the new app engine connected android projected with the new beta release and have had no luck. The server side appears to be working, however the android app crashes. I get a Fatal Exception: cannot parse payload: payload[0] Has anyone else tried this? -- 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.
ListBox doesn't open when inside gwtquery drag and drop plugin's DragPanel in Chrome browser
I opened a Chromium Issue (http://code.google.com/p/chromium/issues/ detail?id=82540) because problem faces only in Chrome browser. I'm not sure if there's something going wrong with Chromium, with some GWT *Impl for Chrome, with some gwtquery drag and drop plugin's event closing my select, or if i misused all these things (this may not be the last option!). Please help on this. An Eclipse/GWT 2.2 project demonstrating this issue is attached to Chromium bug 82540 and can be downloaded here: http://chromium.googlecode.com/issues/attachment?aid=8254name=SelectInDnD.ziptoken=671518992001daf4a42c965be4574a3e Can drag and drop the html select component (created by ListBox) but it doesn't open in Chrome. Works in Mozilla 4 and IE 8. Thanks in advance for any hint on this, Luca -- 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: pass variable from JavaScript to GWT
Your JSNI call looks fine. However if you try to run the Java function from outside the GWT context, then you have to build a bridge ( http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#calling ) Try to debug it with some alert('xyz') statements. -- 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.
Aw: Re: Activities Places, token question
I also have a Places / Token question and as this thread topic is a more general I post it here. First of all I do not like the default PrefixAndToken implementation and I would like to have place history tokens like the ones here in the new google groups app (#!place-name/group-name/thread-id). Is this possible with the default implementation of PlaceHistoryMapper or do I have to write my own one? As I can only have one Tokenizer with an empty Prefix I could also have only one AppPlace tied to that Tokenizer and so the getToken() / getPlace() methods of that Tokenizer would have to do all the magic to make thinks work. I think this would also mean that this one AppPlace needs to hold/know all other places so that they can store their state. Seems to me that this is not the nicest approach. Has someone already tried it? How does Google do that here in Google Groups? What I currently try is to implement a custom PlaceHistoryMapper that allows me to support Places that extend from other places to reuse their state. Imagine you have a CustomerPlace that stores the currently selected customer id. That CustomerPlace would also have an activity because you can switch between customers and for each switch some stuff has to be done, e.g. load picture, check privileges of the user to present tasks that the user is allowed to do for that customer. Lets say once the task list is loaded you are able to edit the customer so there would be a EditCustomerPlace. Now the EditCustomerPlace also have to store that customer id because if you jump to that place directly via its history token you need that information. How do you handle these situations without code things twice? So my Idea is to be able to do something like EditCustomerPlace extends CustomerPlace and to generate the EditCustomerPlace history token by reusing the one from CustomerPlace. Example: CustomerPlace - #/customer/1 EditCustomerPlace - #/editcustomer/CustomerPlace state/additional EditCustomerPlace state - #/editcustomer/customer/1/address I couldn't do that without a custom PlaceHistoryMapper, right? Or are there other/easier ways to reuse place states? I somehow like the idea of having a more general place that stores the general state and multiple more specific places that only stores the specific state but also have access to the general state they need. Thanks in advance for any helpful thoughts. -- J -- 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: Activities Places, token question
Thank you so much for your reply, this has really helped me. The solution for me was to implement my own PlaceHistoryMapper, now I'm getting the exact behaviour I was looking for, while keeping within the AP framework. Many thanks, Alex On May 13, 2:28 pm, Thomas Broyer t.bro...@gmail.com wrote: First, you could use the empty string instead of a random token, and it would give you a /#ContactUsPlace: token. There's also the possibility to either put a bunch of places into a single Place class, and using the token to disambiguate them (e.g. /#CommonPlace:ContactUs); or you could instead use different Place classes but a single PlaceTokenizer (better IMO) with the same results. ...and because an empty @Prefix is simply ignored when generating the token, you could have /#contactus that way. Finally, but you shouldn't need it for your use case, you can provide your own implementation of PlaceHistoryMapper instead of relying on the generator (you'd lose all the magic related to @WithTokenizers and @Prefix though and have to do it all by yourself). -- 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: UiBinder and child HTML 'widgets'
...when you need an UIObject ;-) The Tree and Menu widgets are known to use UIObjects (TreeItem / MenuItem); and if you build similar widgets then you might have a need for UiBinder for your UIObjects. The thing is: a UIObject is so simple (compared to a Widget) that it doesn't need the attach/detach lifecycle that Widgets require, and you then attach it simply adding its Element as a child of another. A UIObject is basically just a wrapper around an Element, with setVisible and style names. Basically, UIObjects are low-level objects that you entirely manage yourself. A Widget without events won't cost much more than a UIObject. In the HTML vs. Widget debate, the performance issue is between attaching handlers to each and every element (in GWT's event handling, that means those elements are actually Widgets) or use event delegation (have a single Widget that listens to the events, and process them differently depending on their getNativeEvent().getEventTarget()). Cell widgets follow this pattern, and use innerHTML. Grid/FlexTable also uses event delegation, but builds the HTML using the DOM. I believe using Grid/FlexTable's ClickEvent + getCellForEvent is more efficient than adding, say, a Label in each cell and listening to click events on each of them (even if using the same ClickHandler instance). But honestly, I thing you won't notice a difference unless you're using IE, or a mobile device (phone/tablet), or if you have a huge number of children you want to listen events on (and/or a huge number of different events you want to listen to). (remember GWT-Incubator's bulk loaders? they use innerHTML to provide better performance than stock Grid, but again, probably not noticeable on modern browsers on desktops/laptops) -- 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: UiBinder and child HTML 'widgets'
On May 13, 11:12 am, Thomas Broyer t.bro...@gmail.com wrote: ...when you need an UIObject ;-) Thanks! Helpful food for thought. It definitely sounds like I was trying to make an optimization I don't need based on advice I didn't fully understand. ;) -- 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: Problem passing a SetValueProxy as a parameter in RequestFactory?
I switched my Sets to Lists and it works no problem. What is interesting is that I use SetEntityProxy all over the place without any trouble, but when I use the SetValueProxy it seems to fail. If I had to speculate, i'd guess that the RF is trying to recreate the collection using a hashcode based on the id of the proxy, which doesn't exist for a ValueProxy. Thanks, Eric On Fri, May 13, 2011 at 8:58 AM, Brian Reilly brian.irei...@gmail.comwrote: This sounds like a problem that I ran into this as well, and even had a chance to sit down with David Chandler at Google I/O to look over it. Your case is more straightforward than mine (which involved trying to add to a Set on fetched ValueProxy) but I'd bet it's the same problem. I'm planning to file a bug about it after gathering a little more information and simplifying my test case. In the mean time, Lists don't seem to have the same problem, if that helps you at all. -- Brian On Thu, May 12, 2011 at 4:19 PM, Eric Andresen ericandre...@gmail.com wrote: I have an application that creates a SetMyClassProxy (a ValueProxy), and sends that set across the wire using the RequestFactory. When I add 3 distinct elements into the set and fire the context, I only get one item in the set on the server side. What is interesting is that I can see my setters being called inside my bean class, so I know all three instances are constructed. I only see the hashCode() method called once, meaning something inside the RequestFactory must be clobbering them before they're added to the HashSet. Has anyone seen this behavior before? I have other places in the application that pass SetEntityProxys across the wire, so it's not happening all the time. Thanks, 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-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. -- 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: Aw: Re: Activities Places, token question
On Friday, May 13, 2011 5:02:49 PM UTC+2, Jens wrote: I also have a Places / Token question and as this thread topic is a more general I post it here. First of all I do not like the default PrefixAndToken implementation and I would like to have place history tokens like the ones here in the new google groups app (#!place-name/group-name/thread-id). Is this possible with the default implementation of PlaceHistoryMapper or do I have to write my own one? As I can only have one Tokenizer with an empty Prefix I could also have only one AppPlace tied to that Tokenizer and so the getToken() / getPlace() methods of that Tokenizer would have to do all the magic to make thinks work. I think this would also mean that this one AppPlace needs to hold/know all other places so that they can store their state. Seems to me that this is not the nicest approach. Has someone already tried it? You don't need to have this one 'AppPlace', you can simply bind your empty-prefix PlaceTokenizer with the Place type to use it as a catch-all (and it could parse tokens into as many distinct Place subtypes as you need). If you only have that one PlaceTokenizer, then it won't be that different from having your own PlaceHistoryMapper though, it just let your easily plug a new PlaceTokenizer later on with slightly less refactoring. @Prefix() class CatchAll implements PlaceTokenizerPlace { public Place getPlace(String token) { if (contactus.equals(token)) { return new ContactUsPlace(); } if (token.startsWith(foo/)) { // parse what follows foo/ and return a FooPlace } ... } public String getToken(Place p) { if (p instanceof ContactUsPlace) { return contactus; } if (p instanceof FooPlace) { return foo/ + getFooToken((FooPlace) p); } ... } } How does Google do that here in Google Groups? I suppose they use AP, and it so, I suppose they use their own PlaceHistoryMapper. What I currently try is to implement a custom PlaceHistoryMapper that allows me to support Places that extend from other places to reuse their state. Imagine you have a CustomerPlace that stores the currently selected customer id. That CustomerPlace would also have an activity because you can switch between customers and for each switch some stuff has to be done, e.g. load picture, check privileges of the user to present tasks that the user is allowed to do for that customer. Lets say once the task list is loaded you are able to edit the customer so there would be a EditCustomerPlace. Now the EditCustomerPlace also have to store that customer id because if you jump to that place directly via its history token you need that information. How do you handle these situations without code things twice? You can have EditCustomerPlace extends CustomerPlace. If the sub-token in both cases is the customer ID, then you can use the same PlaceTokenizer with two distinct @Prefix (either have 2 classes, one simply extending the other without doing anything else, apart from having its own @Prefix; or if you use a PlaceHistoryMapperWithFactory, simply have 2 methods parameterized with the 2 classes and distinct @Prefix: @Prefix(customer) PlaceTokenizerCustomerPlace customer() { return new CustomerPlaceTokenizer(); } @Prefix(customer-edit) PlaceTokenizerEditCustomerPlace editCustomer() { return new CustomerPlaceTokenizer(); } ) ...or you could instead have a single PlaceTokenizer that knows about both classes (and can thus be bound once to a single @prefix): @Prefix(customer) class CustomerPlaceTokenizer implemens PlaceTokenizerCustomerPlace { public String getToken(CustomerPlace p) { return ((p instanceof EditCustomerPlace) ? edit : view) + : + p.getId(); } ... } So my Idea is to be able to do something like EditCustomerPlace extends CustomerPlace and to generate the EditCustomerPlace history token by reusing the one from CustomerPlace. Example: CustomerPlace - #/customer/1 EditCustomerPlace - #/editcustomer/CustomerPlace state/additional EditCustomerPlace state - #/editcustomer/customer/1/address I couldn't do that without a custom PlaceHistoryMapper, right? Or are there other/easier ways to reuse place states? You're in control of the parsing for everything after the prefix, so it's up to you to make it reusable across PlaceTokenizers. -- 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: High-performance GWT: best practices for writing smaller, faster apps
Thanks Christian, I already watched this video but this is not the same that the sessions that I am talking about. But I had my answer with this thread : http://groups.google.com/group/google-web-toolkit/browse_thread/thread/637141b069cc8557 Thanks 2011/5/13 Christian Goudreau goudreau.christ...@gmail.com Here's the link : http://www.youtube.com/wat http://www.youtube.com/watch?v=imiquTOLl64 ch?v=imiquTOLl64 http://www.youtube.com/watch?v=imiquTOLl64 Cheers, On Fri, May 13, 2011 at 9:42 AM, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: Hi, in the Google I/O, David Chandler did a presentation about best practices with GWT. I have gone to youtube, on the google developer chanel http://www.youtube.com/user/GoogleDevelopers but I cannot see the video about this presentation. Is someone from google reading this message can tell us if a video will be available online since I think it would be a very interresting topic for all of us :) 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-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. -- Christian Goudreau www.arcbees.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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.
RequestFactory edit List of Proxies
Hello everyone, I've retreived a list of contactProxies from the server. now I'm trying to modify these contactProxies and to send the modification to the server. unfortunatly I've this error: 16:32:36.635 [ERROR] [ApplicationStarter] Uncaught exception escaped com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext$4.onTransportSuccess(AbstractRequestContext.java:679) at com.google.gwt.requestfactory.client.DefaultRequestTransport$1.onResponseReceived(DefaultRequestTransport.java:136) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287) at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.GeneratedMethodAccessor389.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Server Error: The requested entity is not available on the server at com.google.gwt.requestfactory.shared.Receiver.onFailure(Receiver.java:36) at com.google.gwt.requestfactory.shared.impl.AbstractRequest.onFail(AbstractRequest.java:109) at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext$4.onTransportSuccess(AbstractRequestContext.java:650) at com.google.gwt.requestfactory.client.DefaultRequestTransport$1.onResponseReceived(DefaultRequestTransport.java:136) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287) at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.GeneratedMethodAccessor389.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
Re: High-performance GWT: best practices for writing smaller, faster apps
You're right, sorry about that. Well, I read somehere david saying that it could take a week before everything is availaible online :D I guest we'll have to be patient. Cheers, On Fri, May 13, 2011 at 11:33 AM, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: Thanks Christian, I already watched this video but this is not the same that the sessions that I am talking about. But I had my answer with this thread : http://groups.google.com/group/google-web-toolkit/browse_thread/thread/637141b069cc8557 Thanks 2011/5/13 Christian Goudreau goudreau.christ...@gmail.com Here's the link : http://www.youtube.com/wat http://www.youtube.com/watch?v=imiquTOLl64 ch?v=imiquTOLl64 http://www.youtube.com/watch?v=imiquTOLl64 Cheers, On Fri, May 13, 2011 at 9:42 AM, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: Hi, in the Google I/O, David Chandler did a presentation about best practices with GWT. I have gone to youtube, on the google developer chanel http://www.youtube.com/user/GoogleDevelopers but I cannot see the video about this presentation. Is someone from google reading this message can tell us if a video will be available online since I think it would be a very interresting topic for all of us :) 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-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. -- Christian Goudreau www.arcbees.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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. -- Christian Goudreau www.arcbees.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem passing a SetValueProxy as a parameter in RequestFactory?
I did some debugging, looking into the GWT source, and it seems like there's a problem with decoding the elements of the set. The JSON sent over the wire looks fine, but when the data structure is being constructed on the server side, all of the properties are null at the time that hashCode() is called on the server-side proxy instance. So, it's trying to pay attention to more than the ID, but it's doing it too soon.. before the proxies have been fully initialized. I submitted an issue for this: http://code.google.com/p/google-web-toolkit/issues/detail?id=6354 -- Brian On Fri, May 13, 2011 at 11:26 AM, Eric Andresen ericandre...@gmail.com wrote: I switched my Sets to Lists and it works no problem. What is interesting is that I use SetEntityProxy all over the place without any trouble, but when I use the SetValueProxy it seems to fail. If I had to speculate, i'd guess that the RF is trying to recreate the collection using a hashcode based on the id of the proxy, which doesn't exist for a ValueProxy. Thanks, Eric On Fri, May 13, 2011 at 8:58 AM, Brian Reilly brian.irei...@gmail.com wrote: This sounds like a problem that I ran into this as well, and even had a chance to sit down with David Chandler at Google I/O to look over it. Your case is more straightforward than mine (which involved trying to add to a Set on fetched ValueProxy) but I'd bet it's the same problem. I'm planning to file a bug about it after gathering a little more information and simplifying my test case. In the mean time, Lists don't seem to have the same problem, if that helps you at all. -- Brian On Thu, May 12, 2011 at 4:19 PM, Eric Andresen ericandre...@gmail.com wrote: I have an application that creates a SetMyClassProxy (a ValueProxy), and sends that set across the wire using the RequestFactory. When I add 3 distinct elements into the set and fire the context, I only get one item in the set on the server side. What is interesting is that I can see my setters being called inside my bean class, so I know all three instances are constructed. I only see the hashCode() method called once, meaning something inside the RequestFactory must be clobbering them before they're added to the HashSet. Has anyone seen this behavior before? I have other places in the application that pass SetEntityProxys across the wire, so it's not happening all the time. Thanks, 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-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. -- 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: GPE 2.2 download
Sorry, that's actually the update site URL for installing directly from Eclipse. On May 13, 10:23 am, cri chuck.irvine...@gmail.com wrote: Alex, The link you specify for reverting to GPE 2.2 seems to be broken. When I try to go there I get: Error CodeNoSuchKey/Code MessageThe specified key does not exist./Message /Error On May 9, 3:01 pm, Alex Humesky ahume...@google.com wrote: Hi Roy,GPE2.2 can be downloaded fromhttp://commondatastorage.googleapis.com/eclipse_toolreleases/products... What problems are you having withGPE2.3? Alex,GPETeam On May 8, 10:30 am, Roy roy.smith@gmail.com wrote: Any ideas where I can download thepreviousversionof the eclipse plugin as myGPE2.3 is lying dead in the water and I have a deadline to meet :-( best regards Roy -- 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: GPE 2.2 download
Note that there's also the 2.2.1 release: http://commondatastorage.googleapis.com/eclipse_toolreleases/products/gpe/release/2.2.1/3.6/ On May 13, 1:07 pm, Alex Humesky ahume...@google.com wrote: Sorry, that's actually the update site URL for installing directly from Eclipse. On May 13, 10:23 am, cri chuck.irvine...@gmail.com wrote: Alex, The link you specify for reverting to GPE 2.2 seems to be broken. When I try to go there I get: Error CodeNoSuchKey/Code MessageThe specified key does not exist./Message /Error On May 9, 3:01 pm, Alex Humesky ahume...@google.com wrote: Hi Roy,GPE2.2 can be downloaded fromhttp://commondatastorage.googleapis.com/eclipse_toolreleases/products... What problems are you having withGPE2.3? Alex,GPETeam On May 8, 10:30 am, Roy roy.smith@gmail.com wrote: Any ideas where I can download thepreviousversionof the eclipse plugin as myGPE2.3 is lying dead in the water and I have a deadline to meet :-( best regards Roy -- 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/Tomcat and java.lang.NoClassDefFoundError!
The classes you give below are the servlet api classes - javax.servlet.http.HttpRequest for example. All you need to do to access those is to add the servlet-api.jar to your classpath. You'll find the right copy to use in the tomcat/lib folder. You can either add it to your classpath environment variable or simply copy it to your lib folder. I'd be interested if you have any specific reason for directly using the org.apache.catalina classes - that will tie your application to a specific release of Tomcat, and that's really not a very good idea. Alan HTH On 5/12/2011 11:30 AM, ramoq wrote: I am trying to use some of the objects in the catalina.jar in tomcat (ie. HTTPRequest, Realm.java, ... you get the idea) however, I always get a NoClassFoundException error. Code complies correctly,the gwt app (war file) is deployed with no errors. I get this when trying to use any of the org/apache/catalina/* classes. Otherwise everything else is OK. I know this is a classpath issue, but the catalina.jar is in the tomcat/lib and the WEB-INF/lib just has some regular stuff (ie. gwt- servlet.jar, gwt-maps.jar, gwt-debug-panel.jar, gwt-incubator..) any help would be greatly appeciated. -- 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: GPE 2.2 download
Hi Alex, All these URL's return the same result, Code=NoSuchKey.. An update URL to get me back to the 2.3.0.r36V201104261928 release would be greatly appreciated.. -John Gentilin On May 13, 10:16 am, Alex Humesky ahume...@google.com wrote: Note that there's also the2.2.1 release:http://commondatastorage.googleapis.com/eclipse_toolreleases/products... On May 13, 1:07 pm, Alex Humesky ahume...@google.com wrote: Sorry, that's actually the update site URL for installing directly from Eclipse. On May 13, 10:23 am, cri chuck.irvine...@gmail.com wrote: Alex, The link you specify for reverting toGPE2.2seems to be broken. When I try to go there I get: Error CodeNoSuchKey/Code MessageThe specified key does not exist./Message /Error On May 9, 3:01 pm, Alex Humesky ahume...@google.com wrote: Hi Roy,GPE2.2 can be downloaded fromhttp://commondatastorage.googleapis.com/eclipse_toolreleases/products... What problems are you having withGPE2.3? Alex,GPETeam On May 8, 10:30 am, Roy roy.smith@gmail.com wrote: Any ideas where I can download thepreviousversionof the eclipse plugin as myGPE2.3 is lying dead in the water and I have a deadline to meet :-( best regards Roy -- 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.
Mixing external JavasScript and HTML composite widgets
I have a peculiar issue right now that I hope someone can explain/help me with. I've altered my module's altering the raw entry-point HTML to include jQuery, Flot (JS graphing library), and Processing.js. In the HTML page, I add a canvas element and a couple of div's in order to work with these external libraries. For example, I have a div id=spectrum and from jQuery I call: var plot = $.plot($(#spectrum), [ getRandomData() ], options); Now I'd like to move the div and canvas HTML into a composite widget, and I'm finding that jQuery is no longer able to pick up on the HTML that is generated via the composite. The actual source contains the appropriate/correct code but it's wrapped inside of a div class=gwt-html/. I think the true issue deals with the order in which the widgets are rendered on the page; i.e. Flot is loaded before/after the div is rendered and therefore is skipped, but I don't know for sure. I've also tried appending the Flot script directly to the DOM from my widget, but it still will not render properly. Does anyone have any ideas? Please keep in mind that everything works accordingly when jammed into the HTML directly (but this creates positioning headaches). Code: SpectrumWidget.java public class SpectrumWidget extends Composite { private FlowPanel _fpContainer; private SafeHtml_html; private HTMLPanel _htmlContainer; public SpectrumWidget(String id, String width, String height) { _fpContainer = new FlowPanel(); _html = new SafeHtml() { @Override public String asString() { return getHtml(spectrum, 700px, 150px); } }; _htmlContainer = new HTMLPanel(_html); _htmlContainer.setWidth(770px); _htmlContainer.setHeight(200px); // _fpContainer.add(_html); _fpContainer.setHeight(height); _fpContainer.setWidth(width); Document doc = Document.get(); ScriptElement script = doc.createScriptElement(); script.setSrc(GWT.getModuleBaseURL() + js/jquery.flot.js ); script.setType(text/javascript); doc.getBody().appendChild(script); _fpContainer.getElement().setId(spectrum); // initWidget(_fpContainer); initWidget(_htmlContainer); } private String getHtml(String id, String width, String height) { String html; html = div id=' + id + '/div; return html; } } 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-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: GPE 2.2 download
These are Eclipse update site URLs, so you have to copy one, and in Eclipse (3.6) go to Help - Install New Software... - Add... and enter the URL there. See http://code.google.com/eclipse/docs/download.html for more details. On May 13, 3:53 pm, John Gentilin gent...@gmail.com wrote: Hi Alex, All these URL's return the same result, Code=NoSuchKey.. An update URL to get me back to the 2.3.0.r36V201104261928 release would be greatly appreciated.. -John Gentilin On May 13, 10:16 am, Alex Humesky ahume...@google.com wrote: Note that there's also the2.2.1 release:http://commondatastorage.googleapis.com/eclipse_toolreleases/products... On May 13, 1:07 pm, Alex Humesky ahume...@google.com wrote: Sorry, that's actually the update site URL for installing directly from Eclipse. On May 13, 10:23 am, cri chuck.irvine...@gmail.com wrote: Alex, The link you specify for reverting toGPE2.2seems to be broken. When I try to go there I get: Error CodeNoSuchKey/Code MessageThe specified key does not exist./Message /Error On May 9, 3:01 pm, Alex Humesky ahume...@google.com wrote: Hi Roy,GPE2.2 can be downloaded fromhttp://commondatastorage.googleapis.com/eclipse_toolreleases/products... What problems are you having withGPE2.3? Alex,GPETeam On May 8, 10:30 am, Roy roy.smith@gmail.com wrote: Any ideas where I can download thepreviousversionof the eclipse plugin as myGPE2.3 is lying dead in the water and I have a deadline to meet :-( best regards Roy -- 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: GPE 2.2 download
Those are the problem URL's... Last week I upgraded to 2.3.0 or release 2.3.0.r36V201104261928 then this week, I saw there was an upgrade which installed 2.3.1.r36v201105092302 and now my GWT Designer is dead, it won't load a single UIBinder file. This is different than the previous incompatible version problem. I have gone as far as uninstalling Eclipse and deleting my workspace and redoing the whole thing only installing the latest GPE on Eclipse Helios SR2 SR1... The problem is complaining about my gwt.xml file and the log states that it can't load my Entry point class.. I would like to just get back to 2.3.0.r36V201104261928 so I can get some work done.. I started another thread here with more info... and a bug report with a crash dump. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f52c06bed9340961/5bb167d5fd246807?lnk=gstq=gentijo#5bb167d5fd246807 -John G On May 13, 2:10 pm, Alex Humesky ahume...@google.com wrote: These are Eclipse update site URLs, so you have to copy one, and in Eclipse (3.6) go to Help - Install New Software... - Add... and enter the URL there. Seehttp://code.google.com/eclipse/docs/download.html for more details. On May 13, 3:53 pm, John Gentilin gent...@gmail.com wrote: Hi Alex, All these URL's return the same result, Code=NoSuchKey.. An update URL to get me back to the 2.3.0.r36V201104261928 release would be greatly appreciated.. -John Gentilin On May 13, 10:16 am, Alex Humesky ahume...@google.com wrote: Note that there's also the2.2.1 release:http://commondatastorage.googleapis.com/eclipse_toolreleases/products... On May 13, 1:07 pm, Alex Humesky ahume...@google.com wrote: Sorry, that's actually the update site URL for installing directly from Eclipse. On May 13, 10:23 am, cri chuck.irvine...@gmail.com wrote: Alex, The link you specify for reverting toGPE2.2seems to be broken. When I try to go there I get: Error CodeNoSuchKey/Code MessageThe specified key does not exist./Message /Error On May 9, 3:01 pm, Alex Humesky ahume...@google.com wrote: Hi Roy,GPE2.2 can be downloaded fromhttp://commondatastorage.googleapis.com/eclipse_toolreleases/products... What problems are you having withGPE2.3? Alex,GPETeam On May 8, 10:30 am, Roy roy.smith@gmail.com wrote: Any ideas where I can download thepreviousversionof the eclipse plugin as myGPE2.3 is lying dead in the water and I have a deadline to meet :-( best regards Roy -- 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: Empty Response From HTTP Request
As it turns out AsyncCallback doesn't have a way to inform that it is finished. Therefore anything that needs the proper results from the request would need to be done in the AsyncCallback's onSuccess method. On May 13, 6:12 pm, Nick Apperley napper...@gmail.com wrote: All web services were returning json but not in a way that is treated as jsonp for the GWT client. Once that was fixed no more timeouts occurred for future requests. However there is now a bizarre issue where the ArrayList that was populated in the defined onSuccess method (for the AsyncCallback object) is now empty outside of the method definition. How can that happen when no items have been removed from the ArrayList? The ArrayList was defined outside of the object. -- 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.
WindowBuilder problems
Hi I'm evaluating WindowBuilder from GWT 2.3.1. Its more stable and more useful than earlier versions. However, I'm encountering two major problems: A. Error reporting is pathetic. It also seems that whatever WB does when it finds an error involves it parsing all the source files it can find. My project has a number of subsidiary GWT modules which have import excludes=**/*Test.java / (for example). However WB seems to complete ignore these and thus I get 100's of lines of spurious errors complaining about not being able to find files which should have been excluded. The program runs fine in dev. mode and compiles without error using the GWT compiler so the problem is specific to WB. Even then, frequently it won't show the actual error, and I have to resort to commenting out blocks of markup to see where the problem lies. B. When you switch into XML Source mode and enter a , eclipse immediately goes unresponsive with a message 'Loading referenced grammars (Sleeping) in the progress window. I've noticed that this also coincides with a lot of network activity. Is this an issue with a schema or DTD? If so, it could probably be avoided by including these in the distribution and setting the appropriate XML dictionary reference in Eclipse. Since it doesn't actually say what the 'reference grammars' are, there's noting that I can do but wait. Thus, I find myself with lots of time to send whining messages to the GWT list! Occasionally it never returns, and I have to terminate eclipse and start over. I've looked around for comments on these points and found nothing useful. If somebody has any input on them I'd be very grateful - otherwise I'll report them as bugs - (where?) Thanks In Advance Alan -- 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: FocusPanel selection borderless
hey, did you found any solution ? I've got some problem and looking for help On Mar 25, 1:40 pm, Marco Gadaleta gadaleta.ma...@gmail.com wrote: any help.. On Thu, Mar 24, 2011 at 3:40 PM, Marco Gadaleta gadaleta.ma...@gmail.comwrote: Hello everyone, I'm using a FocusPanel widget and i wan't to remove the border of selection when i click on the focus panel. I've try with a css with border: none but without succes.. Any idea? -- Marco -- Marco -- 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: GPE 3.6, breaks again for UIBinder files
Are you able to create a new GWT project and a new UiBinder file? IOW, is this problem limited to the UiBinder files in your project or to any UiBinder files you edit (including brand new, simple ones created with the GPE wizard)? I have been using 2.3.1 for a couple of days now under both Windows and OSX and have not run into any problems editing UiBinder files. I just tried a fresh install of 2.3.1 under both Windows and OSX and tried it with a large number fo sample UiBinder files without any issues. We took a look at the bug report you submitted and the log contains several suspicious errors. Note that any error message you see that starts with [ERROR] is a being passed through from GWT itself. If there are problems with the project at the basic GWT level, GWT Designer will not be able to edit its contents. At this point, it would be useful to see an entire test case project that reproduces this (just append it to the bug report case you opened). On May 12, 8:39 pm, John Gentilin gent...@gmail.com wrote: I went one step further and deleted both my Eclipse Workspace dirs then reinstalled with no luck.. @cri, I think I had the same problem as you when I first upgraded to 2.3, but my brute force reinstall of eclipse fixed it. This problem only came in with the latest 5/9 release. What GPE version do you have, I have 2.3.1.r36v201105092302 This may be a Mac only issue since there is a different issue if I allow my Mac to upgrade to the latest JVM.. Is there a link where we can download previous releases, this was working fine with the 2.3.0.r36V201104261928 version. -John G On May 12, 10:00 am, cri chuck.irvine...@gmail.com wrote: This sounds very similar to a problem that I was having getting GWT Designer to come up. Try deleting the Google plugins then do a search of your workspace .plugins directory for any file having google in its filename. If you find any delete them. Then re-install the google plugins and try again. Hope this works for you. It did for me. On May 12, 9:47 am, mats mats.kren...@googlemail.com wrote: On 12 Mai, 04:57, John Gentilin gent...@gmail.com wrote: Seems that while initializing GWT Development Mode, it has a problem finding my entry point class.. It's there right where it thinks it should be.. I have the same problem while initializing GWT Designer. Building from Ant buildfile works fine. Deinstalling GPE and GWT Designer, deleting the proper directories in the .plugin folder of my workspace and reinstalling GPE + GWT Designer didn't work. Did anyone has the same issues and eventually solved this? Greetings from Berlin, Mats -- 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: GPE 3.6, breaks again for UIBinder files
Are you able to create a new GWT project and a new UiBinder file? IOW, is this problem limited to the UiBinder files in your project or to any UiBinder files you edit (including brand new, simple ones created with the GPE wizard)? I have been using 2.3.1 for a couple of days now under both Windows and OSX and have not run into any problems editing UiBinder files. I just tried a fresh install of 2.3.1 under both Windows and OSX and tried it with a large number fo sample UiBinder files without any issues. We took a look at the bug report you submitted and the log contains several suspicious errors. Note that any error message you see that starts with [ERROR] is a being passed through from GWT itself. If there are problems with the project at the basic GWT level, GWT Designer will not be able to edit its contents. At this point, it would be useful to see an entire test case project that reproduces this (just append it to the bug report case you opened). On May 12, 8:39 pm, John Gentilin gent...@gmail.com wrote: I went one step further and deleted both my Eclipse Workspace dirs then reinstalled with no luck.. @cri, I think I had the same problem as you when I first upgraded to 2.3, but my brute force reinstall of eclipse fixed it. This problem only came in with the latest 5/9 release. What GPE version do you have, I have 2.3.1.r36v201105092302 This may be a Mac only issue since there is a different issue if I allow my Mac to upgrade to the latest JVM.. Is there a link where we can download previous releases, this was working fine with the 2.3.0.r36V201104261928 version. -John G On May 12, 10:00 am, cri chuck.irvine...@gmail.com wrote: This sounds very similar to a problem that I was having getting GWT Designer to come up. Try deleting the Google plugins then do a search of your workspace .plugins directory for any file having google in its filename. If you find any delete them. Then re-install the google plugins and try again. Hope this works for you. It did for me. On May 12, 9:47 am, mats mats.kren...@googlemail.com wrote: On 12 Mai, 04:57, John Gentilin gent...@gmail.com wrote: Seems that while initializing GWT Development Mode, it has a problem finding my entry point class.. It's there right where it thinks it should be.. I have the same problem while initializing GWT Designer. Building from Ant buildfile works fine. Deinstalling GPE and GWT Designer, deleting the proper directories in the .plugin folder of my workspace and reinstalling GPE + GWT Designer didn't work. Did anyone has the same issues and eventually solved this? Greetings from Berlin, Mats -- 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-contrib] Re: Pruner runs only once. (issue1436802)
Sorry for the delay, spent most of today catching up after I/O, I will take care of these Friday. On Tue, May 10, 2011 at 6:44 PM, sco...@google.com wrote: This is ready for review now. http://gwt-code-reviews.appspot.com/1436802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Allows enum ordinalization to proceed for enums with static methods/fields (issue1428808)
It looks like I had some unpublished comments in this review, so just sending them out now. http://gwt-code-reviews.appspot.com/1428808/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java File dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java (right): http://gwt-code-reviews.appspot.com/1428808/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java#newcode273 dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java:273: String y = fruit.staticField;); Interesting, yeah the side-effects of evaluation of fruit would be the other case where it differs from Fruit.staticMethod() (along with the null case). So isn't it incorrect to not check for the NPE in that case? Also, after more optimizations happen and the 'fruit' reference goes away, would not that open up the possibility for enum ordinalization at that point, on a subsequent pass? I've also been planning another opportunity for ordinalization for the case where enums are assigned or compared to null, by representing this as -1. This would only be possible in cases where it's directly clear that the cast is to null and not an evaluated expression that might be null, etc. But that possibility would probably not be compatible with allowing fruit.staticMethod to be ordinalized, if fruit is determined to be null and ordinalized to -1, etc., unless we want to synthetically create the code to throw the NPE (but maybe we don't care about the NPE possibility anyway?) http://gwt-code-reviews.appspot.com/1428808/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java#newcode456 dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java:456: }); Yeah, actually the ordinalization can proceed in this case, and the ordinalization process doesn't seem to actually need to change the AST for the instanceof test itself. I'll make a note to test this scenario fully and enable subsequently. Adding a TODO. http://gwt-code-reviews.appspot.com/1428808/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Decentralize nullmethod/nullfield (issue1442802)
http://gwt-code-reviews.appspot.com/1442802/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java File dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java (right): http://gwt-code-reviews.appspot.com/1442802/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java#newcode251 dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java:251: assert ident.startsWith(@null::); Why is it necessary now to process null methods/null fields? Can't they safely ignored as was done previously? http://gwt-code-reviews.appspot.com/1442802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Pruner runs only once. (issue1436802)
Can you clarify what you mean by Pruner runs only once? It looks like it will still be invoked multiple times by the optimizeLoop, etc. Can you provide some background on the jitter phenomena? http://gwt-code-reviews.appspot.com/1436802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Pruner runs only once. (issue1436802)
Some background - some optimizers run themselves in a loop on each pass of the optimizer. During some performance investigations last year, we tried to get some of these extra loops out, but Pruner was a tough nut to crack. The nasty thing about this looping behavior is that the last pass through is always wasted (you know to exit the loop when the optimizer doesn't change the tree.) I've been reading the code and talking to Scott about it. The loop being removed is the while() loop in execImpl(). The jitter is the fact that the ControlFlowAnalyzer might return one result for liveness before the Pruner runs, and a different result after Pruner runs. If you don't loop inside of Pruner, then the entire optimization pass may have to run extra times. On Fri, May 13, 2011 at 11:03 AM, jbrosenb...@google.com wrote: Can you clarify what you mean by Pruner runs only once? It looks like it will still be invoked multiple times by the optimizeLoop, etc. Can you provide some background on the jitter phenomena? http://gwt-code-reviews.appspot.com/1436802/ -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Allows enum ordinalization to proceed for enums with static methods/fields (issue1428808)
http://gwt-code-reviews.appspot.com/1428808/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java File dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java (right): http://gwt-code-reviews.appspot.com/1428808/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java#newcode273 dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java:273: String y = fruit.staticField;); I *think*, and you probably want to check me, that we simply don't care about the NPE when you have a null qualifier on a static method. You're right that if we did, it would turn off that optimization. I like your -1 idea, btw. :) http://gwt-code-reviews.appspot.com/1428808/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Enables on the persistent unit cache by default. (issue1448801)
http://gwt-code-reviews.appspot.com/1448801/diff/1/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java File dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java (right): http://gwt-code-reviews.appspot.com/1448801/diff/1/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java#newcode53 dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java:53: } else if (cacheDir == null) { Shouldn't we offer a useful default for the cacheDir, such as the java.io.tmpdir property, so that users will be able to take advantage of caching out of the box, without having to take special effort. http://gwt-code-reviews.appspot.com/1448801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Decentralize nullmethod/nullfield (issue1442802)
http://gwt-code-reviews.appspot.com/1442802/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java File dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java (right): http://gwt-code-reviews.appspot.com/1442802/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java#newcode251 dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java:251: assert ident.startsWith(@null::); They were never ignored. Sorry for how subtle this is, I had to dig myself to refresh. If you go look at JsniRefLookup.findJsniRefTarget(), you'll see that nullMethod/nullField are explicitly handled there. GenerateJavaAST uses JsniRefLookup, so that's how it handles refs to nullMethod/nullField. But GwtAstBuilder doesn't use JsniRefLookup (it doesn't have a JProgram), instead it relies on data extracted from JsniChecker, which does a lot of the same things as JsniRefLookup. My Remove JProgram.jsniMap in favor of local accounting. change essentially broke null:: refs here (not that it matters, because this code isn't live yet). So I needed to add them back, but since I don't have a JProgram here, I needed to turn the null method and field into singleton objects so I can access them. http://gwt-code-reviews.appspot.com/1442802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Enables on the persistent unit cache by default. (issue1448801)
http://gwt-code-reviews.appspot.com/1448801/diff/1/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java File dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java (right): http://gwt-code-reviews.appspot.com/1448801/diff/1/dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java#newcode53 dev/core/src/com/google/gwt/dev/javac/UnitCacheFactory.java:53: } else if (cacheDir == null) { On 2011/05/13 17:20:35, jbrosenberg wrote: Shouldn't we offer a useful default for the cacheDir, such as the java.io.tmpdir property, so that users will be able to take advantage of caching out of the box, without having to take special effort. We do offer a sane default, but its hard to offer one here. The different entry points GWTShell, DevMode and Compiler offer defaults based on other settings. For DevMode and Compiler, it puts it under war/WEB-INF/gwt-unitCache For GWTShell it puts it under .gwt-tmp/gwt-unitCache http://gwt-code-reviews.appspot.com/1448801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Attachable elements in UiBinder: always run logicalAdd(Attachable) for Attachable widgets. (issue1446801)
LGTM http://gwt-code-reviews.appspot.com/1446801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Decentralize nullmethod/nullfield (issue1442802)
LGTM http://gwt-code-reviews.appspot.com/1442802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Enables on the persistent unit cache by default. (issue1448801)
LGTM http://gwt-code-reviews.appspot.com/1448801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10182 committed - Attachable elements in UiBinder: always run logicalAdd(Attachable) for...
Revision: 10182 Author: jul...@google.com Date: Fri May 13 08:01:50 2011 Log: Attachable elements in UiBinder: always run logicalAdd(Attachable) for Attachable widgets. Before this patch, if we declared a gwt:Attachable/ in the UiBinder template and a corresponding @UiField(provided=true) field in the Java class, no event handlers were attached to the widget. This happened because of a check in UiBinder's AttachableInterpreter. It invoked logicalAdd only if the field derived from IsWidget, which is not the case of Attachable. As we were declaring it only as an Attachable, it did not run logicalAdd over it, so the event handlers were not installed. logicalAdd(Attachable) does all type checks necessary. This patch makes UiBinder always produce code to logicalAdd(Attachable) the widget declared as gwt:Attachable/ in the template, which causes the event handlers to get attached correctly. Review at http://gwt-code-reviews.appspot.com/1446801 http://code.google.com/p/google-web-toolkit/source/detail?r=10182 Modified: /trunk/user/src/com/google/gwt/uibinder/elementparsers/AttachableInterpreter.java === --- /trunk/user/src/com/google/gwt/uibinder/elementparsers/AttachableInterpreter.java Thu Apr 28 08:49:13 2011 +++ /trunk/user/src/com/google/gwt/uibinder/elementparsers/AttachableInterpreter.java Fri May 13 08:01:50 2011 @@ -67,14 +67,10 @@ %s.performDetachedInitialization();, fieldManager.convertFieldToGetter(childFieldWriter.getName())); -// If this particular Attachable is a Widget, it needs to be added to the -// HTMLPanel. -if (uiWriter.isWidgetElement(elem)) { - fieldWriter.addDetachStatement( - %s.logicalAdd(%s);, - fieldManager.convertFieldToGetter(fieldName), - fieldManager.convertFieldToGetter(childFieldWriter.getName())); -} +fieldWriter.addDetachStatement( +%s.logicalAdd(%s);, +fieldManager.convertFieldToGetter(fieldName), +fieldManager.convertFieldToGetter(childFieldWriter.getName())); // TODO(rdcastro): use the render() call that receives the SafeHtmlBuilder String elementHtml = fieldManager.convertFieldToGetter(childFieldWriter.getName()) + .render( -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Pruner runs only once. (issue1436802)
On Fri, May 13, 2011 at 11:15 AM, Eric Ayers zun...@google.com wrote: I've been reading the code and talking to Scott about it. The loop being removed is the while() loop in execImpl(). The jitter is the fact that the ControlFlowAnalyzer might return one result for liveness before the Pruner runs, and a different result after Pruner runs. If you don't loop inside of Pruner, then the entire optimization pass may have to run extra times. Great explanation! The last time we tried to naively remove the while loop from Pruner, the outer optimization loop went from ~7 passes to ~10 passes for Showcase, and the total optimization time went up. You can think of my patch as converging faster. With my patch in and the Pruner loop gone, you still only get ~7 outer optimization loops, and the total optimization time goes down. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10183 committed - Decentralize nullmethod/nullfield....
Revision: 10183 Author: sco...@google.com Date: Fri May 13 08:44:36 2011 Log: Decentralize nullmethod/nullfield. http://gwt-code-reviews.appspot.com/1442802/ Review by: jbrosenb...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10183 Modified: /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JField.java /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JMethod.java /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/js/JsniClassLiteral.java /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/js/JsniFieldRef.java /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/js/JsniMethodRef.java /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JField.java Tue Apr 19 10:10:18 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JField.java Fri May 13 08:44:36 2011 @@ -67,6 +67,17 @@ } } + private static class ExternalSerializedNullField implements Serializable { +public static final ExternalSerializedNullField INSTANCE = new ExternalSerializedNullField(); + +private Object readResolve() { + return NULL_FIELD; +} + } + + public static final JField NULL_FIELD = new JField(SourceOrigin.UNKNOWN, nullField, null, + JNullType.INSTANCE, false, Disposition.FINAL); + private final JDeclaredType enclosingType; private final boolean isCompileTimeConstant; private final boolean isStatic; @@ -153,6 +164,8 @@ protected Object writeReplace() { if (enclosingType != null enclosingType.isExternal()) { return new ExternalSerializedForm(this); +} else if (this == NULL_FIELD) { + return ExternalSerializedNullField.INSTANCE; } else { return this; } === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JMethod.java Thu May 5 06:03:58 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JMethod.java Fri May 13 08:44:36 2011 @@ -55,8 +55,24 @@ } } + private static class ExternalSerializedNullMethod implements Serializable { +public static final ExternalSerializedNullMethod INSTANCE = new ExternalSerializedNullMethod(); + +private Object readResolve() { + return NULL_METHOD; +} + } + + public static final JMethod NULL_METHOD = new JMethod(SourceOrigin.UNKNOWN, nullMethod, null, + JNullType.INSTANCE, false, false, true, false); + private static final String TRACE_METHOD_WILDCARD = *; + static { +NULL_METHOD.setSynthetic(); +NULL_METHOD.freezeParamTypes(); + } + private static void trace(String title, String code) { System.out.println(---); System.out.println(title + :); @@ -352,6 +368,8 @@ protected Object writeReplace() { if (enclosingType != null enclosingType.isExternal()) { return new ExternalSerializedForm(this); +} else if (this == NULL_METHOD) { + return ExternalSerializedNullMethod.INSTANCE; } else { return this; } === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java Tue May 10 05:59:20 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java Fri May 13 08:44:36 2011 @@ -335,10 +335,6 @@ private final MapJMethod, JMethod instanceToStaticMap = new IdentityHashMapJMethod, JMethod(); - private JField nullField; - - private JMethod nullMethod; - private MapJReferenceType, Integer queryIds; /** @@ -855,22 +851,11 @@ } public JField getNullField() { -if (nullField == null) { - nullField = - new JField(createSourceInfoSynthetic(JProgram.class), nullField, null, - JNullType.INSTANCE, false, Disposition.FINAL); -} -return nullField; +return JField.NULL_FIELD; } public JMethod getNullMethod() { -if (nullMethod == null) { - nullMethod = - new JMethod(createSourceInfoSynthetic(JProgram.class), nullMethod, null, - JNullType.INSTANCE, false, false, true, false); - nullMethod.setSynthetic(); -} -return nullMethod; +return JMethod.NULL_METHOD; } public int getQueryId(JReferenceType elementType) { === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/js/JsniClassLiteral.java Tue May 10 05:59:20 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/js/JsniClassLiteral.java Fri May 13 08:44:36 2011 @@ -28,6 +28,7 @@ public JsniClassLiteral(SourceInfo info, String ident, JType type) { super(info, type); +assert ident != null; this.ident = ident; } === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/ast/js/JsniFieldRef.java Tue Apr 19 10:10:18 2011 +++
[gwt-contrib] Re: Enables on the persistent unit cache by default. (issue1448801)
LGTM http://gwt-code-reviews.appspot.com/1448801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: SafeHtmlRenderer code gen for UiBinder. Picking up issue 1426803 (issue1442804)
http://gwt-code-reviews.appspot.com/1442804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: SafeHtmlRenderer code gen for UiBinder. Picking up issue 1426803 (issue1442804)
http://gwt-code-reviews.appspot.com/1442804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: SafeHtmlRenderer code gen for UiBinder. Picking up issue 1426803 (issue1442804)
PTAL. Smoke tests pass. On 2011/05/13 19:16:42, rchandia wrote: http://gwt-code-reviews.appspot.com/1442804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fix various warnings. (issue1446804)
Reviewers: rice, Description: Fix various warnings. Please review this at http://gwt-code-reviews.appspot.com/1446804/ Affected files: M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskListActivity.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskReadView.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java Index: samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskListActivity.java === --- samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskListActivity.java (revision 10181) +++ samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskListActivity.java (working copy) @@ -25,7 +25,6 @@ import com.google.gwt.sample.mobilewebapp.client.place.TaskEditPlace; import com.google.gwt.sample.mobilewebapp.client.place.TaskListPlace; import com.google.gwt.sample.mobilewebapp.shared.TaskProxy; -import com.google.gwt.storage.client.Storage; import com.google.gwt.user.client.Timer; import com.google.gwt.user.client.ui.AcceptsOneWidget; import com.google.web.bindery.requestfactory.shared.Receiver; @@ -107,8 +106,6 @@ } }; - private final Storage storage; - /** * A boolean indicating that we should clear the task list when started. */ @@ -141,7 +138,6 @@ public TaskListActivity(ClientFactory clientFactory, boolean clearTaskList) { this.clientFactory = clientFactory; this.clearTaskList = clearTaskList; -this.storage = clientFactory.getLocalStorageIfSupported(); } public ClickHandler getAddButtonHandler() { Index: samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskReadView.java === --- samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskReadView.java (revision 10181) +++ samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskReadView.java (working copy) @@ -20,7 +20,6 @@ import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.sample.mobilewebapp.client.activity.TaskReadView; -import com.google.gwt.sample.mobilewebapp.client.ui.DateButton; import com.google.gwt.sample.mobilewebapp.shared.TaskProxy; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; @@ -30,7 +29,6 @@ import com.google.gwt.user.client.ui.DockLayoutPanel; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.Label; -import com.google.gwt.user.client.ui.TextBoxBase; import com.google.gwt.user.client.ui.Widget; /** Index: samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java === --- samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java (revision 10181) +++ samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java (working copy) @@ -26,10 +26,8 @@ import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.DateLabel; import com.google.gwt.user.client.ui.Label; -import com.google.gwt.user.client.ui.TextBoxBase; import com.google.gwt.user.client.ui.Widget; import com.google.gwt.widget.client.TextButton; -import com.google.web.bindery.requestfactory.gwt.client.RequestFactoryEditorDriver; /** * View used to edit a task. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix various warnings. (issue1446804)
LGTM http://gwt-code-reviews.appspot.com/1446804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix various warnings. (issue1446804)
nevermind http://gwt-code-reviews.appspot.com/1446804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix various warnings. (issue1446804)
No, do mind. LGTM accepted, thankee http://gwt-code-reviews.appspot.com/1446804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] This change works around a problem found in GWT Designer testing. (issue1446805)
Reviewers: scheglov, scottb, Description: This change works around a problem found in GWT Designer testing. The compilation unit rescue was really only intended for old cached compilation units, not files that change after you first start running the process. Please review this at http://gwt-code-reviews.appspot.com/1446805/ Affected files: M dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java Index: dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java === --- dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java (revision 10183) +++ dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java (working copy) @@ -394,17 +394,19 @@ new ResourceCompilationUnitBuilder(typeName, resource); CompilationUnit cachedUnit = unitCache.find(resource.getPathPrefix() + resource.getPath()); + + // Try to rescue cached units from previous sessions where a jar has been + // recompiled. if (cachedUnit != null cachedUnit.getLastModified() != resource.getLastModified()) { unitCache.remove(cachedUnit); -if (!cachedUnit.getContentId().equals(builder.getContentId())) { +if (cachedUnit instanceof CachedCompilationUnit +cachedUnit.getContentId().equals(builder.getContentId())) { + CachedCompilationUnit updatedUnit = + new CachedCompilationUnit((CachedCompilationUnit) cachedUnit, resource + .getLastModified(), resource.getLocation()); + unitCache.add(updatedUnit); +} else { cachedUnit = null; -} else { - // Update the cache. The location might have changed since last build - // (e.g. jar to file) - CachedCompilationUnit updatedUnit = - new CachedCompilationUnit(cachedUnit.asCachedCompilationUnit(), - resource.getLastModified(), resource.getLocation()); - unitCache.add(updatedUnit); } } if (cachedUnit != null) { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10184 committed - Fix various warnings....
Revision: 10184 Author: gwt.mirror...@gmail.com Date: Fri May 13 14:17:46 2011 Log: Fix various warnings. Review at http://gwt-code-reviews.appspot.com/1446804 Review by: r...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10184 Modified: /trunk/samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskListActivity.java /trunk/samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskReadView.java /trunk/samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java === --- /trunk/samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskListActivity.java Tue May 10 20:04:34 2011 +++ /trunk/samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskListActivity.java Fri May 13 14:17:46 2011 @@ -25,7 +25,6 @@ import com.google.gwt.sample.mobilewebapp.client.place.TaskEditPlace; import com.google.gwt.sample.mobilewebapp.client.place.TaskListPlace; import com.google.gwt.sample.mobilewebapp.shared.TaskProxy; -import com.google.gwt.storage.client.Storage; import com.google.gwt.user.client.Timer; import com.google.gwt.user.client.ui.AcceptsOneWidget; import com.google.web.bindery.requestfactory.shared.Receiver; @@ -107,8 +106,6 @@ } }; - private final Storage storage; - /** * A boolean indicating that we should clear the task list when started. */ @@ -141,7 +138,6 @@ public TaskListActivity(ClientFactory clientFactory, boolean clearTaskList) { this.clientFactory = clientFactory; this.clearTaskList = clearTaskList; -this.storage = clientFactory.getLocalStorageIfSupported(); } public ClickHandler getAddButtonHandler() { === --- /trunk/samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskReadView.java Mon May 9 10:25:15 2011 +++ /trunk/samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskReadView.java Fri May 13 14:17:46 2011 @@ -20,7 +20,6 @@ import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.sample.mobilewebapp.client.activity.TaskReadView; -import com.google.gwt.sample.mobilewebapp.client.ui.DateButton; import com.google.gwt.sample.mobilewebapp.shared.TaskProxy; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; @@ -30,7 +29,6 @@ import com.google.gwt.user.client.ui.DockLayoutPanel; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.Label; -import com.google.gwt.user.client.ui.TextBoxBase; import com.google.gwt.user.client.ui.Widget; /** === --- /trunk/samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java Mon May 9 10:25:15 2011 +++ /trunk/samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java Fri May 13 14:17:46 2011 @@ -26,10 +26,8 @@ import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.DateLabel; import com.google.gwt.user.client.ui.Label; -import com.google.gwt.user.client.ui.TextBoxBase; import com.google.gwt.user.client.ui.Widget; import com.google.gwt.widget.client.TextButton; -import com.google.web.bindery.requestfactory.gwt.client.RequestFactoryEditorDriver; /** * View used to edit a task. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fixed malformed REDIRECT URL on login in MobileWebApp (issue1447805)
Reviewers: rjrjr, jlabanca, Description: Fixed malformed REDIRECT URL on login in MobileWebApp Please review this at http://gwt-code-reviews.appspot.com/1447805/ Affected files: M samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/server/GaeAuthFilter.java M samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/shared/GaeHelper.java Index: samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/server/GaeAuthFilter.java === --- samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/server/GaeAuthFilter.java (revision 10183) +++ samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/server/GaeAuthFilter.java (working copy) @@ -45,7 +45,7 @@ HttpServletResponse response = (HttpServletResponse) servletResponse; if (!userService.isUserLoggedIn()) { - response.setHeader(login, userService.createLoginURL(GaeHelper.REDIRECT_URL_TOKEN)); + response.setHeader(login, userService.createLoginURL(GaeHelper.REDIRECT_URL)); response.sendError(HttpServletResponse.SC_UNAUTHORIZED); return; } Index: samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/shared/GaeHelper.java === --- samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/shared/GaeHelper.java (revision 10183) +++ samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/shared/GaeHelper.java (working copy) @@ -26,4 +26,5 @@ */ /* Prefixed with http:// to ensure that GAE doesn't automatically prefix it. */ String REDIRECT_URL_TOKEN = http%3A%2F%2FREDIRECTURL; + String REDIRECT_URL = http://REDIRECTURL;; } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Activities and Places documentation
GWT MVP Development with Activities and Placeshttp://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html does not, as far as I can see, contain any reference to the fact that you need to inherit com.google.gwt.activity.Activity and com.google.gwt.place.Place. Shouldn't it? Did I miss that being called out somewhere else? - Isaac -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] First example of a View that kicks off its own presenter as (issue1446806)
Reviewers: rice, Description: First example of a View that kicks off its own presenter as needed. Part way toward separating presenters from activities, and making all views self inject their presenters. When we're done, we'll have proper MVP separation, but will be able to assemble widgets directly without having to think about their presenters: presenter as widget implementation detail, and still completely JRE safe. Activities no longer know about PlaceController. Instead they post events when they are done. Clearly we need to make it easier to declare new types of events with less boilerplate. Please review this at http://gwt-code-reviews.appspot.com/1446806/ Affected files: M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/App.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/ClientFactoryImplMobile.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/ClientFactoryImplTablet.java A samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/ProvidesPresenter.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskEditActivity.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskListActivity.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/activity/TaskListView.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskListView.java A samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/MainMenuItem.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/desktop/MobileWebAppShellDesktop.java A samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/event/AddTaskEvent.java A samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/event/EditingCanceledEvent.java A samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/event/GoHomeEvent.java A samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/event/ShowTaskEvent.java A samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/event/TaskSavedEvent.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskListView.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/mobile/MobileWebAppShellMobile.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/place/TaskEditPlace.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/place/TaskListPlace.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/tablet/MobileWebAppShellTablet.java D samples/mobilewebapp/war/WEB-INF/classes/marker -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: First example of a View that kicks off its own presenter as (issue1446806)
LGTM http://gwt-code-reviews.appspot.com/1446806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Comment on RequestFactoryMovingParts in google-web-toolkit
Comment by ad...@dualsportmaps.com: Can we get a reference implementation of a JRE RequestTransport? Perhaps going to http://localhost:/rf ? I think that would help a lot of people wrap there head around this. Thank you! For more information: http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryMovingParts -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: This change works around a problem found in GWT Designer testing. (issue1446805)
LGTM http://gwt-code-reviews.appspot.com/1446805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors