Does GWT buffer or stream the servlet response?
Hi, I want to know if Jetty that comes with GWT buffers or streams the data that is written to the servlet response? (i.e. when you call servletResponse.getOutputStream() or servletResponse.getWriter() ). That is important as when this is streamed this should on the one hand be faster and on the other hand the response will be committed after the first byte was written. Can this be configured? Thanks, Peter. -- 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/-/gk_ykRdLfcIJ. 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 CustomFieldSerializer Recursivity
On Wednesday, January 2, 2013 6:39:47 PM UTC+1, Thomas Broyer wrote: On Wednesday, January 2, 2013 6:16:36 PM UTC+1, Brandon Donnelson wrote: Good point, but I don't think that's it. I walked the code several finding the loop on it self here: http://code.google.com/searchframe#T04cSGC7sWI/trunk/user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.javaq=SerializabilityUtil%20package:google-web-toolkit%5C.googlecode%5C.coml=870 That indeed looks strange (I haven't looked closely at the code though). I looked a bit more at it and there's actually nothing that strange here. One could say the code could be better optimized but that's it. This method is used to generate a signature for a type that will change whenever its serialization changes. When a type has no CustomFieldSerializer, its fields are used; otherwise, because we cannot tell which fields will be serialized, the signature for the type is the signature for its CustomFieldSerializer. That's the reason for the recursive call. It's not expected then that the CustomFieldSerializer itself has a CustomFieldSerializer. If you want to make it better, then add a boolean argument to the method to tell whether a CustomFieldSerializer should be used or not (or maybe split the method in two), so that when computing the signature for the CustomFieldSerializer we don't look for the CustomFieldSerializer's CustomFieldSerializer. -- 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/-/5PvdRqtiRvkJ. 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: Regarding communication method
Thanks a lot! On Wednesday, January 2, 2013 3:03:31 PM UTC+1, brucelowe wrote: I'm also quite newish, but I found the GWT-RPC very good. If your backend is written in Java, then this makes sense since you can work with the same POJO's on the back and front end. If your backend is written in a different language or need more than one client to consure data, and GWT is just one of them, then you could use JSON and marshal the objects into client specific POJO's. I've done this before, but I found it less elegant than the RPC route On Wed, Jan 2, 2013 at 2:00 PM, nalin...@googlemail.com javascript:wrote: I am new to GWT... And planning to develop a prototype in GWT for a company... Can anyone tell me how to decide on which clientserver communication is suitable for my project -- 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/-/N7j8bG6L8yQJ. To post to this group, send email to google-we...@googlegroups.comjavascript: . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. 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 view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fSdxp3XPQYUJ. 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 buffer or stream the servlet response?
There are always bufferes here and there to increase performance. Take a look at the jetty documentation and the configuration of jetty's connectors (send buffer). You also have ServletResponse.setBufferSize(). Take a look at Jetty's source code to see how it uses this buffer size. It also somewhat depends on the client. If you do a HTTP 1.0 request and your servlet does not set a Content-Length header then the servlet container probably has to buffer the whole response in order to compute the Content-Length as this header is mandatory for HTTP 1.0. In case of HTTP 1.1 you don't have to set a Content-Length header but use chunked transfer encoding instead. -- J. -- 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/-/rratlHL6LHcJ. 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: Regarding communication method
I can to help you, but i don't speak english fine, i write in spanish... Para la comunicacion puedes usar rpc o requestfactory El 02/01/2013 08:00, nalini@googlemail.com escribió: I am new to GWT... And planning to develop a prototype in GWT for a company... Can anyone tell me how to decide on which clientserver communication is suitable for my project -- 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/-/N7j8bG6L8yQJ. 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: Code Splitting Simple Example Still getting Thrown into Left Overs
I haven't looked in detail at your code, but you might experiencing the same problems I had, see this issue (and the linked forum post): ISSUE http://code.google.com/p/google-web-toolkit/issues/detail?id=7874 Op zaterdag 5 januari 2013 17:27:51 UTC+1 schreef Ashton Thomas het volgende: I would greatly appreciate some input here. I am trying to use the below references to implement Code Splitting w/ Activities/Place/GIN HOWEVER, I can't get anything to work. Not even a simple solution which I 'think' should be working regardless of my current implementation for A/P+GIN... Thomas' ActivityAsyncProxy https://gist.github.com/3038878 (This is the method I am trying to use) Other References: http://code.google.com/p/google-web-toolkit/issues/detail?id=5129 My Hope is that I am doing something blatantly wrong. I have a simple Split Point that creates a string and custom widget (very simple) and shows a PopupPanel. However it still gets thrown into the Left overs. My end goal is the complete solution to MVP/GIN (which originally didn't work so I thought I'd try this simple solution - no luck so I'm coming to you guys:) I've attached a piece of the Compile Report and including the below links for better reference: https://github.com/ashtonthomas/gwt-async-mvp-gin https://github.com/ashtonthomas/gwt-async-mvp-gin/blob/master/src/io/ashton/async/client/app/Application.java http://www.ashtonthomas.com/compile-report.zip Button b = new Button(Click Me, new ClickHandler() { @Override public void onClick(ClickEvent event) { GWT.runAsync(Application.class, new RunAsyncCallback() { @Override public void onSuccess() { String sp3 = 3sp33sp 33sp33sp33sp33sp33sp33sp33sp33sp33sp33sp33spp3; VerticalPanel vp = new VerticalPanel(); vp.add(new InlineLabel(sp3)); MySPTestWidget t = new MySPTestWidget(); // Simple Composite with unique string to test SP vp.add(t); PopupPanel p = new PopupPanel(); p.setWidget(vp); p.center(); } @Override public void onFailure(Throwable reason) { Window.alert(SP Application Failed); } }); } }); Any thoughts on why the simple (and possibly the ultimate goal of MVP/GIN-CodeSplitting) is not working? https://github.com/ashtonthomas/gwt-async-mvp-gin Thanks very much in advance! -Ashton -- 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/-/ghZpLMoo5l0J. 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.
Binding Driver To A List
Hello all, first of all I'm sorry if I sound incompetent but the truth is I'm fairly new to GWT. So here's what I want to do: I have a database with different itemtypes (Product, User, Country, etc...). I want to make a GWT application that edits these item types. For that purpose I have created a dto called EntityDto which contains a list of SectionDto, which in itself contains a list of PropertyDto. So the PropertyDto is a representation of each of the item's properties (Product.code for instance). The PropertyDto has the following signature: public class PropertyDto implements Serializable { private String id; private String value; /* getters/setters */ } So I have managed to display a form with TextField for the Entity's properties and their values. Now I want to submit the changed values and persist them in the database. As I was reading on the internet this is achieved using a combination of a Driver and Editor. My problem is that I don't have a real POJO to use any of the existing drivers. All I want is to map the field with id code, for instance, to the String in EntityDto.PropertyDto.value (for whichever PropertyDto has the same id). Is there any solution to this? How would you create a form that is not backed by a bean but instead by a dynamic map or a list for instance? Thank you for you help. -- 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/-/QKp5b6WjZZ8J. 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: Binding Driver To A List
On Monday, January 7, 2013 12:58:36 AM UTC+1, paran...@gmail.com wrote: Hello all, first of all I'm sorry if I sound incompetent but the truth is I'm fairly new to GWT. So here's what I want to do: I have a database with different itemtypes (Product, User, Country, etc...). I want to make a GWT application that edits these item types. For that purpose I have created a dto called EntityDto which contains a list of SectionDto, which in itself contains a list of PropertyDto. So the PropertyDto is a representation of each of the item's properties (Product.code for instance). The PropertyDto has the following signature: public class PropertyDto implements Serializable { private String id; private String value; /* getters/setters */ } So I have managed to display a form with TextField for the Entity's properties and their values. Now I want to submit the changed values and persist them in the database. As I was reading on the internet this is achieved using a combination of a Driver and Editor. My problem is that I don't have a real POJO to use any of the existing drivers. All I want is to map the field with id code, for instance, to the String in EntityDto.PropertyDto.value (for whichever PropertyDto has the same id). Is there any solution to this? How would you create a form that is not backed by a bean but instead by a dynamic map or a list for instance? In any case, you'll have to do it manually. If you need to use the Editor framework, and/or your scenario is complex enough to make it worth it, then you can use a ValueAwareEditorSectionDto: in setValue you loop over the PropertyDto-s and push their values to the corresponding text box, and in flush() you do the reverse (from text box to PropertyDto). -- 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/-/7V-aY79n5dkJ. 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: Unable to intregrate gwt-ext with gwt 2.5
Isn't it an issue of gwt-ext and it is better to ask their support if it should work with gwt 2.5? Though I believe a little bit more detailed problem description is required in order to get a reasonable help. On Sunday, January 6, 2013 8:10:08 AM UTC+4, tagoor wrote: Unable to intregrate gwt-ext with gwt 2.5 can u please help it out -- 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/-/yFGVEBsjQGgJ. 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: Binding Driver To A List
Hi Thomas, yes that sounds like exactly what I need. What I don't really understand is: -- you loop over the PropertyDto-s and push their values to the corresponding text box -- how do I gain access to the text-boxes? Do you have any example I can refer to? Many Thanks On Monday, January 7, 2013 3:08:54 AM UTC+2, Thomas Broyer wrote: On Monday, January 7, 2013 12:58:36 AM UTC+1, paran...@gmail.com wrote: Hello all, first of all I'm sorry if I sound incompetent but the truth is I'm fairly new to GWT. So here's what I want to do: I have a database with different itemtypes (Product, User, Country, etc...). I want to make a GWT application that edits these item types. For that purpose I have created a dto called EntityDto which contains a list of SectionDto, which in itself contains a list of PropertyDto. So the PropertyDto is a representation of each of the item's properties (Product.code for instance). The PropertyDto has the following signature: public class PropertyDto implements Serializable { private String id; private String value; /* getters/setters */ } So I have managed to display a form with TextField for the Entity's properties and their values. Now I want to submit the changed values and persist them in the database. As I was reading on the internet this is achieved using a combination of a Driver and Editor. My problem is that I don't have a real POJO to use any of the existing drivers. All I want is to map the field with id code, for instance, to the String in EntityDto.PropertyDto.value (for whichever PropertyDto has the same id). Is there any solution to this? How would you create a form that is not backed by a bean but instead by a dynamic map or a list for instance? In any case, you'll have to do it manually. If you need to use the Editor framework, and/or your scenario is complex enough to make it worth it, then you can use a ValueAwareEditorSectionDto: in setValue you loop over the PropertyDto-s and push their values to the corresponding text box, and in flush() you do the reverse (from text box to PropertyDto). -- 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/-/vXuUDzZG_qgJ. 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.