Re: Blocking client side execution until server executes the service completely
Hey...Thanks 4 all ur repliesmy problem is solved now On Jun 17, 3:23 pm, Jens jens.nehlme...@gmail.com wrote: See Pauls answer. In addition if you do not want to hide the combo box, just set a message to it and disable it. Then load you combo box data and when its done clear the combo box, fill in the data and re-enable it. -- 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: Issue in method anonymous class in GWT
Thank u all 4 ur replies..my problem is soloved now. On Jun 7, 5:16 pm, Jens jens.nehlme...@gmail.com wrote: You only have a problem if you use GWT.runAsync in your method. If so, everything that is inside the RunAsyncCallback.onSuccess method will be downloaded as a separate javascript file once your app reaches this point. The download will happen in parallel/async in production mode. In dev mode you won't see a difference as it will be executed synchronous. Basically if you take my previous example and wrap the Label creation and the label.setText() call into a GWT.runAsync it can happen that onModuleLoad finishes and later on the additional code download finishes and the onSuccess method is called. Thus onSuccess gets called after onModuleLoad finishes. That would result in: onModuleLoad(): started onModuleLoad(): finished Label.setText(): hello world -- 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 add resource folder to webappcreator (-maven) project
i need a resource folder (maven) in my project (created by webappcreator -maven). for some reason webappcreator didn't generate them. the problem is simply adding new folders doesn't work (in eclipse). the resource folders need special settings in java bild path/source. is there a way to generate such folders afterwards? (gwt-maven-plugin archetype generates them but has different project layout - i hope in future there will be one gwt-maven project layout and one gwt-maven-eclipse-project layout) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Rx9zi-qjLtIJ. 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: Using GWT-FX to fade one image into another
Haha I know what opacity is :-). I did take a hint and created two images though faded one in the other out. Thanks On Jul 4, 1:38 am, Jeffrey Chimene jchim...@gmail.com wrote: On 7/3/2011 6:35 PM, stymie wrote: Not very helpful. On Jul 3, 6:02 pm, Jeffrey Chimene jchim...@gmail.com wrote: On 7/3/2011 5:12 PM, stymie wrote: I am using the code below to fade an image in gwt. Fade theFade = new Fade(); theFade.addEffectElement(image_1.getElement()); theFade.play() I was wondering what the best way to fade one image into another would be? opacity It's an opaque answer! Increase the opacity on the image to fade out and decrease the opacity on the image to fade in. If you still don't understand, see your CSS reference. -- 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: RootPanel.clear() method slows down after multiple use
You're adding a ClickHandler each time you switchView, that might very well be your issue. You should separate building views and showing/hiding them. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/puMOv3XE7ncJ. 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: Pluggable modules
Hi Berto, I've stuck everything on github; git://github.com/manstis/gwt-plugins.git plugin - the plugin pluginserver - the framework plugincommon contains my common model There's only about 10 files in all; so it's not so ominous. I thought this would be easier than trying to explain directly - I'm not expecting you to fix anything, it's just so you can see what I have and give some suggestions. As it stands, I can pass the common model class to the framework, but all attributes are undefined: http://stackoverflow.com/questions/6535303/gwt-gwt-exporter-passing-objects If you decided to try and run it; plugin and pluginserver WARs can be deployed to Tomcat (I use 6.0) and select the URL for the server portion. Cheers, Mike On Jul 3, 10:14 am, lemaiol lema...@gmail.com wrote: Hi Mike, How are the modules loaded and how are they invoked? Berto On Jun 22, 2:10 pm, manstis michael.ans...@gmail.com wrote: Great, lots to play with :) Before I look into writing my own JSNI bridge, I've still been trying to use gwt-exporter, but. I've three GWT applications:- (1) Plugin (inherits Common) (2) Backend (inherits Common) (3) Common Plugin Contains:- ... echoButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { //Debugging statements shown -- shows 'callback' is not null PluginCallbackString callback = getPluginCallback(); Window.alert(Plugin.onModuleLoad.onClick.callback is + (callback != null ? not : ) + null); echo(text.getText(), callback); } }); ... private native void echo(String text, PluginCallbackString callback) /*-{ //Debugging statements shown -- shows 'callback' is not null alert(Plugin.echo.callback is + (callback != null ? not : ) + null); $wnd.com.anstis.pluginserver.CommonService.echo(text, callback); }-*/; Backend Contains:- public void onModuleLoad() { //Use gwt-exporter to generate the JSNI for CommonService.class GWT.create(CommonService.class); } CommonService is:- @Export public class CommonService implements Exportable { private static final EchoServiceAsync echoService = GWT.create(EchoService.class); public static void echo(String input, PluginCallbackString callback) { //Debugging statements shown -- shows 'callback' is null Window.alert(CommonService.echo.callback is + (callback != null ? not : ) + null); try { //The guts of the method, invoke a GWT-RPC call -- RTE, as 'callback' is null echoService.echo(input, callback); } catch (Exception e) { e.fillInStackTrace(); e.printStackTrace(System.out); Window.alert(e.getMessage()); } } } Common Simply defines PluginCallback, as follows:- public class PluginCallbackT implements AsyncCallbackT { public void onFailure(Throwable caught) {} public void onSuccess(T result) {} } My problem is that the PluginCallback instance is proven to be non- null in Plugin (both Java and JSNI methods), but is reported as null in Backends CommonService. Somewhere it is getting munged, but I only pass a Java Object from Plugin to JSNI (echo) to Java (CommonService) so don't understand why it's being nulled?!?! Any ideas (I'll post as a new question if you don't see anything wrong, so it gets seen by a new audience as opposed to those just following this thread). Thanks, Mike On Jun 21, 7:32 pm,lemaiollema...@gmail.com wrote: Hi Mike, I am growing to believe I need to deploy each plug-in as a separate WAR on a web-server. Is this true, or have I missed something? In the case of my architecture, it is even a requirement that every plugin will be deployed as an own WAR file. It allows different teams working in parallel in completely independent applications (plugins) which have a common message data model. When inside the plugins container, they receive messages with this common data model. When out of the plugins container, the show a simplified UI to let the developer pass a message generated by hand and therefore test the application. I am also using gwt-exporter to make the JSNI messaging mechanism; i.e. I just write an Exportable class and use the resulting JS API from my plugins. I am hoping to use gwt-api-interop to remove the need to use the JS API. I have seen gwt-exporter but do not know gwt-api-interop. I assume the JS bridge between GWT applications handles the messaging between them (i.e. plugins register callbacks to handle messages sent from the host?) Yes. If I understand correctly, adding additional script tags to my loader page and having each plug-in as a separate WAR I avoid the need to inherit in my gwt.xml file? My common model and
Re: avoiding web.xml configuration for rpc servlet
On Monday, July 4, 2011 7:31:41 AM UTC+2, Elhanan wrote: and does jetty support that? Jetty 8 will. btw what DOES jetty support in terms of jee? http://wiki.eclipse.org/Jetty/Reference/Web_Profile That's for Jetty 8 though. AFAIK, Jetty 7 is almost the same, just without servlet 3. Jetty 6 (bundled in GWT SDK) only supports common annotations: http://docs.codehaus.org/display/JETTY/Annotations -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/p2ophldQ_hkJ. 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.
cannot deserialize arraylist - but why?
this is the error message i get: Caused by: com.google.gwt.user.client.rpc.SerializationException: java.util.ArrayList/4159755760 at com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:153) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:114) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:111) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserialize(ButtonRow_FieldSerializer.java:18) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserial(ButtonRow_FieldSerializer.java:36) at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize(SerializerBase.java:95) how to find out what exactly is causing the error? the arraylist itself obviously cannot be the problem, i've sent a lot of them back and forth. everything the list contains implements isserializable... -- 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: cannot deserialize arraylist - but why?
Hi, I think Class of the object your want to send via GWTRPC must have default constructure. And, if you are putting different kind of objects in one linked list, it will not be deserialised. I faced this issues long back and I am not very sure about the solution ... -- Prashant code.google.com/p/claymus/ On Mon, Jul 4, 2011 at 2:26 PM, Dennis Haupt d.haup...@googlemail.comwrote: this is the error message i get: Caused by: com.google.gwt.user.client.rpc.SerializationException: java.util.ArrayList/4159755760 at com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:153) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:114) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:111) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserialize(ButtonRow_FieldSerializer.java:18) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserial(ButtonRow_FieldSerializer.java:36) at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize(SerializerBase.java:95) how to find out what exactly is causing the error? the arraylist itself obviously cannot be the problem, i've sent a lot of them back and forth. everything the list contains implements isserializable... -- 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: gwt-servlet.jar size 200KB to 4MB?
After realizing that JNLP tricked me (the big gwt-servlet.jar was still being included), it turns out that the old small gwt-servlet.jar doesn't work. I tried Thomas's idea to cut down the correct version gwt-servlet.jar, however, I really didn't know what I could and couldn't cut, and I cut something that I shouldn't have, and it failed. Finally I tried Davids idea and built from source to get the requestfactory-server.jar. Turns out that the server needs com/google/gwt/user/client/rpc/RemoteService which isn't in there. It also isn't in requestfactory-client.jar either. The only place I can find it is in gwt-servlet.jar. Is there not a jar file with just the RPC stuff somewhere? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0v5vgj39l8oJ. 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: CellTable and GAE Datastore cursors
Hi (Kalimera) I am in the same situation, I am trying to display datastore data on a celltable. To avoid having to page back and store cursors I place the celltable in a scrollpanel and when scroll reaches the end I change the range and the asyncdataprovider makes a new call to get new records. Finally, I add new records at the end of the list being displayed. However, If I wanted to use pagination and page back I would probably store the cursors in the asyncdataprovider. G :-) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3TMlW-gZZZQJ. 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: Request Builder
After some research i can say that there is general problem with advanced communication outside servlet/app engine. Problem is easy serialization. I created own based solution on JavascriptObject and amfphp. Serializaing transparently but I write java DTO by hand. JavascriptObject is problematic in this regard that cant have useful constructor and no more than one class can implement interface and there is no reflections java methods in gwt client side that summarized now I write javascript code to send as hint for server deserializiation. it should be created by gwt Generator but generator must form complete classes (more work for me now). On Jul 3, 5:05 am, sanjay kanwar sanj.kan...@gmail.com wrote: Hi There, I have a task in which i hav to use Request Builder and JSON to fetch the data frm the php server and show it in the screen in the form of image representating tht data. I am new to jst a recent graduate and new to this technology any help about how to proceed would be very helpful. Thanks in Advance Sanjay Kanwar -- 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: Request Builder
actually we've decided to abandon RequestFactory framework for the reason that it cannot be ported elsewhere. that is if we decided to have other clients such as silverlight/flex, those won't have request factory capabilities . so it kinda binds us to gwt. On Mon, Jul 4, 2011 at 12:56 PM, Robert W riasol@gmail.com wrote: After some research i can say that there is general problem with advanced communication outside servlet/app engine. Problem is easy serialization. I created own based solution on JavascriptObject and amfphp. Serializaing transparently but I write java DTO by hand. JavascriptObject is problematic in this regard that cant have useful constructor and no more than one class can implement interface and there is no reflections java methods in gwt client side that summarized now I write javascript code to send as hint for server deserializiation. it should be created by gwt Generator but generator must form complete classes (more work for me now). On Jul 3, 5:05 am, sanjay kanwar sanj.kan...@gmail.com wrote: Hi There, I have a task in which i hav to use Request Builder and JSON to fetch the data frm the php server and show it in the screen in the form of image representating tht data. I am new to jst a recent graduate and new to this technology any help about how to proceed would be very helpful. Thanks in Advance Sanjay Kanwar -- 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.
Enlarge the image of a PushButton
Hello, To put an image on a PushButton I use the method : myPushButton.getUpFace().setImage(myImage);. The image does not take all the space, there are many gray space below and above the image. I wanted the image takes all the space of the button. Could you help me? Thank you in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Canceling a ClickEvent
I have a button with 2 ClickHandlers. After the first handler executes, I would like to cancel the event, so that it doesn't reach the second handler (based on some internal logic). Is there any way to cancel an event at this point? I have tried: event.stopPropagation(); but it has no effect. Any help is appreciated. Thanks. Eugen. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/pQtbMMbohQEJ. 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.
GPE makes GWT projects build extremely long
When building GWT project it takes like approximately 1.30h to build. If I turn off GWT and Google AppEngine nature for the project it takes only a few seconds to build. I'm using Eclipse Indigo + m2e 1.0 + GPE 2.3.2. I have also tried using Eclipse Helios + m2e 1.0 + GPE 2.3.2 A screenshot of memory heap usage can be found here: https://picasaweb.google.com/lh/photo/9TO8cY-XEpLvtAWAUu1J6OLZadJo0K1gwox6XuxJ2b0?feat=directlink I tried deleting workspace, creating new one, deleting projects and importing again, reinstalling eclipse but I always end up with extremely long build cycle Has anyone else had similar issues? Marko -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/5lBFdiS4920J. 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 Development Enviorment
See http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html. Best regards, Yannis On Mon, Jun 20, 2011 at 6:31 AM, Juhi jbha...@entrib.com wrote: Hi, I am developing a gwt/smartgwt - maven app. In case I make changes to my code , I have to recompile my entire app and this takes a lot of time. Searching on the internet, I got GWT Development mode plugin. But there is no clear idea as how to use it. Can anyone please help me with it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: JQuery like animation
Have you ever heard of Gwt-Query ? :D http://code.google.com/p/gwtquery/ Cheers, On Sun, Jul 3, 2011 at 11:58 AM, Guy Nirpaz g...@totango.com wrote: Hey, Any idea how to get functionality similar to JQuery: $(p.neat).addClass(ohmy).*show(slow);* * * * * I'm referring to the { .show(slow) } part. I'm looking to find an extensive set of animation capabilities which can be used with GWT (not ext-GWT or other non native GWT libraries) Any tips will help Guy * * -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/miIqFHgBEjMJ. 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: cannot deserialize arraylist - but why?
neither the missing default constructor nor different element types are the problem. i suddenly can't deserialize any arraylist, no matter what's inside. is there a way to debug it to see what's wrong? 2011/7/4 Prashant antsh...@gmail.com Hi, I think Class of the object your want to send via GWTRPC must have default constructure. And, if you are putting different kind of objects in one linked list, it will not be deserialised. I faced this issues long back and I am not very sure about the solution ... -- Prashant code.google.com/p/claymus/ On Mon, Jul 4, 2011 at 2:26 PM, Dennis Haupt d.haup...@googlemail.comwrote: this is the error message i get: Caused by: com.google.gwt.user.client.rpc.SerializationException: java.util.ArrayList/4159755760 at com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:153) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:114) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:111) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserialize(ButtonRow_FieldSerializer.java:18) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserial(ButtonRow_FieldSerializer.java:36) at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize(SerializerBase.java:95) how to find out what exactly is causing the error? the arraylist itself obviously cannot be the problem, i've sent a lot of them back and forth. everything the list contains implements isserializable... -- 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: problems using ScrollPanel and layout panels
Williame, thanks for your response, I really hope we can find an elegant solution. I don't think that your approach works well for dynamic content. I don't really know the size of the cell tree in advance so I can't adjust the size of the containing panel when placing the cell tree in it. At first, I used like you a HtmlPanel as my main container, and I had outside scrolling working fine, but I had to switch from it when I started to use a SplitLayoutPanel for one of my views, because the split panel worked only when specifying the exact height for it, I couldn't get it to work with a height of 100%. So I switched to using RootLayoutPanel and converted all my outer panels to layout panels and the SplitLayoutPanel started to work correctly (not surprisingly, as the documentation for layout panels clearly says that you have to attach them only to other layout panels). Having solved that I bumped into this inner scrolling problem. From the layout panels documentation: ScrollPanel... works well in layout panels (see below), which provide it with the explicit size it needs to scroll properly. And below we have this example: g:DockLayoutPanel unit='EM' g:north size='4' g:LabelHeader/g:Label /g:north g:west size='16' g:LabelNavigation/g:Label /g:west g:center g:ScrollPanel g:LabelContent Area/g:Label /g:ScrollPanel /g:center /g:DockLayoutPanel Which is like my code, except they use static content for the scroll panel. I suppose an elegant solution must exist, because almost all web apps will use dynamic content. On Jul 3, 4:22 am, Williame william.eub...@uah.edu wrote: I feel your pain. I've spent hours trying to make my center docklayoutpanel scrollable while at the same time make it replacable by new widgets based on menu choices. Most things worked fine by putting a Scrollpanel in the center block, except TabLayoutPanel put a few level inside it would never show the tab headers. I found that ResizeLayoutPanel can help. Hope it never gets deprecated. You can use Window.getClientWidth() and Window.getclientHeight() to get the visible window size in pixel, then subtract the size of the other screen elements. But this did not resize well for me and I did not want to write a lot of code to handle and propagate onResize. In the end I went with an html panel for my main outer interface, so I could use simple div elements for the top(north) elements, and used a ResizeLayoutPanel for the placeholder for content. In the java side of the uibinder code I put in a call to a ResizeLayoutPanel size adjustment after clearing and placing new panels into the ResizeLayoutPanel widget. g:HTMLPanel styleName={style.mainPanel} div class={style.header}My Company name/div div ... !-- content widget placeholder -- g:ResizeLayoutPanel ui:field=uberContent title=Content styleName={style.appcontent} height=384px width=681px/ /g:HTMLPanel In the code to replace the content widget with a different widget, the panel size of the new widget can be used to resize the placeholder widget if the new panel is a fixed size layout panel. If it is not, you need to explicitly specify the size of the new panel: uberContent.clear() MyPanel panel = new MyPanel(); uberContent.add(panel); adjustContent(panel.getOffsetHeight(),panel.getOffsetWidth()); In adjustContent(int height, int width) method, reset placeholder widget size to just a little bigger than the new panel added to it: uberContent.setHeight(height + 50 + px); uberContent.setWidth(width + 20 + px); The css for the placeholder widget, uberContent, sets margin-bottom to keep the panel below the header div's. The scrolling seems to work like a normal web app, resizes work pretty well too. Tested with latest of each: IE, firefox, chrome, safari and opera. Even iPad(safari). The overflow css attribute seems to wreak havok on layout panels, especially tablayoutpanel. I have it set to overflow: scroll; for the style.mainpanel, outer htmlpanel. But not set at all for the ResizeLayoutPanel style. DockLayoutpanel sets overflow: hidden by design. I wouldn't be surprised if there are several better, more elegant solutions, which I would love to know of, but this worked for me. Hope it helps. Discalimer I am neither java, css or gwt expert. But do love gwt. Thank you Google!! /Disclaimer -William -- 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: cannot deserialize arraylist - but why?
Did you add anything to your class which is not serializable ? ... don't know much about debugging GWT .. :( On Mon, Jul 4, 2011 at 6:13 PM, Dennis Haupt d.haup...@googlemail.comwrote: neither the missing default constructor nor different element types are the problem. i suddenly can't deserialize any arraylist, no matter what's inside. is there a way to debug it to see what's wrong? 2011/7/4 Prashant antsh...@gmail.com Hi, I think Class of the object your want to send via GWTRPC must have default constructure. And, if you are putting different kind of objects in one linked list, it will not be deserialised. I faced this issues long back and I am not very sure about the solution ... -- Prashant code.google.com/p/claymus/ On Mon, Jul 4, 2011 at 2:26 PM, Dennis Haupt d.haup...@googlemail.comwrote: this is the error message i get: Caused by: com.google.gwt.user.client.rpc.SerializationException: java.util.ArrayList/4159755760 at com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:153) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:114) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:111) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserialize(ButtonRow_FieldSerializer.java:18) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserial(ButtonRow_FieldSerializer.java:36) at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize(SerializerBase.java:95) how to find out what exactly is causing the error? the arraylist itself obviously cannot be the problem, i've sent a lot of them back and forth. everything the list contains implements isserializable... -- 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: Disposable activities
Thx for the comments. I guess pragmatism is the rule that you never break :-) For now, I turned one of the Activties/presenters into a singleton, so no longer disposable. This presenter works with the main view of the app and would be (almost) always present anyway. Since it is never disponsed, of, this presenter never misses any of the events it is subscribed for. It takes me one extra call to init this activity. The activity mgr returns MainActvity.getInstance() when necessary. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/7N9j13_zwOoJ. 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: cannot deserialize arraylist - but why?
Paste the complete stack trace 2011/7/4 Dennis Haupt d.haup...@googlemail.com neither the missing default constructor nor different element types are the problem. i suddenly can't deserialize any arraylist, no matter what's inside. is there a way to debug it to see what's wrong? 2011/7/4 Prashant antsh...@gmail.com Hi, I think Class of the object your want to send via GWTRPC must have default constructure. And, if you are putting different kind of objects in one linked list, it will not be deserialised. I faced this issues long back and I am not very sure about the solution ... -- Prashant code.google.com/p/claymus/ On Mon, Jul 4, 2011 at 2:26 PM, Dennis Haupt d.haup...@googlemail.comwrote: this is the error message i get: Caused by: com.google.gwt.user.client.rpc.SerializationException: java.util.ArrayList/4159755760 at com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:153) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:114) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:111) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserialize(ButtonRow_FieldSerializer.java:18) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserial(ButtonRow_FieldSerializer.java:36) at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize(SerializerBase.java:95) how to find out what exactly is causing the error? the arraylist itself obviously cannot be the problem, i've sent a lot of them back and forth. everything the list contains implements isserializable... -- 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: JQuery like animation
If you don't care much about old browsers you can also use CSS3 transitions/animations for simple stuff. I used it in a GWT project (i.e. ProgressBar) and it works really well. i.e.: http://aatiis.me/demos/pure-css-progress-bar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/pc9_H6dESdsJ. 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: Canceling a ClickEvent
On 7/4/2011 3:45 AM, Eugen Paraschiv wrote: I have a button with 2 ClickHandlers. After the first handler executes, I would like to cancel the event, so that it doesn't reach the second handler (based on some internal logic). Is there any way to cancel an event at this point? I have tried: event.stopPropagation(); but it has no effect. Any help is appreciated. Thanks. Eugen. Were it me, it's structure this so that a single click handler fires either one or two events. Move the decision logic into the single click handler, and cause it to fire either one or two events. Distribute the logic of the two current click handlers among two new event handlers. There may be determinism issues, so synchronization logic may be required. -- 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: Canceling a ClickEvent
I don't have any control over the firing of the events. It's a Button and when clicked it's going to fire events to the handlers registered with it, if the event is not stopped. If it were my own logic, I could indeed control the firing logic and I could perhaps do what you suggest, but seeing how this is GWT code (and the default behavior for any entity firing events), I don't have that option. Thanks for the feedback. Eugen. On Mon, Jul 4, 2011 at 5:28 PM, Jeffrey Chimene jchim...@gmail.com wrote: On 7/4/2011 3:45 AM, Eugen Paraschiv wrote: I have a button with 2 ClickHandlers. After the first handler executes, I would like to cancel the event, so that it doesn't reach the second handler (based on some internal logic). Is there any way to cancel an event at this point? I have tried: event.stopPropagation(); but it has no effect. Any help is appreciated. Thanks. Eugen. Were it me, it's structure this so that a single click handler fires either one or two events. Move the decision logic into the single click handler, and cause it to fire either one or two events. Distribute the logic of the two current click handlers among two new event handlers. There may be determinism issues, so synchronization logic may be required. -- 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.
Parvez Chauhan wants to chat
--- Parvez Chauhan wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-9cc6250878-37e7bb56ef-9kjHwjdm4JKTm6vdPSbmZnH8yq8 You'll need to click this link to be able to chat with Parvez Chauhan. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with Parvez Chauhan, visit: http://mail.google.com/mail/a-9cc6250878-37e7bb56ef-9kjHwjdm4JKTm6vdPSbmZnH8yq8 Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into conversations - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). -- 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.
class path issues with mixing projects..
hi.. assume that i have a Dynamic Web Project configured with google sdk, which references another project for domain classes, which itself references a 3rd project for persistence utility classes. i'm trying to use tomcat as debug servlet , but the only way i'm able to reslove ClassNotFoundExceptions, is to actually add to the server the referenced projects ,which is a shame is the classpath info is allready there in the project, i've tried using the export option of the build path but it's still won't 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.
Re: Disable/Enable CSS obfuscating in gwt.xml ?
@karthik: The problem is, that in general you can't simply retain the original names. A very important (probably the most important) feature of CssResources is, that each of them effectively gets its own namespace. If you remove that concept (even just for testing), you will create conflicts, if the same style class name is used in different CssResources. If you don't care about that feature, then it's probably best, if you actually use @external on all your style classes, or if you put everything in external CSS files. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Is2bnyQwD5oJ. 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.
LineChart -need to change chart's width on resizing the splitter in SplitLayoutPanel
Hello, I am using GWT 2.2 SplitLayoutPanel. I am using GWT Visualization LineChart(CoreChart) in one of the region. The requirement is that when we re-size the splitter, the current width of that region(which holds the chart) should be applied to the chart. I tried applying the dynamic width of the region to the chart but only the chart area's width got affected but not the x-axis. We need to apply the dynamic width to the options that we pass to the chart. In that case we may need to redraw the chart whenever we do resizing. Can anyone provide is there any other option we can set dynamic width to the charts. And also to change the x-axis date formats to our desired date formats. -- 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: Canceling a ClickEvent
You should add a single ClickHandler that has its own logic, and the ClickHandler you'd like to be called conditionally would be known by this specific ClickHandler, which would choose whether to call or not. Events in GWT (as in the DOM for instance) are dispatched to all handlers/listeners; even throwing an exception wouldn't stop the dispatch. If you need another behavior, you have to implement it yourself. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OD0nkE47inkJ. 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 handle resources on server side (maven gwt)
i need some files on sever side but the normal: put it in resources-Folder(i created one because webappcreator didn't) and use MyClass.class.getResourceAsStream(/ + filename); does not work?! i allways get null. usind FileInputStream and absolute path works. gwt-maven-plugin copies the file to target but it seems that it is not part of classpath?! what is the normal way to use resources on server side in a gwt/maven project? thx in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ifeFDPYNeT8J. 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: Latest GWT 2.4 Beta zip Download with HTML5 DnD Support fixed
Thanks On Jun 30, 7:34 pm, Jeff Larsen larse...@gmail.com wrote: You can always build from trunk. http://code.google.com/webtoolkit/makinggwtbetter.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.
Help : Memory Leak Problem
Hello everybody, In my office we are experiencing a very bad problem of memory leak. We are developing an application with GWT based on MVP architecture. Each widget is a MVP and each MVP is based on a own class named DefaultWidgetPresenter. The applicaion has to create periodically new Presenters (subclass of the first) and deletes periodically olders. Anyway application memory grows up. Profiling the application with developer tools provided by Chrome or Safari we registered that Presenter keeps their number increasing slowly and DefaultWidgetPresenter still growing up rapidly, and we don't understand why? We checked if we deleted correctly the presenter and sincerely I can't say yes because our probably no deep understanding of GWT technology. This is the application procedure in a nutshell 1) Application create a Presenter dynamically 2) Then it put its displays in a panel 3) Then after a certain time it creates a new Presenter 4) It clears the panel then add the new display. ... and so on I expected old presenters are garbage collected in some way. In addition I don't understand why we have difference between number of Presenters instances and parents classes instance. I took measurements also from chrome's task manager but I can't understand the relation between profiling and that. In fact when I use profiling the memory grows in a strange way probably because profiling instrument the memory in some way. There is some one that can help us and explain those behaviours? I am wondering also if a key to understand the problem could be understand how GWT implements inheritage and garbage collecting? ? Thank you in advance for any help, this problem is very important. Regards Alberto -- 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: Help : Memory Leak Problem
On Mon, Jul 4, 2011 at 6:00 PM, Alberto Rugnone arugnonechemi...@gmail.comwrote: Hello everybody, In my office we are experiencing a very bad problem of memory leak. We are developing an application with GWT based on MVP architecture. Each widget is a MVP and each MVP is based on a own class named DefaultWidgetPresenter. The applicaion has to create periodically new Presenters (subclass of the first) and deletes periodically olders. Anyway application memory grows up. Profiling the application with developer tools provided by Chrome or Safari we registered that Presenter keeps their number increasing slowly and DefaultWidgetPresenter still growing up rapidly, and we don't understand why? We checked if we deleted correctly the presenter and sincerely I can't say yes because our probably no deep understanding of GWT technology. This is the application procedure in a nutshell 1) Application create a Presenter dynamically 2) Then it put its displays in a panel 3) Then after a certain time it creates a new Presenter 4) It clears the panel then add the new display. ... and so on I expected old presenters are garbage collected in some way. In addition I don't understand why we have difference between number of Presenters instances and parents classes instance. I took measurements also from chrome's task manager but I can't understand the relation between profiling and that. In fact when I use profiling the memory grows in a strange way probably because profiling instrument the memory in some way. There is some one that can help us and explain those behaviours? I am wondering also if a key to understand the problem could be understand how GWT implements inheritage and garbage collecting? ? Thank you in advance for any help, this problem is very important. Regards Alberto -- 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. Hi Alberto, Being an absolute novice in Java development but having spend many years supporting Java based applications and working with many other programming languages I would say there is a relatively simple reason for this behavior. Usually the garbage collector will kill what ever is considered old enough (there are various stages in the objects life cycle but who cares right unused objects will die in the end). What you are doing to kill of the object in your code is not working as you expect it to. As long as there is a single reference to the object the garbage collector will see this as a object that's in use and thus will not remove it. So what I understand form your post you are simply deleting the presenter from the panel. This works well for static things like a button or an image but as soon as you are talking a widget that is displaying data the data that you are displaying will still be updated in that widget as all you did is remove the widget from the display part of your program the code that is updating the widget will happily continue to work. I would say you will need to build a destroy method for your presenter that will remove all links to the data to be displayed. If you call this after you delete the presenter you should see the garbage collector clean it up nicely. Now as I said before I am a complete novice in Java/GWT so I cannot make any promises about the sanity of my comments but from what I know from other languages and from supporting Java based systems for many years; the usual reason a garbage collector misses an object is because the developer forgot to remove all references to that object. ;-) Regards, Rob -- 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.
Hacked Simple Sanitizer, added tags and style
I hacked the simple sanitizer to be more useful for me. I think it needs more tags including the style tag, that is minus the possibility of javascript in the style tag which I clean at the end. I also fixed the sanitizer so it could have attributes in the tag. Check out the code here: http://code.google.com/p/gwt-examples/wiki/SafeHtml?ts=1309798060updated=SafeHtml#Sanitizing_HTML Did I miss a tag? Brandon Donnelson http://gwt-examples.googlecode.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/MsLGNtiaVHIJ. 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: how to handle resources on server side (maven gwt)
On 4 July 2011 08:35, tanteanni tantea...@hotmail.com wrote: i need some files on sever side but the normal: put it in resources-Folder(i created one because webappcreator didn't) and use MyClass.class.getResourceAsStream(/ + filename); does not work?! i allways get null. usind FileInputStream and absolute path works. gwt-maven-plugin copies the file to target but it seems that it is not part of classpath?! what is the normal way to use resources on server side in a gwt/maven project? GWT is mostly client side so I doubt it has anything to do with this problem. Server side everything Java should work normally. Is this code in a web app (i.e. a WAR)? Or standalone? If a WAR then note the difference between src/main/resources and src/main/webapp. Check what ends up in your WAR and where. Also, if a WAR, you should use Thread.currentThread().getContextClassLoader().getResourceAsStream() or this.getClass().getResourceAsStream(). The leading slash might be implied, i.e. the filename is treated as being absolute (I read that somewhere, I haven't checked whether it's 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.
richfaces ajax-call and embedded gwt widget
Hello, This is actually a cross post from stackoverflow (http:// stackoverflow.com/questions/6574174/richfaces-ajax-call-and-embedded- gwt-widget). Wasn't sure where I could get a quicker suggestion, hope you don't mind :) I am using a4j:function call from richfaces library to rerender a segment on a website every 20 seconds. The problem is that there is a div element in this segment, that contains gwt widgets. So that everytime the richfaces ajax call is made and replaces the old html code I need to tell GWT that it has to reattach the widget (is a native call to GWT from within the rerendered area). This reattaching results in flickering behavior, you see the richfaces content first and in half a second GWT widgets appear. Does anyone know if there is a more elegant solution to make it user friendly (I cannot get rid of GWT/Richfaces mixture:)). I would like to have my GWT widgets be reattached first before the segment is displayed so that users dont see any blinking/resizing/flickering on the website. Guess, that there should be a hook in richfaces to call external code that would make changes to the new dom tree before it is displayed in the browser. Thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: building custom event differently to avoid boiler plate coding?
I just published an article on this topic. Maybe you want to have a look at it: http://www.canoo.com/blog/2011/07/04/code-generation-in-gwt-with-deferred-binding-cdi-like-events/ Feedback is welcome! cheers, Berto On Jun 22, 5:03 am, Elhanan Maayan elh.maa...@gmail.com wrote: first off you probably mean the strong type definitions provided by GWT, not java right? second, that's not what i'm suggesting, i don't want to use events for enable disable buttons, but i do want to use to create logical messages, that a work process has ended/started, or basically whatever causes you to leave a view and enter another one. i'm also not working with just Object or string, i'm doing exactly the same thing gwt does only with less code, i'm providing strong typed events, with generics, only without the need to actually create a new class for it every single time i can do this: private final MessageFactoryEntity ENTITY_CREATED=new MessageFactoryEntity() private final MessageFactoryEntity ENTITY_DELETED =new MessageFactoryEntity(); ... addHandler(ENTITY_CREATED=new MessageHandlerEntity{ } fire(ENTITY_CREATED.fire(entity)) i get a strong typed custom event just like before, only with much less code.. On Tue, Jun 21, 2011 at 10:46 PM, Alex D. alex.dobjans...@gmail.com wrote: You shouldn't use custom events for every possible event in your app, imo -- or, even better, identify the best events that match as much as possible. What you're suggesting by this is removing the strong-type event definitions provided by Java. Of couse, you can work with a class called Event, that merely has a String name and Object data, but this defeats the purpose of what GWT is suggesting -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Y_ZKLyl29DkJ. 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.
Handling transaction roll-back in RequestFactory service implementations
Some background: I'm using Hibernate on the server side to implement data retrieval/update operations, with RequestFactory service methods to handle interaction between the client and server. Suppose that an error condition is encountered during a service implementation, and to handle that error a database transaction is rolled back. If I do this, then calls to the Locator's find method fail, after my service method completes, due to the Hibernate session being closed . I think that the RF framework is trying to load the objects that were sent as parameters to my service method, in order to determine if they have changed or not. RF encounters exceptions starting at line 268 of SimpleRequestProcessor (in method createReturnOperations). I think that I can work around this by starting a new transaction in my service method after rolling back the one that failed, but I'm wondering if there is a better way to handle this. Since my service doesn't have any way to communicate with the RF framework, I think the answer is no, but I thought I would check. Thanks! Ryan -- 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: building custom event differentlyto avoid boiler plate coding?
hi. while I didn't understand much of above and ill look into it further to understand code generation, I fail to see why not resorting to a factory approach which requires only 2 classes. defined once and no di framework Sent from my HTC - Reply message - From: lemaiol lema...@gmail.com To: Google Web Toolkit google-web-toolkit@googlegroups.com Subject: השב: Re: building custom event differentlyto avoid boiler plate coding? Date: Mon, Jul 4, 2011 21:08 I just published an article on this topic. Maybe you want to have a look at it: http://www.canoo.com/blog/2011/07/04/code-generation-in-gwt-with-deferred-binding-cdi-like-events/ Feedback is welcome! cheers, Berto On Jun 22, 5:03 am, Elhanan Maayan elh.maa...@gmail.com wrote: first off you probably mean the strong type definitions provided by GWT, not java right? second, that's not what i'm suggesting, i don't want to use events for enable disable buttons, but i do want to use to create logical messages, that a work process has ended/started, or basically whatever causes you to leave a view and enter another one. i'm also not working with just Object or string, i'm doing exactly the same thing gwt does only with less code, i'm providing strong typed events, with generics, only without the need to actually create a new class for it every single time i can do this: private final MessageFactoryEntity ENTITY_CREATED=new MessageFactoryEntity() private final MessageFactoryEntity ENTITY_DELETED =new MessageFactoryEntity(); ... addHandler(ENTITY_CREATED=new MessageHandlerEntity{ } fire(ENTITY_CREATED.fire(entity)) i get a strong typed custom event just like before, only with much less code.. On Tue, Jun 21, 2011 at 10:46 PM, Alex D. alex.dobjans...@gmail.com wrote: You shouldn't use custom events for every possible event in your app, imo -- or, even better, identify the best events that match as much as possible. What you're suggesting by this is removing the strong-type event definitions provided by Java. Of couse, you can work with a class called Event, that merely has a String name and Object data, but this defeats the purpose of what GWT is suggesting -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Y_ZKLyl29DkJ. 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: cannot deserialize arraylist - but why?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 the problem lurked deep in my project settings. i mixed up gwt 2.3 and 2.2 Am 04.07.2011 16:05, schrieb Juan Pablo Gardella: Paste the complete stack trace 2011/7/4 Dennis Haupt d.haup...@googlemail.com mailto:d.haup...@googlemail.com neither the missing default constructor nor different element types are the problem. i suddenly can't deserialize any arraylist, no matter what's inside. is there a way to debug it to see what's wrong? 2011/7/4 Prashant antsh...@gmail.com mailto:antsh...@gmail.com Hi, I think Class of the object your want to send via GWTRPC must have default constructure. And, if you are putting different kind of objects in one linked list, it will not be deserialised. I faced this issues long back and I am not very sure about the solution ... -- Prashant code.google.com/p/claymus/ http://code.google.com/p/claymus/ On Mon, Jul 4, 2011 at 2:26 PM, Dennis Haupt d.haup...@googlemail.com mailto:d.haup...@googlemail.com wrote: this is the error message i get: Caused by: com.google.gwt.user.client.rpc.SerializationException: java.util.ArrayList/4159755760 at com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:153) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:114) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:111) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserialize(ButtonRow_FieldSerializer.java:18) at com.webfair.gwt.components.genericforms.shared.ButtonRow_FieldSerializer.deserial(ButtonRow_FieldSerializer.java:36) at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize(SerializerBase.java:95) how to find out what exactly is causing the error? the arraylist itself obviously cannot be the problem, i've sent a lot of them back and forth. everything the list contains implements isserializable... -- 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 mailto:google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com mailto:google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com mailto:google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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. - -- Mit freundlichen Grüßen, Dennis Haupt Plettstrasse 73 81735 München Handy 0176/80130332 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJOEg+iAAoJENRtux+h35aGdfoP/27VFT37qPpRC9yMkRRap8gC Hi26Yt/8S+n/5YTh942uC0Xz76nFahRBxvHw6ur4hGewX5qunB+HRXmdrBnUHwpe
Questions about complex UI events in MVP mode
Now I'm using MVP and one question about complex UI. I've a flowpanel and will add or remove some child widgets(say button or listbox). Because child widgets are dynamically created so I've to capture the event at their parent that is the flowpanel value, once triggered the system will be able to decide which child is the source of the event. But the flowpanel hasn't implemented hasclickhandlers nor hasselectionahandlers, then how can I implement it with presenter and view? I know there is some nested presenter but I would prefer not to go that way. -- 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: RequestFactoryEditorDriver example?
I'm getting the same problem as George when I tried setting up a create entity form - the entity sent to the server is blank even though I fill out the fields. The thing is I copied the code from a Spring Roo app but I just cannot get it to work. I had a look inside the generated delegate code and the methods initialiseSubDelegates() and accept() are empty. Does this mean I'm not adhering to the editor contract properly? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/xoG5H0J4wFkJ. 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 used data binding types generated by Axis2 ADB for communication between browser and web server?
Hi, I am working on a project to create a web-based client for some existing web services using GWT. At the web server side, I use Axis2 ADB to generate the web service client stub to interface with the existing web services. This part works fine. But the problem comes when I try to forward the data binding objects generated by Axis2 to the web browser or the client side through GWT- RPC, as there's no GWT-translated code for all the library dependencies like javax.xml.*, org.apache.axis2.databinding.ADBBean, etc on the client side. Currently, the solutions I can think of is: 1. Manually create the GWT-RPC compatible versions of all the Axis2 data binding types that need to be communicated to the web browser. (This will be a huge amount of work which I would like to automate.) 2. Include all the dependencies using super-source in a GWT module definition file. Both ways are not nice to me. So I am wondering if there is a more elegant and automatic way to resolve the problem? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Does GWT 2.3 provide Synchronous RPC?
Hi, I was trying to understand and implement RPC in GWT. In the StockWatcher example provide at GWT official website they implement the syncronous interface and also the asyncronous interface. However it also mentions that- It is not possible to call this version of the RPC directly from the client. You must create an asynchronous interface to all your services as shown below. My questions: 1. Does GWT 2.3 support synchronous RPC? 2. If not, why are we supposed to have the synchronous interface in the client package? 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.
New Web Application Wizard omits GWT Builder.
I'm creating a new GWT application for App Engine and I find that GWT Builder is missing from the list of builders. GWT Builder is required for the GWT Remote Service wizard to function properly. I manually added this to my .profile buildCommand namecom.google.gdt.eclipse.designer.GWTBuilder/name arguments /arguments /buildCommand and naturecom.google.gdt.eclipse.designer.GWTNature/nature That seemed to fix the Remote Service wizard. David -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/XbsvtKco1V0J. 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.
Can't install Google Web Toolkit Developer Plugin under Chrome
I was starting coding with GWT following the tutorial at http://code.google.com/intl/it/webtoolkit/doc/latest/tutorial/create.html when the tutorial tells to connect to the 'development mode code server' the browser ask to install a plugin. With Firefox everything works fine, but with Chrome every time I try to connect to the server it asks to install it http://code.google.com/intl/it/webtoolkit/doc/latest/tutorial/images/MissingPlugin.png even if it is listed under chrome://extensions/ I'd like to know what am I missing. TIA Something useful GWT developer pulgin version: 1.0.9738 Chrome versione : 12.0.742.112 -- 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: Does GWT 2.3 provide Synchronous RPC?
1. It does not. 2. The synchronous interface is the contract that your server-side must implement. GWT.create also uses that class to find the Async class. On Jul 4, 10:38 am, Gunz ganeshma...@gmail.com wrote: Hi, I was trying to understand and implement RPC in GWT. In the StockWatcher example provide at GWT official website they implement the syncronous interface and also the asyncronous interface. However it also mentions that- It is not possible to call this version of the RPC directly from the client. You must create an asynchronous interface to all your services as shown below. My questions: 1. Does GWT 2.3 support synchronous RPC? 2. If not, why are we supposed to have the synchronous interface in the client package? 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 makes GWT projects build extremely long
It seems like I have found a solution that brings down compile time to something reasonable (~3 mins). From 1.5h (not 1.30 as I initially wrote :)) to 3 mins!!! I have downloaded xhtml.ent and added the file to User Specified Entries in Eclipse's XML Catalog. Could somebody explain why this can effect compile time this much? I think this is the same bug as described here - http://code.google.com/p/google-web-toolkit/issues/detail?id=5773 Marko -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VNKkCt7qwrMJ. 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: Does GWT 2.3 provide Synchronous RPC?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you can fake synchronous execution by calling the next thing at the end of your async callback handling Am 04.07.2011 23:31, schrieb Kevin Jordan: 1. It does not. 2. The synchronous interface is the contract that your server-side must implement. GWT.create also uses that class to find the Async class. On Jul 4, 10:38 am, Gunz ganeshma...@gmail.com wrote: Hi, I was trying to understand and implement RPC in GWT. In the StockWatcher example provide at GWT official website they implement the syncronous interface and also the asyncronous interface. However it also mentions that- It is not possible to call this version of the RPC directly from the client. You must create an asynchronous interface to all your services as shown below. My questions: 1. Does GWT 2.3 support synchronous RPC? 2. If not, why are we supposed to have the synchronous interface in the client package? Thanks -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJOEjI2AAoJENRtux+h35aGxOcP/RxSiuoJK11tNxrGEznNEQG9 nJyM9jJYAn98RuGSdeqe5d6yd105R4cXAUDkqTb5x88rox43w2y9csAbPDG0+wPp MvzFJR8qqyD6b6g/8QxolZ/NLVxB9uz7JlSpRDYRQJkRj2dH4q5+gExlJqnj86yd oYwEceiooCl/NBaUibO3bgoAjVT2whiGzYKTAjKuRlb3y1ZA/LUbsmo7fxhE/HCK DToPKqCFAbuuZqr6nHKdOTk+iodEq1njfnnHWJSdD74sVgZ769eSNBpPlq5DnErk 7RUfN70mtRe5De+fAfETSZ2a24PPWkhq4B5MkPSzbyrMR7JuW3+B6f/+MhUmCPBC mEZfl8xkaS5O/7USzHrQifRBH19bCONauCfHaFehXQ1zMTGvqMpMlvXsgJIvNJ9Z kGLXJcma10MI2rxlBEkUb35SSog1KHiLNqXKENbeAHBnGvGNLIHtkScMEoflBKuf sifAzizIv0sHm+Yy1CcJJGPC9KZLFugPnHo3pSKaC4wYFWnDRHgvAZPHjkmTqgSX Yin2N59P6ObcGV1FEOi9wxaP0Tx7kqFLxzOx788Qki/FPnfV3lac/2ZMbFY9R7dM WZat0y0E+hQgGbGIw1Cg/ml8NpB3rbed3UEanK+CEggEunAT0IdoB4WJAlan/MiC zkvdr9UcxTU1vIMvSz3H =WEBR -END PGP SIGNATURE- -- 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: Canceling a ClickEvent
My logic was split with the purpose of decoupling two unrelated functionalities, but seeing how there is no way to do what I was trying to do, I created a custom event for one of the 2 functionalities. What could help though is to add a field to the ClickEvent, settable from the outside, so that at least data can be passed from one place to another (assuming the event object stays the same - if it doesn't then that's that). Thanks for the help. Eugen. On Mon, Jul 4, 2011 at 6:37 PM, Thomas Broyer t.bro...@gmail.com wrote: You should add a single ClickHandler that has its own logic, and the ClickHandler you'd like to be called conditionally would be known by this specific ClickHandler, which would choose whether to call or not. Events in GWT (as in the DOM for instance) are dispatched to all handlers/listeners; even throwing an exception wouldn't stop the dispatch. If you need another behavior, you have to implement it yourself. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OD0nkE47inkJ. 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: Does GWT 2.3 provide Synchronous RPC?
What is actually the reason of making a synchronus call ? Is there any use case where that s necessary ? 2011/7/4 Dennis Haupt d.haup...@googlemail.com -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you can fake synchronous execution by calling the next thing at the end of your async callback handling Am 04.07.2011 23:31, schrieb Kevin Jordan: 1. It does not. 2. The synchronous interface is the contract that your server-side must implement. GWT.create also uses that class to find the Async class. On Jul 4, 10:38 am, Gunz ganeshma...@gmail.com wrote: Hi, I was trying to understand and implement RPC in GWT. In the StockWatcher example provide at GWT official website they implement the syncronous interface and also the asyncronous interface. However it also mentions that- It is not possible to call this version of the RPC directly from the client. You must create an asynchronous interface to all your services as shown below. My questions: 1. Does GWT 2.3 support synchronous RPC? 2. If not, why are we supposed to have the synchronous interface in the client package? Thanks -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJOEjI2AAoJENRtux+h35aGxOcP/RxSiuoJK11tNxrGEznNEQG9 nJyM9jJYAn98RuGSdeqe5d6yd105R4cXAUDkqTb5x88rox43w2y9csAbPDG0+wPp MvzFJR8qqyD6b6g/8QxolZ/NLVxB9uz7JlSpRDYRQJkRj2dH4q5+gExlJqnj86yd oYwEceiooCl/NBaUibO3bgoAjVT2whiGzYKTAjKuRlb3y1ZA/LUbsmo7fxhE/HCK DToPKqCFAbuuZqr6nHKdOTk+iodEq1njfnnHWJSdD74sVgZ769eSNBpPlq5DnErk 7RUfN70mtRe5De+fAfETSZ2a24PPWkhq4B5MkPSzbyrMR7JuW3+B6f/+MhUmCPBC mEZfl8xkaS5O/7USzHrQifRBH19bCONauCfHaFehXQ1zMTGvqMpMlvXsgJIvNJ9Z kGLXJcma10MI2rxlBEkUb35SSog1KHiLNqXKENbeAHBnGvGNLIHtkScMEoflBKuf sifAzizIv0sHm+Yy1CcJJGPC9KZLFugPnHo3pSKaC4wYFWnDRHgvAZPHjkmTqgSX Yin2N59P6ObcGV1FEOi9wxaP0Tx7kqFLxzOx788Qki/FPnfV3lac/2ZMbFY9R7dM WZat0y0E+hQgGbGIw1Cg/ml8NpB3rbed3UEanK+CEggEunAT0IdoB4WJAlan/MiC zkvdr9UcxTU1vIMvSz3H =WEBR -END PGP SIGNATURE- -- 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.
Re: ListEditor doesn't detect changes in sub-editors if using RequestFactory driver
See http://code.google.com/p/google-web-toolkit/issues/detail?id=6081 This is a regression in 2.3. Hopefully it'll be fixed in 2.4 (honestly, I don't mind, I don't run official releases) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/RTj24y-p-rMJ. 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: Does GWT 2.3 provide Synchronous RPC?
Thanks all for the help. There isn't any specific use case where I would want to implement sync.RPC. I was trying to understand the GWT stockwatcher example and was wondering if sync interface could directly be used by creating an object of the sync. interface instead of the Async. interface. On Mon, Jul 4, 2011 at 4:44 PM, Alain Ekambi jazzmatad...@googlemail.comwrote: What is actually the reason of making a synchronus call ? Is there any use case where that s necessary ? 2011/7/4 Dennis Haupt d.haup...@googlemail.com -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you can fake synchronous execution by calling the next thing at the end of your async callback handling Am 04.07.2011 23:31, schrieb Kevin Jordan: 1. It does not. 2. The synchronous interface is the contract that your server-side must implement. GWT.create also uses that class to find the Async class. On Jul 4, 10:38 am, Gunz ganeshma...@gmail.com wrote: Hi, I was trying to understand and implement RPC in GWT. In the StockWatcher example provide at GWT official website they implement the syncronous interface and also the asyncronous interface. However it also mentions that- It is not possible to call this version of the RPC directly from the client. You must create an asynchronous interface to all your services as shown below. My questions: 1. Does GWT 2.3 support synchronous RPC? 2. If not, why are we supposed to have the synchronous interface in the client package? Thanks -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJOEjI2AAoJENRtux+h35aGxOcP/RxSiuoJK11tNxrGEznNEQG9 nJyM9jJYAn98RuGSdeqe5d6yd105R4cXAUDkqTb5x88rox43w2y9csAbPDG0+wPp MvzFJR8qqyD6b6g/8QxolZ/NLVxB9uz7JlSpRDYRQJkRj2dH4q5+gExlJqnj86yd oYwEceiooCl/NBaUibO3bgoAjVT2whiGzYKTAjKuRlb3y1ZA/LUbsmo7fxhE/HCK DToPKqCFAbuuZqr6nHKdOTk+iodEq1njfnnHWJSdD74sVgZ769eSNBpPlq5DnErk 7RUfN70mtRe5De+fAfETSZ2a24PPWkhq4B5MkPSzbyrMR7JuW3+B6f/+MhUmCPBC mEZfl8xkaS5O/7USzHrQifRBH19bCONauCfHaFehXQ1zMTGvqMpMlvXsgJIvNJ9Z kGLXJcma10MI2rxlBEkUb35SSog1KHiLNqXKENbeAHBnGvGNLIHtkScMEoflBKuf sifAzizIv0sHm+Yy1CcJJGPC9KZLFugPnHo3pSKaC4wYFWnDRHgvAZPHjkmTqgSX Yin2N59P6ObcGV1FEOi9wxaP0Tx7kqFLxzOx788Qki/FPnfV3lac/2ZMbFY9R7dM WZat0y0E+hQgGbGIw1Cg/ml8NpB3rbed3UEanK+CEggEunAT0IdoB4WJAlan/MiC zkvdr9UcxTU1vIMvSz3H =WEBR -END PGP SIGNATURE- -- 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: ListEditor doesn't detect changes in sub-editors if using RequestFactory driver
Thanks! Your patch look perfect, but GWT developers won't seem to apply it in the next release. I'm currently using GWT 2.4.0beta. I hope this will change in final release. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/mNjZ5dQcl3cJ. 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: ListEditor doesn't detect changes in sub-editors if using RequestFactory driver
Feel free to ping in the issue; but it might be better to wait a few days, as BobV is on vacation the early part of [this] week and will be studiously avoiding the computer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/F4aL2nUG7j4J. 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: RootPanel.clear() method slows down after multiple use
Thank you, that worked fine. Guess I got lazy since the garbage collection under the Java VM is so good. Thanks for your prompt response. Neil Williams On Mon, Jul 4, 2011 at 5:40 PM, Thomas Broyer t.bro...@gmail.com wrote: You're adding a ClickHandler each time you switchView, that might very well be your issue. You should separate building views and showing/hiding them. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/puMOv3XE7ncJ. 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.
Removing ClickHandler from Button?
Hi, I am trying to find a way how to remove ClickHandler from Button, there is no any method related to this. I see that we can remove ClickListener with removeClickListener(), but there is no way to remove ClickHandler. I am using following code: Button b = new Button(test); b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.alert(test); } }); Is there any way to remove ClickHandler? 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: Removing ClickHandler from Button?
removeClickListner() is deprecated if I am not mistaken... Anyway the big question is why remove the clickHandler from your button in the first place a button that can not be clicked is nothing more then a label with a border... I would suggest disabling the button or simply have the clickHandler return instead of doing anything... in both cases for the user nothing will happen once they click the button. just my 2 cents. Regards, Rob On Tue, Jul 5, 2011 at 1:05 AM, Milan Cvejic liquidbra...@gmail.com wrote: Hi, I am trying to find a way how to remove ClickHandler from Button, there is no any method related to this. I see that we can remove ClickListener with removeClickListener(), but there is no way to remove ClickHandler. I am using following code: Button b = new Button(test); b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.alert(test); } }); Is there any way to remove ClickHandler? 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.
Java 7
Java 7 is going to be released in a few days and will introduce some changes on the java syntax Is there any current work on supporting java 7 syntax on gwt? Will it be available on GWT 2.4? -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- 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: Removing ClickHandler from Button?
Yes, removeClickListener() is depricated, and that is why I am trying to find solution on how to remove ClickHandler. Just to explain my use case. I am same view with editor framework, so I need different functionality when button is clicked. Since button is initialized only once (in view that is constructed only once) i need to handle event differently. So now on start of activity i attach Listener and on stop I remove Listener, and everything works as it should. If I don't remove Listener, I am having situation that event is triggered twice or more times. I can change code to create new instance of View each time, but that is more cpu intensive than adding and removing listeners. Cheers. On Jul 5, 1:14 am, Rob Coops rco...@gmail.com wrote: removeClickListner() is deprecated if I am not mistaken... Anyway the big question is why remove the clickHandler from your button in the first place a button that can not be clicked is nothing more then a label with a border... I would suggest disabling the button or simply have the clickHandler return instead of doing anything... in both cases for the user nothing will happen once they click the button. just my 2 cents. Regards, Rob On Tue, Jul 5, 2011 at 1:05 AM, Milan Cvejic liquidbra...@gmail.com wrote: Hi, I am trying to find a way how to remove ClickHandler from Button, there is no any method related to this. I see that we can remove ClickListener with removeClickListener(), but there is no way to remove ClickHandler. I am using following code: Button b = new Button(test); b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.alert(test); } }); Is there any way to remove ClickHandler? 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.
Resizing parent element when child change size
Hi Everyone, can anyone give me a hint how can I implement following situation: I have SimplePanel with child FlowPanel. What I want to do is to resize SimplePanel in order to fit FlowPanel when I add new widgets to the FlowPanel. Is best way to fire some event when i add new widget to FlowPanel and than catch that event in SimplePanel implementation? Or is there any native support for this? Thank you, Cheers -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: How to redirect HTML inside a dialogbox
Hi again! Thanks for your reply. If I am understanding it right, I should use the anchor for the links contained inside the iframe, right? The thing is that I don't have access to the embedded content. I want to show an external website inside the iframe but I don't want it to send users away from my site. Is it possible? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/At7e5D_VKWcJ. 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: Does GWT 2.3 provide Synchronous RPC?
You dont want a sync interface for the simple reason that javascript in the browser is single threaded. If requests back to the server were sync and not async, your browser would freeze until the response from the server completed. Even if the request was fast the user would notice a freeze for even a fraction of second. Imagine a browser that froze for a second or more each time a request went back to the server - that would be a disaster. -- 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: Questions about complex UI events in MVP mode
Any ideas buddies? -- 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: Questions about complex UI events in MVP mode
Victor, based on what I read, your flowpanel is part of a view which is mapped to a presenter. You are dynamically adding buttons to the flowpanel. You can setup click handlers for each of your buttons. if the button is present and clicked, its handler would be invoked. Inside the handler call the presenter of the view to perform what ever operation you want to for example : interface view { void setDelegate(Delegate delegate); interface Delegate { void save(); } } public class MyView extends Composite implements view { Delegate delegate; public void setDelegate(Delegate delegate) { this.delegate = delegate; } public OnLoad() { FlowPanel panel = new FlowPanel(); Button btn = new Button(Click Me); panle.add(btn); btn.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { delegate.save(); } }); } } Thanks Ashwin On Tue, Jul 5, 2011 at 7:41 AM, Victor Zhang victor.rel...@gmail.comwrote: Any ideas buddies? -- 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.
Handy way of using Google Fonts in GWT
I put together some notes on how I'm using Google Fonts in my project. The difficulty I had was dealing with css style sheet precedence/inheritance. I solved this by putting them into the project.gwt.xml file. I couldn't directly include the file, so I copied and pasted the page the google fonts include loads. Find the source here: http://code.google.com/p/gwt-examples/wiki/GoogleFontsInGwt - wiki with source Brandon Donnelson http://gwt-examples.googlecode.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/S1_kKhrmlcAJ. 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: Standalone zip download of GWT Designer
Dear Eric when trying to download this zip-File, I receive only an error message. What is my problem? Best regards Eckhard On 16 Jun., 22:47, Eric Clayberg clayb...@google.com wrote: For Eclipse 3.6... http://dl.google.com/eclipse/inst/d2gwt/latest/3.6/GWTDesigner_v2.3.1... On Jun 14, 5:29 pm, beluga enalp...@yahoo.com wrote: Hi - I don't get through the corporate firewall with eclipse updater but I can transfer azipfile if I get hold of it. Does anyone know how to get hold of theGWTDesignerstandalonezip? Ideally the beta, since I'm struggling with the type not found bug in the currentGWTrelease. 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.
[gwt-contrib] Re: Implements UiBinder rendering for Cells. (issue1466809)
Ok, I think I have some more useful feedback now. Nice document, I think we must add support in RenderablePanel to have UiRenderer objects added to them, that'd be awesome. Components that don't have to be widgets :-) http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java File user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java (right): http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java#newcode279 user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java:279: !resourceType.getErasedType().equals(matchingResourceType.getErasedType())) { do you need equals? Could it just be assignable? http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java#newcode284 user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java:284: resourceType = matchingResourceType.getErasedType(); you don't need to do this, right? You could just pass matchingResourceType.getErasedType() to registerField below. I'm just mentioning because it throw me off a bit and I kept trying to find where you used this value afterwards and overlooked the return http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java#newcode295 user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java:295: if (writer.getOwnerClass() != null How about breaking each of these if blocks into its own method? This is getting really hard to follow. http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java#newcode295 user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java:295: if (writer.getOwnerClass() != null Can we return or die here if writer.getOwnerClass() == null? It would make the following code simpler (and the old code seems to assume it's != null. http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java#newcode423 user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java:423: private JClassType findRenderParameterType(String resourceName) { part of this logic is repeated in UiBinderWriter.findRenderParameters(). In particular there you allow multiple render() methods as long as only one of them has SafeHtmlBuilder as the first parameter. Here you make no such check. http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java File user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java (right): http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode458 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:458: * @return that variable's name. @param fieldName ... http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode460 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:460: public String declareDomIdHolder(String fieldName) throws UnableToCompleteException { Don't know if you guys use @Nullable much in GWT code, but this would be a good place to put that. http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1094 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1094: private ListJMethod findGetterNames(JClassType owner) { this method could be static. In fact, how do you guys feel about adding a utility class to this directory. UiBinderWriter is huge already, maybe we can clean it up a bit.. http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1379 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1379: private String renderMethodParameters(JParameter[] renderParameters) { this too could be static. http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1706 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1706: fieldManager.initializeWidgetsInnerClass(w, getOwnerClass()); Yeah, I think it is. What this does is generate the block of build_fieldX(); calls that initialize all fields you've declared. I think you need it here. http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1721 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1721: writeRenderParameterDefinitions(w, renderParameters); wouldn't it be better to declare these before the render() method? Just because that's probably how we'd right it if it was normal code. http://gwt-code-reviews.appspot.com/1466809/diff/6001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1745 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1745: w.write(return (%s) UiRendererUtils.findInnerField(%s, \%s\,