Re: Passing data between modules - MVP architecture
Communicating between modules directly is also a solution, but not so applicable in my case. As i said i have a application Controller that handles history, initialize and keep track of opened presenters. I could get rid of this app controller and replace it with some place handler mechanism from gwt platform or mvp4g libraries. I tried them but they were not exactly for my needs. For example u can pass parameters to a new place but they have to be serializable. But regarding those two approaches, which one is better. I have some performance problems with my application. Target device has very low hardware resources and is moving pretty slow. Initially i was using gxt library but it was to slow and i get rid of it. Now i'm using pure gwt + a custom gwt table (inherited from incubator). But still is very slow. -- 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-tool...@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.
StringBuffer vs StringBuilder in GWT
Hi, GWT provides JRE emulation for both StringBuffer and StringBuilder. The Java API says that in single threaded environments the preferred choice is to use StringBuilder as it is faster. I also remember to have read that browsers way to work is single threaded. So I'm wondering why and when one should use StringBuffer at all. Can you clarify? 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-tool...@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: Surely a nasty bug! in RPCServletUtils.readContentAsUtf8
Search the archives for Client did not send nn bytes as expected. OK figured it out. A HttpServletRequest can be read a total of one time. Any attempts to use RPCServletUtils.readContentAsUtf8(((HttpServletRequest) request)); will fail. The error message is misleading because the client in fact may send that many. The work around for anyone needing to say use a filter to peek in an rpc call to see what method will be called or whatever is here http://forums.sun.com/thread.jspa?forumID=33threadID=238221 -- 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-tool...@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: StringBuffer vs StringBuilder in GWT
StringBuffer methods are synchronized. This *may* make it a good choice for java environments, although typically they are short-lived objects that are used on only a single thread. If you only use it on a single thread, you may as well use StringBuilder which is faster because its methods are not synchronized. So you should only use StringBuffer if you want to read/write the contents across multiple threads. For GWT client code, the general rule is that the synchronized keyword is ignored because it's single threaded. In the case of StringBuffer and StringBuilder, they are both emulated and the source code for their client-side versions is identical apart from the name. So for GWT, it makes no difference which you use. StringBuilder was only introduced in Java 1.5, so there's a lot of older code and examples that use StringBuffer that could/should use StringBuilder. Paul guandalino wrote: Hi, GWT provides JRE emulation for both StringBuffer and StringBuilder. The Java API says that in single threaded environments the preferred choice is to use StringBuilder as it is faster. I also remember to have read that browsers way to work is single threaded. So I'm wondering why and when one should use StringBuffer at all. Can you clarify? 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-tool...@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: StringBuffer vs StringBuilder in GWT
I think the use of either will penalize the performance in client side, String should be faster. - Manolo On Tue, Jul 13, 2010 at 10:21 AM, guandalino guandal...@gmail.com wrote: Hi, GWT provides JRE emulation for both StringBuffer and StringBuilder. The Java API says that in single threaded environments the preferred choice is to use StringBuilder as it is faster. I also remember to have read that browsers way to work is single threaded. So I'm wondering why and when one should use StringBuffer at all. Can you clarify? 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-tool...@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-tool...@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: StringBuffer vs StringBuilder in GWT
Is this really true? Shouldn't GWT optimize any overhead away and make it similar to using String directly? /Andreas On Tue, Jul 13, 2010 at 10:41 AM, Manuel Carrasco Moñino man...@apache.org wrote: I think the use of either will penalize the performance in client side, String should be faster. - Manolo On Tue, Jul 13, 2010 at 10:21 AM, guandalino guandal...@gmail.com wrote: Hi, GWT provides JRE emulation for both StringBuffer and StringBuilder. The Java API says that in single threaded environments the preferred choice is to use StringBuilder as it is faster. I also remember to have read that browsers way to work is single threaded. So I'm wondering why and when one should use StringBuffer at all. Can you clarify? 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-tool...@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-tool...@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-tool...@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: StringBuffer vs StringBuilder in GWT
On 13 juil, 10:21, guandalino guandal...@gmail.com wrote: Hi, GWT provides JRE emulation for both StringBuffer and StringBuilder. The Java API says that in single threaded environments the preferred choice is to use StringBuilder as it is faster. I also remember to have read that browsers way to work is single threaded. So I'm wondering why and when one should use StringBuffer at all. Can you clarify? Actually, in GWT, both StringBuilder and StringBuffer wrap the same StringBufferImpl implementation, so it really doesn't matter which one you use. StringBuffer is emulated because StringBuilder didn't exist in Java 1.4, and GWT started to support Java 5 only two years ago in GWT 1.5. I think you should now stick to using only one of them, and my preference goes to StringBuilder (if it really is faster, then it should improve performance in DevMode) -- 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-tool...@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: StringBuffer vs StringBuilder in GWT
I think this is due to the provision of core API compatibility. Due to this reason, all API has to be ported, now matter what. Take the case of URL and URI. Nabeel On Tue, Jul 13, 2010 at 1:21 PM, guandalino guandal...@gmail.com wrote: Hi, GWT provides JRE emulation for both StringBuffer and StringBuilder. The Java API says that in single threaded environments the preferred choice is to use StringBuilder as it is faster. I also remember to have read that browsers way to work is single threaded. So I'm wondering why and when one should use StringBuffer at all. Can you clarify? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@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: StringBuffer vs StringBuilder in GWT
On 13 Lug, 10:40, Paul Robinson ukcue...@gmail.com wrote: [cut] client-side versions is identical apart from the name. So for GWT, it makes no difference which you use. Thanks for the neat explanation. Maybe this point would worth to be added to existing documentation. -- 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-tool...@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: Maps to JPEG
Hii Eric, Sorry .. i didn't understood what you are saying. Those static maps are using URL. But in my case i am using gwt mapwidget in which i am not using any URL. For your referrence, i am posting a sample code here.. Code Snippet Starts LatLng monohaa = LatLng.newInstance(20.36, -156.78); LatLng latlngXY[] = new LatLng[lat.size()]; // Filling some lat long values in this array here // MapWidget map = new MapWidget(latlngXY[0], 3); // just took some sample positions of the latlong aray map.setSize(700px, 300px); add(map); Code Snippet Ends Can you please look in to this and tell me what can be done in this case. Thanks in advance Regards, Phani Kumar K On Jul 12, 8:47 pm, Eric Ayers zun...@google.com wrote: You might try the static maps API: http://code.google.com/apis/maps/documentation/staticmaps/ http://code.google.com/apis/maps/documentation/staticmaps/Basically, you just create a URL and send it. You might use GWT's RequestBuilder class for calling it from GWT. On Fri, Jul 9, 2010 at 10:50 AM, Phani Kumar K phanikuma...@gmail.comwrote: Hello all, I am new to GWT and I am using gwt-maps api for one of my requirement. I am able to populate maps and now my another requirement is to make my populated map as a JPEG image. This is an urgent and critical requirement for me. Can anyone tell me how can i achieve this. If there is no direct solution for achieving this also, kindly share your ideas of how can i achieve this. Thanks in advance. Regards, Phani Kumar K -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- 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-tool...@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: StringBuffer vs StringBuilder in GWT
Yeah, Gwt should optimize them in compiler time, but at the end the optimization will produce arithmetic operations with javascript String implementation, and this optimization will penalize the time spent to compile. So why use StringBuffer instead of String unless this code was shared in both sides (js/jre). -Manolo On Tue, Jul 13, 2010 at 10:44 AM, Andreas Karlsson spra...@gmail.com wrote: Is this really true? Shouldn't GWT optimize any overhead away and make it similar to using String directly? /Andreas On Tue, Jul 13, 2010 at 10:41 AM, Manuel Carrasco Moñino man...@apache.org wrote: I think the use of either will penalize the performance in client side, String should be faster. - Manolo On Tue, Jul 13, 2010 at 10:21 AM, guandalino guandal...@gmail.com wrote: Hi, GWT provides JRE emulation for both StringBuffer and StringBuilder. The Java API says that in single threaded environments the preferred choice is to use StringBuilder as it is faster. I also remember to have read that browsers way to work is single threaded. So I'm wondering why and when one should use StringBuffer at all. Can you clarify? 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-tool...@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-tool...@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-tool...@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-tool...@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: StringBuffer vs StringBuilder in GWT
Manolo, but if I understood you correctly you said there was a client side performance penalty. If it's only in compile time I think it's easier to let devs use stringbuilder in JS mode as well to be consistent. /Andreas On Tue, Jul 13, 2010 at 10:59 AM, Manuel Carrasco Moñino man...@apache.org wrote: Yeah, Gwt should optimize them in compiler time, but at the end the optimization will produce arithmetic operations with javascript String implementation, and this optimization will penalize the time spent to compile. So why use StringBuffer instead of String unless this code was shared in both sides (js/jre). -Manolo On Tue, Jul 13, 2010 at 10:44 AM, Andreas Karlsson spra...@gmail.com wrote: Is this really true? Shouldn't GWT optimize any overhead away and make it similar to using String directly? /Andreas On Tue, Jul 13, 2010 at 10:41 AM, Manuel Carrasco Moñino man...@apache.org wrote: I think the use of either will penalize the performance in client side, String should be faster. - Manolo On Tue, Jul 13, 2010 at 10:21 AM, guandalino guandal...@gmail.com wrote: Hi, GWT provides JRE emulation for both StringBuffer and StringBuilder. The Java API says that in single threaded environments the preferred choice is to use StringBuilder as it is faster. I also remember to have read that browsers way to work is single threaded. So I'm wondering why and when one should use StringBuffer at all. Can you clarify? 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-tool...@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-tool...@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-tool...@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-tool...@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-tool...@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 large files in gwt
It seems an issue with the maximum configured limit for post requests at your server side. -Manolo On Tue, Jul 13, 2010 at 10:43 AM, Mika Tikkanen mika.r.tikka...@gmail.com wrote: On Mon, Jul 12, 2010 at 7:26 PM, Jeff Chimene jchim...@gmail.com wrote: On 07/11/2010 11:17 AM, Roope wrote: Hi I'm currently developing some bioinformatics tools and I want to make them as web apps. The thing is that user needs to input files that might be up to 4Gb but usually the biggest is just about 250Mb. There are two main use-cases: 1. Steaming the file and taking just some small parts of it to string 2. Reading the whole file and making object from each line in file I would like to do all the file processing in client side, but I understood that it is not yet possible using gwt? In general the answer is yes, but not because of GWT. Until wide-spread browser support of HTML 5 which will provide better local file handling. So GWT wont support it yet and there might be some browsers that do support it. So I could use those browser that do support it and use some JavaScript code? If I keep the server local it is feasible to upload some 250mb files and process them at the server side, but I have no success so far in this, even with 10mb file. You might provide some background on the ... no success so far... path. I managed to upload some over 1MB files but the over 10MB didn't upload. Here is the server side code, copied most of it and the rest of the code I show from some example how to do this or from forums. import org.apache.commons.fileupload.FileItemIterator; import org.apache.commons.fileupload.servlet.ServletFileUpload; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class FileUpload extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { ServletFileUpload upload = new ServletFileUpload(); res.setContentType(text/plain); FileItemIterator iterator = upload.getItemIterator(req); while (iterator.hasNext()) { copy(iterator.next().openStream(), res.getOutputStream()); } } catch (Exception ex) { throw new ServletException(ex); } } public static void copy(InputStream is, OutputStream os) throws IOException { byte buffer[] = new byte[8192]; int bytesRead; BufferedInputStream bis = new BufferedInputStream(is); while ((bytesRead = bis.read(buffer)) != -1) { os.write(buffer, 0, bytesRead); } is.close(); os.flush(); os.close(); } } Here is the the part from web.xml needed(replace * with your own stuff) servlet servlet-namefileUploaderServler/servlet-name servlet-classcom.*.*.server.FileUpload/servlet-class /servlet servlet-mapping servlet-namefileUploaderServler/servlet-name url-pattern/*/fileupload/url-pattern /servlet-mapping ...and here is the code for the form that uses the fileupload private static FormPanel getForm(final DialogBox dialogBox,final TextArea ta) { final FormPanel form = new FormPanel(); form.setAction(GWT.getModuleBaseURL() + fileupload); // Because we're going to add a FileUpload widget, we'll need to set the // form to use the POST method, and multipart MIME encoding. form.setEncoding(FormPanel.ENCODING_MULTIPART); form.setMethod(FormPanel.METHOD_POST); // Create a panel to hold all of the form widgets. final VerticalPanel panel = new VerticalPanel(); form.setWidget(panel); // Create a FileUpload widget. final FileUpload upload = new FileUpload(); upload.setName(uploadFormElement); panel.add(upload); HorizontalPanel horizontal = new HorizontalPanel(); // Add a 'submit' button. horizontal.add(new Button(Submit, new ClickHandler() { public void onClick(ClickEvent event) { form.submit(); } })); // Add a 'cancel' button. horizontal.add(new Button(Cancel, new ClickHandler() { public void onClick(ClickEvent event) { dialogBox.hide(); } })); panel.add(horizontal); // Lets add handlers form.addSubmitHandler(new SubmitHandler() { @Override public void onSubmit(SubmitEvent event) { if (upload.getFilename().length() == 0) { Window.alert(Must select a valid file); event.cancel(); } } }); form.addSubmitCompleteHandler(new SubmitCompleteHandler() { public void onSubmitComplete(SubmitCompleteEvent event) { ta.setText(event.getResults()); dialogBox.hide(); } }); return form; } For files of this size, I'd consider creating a file share on the server or using FTP. I'm guessing the data collection occurs on the PC? If so, you won't be able to process the files locally until HTML 5 and local file support. Depending on your environment, you might be able to remote-mount a disk device and write directly to that device from the data collection source.
Re: StringBuffer vs StringBuilder in GWT
I've not checked the code produced by the Gwt compiler, but I think it could introduce a bit of overhead or may be none (if the implementation code was 100% optimal). Anyway the use of String should guarantee that the final code is faster or equal. -Manolo On Tue, Jul 13, 2010 at 11:02 AM, Andreas Karlsson spra...@gmail.com wrote: Manolo, but if I understood you correctly you said there was a client side performance penalty. If it's only in compile time I think it's easier to let devs use stringbuilder in JS mode as well to be consistent. /Andreas On Tue, Jul 13, 2010 at 10:59 AM, Manuel Carrasco Moñino man...@apache.org wrote: Yeah, Gwt should optimize them in compiler time, but at the end the optimization will produce arithmetic operations with javascript String implementation, and this optimization will penalize the time spent to compile. So why use StringBuffer instead of String unless this code was shared in both sides (js/jre). -Manolo On Tue, Jul 13, 2010 at 10:44 AM, Andreas Karlsson spra...@gmail.com wrote: Is this really true? Shouldn't GWT optimize any overhead away and make it similar to using String directly? /Andreas On Tue, Jul 13, 2010 at 10:41 AM, Manuel Carrasco Moñino man...@apache.org wrote: I think the use of either will penalize the performance in client side, String should be faster. - Manolo On Tue, Jul 13, 2010 at 10:21 AM, guandalino guandal...@gmail.com wrote: Hi, GWT provides JRE emulation for both StringBuffer and StringBuilder. The Java API says that in single threaded environments the preferred choice is to use StringBuilder as it is faster. I also remember to have read that browsers way to work is single threaded. So I'm wondering why and when one should use StringBuffer at all. Can you clarify? 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-tool...@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-tool...@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-tool...@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-tool...@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-tool...@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-tool...@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 use css media types in uibinder
On 12 juil, 20:05, vali valentin.kol...@googlemail.com wrote: Hi! How can i use the @media print {} property in my ui.xml? See http://code.google.com/p/google-web-toolkit/issues/detail?id=4911 -- 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-tool...@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: StringBuffer vs StringBuilder in GWT
On 13 juil, 11:10, Manuel Carrasco Moñino man...@apache.org wrote: I've not checked the code produced by the Gwt compiler, but I think it could introduce a bit of overhead or may be none (if the implementation code was 100% optimal). Anyway the use of String should guarantee that the final code is faster or equal. That's wrong. StringBuilder will use either string concatenation (in which case you'll suffer a very small, and negligible, penalty at runtime) or array-append-then-join, depending on which method was benchmarked the fastest in each browser. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/super/com/google/gwt/emul/EmulationWithUserAgent.gwt.xml The GWT has experimented with many options before settling on these two: using a.push() or a[arrayLength++] to append to an array, using join() or String.prototype.concat.apply() to join the array items into a string, etc. you'll find them all in the subversion repository: http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/core/client/impl/ Note that string concatenation is done using the += operator, which is more performant than s = s + something in some browsers (AFAIK). So really, GWT is optimized here, and you shouldn't fear from using StringBuilder (or StringBuffer) if you think they're necessary (of course, when concatenating 3 strings, it might not be worth it; StringBuilder is mostly useful with loops and/or building large strings, and this is true in both Java and GWT) -- 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-tool...@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.
Difference between port and codeServerPort
Hi, Can someone please explain what the difference is between the port and codeServerPort is in DevMode. I cannot find any clear documentation. What is a code sever? How is it different from the embedded web server? Why do each of them need a specific TCP port? 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-tool...@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.
Problems with computed size for Button and ToggleButton
I have a menubar that contains some buttons and some toggleButtons. The problem is that anything i would do i can't succeed to obtain same height for both types mozzila - button: height 40px and in browser will result a computed size of 32px - togglebutton: height 40px and in mozilla browser will result a computed size of 40px IE7 - button: height 40px and in browser will result a computed size of 32px(i think) - togglebutton: height 40px and in IE7 browser will result a computed size same as button Conclusion if i set button height 40px and toggle button height to 32px, in mozilla will be ok, but not in IE if i set both buttons height to 40px will be ok in IE7 but not mozzilla any advices ? -- 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-tool...@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 embed GWT widget in any webapplication
You could create the widget, and include the link to the compiled javascript in the page. In the HTML you'd need a div with an id=embed-my-widget-here and then write some native javascript to on-load/on-click to talk back into the gwt to RootPanel.get(embed-my-widget-here).add(myWidget); On Jun 27, 9:52 am, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: I don't understand. You can write/output the markup script.../script with whatever technology you choose to. Once you have your module ready and compiled place the script-element into any HTML-page. The modules are written in Java though. On Sun, Jun 27, 2010 at 7:03 AM, nalina nandini nalinaele2...@gmail.comwrote: Thanks for the reply. But my question in detail is as follows: I mean how to embed GWT widget in simple html or where I can embeb GWT widget in any web application developed by using other technology like dotnet etc. 2010/6/24 Jaroslav Záruba jaroslav.zar...@gmail.com If you mean 'into *my* GWT-unaware page' then it's easy. Look into your module's 'start-page' (the one Eclipse creates for you) and find this line: script ... src=your_module_name/your_module_name.nocache.js/script This is how GWT gets 'injected' into the page; copy this line into your 'any page'. ...at least this is how I do it, and it works. On Thu, Jun 24, 2010 at 9:34 AM, nalina nalinaele2...@gmail.com wrote: How to embed GWT widget in any webapplication can any one help me on this issue -- 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.comgoogle-web-toolkit%2Bunsubs cr...@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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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-tool...@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.
sessions - configured but don't work on first call
Hello, A call to my app invokes a filter which starts a session via request.getSession(true); here is the id: czbgfo2bp5vs Then it proceeds to serve a page, but the client shows no JSESSION id. Then the client make an rpc call which again generates a new session via the filter. id: 8vl3kpun0rt5 Then the rpc call is processed in in my rpc method and gets the session id like this this.getThreadLocalRequest().getSession(); id: 8vl3kpun0rt5 I can see JSESSIONID is now set after returning from the rpc call. Subsequent calls show the filter recognize the session as id: 8vl3kpun0rt5 Is this.getThreadLocalRequest().getSession(); the only way to start a session? Why can't a filter start a session? this.getThreadLocalRequest().getSession(); will find a session created by a filter via request.getSession(true); but request.getSession(true); doesn't seem so send a cookie to the client. I really can't understand this. Help please How can I start a session in a filter and not in a rpc method? Shawn -- 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-tool...@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.
@UiHandler with Tree component
Hi all Can't get this to work: declaring a tree: @UiField Tree tree = new Tree(); then declaring a handler: @UiHandler(tree) void onTreeSelect(SelectionEventTreeItem event) { Window.alert(You clicked the tree); } Wont fire. Why? /A P.S This is my fourth post, still no answer on any of them. Are my questions to stupid or to hard or doesn't anyone know anything about GWT? A bit concering as we are thinking of chosing GWT for a large enterprise project. -- 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-tool...@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: Software testing
hi, anabillo! for me the best design for testability is to start writing the test cases (at least the unit test cases) before writing the actual code! HTH Michael PS: and what has that to do with GWT? On Jul 13, 1:17 am, anabillo bilal.all...@gmail.com wrote: Hello Guys , I start writing a blog about software testing and I really need a hand in that, I will write a different chapters of testing the software , I will start with the concept of design for testability which means how to build a software that can be tested in the future , if any one know where I can find more resources about this topic or would like to participate , please reply to this message even with links, thoughts, ideas or any thing that you see useful. Thanks for the efforts -- 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-tool...@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 testing couldn't find module gwt.xml
Hi, I'm quite new to Google Web Toolkit, and i'm having a problem when i created a test. I inherited from GWTTestCase and overrided the getModuleName(): public String getModuleName() { return be.thomas.jobby.jobby; } Now when i run it it gives te following error: Loading inherited module 'be.thomas.jobby.jobcv' [ERROR] Unable to find 'be/thomas/jobby/jobby.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I have a package be.thomas.jobby under src/main/java and in that package there is the jobby.gwt.xml file... Any idea why he doesn't find it? I'm kinda stuck here. kind regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
DisclosurePanel and arrows
Hello, I've created a DisclosurePanel into my GWT project and want the arrow to be smaller. How can I do such a thing? Thanks 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-tool...@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.
Buttons not clickable in RootPanel
I have created a search screen,where in i enter the values in the textbox to search the person.Once i click on the search button, the list of persons gets retrieved from the database and gets displayed on the East of the dockLayoutPanel. The search form is on the West of the dockLayoutPanel and this dockLayoutPanel is in a TabLayoutPanel. Finally this tabLayoutPanel is attached to the RootPanel. The problem that i m facing is that when i click on the search button, the grid gets populated with the persons and the grid gets attached to the west of the docklayoutpanel, but the buttons that i have used for pagination purpose at the first row of the grid becomes non clickable. I am using the RootPanel to attach this grid on the East of the docklayoutpanel. My second doubt is that, is there any problem in using rootpanel and rootlayoutpanel together. Lastly, how to use RootLayoutPanel more than once For eg: If i have a tablayoutpanel which is attached to the rootlayoutpanel in the onModuleLoad() method. Now if i want to attach a Verticalpanel with a grid populated with the list of persons from the database, how do i add it in the tablayoutpanel which is already attached to the rootlayoutpanel. And this grid is populated in the onSuccess method of rpc communcation. ThankYou. -- 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-tool...@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: StringBuffer vs StringBuilder in GWT
You are right, Gwt is optimized to perform the best in each case. Both StringBuilder and StringBuffer generates the same javascript code. I have coded a simple test (see below) to check append and these are my results (Compiled code): - all browsers except IE performs identical using String, StringB. - IE6 performs better using StringB. - IE8 performs better using normal String. In hosted mode, the performance is better for StringB Cheers -Manolo public void testStringOperations() { int TIME = 2; String DATA = sadfasdf; String s = ; double ss = new Date().getTime(); for (int i=0; iTIME; i++) { s += DATA; } double se = new Date().getTime(); String a = ; double as = new Date().getTime(); for (int i=0; iTIME; i++) { a = a + DATA; } double ae = new Date().getTime(); double bs = new Date().getTime(); StringBuffer b = new StringBuffer(); for (int i=0; iTIME; i++) { b.append(DATA); } double be = new Date().getTime(); double us = new Date().getTime(); StringBuilder u = new StringBuilder(); for (int i=0; iTIME; i++) { u.append(DATA); } double ue = new Date().getTime(); RootPanel.get().add(new Label(se - ss + + s.length() + String += )); RootPanel.get().add(new Label(ae - as + + a.length() + String = String + )); RootPanel.get().add(new Label(be - bs + + b.length() + StringBuffer )); RootPanel.get().add(new Label(ue - us + + u.length() + StringBuilder )); } On Tue, Jul 13, 2010 at 11:41 AM, Thomas Broyer t.bro...@gmail.com wrote: On 13 juil, 11:10, Manuel Carrasco Moñino man...@apache.org wrote: I've not checked the code produced by the Gwt compiler, but I think it could introduce a bit of overhead or may be none (if the implementation code was 100% optimal). Anyway the use of String should guarantee that the final code is faster or equal. That's wrong. StringBuilder will use either string concatenation (in which case you'll suffer a very small, and negligible, penalty at runtime) or array-append-then-join, depending on which method was benchmarked the fastest in each browser. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/super/com/google/gwt/emul/EmulationWithUserAgent.gwt.xml The GWT has experimented with many options before settling on these two: using a.push() or a[arrayLength++] to append to an array, using join() or String.prototype.concat.apply() to join the array items into a string, etc. you'll find them all in the subversion repository: http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/core/client/impl/ Note that string concatenation is done using the += operator, which is more performant than s = s + something in some browsers (AFAIK). So really, GWT is optimized here, and you shouldn't fear from using StringBuilder (or StringBuffer) if you think they're necessary (of course, when concatenating 3 strings, it might not be worth it; StringBuilder is mostly useful with loops and/or building large strings, and this is true in both Java and GWT) -- 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-tool...@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-tool...@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: the button and its infoLabel problem...
I think that you need a deferred command to handle this. Limit your clickhandler to set the infoLabel to Beginning and then launch a deferred command who's execute method performs the search and then updates the label. In this way, the execution thread will finnish, causing the screen to be updated with the beginning label and then only the defrred command will be executed. On 8 jul, 05:26, Shelley gsun...@gmail.com wrote: thank Andreas and Aditya for your explanation. however the problem has nothing to do with RPC, the search operation i mentioned above is simply a local operation such as sort a large chunk of data which will take seconds to completed. meanwhile the client is unresponsive until the click OnClick() is completed, you can simply simulate this situation by doing a while loop. is there other way i can see the beginning... ? or GWT has the ability to make UI responsive when it doing a time-consuming operation in client? thanks. -Shelley On Jul 7, 8:44 pm, andreas horst.andrea...@googlemail.com wrote: HeyShelley, a bit of further information is missing but may it be that you issue an RPC between infoLabel.setText(Beginning); and infoLabel.setText(Completed);? If so you simply forgot the async nature of GWT RPC. Your code in onClick(...) will not sort of stop or wait until the RPC finishes and continue afterwards. That's why infoLabel.setText(Completed); will be immediately executed after infoLabel.setText(Beginning); and you're simply way to slow to see it. What you could do instead is call infoLabel.setText(Completed); in your onSuccess(...) in case I'm right with RPC or in the callback of whatever request you do for your search operation. Andreas On 7 Jul., 10:22,Shelleygsun...@gmail.com wrote: hello all: i came across a strange problem which seems quite simple: i have a button and a label on a panel, the button has been registered a listener: Button searchButton = new Button( Search ); searchButton.addClickHandler( new ClickHandler() { @Override public void onClick( ClickEvent event ) { infoLabel.setText(Beginning); //do a search operation here which will take more than 5 seconds... infoLabel.setText(Completed...); } } ); that's all, but i never see the Beginning“ on the label, but only see the completed..., seem the label will not refresh it's text until onClick is finished? how can i achieved the function that display beginning... first and Completed... when the operation completed? thanks in advance. -Shelley -- 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-tool...@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: DisclosurePanel and arrows
Those are images, and you can set them in the Constructor by using http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/DisclosurePanelImages.html On Jul 13, 5:34 am, rlebisse rlebo...@gmail.com wrote: Hello, I've created a DisclosurePanel into my GWT project and want the arrow to be smaller. How can I do such a thing? Thanks 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-tool...@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 large files in gwt
So how do I change that value for google appengine? Or for my development environment in eclipse? On Tue, Jul 13, 2010 at 12:03 PM, Manuel Carrasco Moñino man...@apache.orgwrote: It seems an issue with the maximum configured limit for post requests at your server side. -Manolo On Tue, Jul 13, 2010 at 10:43 AM, Mika Tikkanen mika.r.tikka...@gmail.com wrote: On Mon, Jul 12, 2010 at 7:26 PM, Jeff Chimene jchim...@gmail.com wrote: On 07/11/2010 11:17 AM, Roope wrote: Hi I'm currently developing some bioinformatics tools and I want to make them as web apps. The thing is that user needs to input files that might be up to 4Gb but usually the biggest is just about 250Mb. There are two main use-cases: 1. Steaming the file and taking just some small parts of it to string 2. Reading the whole file and making object from each line in file I would like to do all the file processing in client side, but I understood that it is not yet possible using gwt? In general the answer is yes, but not because of GWT. Until wide-spread browser support of HTML 5 which will provide better local file handling. So GWT wont support it yet and there might be some browsers that do support it. So I could use those browser that do support it and use some JavaScript code? If I keep the server local it is feasible to upload some 250mb files and process them at the server side, but I have no success so far in this, even with 10mb file. You might provide some background on the ... no success so far... path. I managed to upload some over 1MB files but the over 10MB didn't upload. Here is the server side code, copied most of it and the rest of the code I show from some example how to do this or from forums. import org.apache.commons.fileupload.FileItemIterator; import org.apache.commons.fileupload.servlet.ServletFileUpload; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class FileUpload extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { ServletFileUpload upload = new ServletFileUpload(); res.setContentType(text/plain); FileItemIterator iterator = upload.getItemIterator(req); while (iterator.hasNext()) { copy(iterator.next().openStream(), res.getOutputStream()); } } catch (Exception ex) { throw new ServletException(ex); } } public static void copy(InputStream is, OutputStream os) throws IOException { byte buffer[] = new byte[8192]; int bytesRead; BufferedInputStream bis = new BufferedInputStream(is); while ((bytesRead = bis.read(buffer)) != -1) { os.write(buffer, 0, bytesRead); } is.close(); os.flush(); os.close(); } } Here is the the part from web.xml needed(replace * with your own stuff) servlet servlet-namefileUploaderServler/servlet-name servlet-classcom.*.*.server.FileUpload/servlet-class /servlet servlet-mapping servlet-namefileUploaderServler/servlet-name url-pattern/*/fileupload/url-pattern /servlet-mapping ...and here is the code for the form that uses the fileupload private static FormPanel getForm(final DialogBox dialogBox,final TextArea ta) { final FormPanel form = new FormPanel(); form.setAction(GWT.getModuleBaseURL() + fileupload); // Because we're going to add a FileUpload widget, we'll need to set the // form to use the POST method, and multipart MIME encoding. form.setEncoding(FormPanel.ENCODING_MULTIPART); form.setMethod(FormPanel.METHOD_POST); // Create a panel to hold all of the form widgets. final VerticalPanel panel = new VerticalPanel(); form.setWidget(panel); // Create a FileUpload widget. final FileUpload upload = new FileUpload(); upload.setName(uploadFormElement); panel.add(upload); HorizontalPanel horizontal = new HorizontalPanel(); // Add a 'submit' button. horizontal.add(new Button(Submit, new ClickHandler() { public void onClick(ClickEvent event) { form.submit(); } })); // Add a 'cancel' button. horizontal.add(new Button(Cancel, new ClickHandler() { public void onClick(ClickEvent event) { dialogBox.hide(); } })); panel.add(horizontal); // Lets add handlers form.addSubmitHandler(new SubmitHandler() { @Override public void onSubmit(SubmitEvent event) { if (upload.getFilename().length() == 0) { Window.alert(Must select a valid file); event.cancel(); } } }); form.addSubmitCompleteHandler(new SubmitCompleteHandler() { public void onSubmitComplete(SubmitCompleteEvent event) { ta.setText(event.getResults()); dialogBox.hide(); } }); return form; } For files of this size, I'd consider creating a file
discount news :
discount news : Happy South Africa's World Cup!Stay Cool With www.yong-rong.info My friend said to me that the site is doing promotions for the South Africa's World Cup in these days ,do you know ?i think the Website can be tested,because I have bought some ,that company mainly sell all kinds of MP3,TV,Motorbike,Cellphone,Laptop etc,during the South Africa's World Cup ,their products price is very favorable,you can buy their products as soon as possible ,after the South Africa's World Cup ,they will cancel this discount ,i think it is a big chance for every people to buy them. the company trys to build elite teams and their company's belief is a win-win,the mainly reason why their products price is very low is that they want to get into the international market,so i hope every people can check the www.yong-rong.info to get your goods and cheaper products ,good luck ,Greeting ! -- 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-tool...@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 bind the built-in server to another IP?
I am developing a facebook app with GWT and it requires us to use an internet domain name to connect. But in hosted debug mode, I can only run the built-in server at 127.0.0.1: and therefore I can never connect to facebook and debug. C:\netstat -an | grep TCP127.0.0.1: 0.0.0.0:0 LISTENING I believe that the jetty.xml of the built-in server is somehow bind to Set name=Host127.0.0.1/Set so I can't access the server from other IP. But I can't find any file named jetty*.xml under eclipse. Does anyone having any solution? Alternatively, I can debug the app at -noserver mode, but i can't debug the server, right? -- 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-tool...@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: Reusability of GWT UI
hie Thanks but i have following doubt: Since i need two different handlers for two search panels then where will be the deciding logic ? and how exactly i will call this addClickHandler method? 1. How will i call it Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber gal.dol...@gmail.com wrote: class YourSearchPanel extends Composite *implements HasClickHandlers {* * * *...* *public HandlerRegistration addClickHandler(ClickHandler handler) {* *yourSearchButton.addClickHandler(handler);* *}* * * *}* * * *And move the rpc logic out of your widget * 2010/7/12 Vik vik@gmail.com Hie I have a UI which shows a search panel having 3 list boxes to select from and a search button. I have two different pages where this UI has to be exactly same except the search button needs to call different rpc services. How should I write the code once and resue it both the places? Please advise... Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- http://gwtupdates.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@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: difference in alignment on different browsers
thanks a lot!!! Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Tue, Jul 13, 2010 at 2:27 AM, lineman78 linema...@gmail.com wrote: Sorry for the late response, align is not a valid css property, use text-align:left; On Jul 10, 11:31 pm, Vik vik@gmail.com wrote: any help on this plz... Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.com On Fri, Jul 9, 2010 at 10:35 AM, Vik vik@gmail.com wrote: hie thanks looks helpful... The firebug shows following layout td align=center fieldset table clogroup/colgroup tbody . . . and so on /tbody in firebug i add align=left to tbody then it fixes the issue. However, in css if add following it doesn't work: fieldset table tbody { align: left; } any advise plz Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Thu, Jul 8, 2010 at 9:40 PM, lineman78 linema...@gmail.com wrote: IE seems to be inheriting the align=center from the parent td. the simple way is to add align=left on the form table, but you could add it to each cell individually using the cell formatter. Depending on the GWT panels you are using there are multiple different ways to solve this. Essentially the difference is inheritance in IE vs Gecko/ Webkit. On Jul 8, 9:43 am, Vik vik@gmail.com wrote: Hie Check out pleasehttp:// 1.latest.sakshumweb20.appspot.com/ui/page/DonorRegister.jsp and notice the alignment of fields in IE Vs chrome/firefox The one coming in chrome or firefox is the desired one. So how to fix it for IE? And I thought i dont need to take care cross browser stuff using gwt Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@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: Google API Library for GWT updated for GWT 2.0
I am working on it now. Here's the first project under review: http://codereview.appspot.com/1793041/show On Wed, Jun 2, 2010 at 8:12 AM, jgonian jgon...@gmail.com wrote: After a little search, I found this project: http://code.google.com/p/google-maven-repository/ which seems to be in charge of mirroring releases of google owned projects under maven central. As suggested there, I filed an issue to gwt-google-apis project with reference to google-maven-repository project. http://code.google.com/p/gwt-google-apis/issues/detail?id=380 I hope this will help. On May 13, 10:04 pm, Eric Ayers zun...@google.com wrote: I'm not sure who has been submitting those jars to maven. I looked at the .pom files but couldn't figure it out. On Thu, May 13, 2010 at 9:57 AM, jgonian jgon...@gmail.com wrote: I've checked the maven repository (http://repo2.maven.org/maven2/com/ google/gwt/google-apis/) but I haven 't found the new versions of the Google API Libraries. Any updates on when will the updated libraries be available through the maven repository? On May 12, 4:43 am, Eric Ayers zun...@google.com wrote: We are pleased to announce updates to the Google API Libraries for the Google Web Toolkit project. The Google API Libraries for GWT project allows GWT developers to access some of Google's popular JavaScript APIs. This release includes updates of five libraries: Visualization, Gears, Gadgets, Search, Language, and AjaxLoader. Highlights of this release include: - Libraries updated to GWT 2.0 compatibility - Samples refactored to use war project structure - Added Eclipse project files and ant script to all samples Visualization: - Added support for all image-charts: ImageAreaChart, ImageBarChart, ImageLineChart, ImagePieChart, ImageSparklineChart - Added wrapper for Toolbar - Updated Visualization API bindings to be up-to-date with published documentation Gears: - Added support for the BlobBuilder class and Blob.getBytes() method - Added support for the Gears Canvas and Desktop's BlobMetaData object Gadgets: - Added support for multiple views and the Views API mapping Language: - Added support for new languages (Amharic, Greek, Persian, Russian, Sanskrit, Serbian, Tigrinya, Yiddish) AjaxLoader: - Added support for the google.loader.ClientLocation API - Added support for custom hostnames for enterprise users For more detailed information please refer to the release notes. These updates are now available for download at the Google API Libraries for GWT project hosted on Google Code. http://code.google.com/p/gwt-google-apis/ -The Google API Library for GWT Team -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group athttp:// 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to
Compiled scripts VS development
Hello, am I wrong thinking that scripts run faster once that are compiled and deployed than when they are served by Jetty during development? 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-tool...@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: compile problems with GWT 2.1
did u manage to get this fix? how do you solve this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Difference between port and codeServerPort
On Tue, Jul 13, 2010 at 5:43 AM, lam lama.gh...@gmail.com wrote: Hi, Can someone please explain what the difference is between the port and codeServerPort is in DevMode. I cannot find any clear documentation. What is a code sever? How is it different from the embedded web server? Why do each of them need a specific TCP port? Thank you The regular embedded web server in DevMode is Jetty, and it serves up your resources (html, css, images, etc..) and handles servlet requests. The code server is what the dev mode plugin talks to in order to run your GWT code in the Java VM. This diagram might help: http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideDevMode -- Chris Conroy Software Engineer Google, Atlanta -- 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-tool...@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.
location of .cache.html
Hi, Where is the .cache.html file located? I know that .nocache.js and the html pages are located in the WAR file, but I am unable to find the cachable file. 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-tool...@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.
Visualization DataTable - Invoke REMOTE Service Servlet Using PatternFormat
Dear Group, I was trying to implement a DataTable and used PatterFormat like this: PatternFormat formatter= PatternFormat.create(a href= \javascript:alert('{0}')\Details/a); See this code triggers a javascript alert. However, what I need is to trigger a remote service servlet asynchronously on click of the anchor tag. Is that possible to implement using PatternFormatter? Please help. Regards TL -- 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-tool...@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: the button and its infoLabel problem...
thanks very much Danny. On Jul 13, 8:28 pm, Danny Goovaerts danny.goovae...@gmail.com wrote: I think that you need a deferred command to handle this. Limit your clickhandler to set the infoLabel to Beginning and then launch a deferred command who's execute method performs the search and then updates the label. In this way, the execution thread will finnish, causing the screen to be updated with the beginning label and then only the defrred command will be executed. On 8 jul, 05:26,Shelleygsun...@gmail.com wrote: thank Andreas and Aditya for your explanation. however the problem has nothing to do with RPC, the search operation i mentioned above is simply a local operation such as sort a large chunk of data which will take seconds to completed. meanwhile the client is unresponsive until the click OnClick() is completed, you can simply simulate this situation by doing a while loop. is there other way i can see the beginning... ? or GWT has the ability to make UI responsive when it doing a time-consuming operation in client? thanks. -Shelley On Jul 7, 8:44 pm, andreas horst.andrea...@googlemail.com wrote: HeyShelley, a bit of further information is missing but may it be that you issue an RPC between infoLabel.setText(Beginning); and infoLabel.setText(Completed);? If so you simply forgot the async nature of GWT RPC. Your code in onClick(...) will not sort of stop or wait until the RPC finishes and continue afterwards. That's why infoLabel.setText(Completed); will be immediately executed after infoLabel.setText(Beginning); and you're simply way to slow to see it. What you could do instead is call infoLabel.setText(Completed); in your onSuccess(...) in case I'm right with RPC or in the callback of whatever request you do for your search operation. Andreas On 7 Jul., 10:22,Shelleygsun...@gmail.com wrote: hello all: i came across a strange problem which seems quite simple: i have a button and a label on a panel, the button has been registered a listener: Button searchButton = new Button( Search ); searchButton.addClickHandler( new ClickHandler() { @Override public void onClick( ClickEvent event ) { infoLabel.setText(Beginning); //do a search operation here which will take more than 5 seconds... infoLabel.setText(Completed...); } } ); that's all, but i never see the Beginning“ on the label, but only see the completed..., seem the label will not refresh it's text until onClick is finished? how can i achieved the function that display beginning... first and Completed... when the operation completed? thanks in advance. -Shelley -- 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-tool...@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: TablayoutPanel - how to align tabs on right (top)
I would also like to know the answer to this question. My ui drafts are mocked that way. I figured that by the time I got around to doing layout that I'd stumble into the answer. I have t dug I to it myself yet but I am geting close to needing to know. I'm sure that I could just change the standard.css file but I hope that there is an official way to do this. On Jul 12, 2:48 pm, Akshay Kumar kumar.aks...@gmail.com wrote: Hi, I assume, by rtl, you meant right-to-left. Then, no, my UI designer gave me this design to have the tab-headers on the right. I do not want to go back to UI-designer that its not possible, unless I have tried my options. thanks, Tkshay On 13 July 2010 00:19, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, Did you want to support a rtl language? When yes, try to switch to it. Some widget support it. Stefan Bachert http://gwtworld.de On 11 Jul., 13:46, Akshay Kumar kumar.aks...@gmail.com wrote: I am using TabLayoutPanel (in UiBinder xml), and the tab handles ( headers) are by default on top-left. Cant seem to figure out any api option to align the tab-headers on the top-right. I tried TabPanel also but without any luck. something like this: [ Tab1 ]_[ Tab2 ]_[ Tab3 ]_ | | | | | | | | | | |_| -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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-tool...@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: Compiled scripts VS development
Yes, they run faster when compiled since there is no need for eclipse to be connected to the browser plugin and to handle all events (for communication with eclipse) 2010/7/13 guandalino guandal...@gmail.com Hello, am I wrong thinking that scripts run faster once that are compiled and deployed than when they are served by Jetty during development? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@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.
to render Fusion chart in GridCellRenderer
Hi, Can someone provide me an sample code for rendering Fusion chart in GridCellRenderer along with column fields, Thanks Sri -- 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-tool...@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: Reusability of GWT UI
In that case make your custom events... You need to create 1 class and 2 interfaces... YourEvent.class (class), YourHandler(interface) and HasYourHandler(interface) See and copy any shared event as SelectionEvent, SelectionHandler HasSelectionHandler. (see the code of this ones and copy them) In your panel instead of delegating the event to the button do this: return addHandler(handler, YourEvent.getType()); And then you should trigger the events: searchButton.addClickHandler(new ClickHandler() { void onClick() { YourPanel.this.fireEvent(new YourEvent(someParameters)); } }); Its hard to explain this in two words... you should google for gwt events system or look in the google code page of gwt, I think there is a document that explain this 2010/7/13 Vik vik@gmail.com hie Thanks but i have following doubt: Since i need two different handlers for two search panels then where will be the deciding logic ? and how exactly i will call this addClickHandler method? 1. How will i call it Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber gal.dol...@gmail.com wrote: class YourSearchPanel extends Composite *implements HasClickHandlers {* * * *...* *public HandlerRegistration addClickHandler(ClickHandler handler) {* *yourSearchButton.addClickHandler(handler);* *}* * * *}* * * *And move the rpc logic out of your widget * 2010/7/12 Vik vik@gmail.com Hie I have a UI which shows a search panel having 3 list boxes to select from and a search button. I have two different pages where this UI has to be exactly same except the search button needs to call different rpc services. How should I write the code once and resue it both the places? Please advise... Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- http://gwtupdates.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- http://gwtupdates.blogspot.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-tool...@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 testing couldn't find module gwt.xml
Hi Thomas, did you inherit 'be.thomas.jobby.jobcv' in your project's .gwt.xml-File? For example in project Foo you should have a file 'Foo.gwt.xml'. In this file you should find a line inherits name=be.thomas.jobby.jobcv / Regards, Markus Thomas Van Driessche schrieb: Hi, I'm quite new to Google Web Toolkit, and i'm having a problem when i created a test. I inherited from GWTTestCase and overrided the getModuleName(): public String getModuleName() { return be.thomas.jobby.jobby; } Now when i run it it gives te following error: Loading inherited module 'be.thomas.jobby.jobcv' [ERROR] Unable to find 'be/thomas/jobby/jobby.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I have a package be.thomas.jobby under src/main/java and in that package there is the jobby.gwt.xml file... Any idea why he doesn't find it? I'm kinda stuck here. kind regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
clinet session something like httpsession
How to implement a client side session ( something like httpsession at server). Is it to just create a static variable ? How do two different MVP widgets share MODEL data (for example user entered data in one widget to be passed to second widget of table to show data for that date). How do two different MVP widgets share VIEW data ( for example if a widget (say help dialog box) is dependent on mouse click location of second widget, than how do two widgets share view information i.e. mouse click location). -- 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-tool...@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.
Client side mapping between model objects
How do you maintain mapping between Model objects at client browser? Say for example, over the course of user conversation, there were three DIFFERENT ajax calls to load CUSTOMER, ORDERS and ITEMS. Now do you manually map CUSTOMER to ORDER and ORDER to ITEM in client to maintain mapping between Model objects.. ( or do you store CUSTOMER, ORDER, ITEM separatly with no mapping or there is a framework like hibernate mappings but for browser which maps model objects with configuration) 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-tool...@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: Client side mapping between model objects
Are you sure you mean 'client side mapping'? What I understand from it is you have a domain model with classes (customer, order, item) which somehow reference each other. How do you retrieve instances of these classes from your application backend? Are instances of these classes referencing each other at all, for example before being persisted or after being retrieved from a database? If you use hibernate you can persist the associations between domain model classes as well (see hibernate documentation) and of course load it again as well. Now if you break up these associations and retrieve each classes instances separately I'd suggest your associations are lost, but why would you do something like that? Get your model instance out of your database and pass it to the client at once. For example request one CUSTOMER which references some ORDERs which reference some ITEMs. GWT RPC will not break up these references. If you have a very large database things are getting different of course because you do not want to load the whole database because all entries references cover the whole database. Then you'll want to consider other fetching strategies. We are working with (quite) complex domain models containing hierarchies and references as well. In our case we will not load the whole database by accident and simply loading via RPC works great. Hope this help... Andreas On 13 Jul., 19:55, mk munna.kaka.ch...@gmail.com wrote: How do you maintain mapping between Model objects at client browser? Say for example, over the course of user conversation, there were three DIFFERENT ajax calls to load CUSTOMER, ORDERS and ITEMS. Now do you manually map CUSTOMER to ORDER and ORDER to ITEM in client to maintain mapping between Model objects.. ( or do you store CUSTOMER, ORDER, ITEM separatly with no mapping or there is a framework like hibernate mappings but for browser which maps model objects with configuration) 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-tool...@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.
Tree, setFocus and TextBox
I have run into the same problem that has been discussed time and again. For example, here: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a998b2165103dd60 Basically, the problem is, if you have a GWT Tree, and on a selection event on one of its items, you want to replace the TreeItem's widget with a TextBox to let the user enter text, you run into focus problems. After you instantiate the TextBox and set focus to it, it loses focus the first time user presses a key. If the user focuses on it again manually, everything works fine. I have tried a variety of ways to set the focus on TextBox, including a DeferredCommand, but it always loses it. Can somebody help demystify workings of a Tree with TextBox widgets? -- 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-tool...@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: Client side mapping between model objects
Thanks A. 2 more selfish questions 1) In your case after simply loading various model objects via RPC do you again map them togather ? 2) If one of model object is used (read-only) by two different MVP widgets than how do you share that model object. Few points 1) I understand that your proj domain is different from anybody else 2) I do have coarse grained GWT RPC calls but I need to make fine grained calls now On Tue, Jul 13, 2010 at 12:11 PM, andreas horst.andrea...@googlemail.comwrote: Are you sure you mean 'client side mapping'? What I understand from it is you have a domain model with classes (customer, order, item) which somehow reference each other. How do you retrieve instances of these classes from your application backend? Are instances of these classes referencing each other at all, for example before being persisted or after being retrieved from a database? If you use hibernate you can persist the associations between domain model classes as well (see hibernate documentation) and of course load it again as well. Now if you break up these associations and retrieve each classes instances separately I'd suggest your associations are lost, but why would you do something like that? Get your model instance out of your database and pass it to the client at once. For example request one CUSTOMER which references some ORDERs which reference some ITEMs. GWT RPC will not break up these references. If you have a very large database things are getting different of course because you do not want to load the whole database because all entries references cover the whole database. Then you'll want to consider other fetching strategies. We are working with (quite) complex domain models containing hierarchies and references as well. In our case we will not load the whole database by accident and simply loading via RPC works great. Hope this help... Andreas On 13 Jul., 19:55, mk munna.kaka.ch...@gmail.com wrote: How do you maintain mapping between Model objects at client browser? Say for example, over the course of user conversation, there were three DIFFERENT ajax calls to load CUSTOMER, ORDERS and ITEMS. Now do you manually map CUSTOMER to ORDER and ORDER to ITEM in client to maintain mapping between Model objects.. ( or do you store CUSTOMER, ORDER, ITEM separatly with no mapping or there is a framework like hibernate mappings but for browser which maps model objects with configuration) 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@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: Running a .exe file from server side code
Thanks .I removed the Google App engine part and it worked. On Jul 4, 3:28 am, Sebastian Rothbucher sebastian.rothbuc...@clarities.de wrote: HiRajesh, it might be possible that another java.policy is effective. For Tomcat, there is at least a catalina.policy file in ${TOMCAT-DIR} \conf\catalina.policy and a ${JAVA-HOME}\lib\security\java.policy file. Depending on your Runtime configuration, there might also be a - Djava.security.policy=... file. Other application servers like WebSphere will handle that similarily. So I'd check all those policy files (and on the test(!) system first allow all and then limit down to see which file is effective). Hope this helps... Sebastian On Jul 2, 4:28 am,Rajeshrajesh...@gmail.com wrote: Hi, I am trying to call a .exe file using server side code.However I keep getting this error: error===access denied (java.io.FilePermission ALL FILES execute). I even tried to change the security permissions of the file by changing the java.policy file but it still gives the same error.I have also tried to place it under /war/WEB-INF but in vain. Can someone help me with this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Client side mapping between model objects
Maybe I was not clear about it: 1) We do not map anything together from the model at client side and the best is: we do not need to; our (GWT) RPC returns one instance of our domain model containing all references among elements like the way we designed them, it's just that easy... the referencing between the elements is persisted and loaded by hibernate, just like the elements are 2) We don't do that... each model object is represented by its own view object Regarding your few points: 1) Why is it different? It's simply model based... Andreas On 13 Jul., 20:44, munna kaka munna.kaka.ch...@gmail.com wrote: Thanks A. 2 more selfish questions 1) In your case after simply loading various model objects via RPC do you again map them togather ? 2) If one of model object is used (read-only) by two different MVP widgets than how do you share that model object. Few points 1) I understand that your proj domain is different from anybody else 2) I do have coarse grained GWT RPC calls but I need to make fine grained calls now On Tue, Jul 13, 2010 at 12:11 PM, andreas horst.andrea...@googlemail.comwrote: Are you sure you mean 'client side mapping'? What I understand from it is you have a domain model with classes (customer, order, item) which somehow reference each other. How do you retrieve instances of these classes from your application backend? Are instances of these classes referencing each other at all, for example before being persisted or after being retrieved from a database? If you use hibernate you can persist the associations between domain model classes as well (see hibernate documentation) and of course load it again as well. Now if you break up these associations and retrieve each classes instances separately I'd suggest your associations are lost, but why would you do something like that? Get your model instance out of your database and pass it to the client at once. For example request one CUSTOMER which references some ORDERs which reference some ITEMs. GWT RPC will not break up these references. If you have a very large database things are getting different of course because you do not want to load the whole database because all entries references cover the whole database. Then you'll want to consider other fetching strategies. We are working with (quite) complex domain models containing hierarchies and references as well. In our case we will not load the whole database by accident and simply loading via RPC works great. Hope this help... Andreas On 13 Jul., 19:55, mk munna.kaka.ch...@gmail.com wrote: How do you maintain mapping between Model objects at client browser? Say for example, over the course of user conversation, there were three DIFFERENT ajax calls to load CUSTOMER, ORDERS and ITEMS. Now do you manually map CUSTOMER to ORDER and ORDER to ITEM in client to maintain mapping between Model objects.. ( or do you store CUSTOMER, ORDER, ITEM separatly with no mapping or there is a framework like hibernate mappings but for browser which maps model objects with configuration) 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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-tool...@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: Client side mapping between model objects
Well, I make things a little more complicated since my backend isn't Java so GWT-RPC will not work out-of-the-box. I my case, i implemented a JSON-RPC library to provide client-server communication. The data sent to the client depends on the method called. So in my case: The client request the orders of the current day: First I retreive all the orders of today. Then I retreive the client for ther orders Then I retreive the product for the orders. Then I agregate the results in a JSON-Array and send that array to the client. All the records are nested causing some extra payload, but it isn't very large to make my application slow. Another option is to send all the associations with only the id of the object, and send an array with all objects used. This option is much more efficient but also much more complex. (both client and server). On Tue, Jul 13, 2010 at 2:55 PM, mk munna.kaka.ch...@gmail.com wrote: How do you maintain mapping between Model objects at client browser? Say for example, over the course of user conversation, there were three DIFFERENT ajax calls to load CUSTOMER, ORDERS and ITEMS. Now do you manually map CUSTOMER to ORDER and ORDER to ITEM in client to maintain mapping between Model objects.. ( or do you store CUSTOMER, ORDER, ITEM separatly with no mapping or there is a framework like hibernate mappings but for browser which maps model objects with configuration) 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.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-tool...@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: MVP Problem when implementing the presenter as singleton
How do you instantiate and populate your view? Is it fully created before the presenter constructor is called? For my part, I use GIN and the gwt-platform mechanism which has an onBind() method that is invoked automatically after all the relevant objects are constructed. The onBind() method is called only once unless you manually unbind() the presenter. It could also be totally unrelated, though. I had a similar behavior at some point when I manipulated widget's elements (via getElement) a bit too liberally. Hope it helps, Philippe On Jul 12, 9:38 am, crojay78 croja...@googlemail.com wrote: Hi, I have a problem with my mvp project. I do the binding in the constructor of each presenter, every presenter is implemented as a singleton. I do that because otherwise I discovered that the binding to the buttons, textboxes etc will be established each time I use the presenter and so i had duplicated actions. Now the bind method will be called only once like excpected but when I click a button in my view there no action, its like the binding to my buttons does not exist? Does anyone has an advise for me? I do not see the issue? Or is it not possible to do that in gwt ? Thanks Best regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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 RPC with Adobe AIR 2
I found it easier to modify the cache.html file and replace self.onreadystatechange = new Function with self.onreadystatechange = function(){} I tried to modify the RPC Url with the setServiceEntryPont() method which changes the URL but the request method is no longer POST but OPTIONS. I tried creating a custom RpcRequestBuilder and still uses the OPTIONS method. -- 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-tool...@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: Remove event handlers or not?
Anyone?? 2010/7/13 Gal Dolber gal.dol...@gmail.com Hi, someone knows for sure if its necessary to remove event handlers when we remove a widget? will I get memory leaks if I don't? i.e: HandlerRegistration registration = button.addClickHandler(myHandler); ... // IS THIS NECESSARY? public void fakeCleanerMethodBeforeIRemoveTheWidget() { registration.removeHandler(); } I thought that answer was YES, but then I notice that @UiHandlers in uibinder have no way to remove the handler. I don't think the gwt's team will make that mistake. Can someone confirm? Thanks -- http://gwtupdates.blogspot.com/ -- http://gwtupdates.blogspot.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-tool...@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 and data visualization
Sent via BlackBerry by ATT -Original Message- From: kawanka kawa...@nbnet.nb.ca Sender: google-web-toolkit@googlegroups.com google-web-toolkit@googlegroups.com Date: Tue, 13 Jul 2010 18:19:25 To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com Reply-To: google-web-toolkit@googlegroups.com google-web-toolkit@googlegroups.com Subject: GWT and data visualization Is it normal that using the query callback mechanism as outlined here : http://code.google.com/docreader/#p=gwt-google-apiss=gwt-google-apist=VisualizationGettingStarted Would create a new script tag (see below) every time I re-load the data with a button click for example : script type=text/javascript src=http://spreadsheets.google.com/tq? key=pWiorx-0l9mwIuwX5CbEALAamp;range=A1:B12amp;gid=0amp;headers=-1amp;tqx=reqId %3A1/script script type=text/javascript src=http://spreadsheets.google.com/tq? key=pWiorx-0l9mwIuwX5CbEALAamp;range=A1:B12amp;gid=0amp;headers=-1amp;tqx=reqId %3A2/script Every time I refresh the dataset with a new query callback call. I get a new script tag added to my header of the html... is this normal? thanks in advance. Rene -- 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-tool...@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-tool...@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.
Deploy static content in Webserver and Dynamic in App server
I am trying to deploy an application built with GWT. Would like to know how to create a build so that I can deploy static content on the Webserver and dynamic content on app server. I use Websphere(App Server), IBM Httpd server(Webserver). Please do not suggest me that I can put all into one war file and deploy into App Server. My real question is separation of duties between Web App Server. Thanks in Advance for the support. -MY -- 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-tool...@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: TablayoutPanel - how to align tabs on right (top)
As far as I can tell, there is no official way to do this, and there is no way to do it in CSS due to the layout being set directly on the elements. I have developed a bit of a workaround but this could be broken by subsequent GWT releases as they make changes to the way the tab panel lays itself out. This is only a partial solution, but you can take the idea and run with it. If you are dynamically adding tabs you will need to change the float when they are created. public TabPanelRight() { // INIT TABS HERE // set the tab divs to float:right instead of float:left for (Element el:getChildElementsWithClass(tabPanel.getElement(), gwt-TabLayoutPanelTab)) el.setAttribute(style, float:right;); // clearing left gets overriden by the layout, there is probably a better way to do this tabPanel.setVisible(false); DeferredCommand.addCommand(new Command(){ @Override public void execute() { getChildElementsWithClass(tabPanel.getElement(), gwt- TabLayoutPanelTabs).get(0).getStyle().clearLeft(); tabPanel.setVisible(true); }}); } private ListElement getChildElementsWithClass(Element parent, String styleClass) { ListElement toReturn = new ArrayListElement(); NodeListNode children = parent.getChildNodes(); for (int i = 0; i children.getLength(); i++) { Node child = children.getItem(i); if (child.getNodeType() == Node.ELEMENT_NODE) { for (String className: ((Element)child).getAttribute(class).split( )) if (className.equals(styleClass)) toReturn.add((Element)child); toReturn.addAll(getChildElementsWithClass((Element)child, styleClass)); } } return toReturn; } On Jul 13, 9:49 am, Trevis trevistho...@gmail.com wrote: I would also like to know the answer to this question. My ui drafts are mocked that way. I figured that by the time I got around to doing layout that I'd stumble into the answer. I have t dug I to it myself yet but I am geting close to needing to know. I'm sure that I could just change the standard.css file but I hope that there is an official way to do this. On Jul 12, 2:48 pm, Akshay Kumar kumar.aks...@gmail.com wrote: Hi, I assume, by rtl, you meant right-to-left. Then, no, my UI designer gave me this design to have the tab-headers on the right. I do not want to go back to UI-designer that its not possible, unless I have tried my options. thanks, Tkshay On 13 July 2010 00:19, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, Did you want to support a rtl language? When yes, try to switch to it. Some widget support it. Stefan Bachert http://gwtworld.de On 11 Jul., 13:46, Akshay Kumar kumar.aks...@gmail.com wrote: I am using TabLayoutPanel (in UiBinder xml), and the tab handles ( headers) are by default on top-left. Cant seem to figure out any api option to align the tab-headers on the top-right. I tried TabPanel also but without any luck. something like this: [ Tab1 ]_[ Tab2 ]_[ Tab3 ]_ | | | | | | | | | | |_| -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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-tool...@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: Deploy static content in Webserver and Dynamic in App server
Please be more specific on the form of communication you would like to do and how you are handling the DNS for having 2 servers handling requests(i.e. different subdomains, ports, etc.). Remember, because of the SOP you can only make data requests to the same server and port the page originated from, unless you are willing to play around with JSONP. On Jul 13, 6:24 pm, my explo...@gmail.com wrote: I am trying to deploy an application built with GWT. Would like to know how to create a build so that I can deploy static content on the Webserver and dynamic content on app server. I use Websphere(App Server), IBM Httpd server(Webserver). Please do not suggest me that I can put all into one war file and deploy into App Server. My real question is separation of duties between Web App Server. Thanks in Advance for the support. -MY -- 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-tool...@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.
Testing basic app with RPC on web
Hi Everyone, I'm relatively new to GWT development and Java development so please bear with me. It's been years since I've worked with RPC. I created a proof of concept test app at the following URL - in short testing a date picker and testing the RPC communications as per the basic test project that gets created when you create a new GWT project in Eclipse. http://google.mathan.ca/BearsTouchPOC.html When testing through Eclipse, everything works. When I try running the production version of the test site from my local computer (i.e. run the html direct from the finder dropped into Safari or Chrome), or via the URL above which is on hosted web provider, when I click the send button I get an RPC error. Is there something I am not doing in the code, or maybe something not installed that would need to be installed? Thanks again! I'm sure once I get through this I'll be set. -Iain -- 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-tool...@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.
Stack Panel change handlers
Hi, I am using a StackPanel (called leftStackPanel in code) in my application and in order to respond to Click events on this stack panel, I have coded the following and it works fine. But classes SourcesChangeEvents, ChangeListenerCollection, and ChangeListener are deprecated. I tried to use alternative new classes like HasChangeHandlers instead, but I wasn't able to code this with new classes. Can anyone help me with this? StackPanel leftStackPanel = new LeftStackPanel(); StackPanelListener stackListener = new StackPanelListener(); leftStackPanel.addChangeListener(stackListener); //inner class class LeftStackPanel extends StackPanel implements SourcesChangeEvents{ ChangeListenerCollection clc; int current; public LeftStackPanel(){ clc = new ChangeListenerCollection(); } public void showStack( int index ) { int visibleStack = index; int oldVisibleStack = visibleStack; super.showStack(index); if (oldVisibleStack != visibleStack clc != null) { clc.fireChange(this); } super.showStack( index ); current = index; clc.fireChange( this ); } public int getCurrent() { return current; } @Override public void addChangeListener(ChangeListener cl) { // TODO Auto-generated method stub clc.add( cl ); } @Override public void removeChangeListener(ChangeListener cl) { // TODO Auto-generated method stub clc.remove( cl ); } /*public void onBrowserEvent(Event event){ super.onBrowserEvent(event); //if(event.) if (event.getTypeInt()== event.ONCLICK){ int selectedIndex = this.getSelectedIndex(); } }*/ } //inner class class StackPanelListener implements ChangeListener{ @Override public void onChange(Widget sender) { int current = ((LeftStackPanel)sender).getCurrent(); System.out.println(index: + current); } } -- 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-tool...@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: Client side mapping between model objects
Thanks Andre Another option is to send all the associations with only the id of the object, and send an array with all objects used. This option is much more efficient but also much more complex. (both client and server). For the above mentioned complexity, is there any framework to reduce complexity ( or any other suggestions to reduce complexity at client side). I do not know about Spring Roo but do ROO takes care of above complexity? -- 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-tool...@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 create PDF pop-up after a form submit
Hi, the use case here is for report generation. I would like to be able to submit a GWT form to a servlet that will generate the report, and upon form submission, pop-up a new browser window containing the PDF report in it. I have read that the easiest way to do this is to POST the form to the servlet, generate the report, put the report into the user's HttpSession, return a token that identifies the report in the session back to the client, and then open a pop-up window issuing a GET request with the token. However this approach would require me to perform session cleanup as generating a lot of reports can bloat one's session. I would prefer to be able to (1) pop-up a window (maybe display a Loading... message), (2) POST the form to the servlet, and (3) on the callback of this request, change the content of the window to display the response from the request. Is this at all possible?? I can't figure out how to do step (3). -- 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-tool...@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: A couple of (probably) simple questions about using _escaped_fragment_ / ajax crawl-able.
Hi darkflame, a) As my server doesn't support server-side java, I'll be using php to generate the static/snapshot pages. How close do they have to be to the proper/GWT ones? Is it good enough if the text and links are exactly samebut not the images/layout? I dont want to be accused ofspoofing, but replicating the layout exact will prove a lot of work. Thanks for your concern about cloaking. It's most important for text, links, and images to be the same. Layout is less important (i.e. it's fine to have differences between versions). So sorry, not an authority for your second question. Hopefully someone else can help. :) -- 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-tool...@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: This is getting beyond a joke
We do host our own repository - thats not the point. The point is that thousands of people use GWT and use dependency management, not having it go into central as a matter of course is simply ridiculous! It is absolutely, point blank unprofessional. On Jul 13, 4:32 pm, Paul Grenyer paul.gren...@gmail.com wrote: Hi If you need it that much, why don't you host your own repository, such as Nexus? That's what we do for Ivy. -- 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-tool...@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: This is getting beyond a joke
Or, maybe you're over-estimating importance of Maven for average GWT-developer...? On Wed, Jul 14, 2010 at 3:39 AM, Richard Vowles richard.vow...@gmail.comwrote: We do host our own repository - thats not the point. The point is that thousands of people use GWT and use dependency management, not having it go into central as a matter of course is simply ridiculous! It is absolutely, point blank unprofessional. On Jul 13, 4:32 pm, Paul Grenyer paul.gren...@gmail.com wrote: Hi If you need it that much, why don't you host your own repository, such as Nexus? That's what we do for Ivy. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@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: Reusability of GWT UI
Thanks Regards Vik http://www.sakshum.com Sent from my iPad On Jul 13, 2010, at 7:32 PM, Vik vik@gmail.com wrote: hie Thanks but i have following doubt: Since i need two different handlers for two search panels then where will be the deciding logic ? and how exactly i will call this addClickHandler method? 1. How will i call it Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber gal.dol...@gmail.com wrote: class YourSearchPanel extends Composite implements HasClickHandlers { ... public HandlerRegistration addClickHandler(ClickHandler handler) { yourSearchButton.addClickHandler(handler); } } And move the rpc logic out of your widget 2010/7/12 Vik vik@gmail.com Hie I have a UI which shows a search panel having 3 list boxes to select from and a search button. I have two different pages where this UI has to be exactly same except the search button needs to call different rpc services. How should I write the code once and resue it both the places? Please advise... Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.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-tool...@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. -- http://gwtupdates.blogspot.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-tool...@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-tool...@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: This is getting beyond a joke
+1 On Jul 14, 10:10 am, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Or, maybe you're over-estimating importance of Maven for average GWT-developer...? On Wed, Jul 14, 2010 at 3:39 AM, Richard Vowles richard.vow...@gmail.comwrote: We do host our own repository - thats not the point. The point is that thousands of people use GWT and use dependency management, not having it go into central as a matter of course is simply ridiculous! It is absolutely, point blank unprofessional. On Jul 13, 4:32 pm, Paul Grenyer paul.gren...@gmail.com wrote: Hi If you need it that much, why don't you host your own repository, such as Nexus? That's what we do for Ivy. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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-tool...@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 create PDF pop-up after a form submit
You accomplish step three by returning a CGI header that contains the application/pdf MIME type. The browser handles the rest. On Tue, Jul 13, 2010 at 3:49 PM, citress citr...@gmail.com wrote: Hi, the use case here is for report generation. I would like to be able to submit a GWT form to a servlet that will generate the report, and upon form submission, pop-up a new browser window containing the PDF report in it. I have read that the easiest way to do this is to POST the form to the servlet, generate the report, put the report into the user's HttpSession, return a token that identifies the report in the session back to the client, and then open a pop-up window issuing a GET request with the token. However this approach would require me to perform session cleanup as generating a lot of reports can bloat one's session. I would prefer to be able to (1) pop-up a window (maybe display a Loading... message), (2) POST the form to the servlet, and (3) on the callback of this request, change the content of the window to display the response from the request. Is this at all possible?? I can't figure out how to do step (3). -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@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 write good performance code?
private final Button button; private final ClickHandler clickHandler; public MyClass(){ //Code 1 button.addClickHandler(new com.google.gwt.event.dom.client.ClickHandler() { public void onClick(com.google.gwt.event.dom.client.ClickEvent event) { Window.alert(msg); } }); //Code 2 clickHandler=new com.google.gwt.event.dom.client.ClickHandler() { public void onClick(com.google.gwt.event.dom.client.ClickEvent event) { Window.alert(msg); } }; button.addClickHandler(clickHandler); } Which code is better for performance ? -- 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-tool...@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: Deploy static content in Webserver and Dynamic in App server
Thanks for your response. Here is more details. Yes I am in the same domain same network too. Here is the history in the past.. I used to bundle the .js, images, html css and deploy them on the webserver and bundle rest of the Java code bundled as part of the WAR. Where as now I use GWT for end to end in wich I have a server layer that makes RPC calls to obtain data. So my main idea is to split the code into static content and dynamic(Server Layer) to the appserver and .js, images, html css to webserver. Hope this is the information you are looking for. On Jul 13, 5:54 pm, lineman78 linema...@gmail.com wrote: Please be more specific on the form of communication you would like to do and how you are handling the DNS for having 2 servers handling requests(i.e. different subdomains, ports, etc.). Remember, because of the SOP you can only make data requests to the same server and port the page originated from, unless you are willing to play around with JSONP. On Jul 13, 6:24 pm, my explo...@gmail.com wrote: I am trying to deploy an application built with GWT. Would like to know how to create a build so that I can deploy static content on the Webserver and dynamic content on app server. I use Websphere(App Server), IBM Httpd server(Webserver). Please do not suggest me that I can put all into one war file and deploy into App Server. My real question is separation of duties between Web App Server. Thanks in Advance for the support. -MY- Hide quoted text - - Show quoted text - -- 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-tool...@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 write good performance code?
Are you serious? If you are *creating the buttons dynamically* and you can declare the clickHandler as a field it will be faster cause you will be avoiding the handler instantiation every time... but I don't think that choice will have a performance impact.. 2010/7/13 cody lse...@gmail.com private final Button button; private final ClickHandler clickHandler; public MyClass(){ //Code 1 button.addClickHandler(new com.google.gwt.event.dom.client.ClickHandler() { public void onClick(com.google.gwt.event.dom.client.ClickEvent event) { Window.alert(msg); } }); //Code 2 clickHandler=new com.google.gwt.event.dom.client.ClickHandler() { public void onClick(com.google.gwt.event.dom.client.ClickEvent event) { Window.alert(msg); } }; button.addClickHandler(clickHandler); } Which code is better for performance ? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- http://gwtupdates.blogspot.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-tool...@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: This is getting beyond a joke
This is free software, there is no obligation. -Original Message- From: Richard Vowles richard.vow...@gmail.com Sender: google-web-toolkit@googlegroups.com Date: Tue, 13 Jul 2010 18:39:23 To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com Reply-To: google-web-toolkit@googlegroups.com Subject: Re: This is getting beyond a joke We do host our own repository - thats not the point. The point is that thousands of people use GWT and use dependency management, not having it go into central as a matter of course is simply ridiculous! It is absolutely, point blank unprofessional. On Jul 13, 4:32 pm, Paul Grenyer paul.gren...@gmail.com wrote: Hi If you need it that much, why don't you host your own repository, such as Nexus? That's what we do for Ivy. -- 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-tool...@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-tool...@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: This is getting beyond a joke
I'd say so. -Original Message- From: Jaroslav Záruba jaroslav.zar...@gmail.com Sender: google-web-toolkit@googlegroups.com Date: Wed, 14 Jul 2010 04:10:37 To: google-web-toolkit@googlegroups.com Reply-To: google-web-toolkit@googlegroups.com Subject: Re: This is getting beyond a joke Or, maybe you're over-estimating importance of Maven for average GWT-developer...? On Wed, Jul 14, 2010 at 3:39 AM, Richard Vowles richard.vow...@gmail.comwrote: We do host our own repository - thats not the point. The point is that thousands of people use GWT and use dependency management, not having it go into central as a matter of course is simply ridiculous! It is absolutely, point blank unprofessional. On Jul 13, 4:32 pm, Paul Grenyer paul.gren...@gmail.com wrote: Hi If you need it that much, why don't you host your own repository, such as Nexus? That's what we do for Ivy. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@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-tool...@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: This is getting beyond a joke
I tend to agree with Richard, maybe not formulated to like he do, but I understand his frustrations. What I don't understand is why you guys need to respond in this manner, when the guy clearly is venting his frustrations. I would also wish that Google would take Maven more seriously. I can only recommend all that agree to star the issues regarding Maven in the bug tracker. Cheers, :-) Kasper On Wed, Jul 14, 2010 at 7:14 AM, Paul Grenyer paul.gren...@gmail.com wrote: I'd say so. From: Jaroslav Záruba jaroslav.zar...@gmail.com Sender: google-web-toolkit@googlegroups.com Date: Wed, 14 Jul 2010 04:10:37 +0200 To: google-web-toolkit@googlegroups.com ReplyTo: google-web-toolkit@googlegroups.com Subject: Re: This is getting beyond a joke Or, maybe you're over-estimating importance of Maven for average GWT-developer...? On Wed, Jul 14, 2010 at 3:39 AM, Richard Vowles richard.vow...@gmail.com wrote: We do host our own repository - thats not the point. The point is that thousands of people use GWT and use dependency management, not having it go into central as a matter of course is simply ridiculous! It is absolutely, point blank unprofessional. On Jul 13, 4:32 pm, Paul Grenyer paul.gren...@gmail.com wrote: Hi If you need it that much, why don't you host your own repository, such as Nexus? That's what we do for Ivy. -- 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-tool...@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-tool...@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-tool...@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-tool...@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 can i debug an GWT application in IE 7?
I'm getting an error in the generated js in my app running on ie7. And all i get in the ie console is Argument not valid an the line of the script that is causing the trouble: 44756 :P -- 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-tool...@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: This is getting beyond a joke
On Wed, Jul 14, 2010 at 7:22 AM, Kasper Hansen kbhdk1...@gmail.com wrote: What I don't understand is why you guys need to respond in this manner, when the guy clearly is venting his frustrations. Pardon? In what manner? Are you serious? :)) All the responses were perfectly correct, I'm not sure you can say the same about the original message - look at the message subject for the starters. I'm in no way related to GWT-team but I'm not sure the original poster has chosen the most suitable tone when asking the GWT-team to aim their efforts according to his needs. I for one think there are important things to do when it comes to GWT, and I don't miss Maven integration/support at all. Of course, everyone has their own opinion. I would also wish that Google would take Maven more seriously. I can only recommend all that agree to star the issues regarding Maven in the bug tracker. That's what I usually do, instead of being sarcastic when asking for something. :P Regards J. Záruba Cheers, :-) Kasper On Wed, Jul 14, 2010 at 7:14 AM, Paul Grenyer paul.gren...@gmail.com wrote: I'd say so. From: Jaroslav Záruba jaroslav.zar...@gmail.com Sender: google-web-toolkit@googlegroups.com Date: Wed, 14 Jul 2010 04:10:37 +0200 To: google-web-toolkit@googlegroups.com ReplyTo: google-web-toolkit@googlegroups.com Subject: Re: This is getting beyond a joke Or, maybe you're over-estimating importance of Maven for average GWT-developer...? On Wed, Jul 14, 2010 at 3:39 AM, Richard Vowles richard.vow...@gmail.com wrote: We do host our own repository - thats not the point. The point is that thousands of people use GWT and use dependency management, not having it go into central as a matter of course is simply ridiculous! It is absolutely, point blank unprofessional. On Jul 13, 4:32 pm, Paul Grenyer paul.gren...@gmail.com wrote: Hi If you need it that much, why don't you host your own repository, such as Nexus? That's what we do for Ivy. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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.comgoogle-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.comgoogle-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@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] Speed up UiBinderTest by having all tests share one instance of the (issue687801)
Reviewers: robertvawter, Description: Speed up UiBinderTest by having all tests share one instance of the test app. Also clean up some deprecation warnings. Review by: robertvaw...@google.com Please review this at http://gwt-code-reviews.appspot.com/687801/show Affected files: M user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java M user/test/com/google/gwt/uibinder/test/client/UiBinderTestApp.java M user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Speed up UiBinderTest by having all tests share one instance of the (issue687801)
LGTM http://gwt-code-reviews.appspot.com/687801/diff/1/3 File user/test/com/google/gwt/uibinder/test/client/UiBinderTestApp.java (right): http://gwt-code-reviews.appspot.com/687801/diff/1/3#newcode53 user/test/com/google/gwt/uibinder/test/client/UiBinderTestApp.java:53: Extra blank line. http://gwt-code-reviews.appspot.com/687801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Faster clustering algorithm for JsFunctionClusterer (issue669801)
After further analysis, I have concluded that the hashing based clustering method gives significantly worst result with respect to compression efficiency. I will submit the patch that improves the edit-distance implementation instead. http://gwt-code-reviews.appspot.com/669801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Attributes required by @UiConstructor are no longer enforced when a (issue690801)
Reviewers: sonnyf_google.com, Description: Attributes required by @UiConstructor are no longer enforced when a field is created via @UiField(provided=true) Review by: son...@google.com Please review this at http://gwt-code-reviews.appspot.com/690801/show Affected files: M user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java M user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java M user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml Index: user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java === --- user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java (revision 8377) +++ user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java (working copy) @@ -25,6 +25,7 @@ import com.google.gwt.uibinder.rebind.XMLAttribute; import com.google.gwt.uibinder.rebind.XMLElement; import com.google.gwt.uibinder.rebind.messages.AttributeMessage; +import com.google.gwt.uibinder.rebind.model.OwnerField; import com.google.gwt.uibinder.rebind.model.OwnerFieldClass; import java.util.Collection; @@ -57,16 +58,25 @@ final OwnerFieldClass ownerFieldClass = OwnerFieldClass.getFieldClass(type, writer.getLogger()); -// See if there's a factory method -JAbstractMethod creator = writer.getOwnerClass().getUiFactoryMethod(type); -if (creator == null) { - // If not, see if there's a @UiConstructor - creator = ownerFieldClass.getUiConstructor(); -} - -if (creator != null) { - for (JParameter param : creator.getParameters()) { -unfilledRequiredParams.put(param.getName(), param.getType()); +/* + * Handle @UiFactory and @UiConstructor, but only if the user + * hasn't provided an instance via @UiField(provided = true) + */ + +JAbstractMethod creator = null; +OwnerField uiField = writer.getOwnerClass().getUiField(fieldName); +if ((uiField == null) || (!uiField.isProvided())) { + // See if there's a factory method + creator = writer.getOwnerClass().getUiFactoryMethod(type); + if (creator == null) { +// If not, see if there's a @UiConstructor +creator = ownerFieldClass.getUiConstructor(); + } + + if (creator != null) { +for (JParameter param : creator.getParameters()) { + unfilledRequiredParams.put(param.getName(), param.getType()); +} } } Index: user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java === --- user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java (revision 8377) +++ user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java (working copy) @@ -109,6 +109,7 @@ @UiField SpanElement trimmedMessage; @UiField NeedlesslyAnnotatedLabel needlessLabel; @UiField AnnotatedStrictLabel strictLabel; + @UiField(provided=true) AnnotatedStrictLabel providedStrictLabel = new AnnotatedStrictLabel(likewise); @UiField AnnotatedStrictLabel translatedStrictLabel; @UiField StrictLabel veryStrictLabel; @UiField StrictLabel translatedVeryStrictLabel; Index: user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml === --- user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml (revision 8377) +++ user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml (working copy) @@ -510,6 +510,7 @@ /demo:StrictLabel/p pdemo:NeedlesslyAnnotatedLabel ui:field=needlessLabel text=Sometimes people do things they don't need to do. Don't punish them.//p + demo:AnnotatedStrictLabel ui:field=providedStrictLabelditto/demo:AnnotatedStrictLabel demo:FooLabel ui:field='theFoo' pojo={values.pojo}/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Do some cleanup on BuildTypeMap. (issue691801)
Reviewers: scottb, Description: Do some cleanup on BuildTypeMap. Please review this at http://gwt-code-reviews.appspot.com/691801/show Affected files: M dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Do some cleanup on BuildTypeMap. (issue691801)
LGTM w/ nits. http://gwt-code-reviews.appspot.com/691801/diff/1/2 File dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java (right): http://gwt-code-reviews.appspot.com/691801/diff/1/2#newcode497 dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java:497: typeMap.get(superInterfaceBinding); This one actually formats on the same line for me. http://gwt-code-reviews.appspot.com/691801/diff/1/2#newcode737 dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java:737: @SuppressWarnings({SuspiciousMethodCalls}) What's this? http://gwt-code-reviews.appspot.com/691801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Implement GWT.isProdMode() (issue692801)
Reviewers: tobyr, Please review this at http://gwt-code-reviews.appspot.com/692801/show Affected files: M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java M dev/core/test/com/google/gwt/dev/jjs/JavaAstConstructor.java M user/src/com/google/gwt/core/client/GWT.java M user/test/com/google/gwt/core/client/GWTTest.java Index: dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java diff --git a/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java b/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java index 11970fc0a1ff4d5d3e945093d41274b8801e0a0b..1e06fa18dd4b5e022529fb18ef79215299714ccc 100644 --- a/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java +++ b/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java @@ -473,11 +473,14 @@ public class GenerateJavaAST { } } -// Reimplement GWT.isClient() and GWT.isScript() to return true +// Reimplement GWT.isClient(), GWT.isProdMode(), GWT.isScript(). if (currentClass == program.getIndexedType(GWT)) { JMethod method = program.getIndexedMethod(GWT.isClient); implementMethod(method, program.getLiteralBoolean(true)); + method = program.getIndexedMethod(GWT.isProdMode); + implementMethod(method, program.getLiteralBoolean(true)); + method = program.getIndexedMethod(GWT.isScript); implementMethod(method, program.getLiteralBoolean(true)); } Index: dev/core/test/com/google/gwt/dev/jjs/JavaAstConstructor.java diff --git a/dev/core/test/com/google/gwt/dev/jjs/JavaAstConstructor.java b/dev/core/test/com/google/gwt/dev/jjs/JavaAstConstructor.java index a5b5e96943af8e133d28544382c2fb6ad47cdc7c..9b3d03069296a6fde76be28e36e8234ee7586db3 100644 --- a/dev/core/test/com/google/gwt/dev/jjs/JavaAstConstructor.java +++ b/dev/core/test/com/google/gwt/dev/jjs/JavaAstConstructor.java @@ -118,6 +118,7 @@ public class JavaAstConstructor { code.append(package com.google.gwt.core.client;\n); code.append(public final class GWT {\n); code.append( public boolean isClient() { return true; };\n); + code.append( public boolean isProdMode() { return true; };\n); code.append( public boolean isScript() { return true; };\n); code.append( public static void runAsync(RunAsyncCallback callback) { }\n); code.append( public static void runAsync(Class? name, RunAsyncCallback callback) { }\n); Index: user/src/com/google/gwt/core/client/GWT.java diff --git a/user/src/com/google/gwt/core/client/GWT.java b/user/src/com/google/gwt/core/client/GWT.java index 71a70ec153dd2aba82729b103e1d6441966ea2b3..5589614fc8777254b1bed584bf0f8fcf48574345 100644 --- a/user/src/com/google/gwt/core/client/GWT.java +++ b/user/src/com/google/gwt/core/client/GWT.java @@ -184,6 +184,16 @@ public final class GWT { } /** + * Returns codetrue/code when running in production mode. Returns + * codefalse/code when running either in development mode, or when running + * in a plain JVM. + */ + public static boolean isProdMode() { +// Replaced with true by GWT compiler. +return false; + } + + /** * Determines whether or not the running program is script or bytecode. */ public static boolean isScript() { Index: user/test/com/google/gwt/core/client/GWTTest.java diff --git a/user/test/com/google/gwt/core/client/GWTTest.java b/user/test/com/google/gwt/core/client/GWTTest.java index 8f10ab0f681e084582ea2285df33b14d5947..1d7883fdb0d02694ff91e7ad7bd8a0f7092403e0 100644 --- a/user/test/com/google/gwt/core/client/GWTTest.java +++ b/user/test/com/google/gwt/core/client/GWTTest.java @@ -30,6 +30,7 @@ public class GWTTest extends GWTTestCase { }-*/; private static void jvmTests() { +assertFalse(GWT.isProdMode()); assertFalse(GWT.isScript()); try { canCallNativeMethod(); @@ -76,6 +77,20 @@ public class GWTTest extends GWTTestCase { } @SuppressWarnings(unused) + public void testIsProdMode() { +if (GWT.isScript()) { + assertTrue(GWT.isProdMode()); +} +try { + double d = seven / zero; + if (!GWT.isProdMode()) { +fail(Expected ArithmeticException); + } +} catch (ArithmeticException expected) { +} + } + + @SuppressWarnings(unused) public void testIsScript() { try { double d = seven / zero; -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Implement GWT.isProdMode() (issue692801)
LGTM http://gwt-code-reviews.appspot.com/692801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Do some cleanup on BuildTypeMap. (issue691801)
http://gwt-code-reviews.appspot.com/691801/diff/1/2 File dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java (right): http://gwt-code-reviews.appspot.com/691801/diff/1/2#newcode497 dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java:497: typeMap.get(superInterfaceBinding); On 2010/07/13 23:20:00, scottb wrote: This one actually formats on the same line for me. I'll fix it up, but I have no idea how you can determine when it's ok to violate the column rule. http://gwt-code-reviews.appspot.com/691801/diff/1/2#newcode737 dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java:737: @SuppressWarnings({SuspiciousMethodCalls}) On 2010/07/13 23:20:00, scottb wrote: What's this? It prevents Intellij from warning about the contains() call below being suspicious. http://gwt-code-reviews.appspot.com/691801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Do some cleanup on BuildTypeMap. (issue691801)
http://gwt-code-reviews.appspot.com/691801/diff/1/2 File dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java (right): http://gwt-code-reviews.appspot.com/691801/diff/1/2#newcode497 dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java:497: typeMap.get(superInterfaceBinding); You press Ctrl+Shift+F in Eclipse. :) http://gwt-code-reviews.appspot.com/691801/diff/1/2#newcode737 dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java:737: @SuppressWarnings({SuspiciousMethodCalls}) Unfortunately, if you add this, Eclipse then warns that it doesn't understand the warning being suppressed. If you're not in the mood to convince gwt-contrib that we ought to be adding IntelliJ-specific warning suppression into the GWT codebase (it doesn't exist today), maybe you could just rejigger the code to be less suspicious? http://gwt-code-reviews.appspot.com/691801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors