Re: Creating new methods for Async class
I did this and it work perfectly QueueResult processActions(String user,QueueAction actionQueue) when I implemented it I had a lot of problem due to serializable interface. and it is very hard to catch. On Oct 20, 9:03 pm, Sudeep S sudee...@gmail.com wrote: try doing ListString clients = new ArrayListString(); instead of ArrayListString clients = new ArrayListString(); On Tue, Oct 20, 2009 at 11:31 PM, Sudeep S sudee...@gmail.com wrote: I am doing something like * public **interface* UtilService *extends* RemoteService { MapString, MapString, RateCard[] fetchdata (Customer objCustomer); } * public **interface* UtilServiceAsync {* void *fetchData(Customer objCustomer ,AsyncCallbackMapString, MapString, Card[] callback); } and this works without any hassles. I have even tried ArrayList ..works without a problem.. but make sure all the attributes of list have implemented Serializable or isSerilizable interface. Thanks Sudeep On Tue, Oct 20, 2009 at 9:55 AM, Ralf B ralf.bie...@gmail.com wrote: Your return value is an ArrayList, not a String - so much about compatibility of types. However I am not sure if you can actually return an ArrayList (due to the requirement to have implemented the Serializable interface). Working with String[] directly will certainly work but would require you to turn your return value into a static String array. Ralf On Mon, Oct 19, 2009 at 4:54 PM, michael.d.clay...@hotmail.com michael.d.clay...@hotmail.com wrote: I have an implementation method that I want to return an arraylistString from the DB. Here is the method: public ArrayListString greetClients() { String result = ; Connection conn = null; Statement st = null; String sql = select distinct dealernumber from financialaccount; ArrayListString clients = new ArrayListString(); try{ Class.forName(com.mysql.jdbc.Driver); conn = DriverManager.getConnection(jdbc:mysql://localhost:3306/ DB, user, password); st = conn.createStatement(); ResultSet rs = st.executeQuery(sql); while(rs.next()){ if(rs.getString(0)!=null){ clients.add(rs.getString(0)); } } //System.out.println(result); st.close(); conn.close(); }catch(Exception e){ e.printStackTrace(); } return clients; } When I try to create the methods in the other classes; in the Service and ServiceAsync class I get this error: Return type is not compatible with the AsyncCallback parameter from GreetingServiceAsync.getClients Here is are my classes: GreetingService.java package com.appcrown.dashboard.client; import java.util.ArrayList; import java.util.List; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * The client side stub for the RPC service. */ @RemoteServiceRelativePath(greet) public interface GreetingService extends RemoteService { String greetServer(String name); ArrayListString getClients(); //gives error } GreetingServiceAsync.java package com.appcrown.dashboard.client; import java.util.ArrayList; import com.google.gwt.user.client.rpc.AsyncCallback; /** * The async counterpart of codeGreetingService/code. */ public interface GreetingServiceAsync { void greetServer(String input, AsyncCallbackString callback); void getClients(AsyncCallbackString callback); //gives error } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to send variables in form panel
Hey abhiram, I still have a problem in server side,, can you tell me how to catch variable from client. Let say I have a textbox in client. Textbox txtComment = new Textbox; txtComment.setName(txtComment); txtComment .setText(hello); in server side: I've tried: String varXXX = (String) request.getParameter(txtComment); but that's not working. :( and I've also tried like this : try { List items = upload.parseRequest(request); Iterator it = items.iterator(); while (it.hasNext()) { FileItem item = (FileItem) it.next(); if (item.isFormField()) { String name = item.getFieldName(); if (name.equals(txtComment)) { ret = item.getString(); } return ret; } } } catch (FileUploadException e) { return null; } but still null return. can you tell me how to catch it. regards On Oct 21, 12:32 am, abhiram wuntakal abhir...@gmail.com wrote: Hey Yoez, Not sure if it helps. But i have a workaround solution for this. Make it a two-step process. First use a RemoteServiceServlet to pass across your variables to the server side and then save these values into some variables on the server side. Then you can use a HTTPServlet to pass across your file contents to the server side. Now you have the file as well as the variables. HTH, Cheers, Abhiram On Mon, Oct 19, 2009 at 6:12 PM, YoeZ juz...@gmail.com wrote: thanks ian,, but i'm using GWT and tried to uploadfile which is must using FormPanel. I have successfully upload my file to server with UploadFile widget, but I have another textboxes too. and dunno how to catch inside FormPanel. On Oct 19, 7:15 pm, Ian Bambury ianbamb...@gmail.com wrote: You'll stand more chance of an answer if you ask that question in a Java forum. This is a GWT group. Ian http://examples.roughian.com 2009/10/19 YoeZ juz...@gmail.com hello... please help On Oct 18, 12:31 am, YoeZ juz...@gmail.com wrote: Hi. I have 1 form panel with some textboxes and file upload. the question is, how to get variables from client/form panel in servlet? i created DTO/Pojo object to hold variables in client, but i donk know how to catch in servlet.. please help thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: programmatically set focus to TabBar tab
I think method you are looking for is tabPanel.setActiveTab(); On Oct 21, 6:10 am, BryanDavid bryan.verg...@gmail.com wrote: Hello, The TabBar tabs have the ability to have keyboard focus, and if you click on one, it will get the dotted outline showing keyboard focus. This is great since I can then use a KeyDownHandler to have hot keys do something on the selected (and focused) tab. However, when I call tabBar.selectTab(n) from code, the focus is not set to the tab, and I cannot find a way to place it there via code. There is no corresponding tabBar.focusTab(n) method. TabBar.Tab does not implement Focusable, and neither does TabBar, and this is confusing. I expect to be able to call tabBar.getTab(n).focus () but no deal. I tried using DomEvent.fireNativeEvent to send a click event with the Label widget contained inside the TabBar.Tab, however, this had no effect that I could see. It seems that this should be simple and I am missing something obvious. Any 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-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT best Practices - JS Library Wrappers Overlay Types
Version 2.0.1 will be available probably later this month. The IE bug is gone, which is nice since it makes it possible to use the AjaxLoader module, which eliminates the need for a script tag and simplifies loading packages individually. The samples for 2.0.1 dynamically load packages as needed: http://gwt-gdata.appspot.com/v2.0.1/HelloGData.html By the way, even though i've used static initializers for constants, i'm not seeing any initialization cost. I think maybe GWT is inlining the initializers, since the initializers are native methods on overlay types. Bobby On Aug 24, 3:36 am, Bobby bobbysoa...@gmail.com wrote: Version 1.10.1 is available here:http://code.google.com/p/gwt-gdata/downloads/list Bobby On Aug 14, 4:53 am, Bobby bobbysoa...@gmail.com wrote: I may not be able to correct this IE bug, and it may not be desirable either since it isn't a good idea to have the GWT version introduce hacks onto the JS library in order to fix a bug - stuff like this is better off being corrected in the JS version directly. I'll add this as a defect and deal with it later, the workaround being to use a script reference to load the API. I'm starting to think about how to detach the GWT library from the JS api in the future. Here's what i'm seeing, in the JS API all GData operations (POST, PUT, DELETE) are sent as POST commands. A POST variable called HTTP-Method-Override can be used to specify the actual operation. Cross-domain POSTS aren't a problem, we can just create and submit a hidden form using some JavaScript. Since GData supports retrieving data in JSON format, we can use a JSONP approach to do cross domain reads - this is what the current JS API does. This means that in order to detach the GWT version from the JS libraries we have to: 1. identify the Atom schema for each data type, there are a few hundred classes. 2. provide a base implementation that can perform cross-domain POSTS and JSONP reads. I think #1 can be automated and #2 is sensitive but small. The end result will be a more GWT-optimizable API which can then grow at its own pace. The samples and unit tests wouldn't change significantly, if at all. We can still use overlay types to wrap around the JSON objects returned from GData. I've taken a closer look at the GData Java library and i don't think that the GWT and Java APIs will ever match because the GWT version will need to be callback-based whereas Java doesn't have this limitation. Anyway, just some thoughts. Bobby On Aug 14, 2:53 am, Bobby bobbysoa...@gmail.com wrote: There are some quirks which are making it difficult to narrow down the reason why AuthSub fails in IE. So far i know it only happens when google.load is used with a callback, even when google.load is called while the page is being loaded. So something like the following: body script google.load(gdata, 1.10, myCallback); /script input type=button value=login onclick=google.accounts.user.login ('scope-here') / /body Will always see the following behavior: 1. User clicks to login. 2. User is redirect to authorization page and clicks to authorize. 3. User is redirected back to the original page, with a token appended in the URL. 4. Page doesn't consume the token in the URL (the correct behavior is for the page to place the token in a cookie and remove the token from the url). 5. User clicks to login again. 6. User gets redirected to authorization page again, and steps 3-6 are repeated an arbitrary number of times. 7. If, after reaching the authorization page a second time, the user clicks the browser's back button, causing the browser to go back to the page that contains the token in the url, the token is successfully consumed and the user is successfully logged in. Go figure. Why backing into the page causes GData to successfully consume the token i have no idea - especially since refreshing the page at step 4 has no effect. My guess is that when backing into the page IE will use a cached version of the GData script, which is processed immediately and may make the difference. Bobby On Aug 14, 1:37 am, Bobby bobbysoa...@gmail.com wrote: This was outside GWT. I'm trying to find the cause of the IE AuthSub issue outside of GWT first. Basically, when google.load() is called after the page has finished loading - such as from a button click, AuthSub doesn't succeed. Bobby On Aug 14, 12:17 am, Eric Ayers zun...@google.com wrote: If you are calling JavaScript inside of a GWT JSNI function, you should be using $wnd.google.load(...) On Thu, Aug 13, 2009 at 11:55 PM, Bobbybobbysoa...@gmail.com wrote: This IE AuthSub issue is not because of the IFrame, the transferToken approach didn't make a difference. I tried placing the google.load('gdata', '1.10'); call in a button
Re: No addClosingHandler(CloseHandler handler) in Window class
Ah, of course! Thx! I was blind looking for the method addClosingHandler... Is this maybe an error in the naming convention for the new event handlers? :-) /O --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Targettting Rhino with GWT compiler
On 20 oct, 15:53, Attila Szegedi szege...@gmail.com wrote: Hi all, I really like the development model of GWT - using Java for development, with all its type robustness and refactoring friendliness. I have a rather large JS system that badly needs rewriting after five years of incremental spontaneous evolution and I consider using the GWT compiler to redo it. The gotcha though is that this is not a browser-run front-end application, rather it is a server side JavaScript system, using Mozilla Rhino on the JVM as its JS runtime. Am I correct in thinking that I could still use GWT for development - I could have my system written in Java, and then compiled to JS by GWT compiler and deployed into our Rhino-based server-side runtime system. (Before you ask, no, we can't run Java on the server side, we have a massively parallel system that absolutely needs continuations to retain its scalability). So, GWT compiler would have no trouble emitting code for a non-browser environment? AFAICT, GWT emits valid ECMAScript, so it should run in Rhino without problem. You'd have to make a special Linker though (the thing that generates the *.nocache.js and chooses how to output the compiled JS in either md5.cache.html or md5.cache.js), as GWT's built-in linkers expect a browser runtime. Also, would it be possible to have a Rhino runtime as the debugger target instead of a browser? With OOPHM (shipping in GWT 2.0), it shouldn't be a problem (again, you'd have to write a Rhino-based OOPHM client). I actually believe the HtmlUnit-based OOPHM client (used for unit tests) runs Rhino (and simulates a browser runtime). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
GWT and MySQL Connection
Hey, I am trying to create a voting system I've got a MySQL DB already up (using WAMP) and I'm using Eclipse Galileo with GWT. I have looked everywhere on how to make this connection and now I am sure I connect to the DB at least, however I am unsure regarding if I actually retrieve anything from it and I can't print anything because it throws me an exception. This is the method that should access the DB: public User authenticateUser(String user1, String pass) { User user = null; try { PreparedStatement ps = conn.prepareStatement( SELECT user, pass FROM usuarios WHERE user = \ + user1 + \ AND + pass = \ + pass + \ ); ResultSet result = ps.executeQuery(); while (result.next()) { user = new User(result.getString(2), result.getString(3)); System.out.println(user.getUser().toString()); System.out.println(toy aqui); } result.close(); ps.close(); } catch (SQLException sqle) { System.err.println(Fail!! = + sqle.getStackTrace()); } return user; } conn is a Connection already made here: public MySQLConnection() { try { Class.forName(com.mysql.jdbc.Driver).newInstance(); conn = DriverManager.getConnection(url, user, pass); } catch (Exception e) { System.err.println(Fail en la Conexion = + e.getStackTrace ()); } } after this, I use this method which should allow me to access stuff from the newly created object: private class AuthenticationHandlerT implements AsyncCallbackUser { public void onFailure(Throwable ex) { label.setText(Fail); System.out.println(ex.getStackTrace()); } public void onSuccess(User result) { try { label.setText(Success);// + Pass:: + result.getPass ().toString() }catch(Exception e) { System.err.println(Fail! = + e.getStackTrace()); } } } The thing is, it doesn't matter if I introduce wrong values for the Query to be made with, (user1 and pass) I get success or fail everytime depending on which I started with. That is, if I tried once and failed, then everytime after I will get Fail and if I try and get the write data in I will get Success everytime. I don't know why this happens and I am unsure I am performing the query the way it should be done. The only thing I'm 100% sure of is that the DB connection is made, and that if I try to print result.getUser(); in the last method I placed here, I get an exception. What am I missing or doing incorrectly? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: requestBuilder and file location
On 20 oct, 19:34, Tomek tomekmist...@interia.pl wrote: Hello, Is it possible to load file using requestbuilder that is not in WAR folder but in some package for example com.tom.test.xml? If the file is in a public/ subfolder (see the doc about the gwt.xml file format), it'll be copied into the war subfolder, as a sibling of the *.nocache.js and *.cache.* files. You'd use GWT.getModuleBaseURL () to reliably determine the name of this output folder (it's the value of the rename-to attribute from your gwt.xml file, but in case you change it, you won't have to update your code if you use GWT.getModuleBaseURL() rather than hard-coding it) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and MySQL Connection
can you post the actual exception your having? On Wed, Oct 21, 2009 at 7:11 AM, Proxy luigiadva...@gmail.com wrote: Hey, I am trying to create a voting system I've got a MySQL DB already up (using WAMP) and I'm using Eclipse Galileo with GWT. I have looked everywhere on how to make this connection and now I am sure I connect to the DB at least, however I am unsure regarding if I actually retrieve anything from it and I can't print anything because it throws me an exception. This is the method that should access the DB: public User authenticateUser(String user1, String pass) { User user = null; try { PreparedStatement ps = conn.prepareStatement( SELECT user, pass FROM usuarios WHERE user = \ + user1 + \ AND + pass = \ + pass + \ ); ResultSet result = ps.executeQuery(); while (result.next()) { user = new User(result.getString(2), result.getString(3)); System.out.println(user.getUser().toString()); System.out.println(toy aqui); } result.close(); ps.close(); } catch (SQLException sqle) { System.err.println(Fail!! = + sqle.getStackTrace()); } return user; } conn is a Connection already made here: public MySQLConnection() { try { Class.forName(com.mysql.jdbc.Driver).newInstance(); conn = DriverManager.getConnection(url, user, pass); } catch (Exception e) { System.err.println(Fail en la Conexion = + e.getStackTrace ()); } } after this, I use this method which should allow me to access stuff from the newly created object: private class AuthenticationHandlerT implements AsyncCallbackUser { public void onFailure(Throwable ex) { label.setText(Fail); System.out.println(ex.getStackTrace()); } public void onSuccess(User result) { try { label.setText(Success);// + Pass:: + result.getPass ().toString() }catch(Exception e) { System.err.println(Fail! = + e.getStackTrace()); } } } The thing is, it doesn't matter if I introduce wrong values for the Query to be made with, (user1 and pass) I get success or fail everytime depending on which I started with. That is, if I tried once and failed, then everytime after I will get Fail and if I try and get the write data in I will get Success everytime. I don't know why this happens and I am unsure I am performing the query the way it should be done. The only thing I'm 100% sure of is that the DB connection is made, and that if I try to print result.getUser(); in the last method I placed here, I get an exception. What am I missing or doing incorrectly? -- Alvin Jay P. Reyes IT Consultant / Software Developer # 5 San Vicente Ferrer St. San Antonio Valley 1 Sucat Pque http://www.brainyquote.com/link/quotefu.rss --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and MySQL Connection
Proxy schrieb: PreparedStatement ps = conn.prepareStatement( SELECT user, pass FROM usuarios WHERE user = \ + user1 + \ AND + pass = \ + pass + \ ); Using a PreparedStatement is one thing but not using its features is another. You still can do SQL-injections here allowing you to login without knowing a username or password. As Alvin said, the error-message you get would help to say more. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: UiBinder i18n Example
if you look at the compiler output, you'll see something like: Generating sample_translate_source_nl.properties from SampleEntryBinderImplGenMessages_ for locale nl (assumming a template Sample.ui.xml) So take the generated property files from the -gen directory, translate and put them next to the template, but rename them: sample_translate_source_nl.properties - SampleBinderImplGenMessages_nl.properties repeat for every locale and recompile perhaps not perfect, but it works On 13 okt, 15:20, Sripathi Krishnan sripathi.krish...@gmail.com wrote: I am also stuck on this one for some time. ui:msg is fine, and I am able to see the property files that get generated based on those; but I am yet to figure out how I can supply property files for other languages. --Sri P.S. And I agree, UiBinder *is the* greatest thing that has happened to GWT. 2009/10/13 Japi elj...@gmail.com I finally gave up... I know how to use Messages, and i figured out how to use the UiBinder (which is IMHO the greatest thing that could happend to GWT), But UiBinderi18n just won't get trhough this thick skull of mine. I've searched forums, and mailist and browsed through the source code samples and I just cannot link Message objects to all those ui:msg tags. How do you link a Binder to a properties file? how is it that the parser figures out which property to use for each ui:msg tag? Is there anyone wise enough to point the way with a simple example / use case ??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating new methods for Async class
Not to complicate matters but using ArrayList instead od List supposed to be better in gwt? I could have sworn that ray ryan alluded to this in his presentation. I still don't do it because I hate seeing that in my code but still, ymmv On Oct 20, 1:03 pm, Sudeep S sudee...@gmail.com wrote: try doing ListString clients = new ArrayListString(); instead of ArrayListString clients = new ArrayListString(); On Tue, Oct 20, 2009 at 11:31 PM, Sudeep S sudee...@gmail.com wrote: I am doing something like * public **interface* UtilService *extends* RemoteService { MapString, MapString, RateCard[] fetchdata (Customer objCustomer); } * public **interface* UtilServiceAsync {* void *fetchData(Customer objCustomer ,AsyncCallbackMapString, MapString, Card[] callback); } and this works without any hassles. I have even tried ArrayList ..works without a problem.. but make sure all the attributes of list have implemented Serializable or isSerilizable interface. Thanks Sudeep On Tue, Oct 20, 2009 at 9:55 AM, Ralf B ralf.bie...@gmail.com wrote: Your return value is an ArrayList, not a String - so much about compatibility of types. However I am not sure if you can actually return an ArrayList (due to the requirement to have implemented the Serializable interface). Working with String[] directly will certainly work but would require you to turn your return value into a static String array. Ralf On Mon, Oct 19, 2009 at 4:54 PM, michael.d.clay...@hotmail.com michael.d.clay...@hotmail.com wrote: I have an implementation method that I want to return an arraylistString from the DB. Here is the method: public ArrayListString greetClients() { String result = ; Connection conn = null; Statement st = null; String sql = select distinct dealernumber from financialaccount; ArrayListString clients = new ArrayListString(); try{ Class.forName(com.mysql.jdbc.Driver); conn = DriverManager.getConnection(jdbc:mysql://localhost:3306/ DB, user, password); st = conn.createStatement(); ResultSet rs = st.executeQuery(sql); while(rs.next()){ if(rs.getString(0)!=null){ clients.add(rs.getString(0)); } } //System.out.println(result); st.close(); conn.close(); }catch(Exception e){ e.printStackTrace(); } return clients; } When I try to create the methods in the other classes; in the Service and ServiceAsync class I get this error: Return type is not compatible with the AsyncCallback parameter from GreetingServiceAsync.getClients Here is are my classes: GreetingService.java package com.appcrown.dashboard.client; import java.util.ArrayList; import java.util.List; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * The client side stub for the RPC service. */ @RemoteServiceRelativePath(greet) public interface GreetingService extends RemoteService { String greetServer(String name); ArrayListString getClients(); //gives error } GreetingServiceAsync.java package com.appcrown.dashboard.client; import java.util.ArrayList; import com.google.gwt.user.client.rpc.AsyncCallback; /** * The async counterpart of codeGreetingService/code. */ public interface GreetingServiceAsync { void greetServer(String input, AsyncCallbackString callback); void getClients(AsyncCallbackString callback); //gives error } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: programmatically set focus to TabBar tab
There is no TabPanel.setActiveTab. There is, however a TabPanel.selectTab The problem is not selecting a tab, but getting the keyboard focus on to one of the TabBar.Tab objects. On Oct 21, 1:18 am, Akash akash.b...@gmail.com wrote: I think method you are looking for is tabPanel.setActiveTab(); On Oct 21, 6:10 am, BryanDavid bryan.verg...@gmail.com wrote: Hello, The TabBar tabs have the ability to have keyboard focus, and if you click on one, it will get the dotted outline showing keyboard focus. This is great since I can then use a KeyDownHandler to have hot keys do something on the selected (and focused) tab. However, when I call tabBar.selectTab(n) from code, the focus is not set to the tab, and I cannot find a way to place it there via code. There is no corresponding tabBar.focusTab(n) method. TabBar.Tab does not implement Focusable, and neither does TabBar, and this is confusing. I expect to be able to call tabBar.getTab(n).focus () but no deal. I tried using DomEvent.fireNativeEvent to send a click event with the Label widget contained inside the TabBar.Tab, however, this had no effect that I could see. It seems that this should be simple and I am missing something obvious. Any 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-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating new methods for Async class
(1) The problem with the OP's code was that he had the getClients() method in the async class take an AsyncCallbackString but the non-async interface returned an ArrayListString. If you want to return an ArrayList of strings, then the callback should have been AsyncCallbackArrayListString (2) ArrayListString is better than ListString in GWT RPC interfaces because if you use ListString, then the GWT compiler must search for every implementation of List and spend time looking at whether it's used/making the serialization code for it. At the very least, compilation is faster if you stick to the most specific declaration you can. It may also generate less javascript. Paul Trevis wrote: Not to complicate matters but using ArrayList instead od List supposed to be better in gwt? I could have sworn that ray ryan alluded to this in his presentation. I still don't do it because I hate seeing that in my code but still, ymmv --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is there any newer gwt library other than smartgwt and gxt?
To get back to the original question about whether there is another free library, have you looked at Mosaic ? http://code.google.com/p/gwt-mosaic/ On Oct 20, 11:17 am, flyingb...@gmail.com flyingb...@gmail.com wrote: gwt-ext stopped development for a long time now. They went to make the wrapper for smartgwt. On Oct 20, 6:43 am, logicpeters logicpet...@gmail.com wrote: There is still gwt-ext. Although it only supports earlier versions of EXT, it is still an excellent UI toolkit. It's too bad about the split into SmartGWT and GXT -- neither have been as good as the old days of gwt-ext. It seems like the EXT license debacle has really been a major blow to developing great-looking UI's on GWT. On Oct 20, 9:26 am, Mohamed Mansour m0.interact...@gmail.com wrote: Still, its not fully open source, you need the extjs (which is not) and extjs costs money as the previous poster stated. If you include extjs to your opensource project, it means your project isn't fully open source. I would rather see a toolkit which is fully opensource like GWT. Where developers can contribute to it to make one awesome toolkit. Like a toolkit library. On Oct 20, 5:28 am, Alex Bertram akbert...@gmail.com wrote: Have been using GXT for about a year under the open source license and haven't paid a thing... SVN access would be nice but so our app (in production) hasn't been affected by the bugs. Have my complaints about the library, but do have to say it makes UI development fast although you do have to work to get beyond the bulky desktop look. Alex On Oct 20, 10:20 am, David Sanders shang.xiao.sand...@gmail.com wrote: *crosses extgwt off list* I love it when people cut through the bullshit... 2009/10/20 martin.krau...@gmail.com martin.krau...@gmail.com Let me enlighten you guys. First of all ExtGWT is anything but free. It costs $329 / per license. Moreover there is an annual upgrade fee because they upgrade from minor versions to a major versions for no apparent reason other than to charge an upgrade fee. For example 2.0.1, 2.0.2, 2.0.3, 2.1 and then version 3.0 without any significant features to justify this version jump. Now the $329 / license really doesn't get you much. Version 2.0 final of ExtGWT was pretty much demoware with over 100 critical bugs. Several months later several bugs have been fixed but license holders are not entitled to the latest bug fix release of 2.0.3. You not only need a license but you need a support subscription to download the latest stable version. Seehttp://www.extjs.com/products/gxt/download.php http://www.extjs.com/forum/showthread.php?p=393316#post393316 Basic level of annual support cost $300 / license / year. http://www.extjs.com/store/gxt/ Bottom line : cost of ExtGWT is $629 / license / year. On Oct 20, 10:39 am, Alexandros Papadakis alpa...@gmail.com wrote: Looks like it... I have seen in their forums that there is a 2.0.3 also... maybe in their trunk? On Tue, Oct 20, 2009 at 2:33 AM, Josh Morris joshuadmor...@gmail.com wrote: It looks like they are coming out with a new 2.1 release in November, but they are not going to release 2.0.2. Is this a new practice? I don't remember having to deal with this before. On Oct 19, 3:52 pm, flyingb...@gmail.com flyingb...@gmail.com wrote: I been looking for a good library that is free. Both of the 2 have different problems. Mian problem of smartgwt is it does not have a correct changehandler because it get fires while you type. GXT have lot of random bugs and they claim to fix it and can only get the newer version if you buy their subscription.- 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-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
candle stick charts
Seems to be no good way to create candlestick charts (stock charts) with GWT. I noticed the chart API provides the option but does not integrate with GWT (although I think I saw a third party library, ill look more into that today). The visualization API does not allow it, at least as far as I can tell. I can create the chart I want with the gwt-canvas package but it does not appear that I can add text. So there are ways to do it but none that I can see are complete. Anyone have any experience with this? Thanks, Bobby --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Appending request parameters to url
Hello all, I am new to the web toolkit. I was wondering whether there is a way to append request parameters to a url in gwt. Example www.app.com/dashboard.html?login=trueuser=name. Kind regards Abel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Jasperreports with GWT
Hi friends, I am new to GWT and I have a problem with Jasperreports usage in my GWT application. I have some fields and a button and I want to get a report when i click the button. I was doing it with JSF easily but I couldn't manage to do it with GWT. Can anyone suggest me something? A very simple sample application or a website about this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Passing javax.persistence.Entity pojo's to the client - Compilation Error
Hi How can I pass to the RemoteService an Entity of JPA? If I do so I get the following error during the GWT-compile: No source code is available for type javax.persistence.Persistence; did you forget to inherit a required module? Application Architecture: Hibernate 3 with JPA spec in some application. GWT 1.7 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
candle stick charts
Anyone have any experience with creating candlestick charts with GWT? Thanks, Bobby --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and MySQL Connection
The thing is that I get no error whatsoever, I just get a message from the hosted mode: [INFO] 200 - POST /votaciones/MySQLConnection (127.0.0.1) 14 bytes Which since it's 200 means it went ok... and yes I know about the injection but since it's still something I'm doing locally I won't get into that until I get it to work xD haha...=/ On Oct 21, 8:31 am, Lothar Kimmeringer j...@kimmeringer.de wrote: Proxy schrieb: PreparedStatement ps = conn.prepareStatement( SELECT user, pass FROM usuarios WHERE user = \ + user1 + \ AND + pass = \ + pass + \ ); Using a PreparedStatement is one thing but not using its features is another. You still can do SQL-injections here allowing you to login without knowing a username or password. As Alvin said, the error-message you get would help to say more. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hosted mode hanging 4 out of 10times
Just thought it might be worth mentioning that I have been having this problem for about 4 weeks now... I was hoping it might be dealt with in the lastest updates, but its still there! Im using GWT with GAE functionality, my app is built up from the original stockwatcher application. I actually have periods of time when I get this problem over and over and over again, but usually I find that it eventually sorts itself out without me doing anything, I just keep trying to restart hosted mode, and eventually it kicks in by going to the correct url There are suggestions around (not sure if they are also in here) that clearing the IE cache can fix this problem, and that worked for me for a little while, but then it didnt work anymore, and after experiencing the issue so many times, i now know that its just a waiting game. However, I also find that closing eclipse down and reopening it seems to clear the problem too, but then again that just might be due to the time period it takes to shut down and restart (the ubiquitous have you tried rebooting solution) Cheers, J On Aug 28, 4:50 pm, Ian Bambury ianbamb...@gmail.com wrote: Keep cutting bits out until it stops hanging - the problem is in the last bit you cut out Ian http://examples.roughian.com 2009/8/28 Rahul coolrahul18...@gmail.com Hi Ian, Yeah doing that now, its still hanging a lot I don't know whats the problem. I guess the last option would be to reinstall gwt On Aug 28, 11:14 am, Ian Bambury ianbamb...@gmail.com wrote: I don't think that the problem is there, but try commenting out just that call and running the rest of the app. If the problem goes away, then I'm wrong :-) Ian http://examples.roughian.com 2009/8/28 Rahul coolrahul18...@gmail.com Hi, This is my code: Client side, i am calling an RPC service to connect to sqlserver2005. Its an simple login(very basic) greetingService.greetServer3(username,password, new AsyncCallbackInteger() { �...@override public void onFailure(Throwable caught) { // TODO Auto-generated method stub } �...@override public void onSuccess(Integer result) { // TODO Auto-generated method stub if (result == 1) Window.alert(log on successful); else Window.alert(Please check the username and password); } My implementation on server side is public Integer greetServer3(String str, String str1) { // TODO Auto-generated method stub try { Class.forName (com.microsoft.sqlserver.jdbc.SQLServerDriver).newInstance(); conn = DriverManager.getConnection(jdbc:sqlserver:// STI1121081:1433;database=Sql-obtv, username, password); stm = ((java.sql.Connection)conn).createStatement(); System.out.println(Values of string name+str+value of pass+str1); rs = stm.executeQuery(select * from Password); while (rs.next()) { user =rs.getString(Username); pass = rs.getString(Pass); } conn.close(); } catch (Exception e) { connString = e.getMessage(); } user =user.replaceAll(\\s+$, ); pass = pass.replaceAll(\\s+$, ); if (str.equals(user) str1.equals(pass)) return 1; else return 0; } Also I am not using the Google Application engine as i am integrating with sqlserver2005. I have seen similar problems whenever i try integrating with sqlserver2005. I am using
Re: programmatically set focus to TabBar tab
For anyone interested, here is one solution: static native void nativeFocus(JavaScriptObject o)/*-{ try{o.focus();}catch(e){} }-*/; static void SetFocusToSelectedTab(TabBar tb){ final NodeListElement nl = tb.getElement ().getElementsByTagName(div); final int cItems = nl.getLength(); for(int i=0;icItems;i++){ if (nl.getItem(i).getClassName().indexOf(gwt-TabBarItem- selected)=0){ nativeFocus(nl.getItem(i)); break; } } } On Oct 21, 8:51 am, BryanDavid bryan.verg...@gmail.com wrote: There is no TabPanel.setActiveTab. There is, however a TabPanel.selectTab The problem is not selecting a tab, but getting the keyboard focus on to one of the TabBar.Tab objects. On Oct 21, 1:18 am, Akash akash.b...@gmail.com wrote: I think method you are looking for is tabPanel.setActiveTab(); On Oct 21, 6:10 am, BryanDavid bryan.verg...@gmail.com wrote: Hello, The TabBar tabs have the ability to have keyboard focus, and if you click on one, it will get the dotted outline showing keyboard focus. This is great since I can then use a KeyDownHandler to have hot keys do something on the selected (and focused) tab. However, when I call tabBar.selectTab(n) from code, the focus is not set to the tab, and I cannot find a way to place it there via code. There is no corresponding tabBar.focusTab(n) method. TabBar.Tab does not implement Focusable, and neither does TabBar, and this is confusing. I expect to be able to call tabBar.getTab(n).focus () but no deal. I tried using DomEvent.fireNativeEvent to send a click event with the Label widget contained inside the TabBar.Tab, however, this had no effect that I could see. It seems that this should be simple and I am missing something obvious. Any 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-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: debug gwt compiled javascript
Hi, I would recommend the following; 1) Add a uncaught exception handler and if that doesn't solve the issue 2) pick a log library gwt-log or i_log (my adligo packages) direct the log output back to the server, so you can determine where the code is blowing up, add a try catch to catch your exception. As a last resort work in halves to determine the location of the blowup. Cheers, Scott On Oct 20, 1:29 pm, Ian Bambury ianbamb...@gmail.com wrote: Hi Sudeep, This, in my experience, is usually due to IE being politically correct and FF being lenient (as opposed to FF being correct and IE being complete , which is what people would tell you if things were the other way around) Assuming you are on Linux and using something less that GWT v2.0, then the easiest way to sort it out is to run the project on a Windows machine (since hosted mode uses IE and you'll get an error with a line number) If that isn't an option, then compile with -style PRETTY or DETAILED, which will at least tell you the method that is failing - have a look at it, and post again if you can't see the problem. Ian http://examples.roughian.com 2009/10/20 Sudeep S sudee...@gmail.com hello, I hav my gwt app, compiled and running fine on FF, but on IE it says that *this.h.a* is null or not an object. Any ideas how to debug/backtrack the java code for such an error. Thanks Sudeep --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
JSP version problem
Hello! There is a big problem with JSP in Development mode. It uses java 1.4 and I cannot change the version. I thought this problem was eliminated, because I hadn't been facing it for long time using builds from SVN. Today after updating from SVN I met it again. Could this problem be solved somehow? 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-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and MySQL Connection
I actually managed to connect now, I only have one question left now, why is the onFailure from here private class AuthenticationHandlerT implements AsyncCallbackUser { public void onFailure(Throwable ex) { label.setText(Fail); System.out.println(ex.getStackTrace ()); } public void onSuccess(User result) { try { label.setText(Success);// + Pass:: + result.getPass ().toString() }catch(Exception e) { System.err.println(Fail! = + e.getStackTrace()); } } } never called or used or anything?? On Oct 21, 8:31 am, Lothar Kimmeringer j...@kimmeringer.de wrote: Proxy schrieb: PreparedStatement ps = conn.prepareStatement( SELECT user, pass FROM usuarios WHERE user = \ + user1 + \ AND + pass = \ + pass + \ ); Using a PreparedStatement is one thing but not using its features is another. You still can do SQL-injections here allowing you to login without knowing a username or password. As Alvin said, the error-message you get would help to say more. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Modality to a part of the page
Hi all, I see tons of posts about making a dialog box modal to an application, but I haven't yet found any reference to the ability to make a dialog box modal to only a part of the page. I have multiple widgets which may or may not be loading at any given point on the screen. I want each of these widgets to disable any user interaction while this is happening (aka modal). I've taken a look at GlassPanel, and it's a good option, but must be added to an AbsolutePanel. Most of our code already uses SimplePanel, so I was wondering if there was a way to avoid converting all these working widgets to use AbsolutePanel. Has anybody gotten anything like this working? S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and MySQL Connection
Proxy schrieb: I actually managed to connect now, I only have one question left now, why is the onFailure from here Because the method being called on the server-side has no declared exception that you throw. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Need help with gwt webserver
I am going from netbeans glassfish to just using eclipse. It seems like eclipse does not use glassfish server for debugging and I get tons of error like Syntax error, parameterized types are only available if source level is 1.5 Is there a way to fix jetty so it can compile 1.5 sources? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 2.0 Milestone 1
Is there a build of the GWT incubator library available for download somewhere for use with the GWT 2.0 ms1 build? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: debug gwt compiled javascript
Thank you Ian Thank you Adligo, reg logging library approach, can we turn off the loggers without having to deploy the code again. -Sudeep On Wed, Oct 21, 2009 at 10:58 PM, Adligo sc...@adligo.com wrote: Hi, I would recommend the following; 1) Add a uncaught exception handler and if that doesn't solve the issue 2) pick a log library gwt-log or i_log (my adligo packages) direct the log output back to the server, so you can determine where the code is blowing up, add a try catch to catch your exception. As a last resort work in halves to determine the location of the blowup. Cheers, Scott On Oct 20, 1:29 pm, Ian Bambury ianbamb...@gmail.com wrote: Hi Sudeep, This, in my experience, is usually due to IE being politically correct and FF being lenient (as opposed to FF being correct and IE being complete , which is what people would tell you if things were the other way around) Assuming you are on Linux and using something less that GWT v2.0, then the easiest way to sort it out is to run the project on a Windows machine (since hosted mode uses IE and you'll get an error with a line number) If that isn't an option, then compile with -style PRETTY or DETAILED, which will at least tell you the method that is failing - have a look at it, and post again if you can't see the problem. Ian http://examples.roughian.com 2009/10/20 Sudeep S sudee...@gmail.com hello, I hav my gwt app, compiled and running fine on FF, but on IE it says that *this.h.a* is null or not an object. Any ideas how to debug/backtrack the java code for such an error. Thanks Sudeep --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
AsyncCallBack cannot be resolved to a type
All, Im trying to run a method after selecting an item in a listbox, I get the error: AsyncCallBack cannot be resolved to a type on this part: map = greetingService.getDataStatus(itemText, new AsyncCallBackHashMapString,Object(){ Here is the code: lb.addChangeHandler( new ChangeHandler(){ public void onChange(ChangeEvent event){ ListBox listBox = (ListBox)lb; String listBoxName = listBox.getName(); int index = listBox.getSelectedIndex(); String itemText = listBox.getItemText(index); map = greetingService.getDataStatus(itemText, new AsyncCallBackHashMapString,Object(){ public void onFailure(Throwable caught){ } public void onSuccess(HashMapString,Object result){ } }); }//end onChange }//end constructor );//end addChangeListener Any way around this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: why does GWT Showcase continually re-request CSS image under IE6
I figured out the issue finally. IE6 will cache all images reference on a given web page BUT! - if the image has a the same name as another image (even if in different directories); it will forgot the previous cache image and load it again from the server. Thus, in IE6: /image/foo/n.gif /image/bar/n.gif will effectively be considered the same thing! if you have a lot of rounded buttons using a common naming convention look out! the way around it is to make sure all file names are unique (even in they are spread across different directories) On Oct 9, 4:33 am, Thomas Broyer t.bro...@gmail.com wrote: On 8 oct, 21:58, jmcmd ru...@mdecisions.com wrote: UnderIE6my application grinds to a halt because the GWT appears (i might be wrong) to somehow forceIE6to re-load all my CSS images any time their is a UI event where I make a Widget visible - even if that image is already visible on the screen. I can see the requests (and subsequent 304 response codes) in the GWT console. I've tested this behavior using GWT's Showcase and anyone can clearly see this same behavior. I have tried every server-side setting for the response headers and it did not change a thing. I thought this might be a Ajax/IE6problem but a similar functionality using ICEFaces ( a different Ajax framework) worked - meaning thatIE6 only requested the CSS image once and only once. I've searched all over these groups and saw nothing specifically addressing this issue. My app (and the showcase app) work perfectly normal under IE7/IE8,FF, Safari so this only appears to beIE6 related. I can't be the only one who observed this issue - perhaps I'm missing something obvious, but any help or guidance is greatly appreciated. My app is more or less un-usable inIE6because I have about 80 css images and havingIE6make 80 request every time I make a various visible makes for a very sluggish experience. In great need of help Is this with an ImageBundle or an Image on its own? If you're not using an ImageBundle, are you clipping the Image with setVisibleRect or setUrlAndVisibleRect? In the case of an ImageBundle or clipped Image, are you using HTTPS? if so, make sure IE isn't configured to not save encrypted pages to disk (that's because the clipping is done using the AlphaImageLoader ActiveX) You say you've tried every server-side setting, have you set the Expires and/or Cache-Control:max-age to far future for the image files? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Servlet and GWT
Hello friends, I am new to GWT. Recently i learnt servlet and JSP. My problem is i want to have a nice dynamic front end.When user performs some action, it should send request to server. Server should do some data manipulation on the basis of data sent from client and send back the response. I am not getting the actual pipe line. In which of the following GWT/ SERVLET/JSP language i should write Front end and server side codes. From Some source i knew that front end we can make in GWT and servlet side scripting in JSP/Servlet. If this is true then how can we link these...can anyone suggest . I use Eclipse. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Import externals API into eclipse project
Hi! , I'm trying to use a Twitter API (Twitter4J ) into my GWT app. I imported the .jar file in eclipse at Properties/JavaBuildPath/ AddExternalsJarFile and eclipse recognised it and don´t show any problem, but when I run it it showw many errors: [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/alumno/ Escritorio/GWT/Ejemplo/src/com/pabrob/example/client/Ejemplo.java' [ERROR] Line 147: No source code is available for type twitter4j.Twitter; did you forget to inherit a required module? [ERROR] Unable to find type 'com.pabrob.example.client.Ejemplo' In the line 147 I only create a Twitter object.How can i solve it? Thank's!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Google Eclipse Plugin issue w/ GWT 1.7.1 and hosted mode
I am posting here before I post an issue to the tracker to see if anyone has run across it. I am using Eclipse 3.4.2, but I doubt it's specific to an Eclipse version. Basically, if you have two unrelated Web Application projects in the same workspace that have the same HTML filename then running as a Web Application will use the previously run one instead of the project you right clicked on. To replicate: 1. Create a Web Application project named 'testapp1' 2. Create a Web Application project named 'testapp2' 3. Run each (one at a time of course) to make sure they run 4. Rename testapp1/war/testapp1.html to index.html, then run it as a Web Application 5. Rename testapp2/war/testapp2.html to index.html, then run it as a Web Application It will attempt to run w/ testapp1's classpath and server resources which cause a 404. Can anyone else replicate this issue before I open a bug? Has anyone seen or reported this issue before? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
migrating to GWT and including custom data to module.nocache.js
My company's product is accessed via a javascript file that is in our customer's host page. They're page just includes a script tag that links to the javascript file. We have many customers, and we create unique javascript files for each by generating custom data and the Javascript file. We happen to use a JSP file to inject all the customer specific data and the common JS business logic into a single JavaScript file: customer-specific data + common JavaScript = unique JavaScript for each customer Is it possible to compile in specific custom data (JSON data) into the module.nocache.js file? Then I would generate one module.nocache.js file for each customer and then reuse all the late binding files. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
any way to return image through rpc?
I'm looking for a way to make a gwt service call, have the server create an image, and then send the image bytes back down to the browser. I can do this with a standard servlet call, but my query is getting unruly and I'd like to take advantage of gwt's serialization and build my request that way. The only other option is to have the gwt service return a url (string) to an image, but this would require that I actually save the image to disk, which I don't want to do. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
GWT - Google Ajax Search, problem in number of results returned
I am using GWT integrating it with Google Ajax Search. Basic search is working fine, but I only get 4 results returned even after I set the result set size: WebSearch webSearch = new WebSearch(); webSearch.setResultSetSize(ResultSetSize.LARGE); It does not appear that the LARGE option has any impact, my call back handler is still called 4 times. I must be missing something but it is not clear to me where to look next. 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-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: need to execute commands on windows machine from remote server
I need to execute command on client side.I have all clients username and passwords.So I need to login to client machine (windows) and execute commands On Oct 19, 1:00 pm, gwtfanb0y siegfried.b...@googlemail.com wrote: I dont exactly understand what you want. Do you want to execute a command on the client-side (the browser) or on the server-side (input coming from the client) ? On 19 Okt., 08:21, sathya sathyavik...@gmail.com wrote: I need to execute commands on windows machine (eg: c:\program files \outlook.exe) using java program. However java program will be running on remote server(tomcat server on other machine). So my job is to connect to windows machine from server and execute commads on client. Can you help in implementing this using java program? I believe I can do this using SSh or using https connection from server to windows machine. However I am not sure which the best method to do this is. Also I would like to know if they are any other methods to implement this. Thanks, Sathya.- 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-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Servlet and GWT
Hi, You can look at the following tutorial; hope that will help you. http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial.html Cheers. On Wed, Oct 21, 2009 at 10:42 PM, sillu priyabra...@gmail.com wrote: Hello friends, I am new to GWT. Recently i learnt servlet and JSP. My problem is i want to have a nice dynamic front end.When user performs some action, it should send request to server. Server should do some data manipulation on the basis of data sent from client and send back the response. I am not getting the actual pipe line. In which of the following GWT/ SERVLET/JSP language i should write Front end and server side codes. From Some source i knew that front end we can make in GWT and servlet side scripting in JSP/Servlet. If this is true then how can we link these...can anyone suggest . I use Eclipse. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: candle stick charts
Why dont you use gcharts http://code.google.com/p/gchart/ On Oct 21, 8:10 pm, Bobby Richards bobby.richa...@gmail.com wrote: Anyone have any experience with creating candlestick charts with GWT? Thanks, Bobby --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: AsyncCallBack cannot be resolved to a type
When I get in tomorrow, I'll try AsyncCallback() M On Oct 21, 5:05 pm, michael.d.clay...@hotmail.com michael.d.clay...@hotmail.com wrote: All, Im trying to run a method after selecting an item in a listbox, I get the error: AsyncCallBack cannot be resolved to a type on this part: map = greetingService.getDataStatus(itemText, new AsyncCallBackHashMapString,Object(){ Here is the code: lb.addChangeHandler( new ChangeHandler(){ public void onChange(ChangeEvent event){ ListBox listBox = (ListBox)lb; String listBoxName = listBox.getName(); int index = listBox.getSelectedIndex(); String itemText = listBox.getItemText(index); map = greetingService.getDataStatus(itemText, new AsyncCallBackHashMapString,Object(){ public void onFailure(Throwable caught){ } public void onSuccess(HashMapString,Object result){ } }); }//end onChange }//end constructor );//end addChangeListener Any way around this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: any way to return image through rpc?
You can send bytes back to the client as an RPC response (it's just an HTTP request, after all) but the problem is what to do with the bytes once you have them. If you're willing to restrict yourself to browsers that support data:// URLs, you can send the image back as a data:// URL and just drop the result into an img tag. That approach excludes many (all?) versions of IE. As far as I know, the only IE that _might_ support data:// URLs is IE8. To be fully-compatible, you need to forge ahead with your existing approach or, as you say, generate a URL via RPC and make the generated URL resolve to the desired image. If you want to fool around with the RPC infrastructure, you could possibly use a GWT-RPC request payload as the query parameter in a standard request, if you think such a representation would be more compact/useful than the representation you're currently using. On the server side, you could then use the RPC class (is that still in use?) to deserialize the parameters and drive the image request. Might be more trouble than it's worth, though. Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: any way to return image through rpc?
Thanks Ian ... I had a feeling it was going to be complicated, I just wanted to make sure I wasn't missing something. Looks like I'm relegated to building complex queries or making two requests. Thanks again for the time! On Wed, Oct 21, 2009 at 9:12 PM, Ian Petersen ispet...@gmail.com wrote: You can send bytes back to the client as an RPC response (it's just an HTTP request, after all) but the problem is what to do with the bytes once you have them. If you're willing to restrict yourself to browsers that support data:// URLs, you can send the image back as a data:// URL and just drop the result into an img tag. That approach excludes many (all?) versions of IE. As far as I know, the only IE that _might_ support data:// URLs is IE8. To be fully-compatible, you need to forge ahead with your existing approach or, as you say, generate a URL via RPC and make the generated URL resolve to the desired image. If you want to fool around with the RPC infrastructure, you could possibly use a GWT-RPC request payload as the query parameter in a standard request, if you think such a representation would be more compact/useful than the representation you're currently using. On the server side, you could then use the RPC class (is that still in use?) to deserialize the parameters and drive the image request. Might be more trouble than it's worth, though. Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UiBinder in google-web-toolkit
Comment by heralight: Hello everybody, I come from silverlight and I want learn GWT with UIbuilder, which WYSIWYG editor can I use to produce design with UIBuilder (equivalent to Microsoft Blend) ? If not exist how create a design and maintains it with a standard WYSIWYG Html editor like dreamweaver ? Thanks!! Galbert. For more information: http://code.google.com/p/google-web-toolkit/wiki/UiBinder --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UiBinder in google-web-toolkit
Comment by heralight: Hello everybody, I've just started studying GWT with UiBinder. good ! Which WYSIWYG editor can I use to produce design with UiBinder(equivalent to Microsoft Blend) ? If not exist how create a design and maintains it with a standard WYSIWYG Html editor like dreamweaver ? Thanks!! Galb. For more information: http://code.google.com/p/google-web-toolkit/wiki/UiBinder --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Comment on UiBinder in google-web-toolkit
There is no WYSIWYG editor that I know of. Because UIBinder is so new (it's only been in the public source control for about two months), I wouldn't expect to see such an editor for several months at a minimum. If you see one it's likely to come from the guys who make MyEclipse (google it). Brett On Oct 21, 9:08 pm, codesite-nore...@google.com wrote: Comment by heralight: Hello everybody, I've just started studying GWT with UiBinder. good ! Which WYSIWYG editor can I use to produce design with UiBinder(equivalent to Microsoft Blend) ? If not exist how create a design and maintains it with a standard WYSIWYG Html editor like dreamweaver ? Thanks!! Galb. For more information:http://code.google.com/p/google-web-toolkit/wiki/UiBinder --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Veary+cheep+guest+house+5star+hotels+Karachi+photo [30$ package Complementary food with 2 time]
Veary+cheep+guest+house+5star+hotels+Karachi+photo [30$ package Complementary food with 2 time] http://guest-houses-5star-hotels-karachi.blogspot.com --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UiBinder in google-web-toolkit
Comment by arthur.kalm: I wouldn't if the Google Eclipse Plugin gets updated to support UiBinder in the near future, but it probably won't happen until GWT 2.0 is out. You'll have to ask Miguel Mendez :) For more information: http://code.google.com/p/google-web-toolkit/wiki/UiBinder --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Add a 'session' field to lightweight metrics events
LGTM, but change the stats proporty to 'sessionId' or the magic variable to '$session' to avoid typos in future changes to stats code. http://gwt-code-reviews.appspot.com/82803 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6440 committed - Edited wiki page through web user interface.
Revision: 6440 Author: rj...@google.com Date: Wed Oct 21 12:06:47 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=6440 Modified: /wiki/UiBinder.wiki === --- /wiki/UiBinder.wiki Thu Oct 15 13:34:49 2009 +++ /wiki/UiBinder.wiki Wed Oct 21 12:06:47 2009 @@ -8,6 +8,11 @@ The samples here ignore binder's localization features. See UiBinderI18n. += Quick start = + +If just want to jump right in, take a peak at [http://code.google.com/p/google-web-toolkit/source/detail?r=6192 this patch]. It includes +the work to change the venerable Mail sample to use UiBinder. + = Background = There are problems with the declarative ui template service as it was [DeclarativeUi originally proposed] --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6441 committed - Add a 'sessionId' field to GWT lightweight metrics events, which is se...
Revision: 6441 Author: r...@google.com Date: Wed Oct 21 13:20:55 2009 Log: Add a 'sessionId' field to GWT lightweight metrics events, which is set to the value of the user-supplied global variable __gwtStatsSessionId at module startup. The field should not be considered a commited part of the API at this time. Review by: bobv http://code.google.com/p/google-web-toolkit/source/detail?r=6441 Modified: /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/HostedModeTemplate.js /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html /trunk/dev/core/src/com/google/gwt/core/linker/IFrameLinker.java /trunk/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js /trunk/dev/core/src/com/google/gwt/core/linker/XSLinker.java /trunk/dev/core/src/com/google/gwt/core/linker/XSTemplate.js /trunk/dev/core/src/com/google/gwt/dev/js/ast/JsRootScope.java /trunk/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Stats.java /trunk/user/src/com/google/gwt/core/client/impl/AsyncFragmentLoader.java /trunk/user/src/com/google/gwt/user/client/rpc/impl/RemoteServiceProxy.java === --- /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/HostedModeTemplate.js Wed Nov 26 14:57:11 2008 +++ /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/HostedModeTemplate.js Wed Oct 21 13:20:55 2009 @@ -51,6 +51,7 @@ if (isHostedMode()) { $stats $stats({ moduleName: '__MODULE_NAME__', + sessionId: $sessionId, subSystem: 'startup', evtGroup: 'bootstrap', millis:(new Date()).getTime(), @@ -101,6 +102,7 @@ // Record when the module EntryPoints return. $stats $stats({ moduleName: '__MODULE_NAME__', +sessionId: $sessionId, subSystem: 'startup', evtGroup: 'moduleStartup', millis:(new Date()).getTime(), @@ -295,7 +297,8 @@ * avoid FF2 refresh quirks. */ $stats $stats({ -moduleName:'__MODULE_NAME__', +moduleName:'__MODULE_NAME__', +sessionId: $sessionId, subSystem:'startup', evtGroup: 'moduleStartup', millis:(new Date()).getTime(), @@ -331,7 +334,8 @@ // Mark this module's script injection done and (possibly) start the module. scriptsDone = true; $stats $stats({ - moduleName:'__MODULE_NAME__', + moduleName:'__MODULE_NAME__', + sessionId: $sessionId, subSystem:'startup', evtGroup: 'loadExternalRefs', millis:(new Date()).getTime(), @@ -380,7 +384,8 @@ // --- WINDOW ONLOAD HOOK --- $stats $stats({ -moduleName:'__MODULE_NAME__', +moduleName:'__MODULE_NAME__', +sessionId: $sessionId, subSystem:'startup', evtGroup: 'bootstrap', millis:(new Date()).getTime(), @@ -438,7 +443,8 @@ }, 50); $stats $stats({ -moduleName:'__MODULE_NAME__', +moduleName:'__MODULE_NAME__', +sessionId: $sessionId, subSystem:'startup', evtGroup: 'bootstrap', millis:(new Date()).getTime(), @@ -446,10 +452,11 @@ }); $stats $stats({ -moduleName:'__MODULE_NAME__', -subSystem:'startup', -evtGroup: 'loadExternalRefs', -millis:(new Date()).getTime(), +moduleName:'__MODULE_NAME__', +sessionId: $sessionId, +subSystem:'startup', +evtGroup: 'loadExternalRefs', +millis:(new Date()).getTime(), type: 'begin' }); === --- /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html Fri Oct 16 14:04:54 2009 +++ /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html Wed Oct 21 13:20:55 2009 @@ -5,13 +5,14 @@ var $wnd = parent; var $doc = $wnd.document; var $moduleName, $moduleBase, $entry -,$stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null; +,$stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null +,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null; // Lightweight metrics if ($stats) { var moduleFuncName = location.search.substr(1); var moduleFunc = $wnd[moduleFuncName]; var moduleName = moduleFunc ? moduleFunc.moduleName : unknown; - $stats({moduleName:moduleName,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'}); + $stats({moduleName:moduleName,sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'}); } var $hostedHtmlVersion=2.0; @@ -270,7 +271,7 @@ // Lightweight metrics window.fireOnModuleLoadStart = function(className) { - $stats $stats({moduleName:$moduleName, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'onModuleLoadStart', className:className}); + $stats $stats({moduleName:$moduleName, sessionId:$sessionId,
[gwt-contrib] JUnitShell ignores -userAgent argument
Reviewers: jat, Description: Description: === Somehow during the merge, the remote user agents stopped getting passed into the compiler. Fix: CompileStrategy now passes the remoteUserAgents (which can be null) into JUnitShell#maybeCompileModule. Please review this at http://gwt-code-reviews.appspot.com/83807 Affected files: user/src/com/google/gwt/junit/CompileStrategy.java Index: user/src/com/google/gwt/junit/CompileStrategy.java === --- user/src/com/google/gwt/junit/CompileStrategy.java (revision 6439) +++ user/src/com/google/gwt/junit/CompileStrategy.java (working copy) @@ -184,7 +184,8 @@ strategy.processModule(moduleDef); -junitShell.maybeCompileForWebMode(syntheticModuleName); +junitShell.maybeCompileForWebMode(syntheticModuleName, +JUnitShell.getRemoteUserAgents()); return moduleDef; } --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: JUnitShell ignores -userAgent argument
LGTM http://gwt-code-reviews.appspot.com/83807 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Server side I18N
I don't think that you guys are seeing the whole picture. By making the string replacements part of the compiled code you actually bind the internationalization into the code. Trust me, when a web application is supporting 20+ languages, the translations will never be absolutely flawless, and the JIT string replacements/formatting that you are complaining about is a very small factor when dealing with large applications. Compare the time taken for dynamically creating, say 200 DIV elements within a DOM tree, with time taken for replacing 2000 internationalized strings using JIT and you'll find out that this is absolutely NO extra time spent and just a VERY small overhead comparing to a web application with the strings compiled into the nocache-files. In a perfect world, the texts would be flawless from project startup, but when creating one major application per month to different companies (using different translators) for 40+ languages, they won't be flawless, even when going live due to dead lines. If nobody sees the business value with server side I18N, I'll rest my case. On Oct 20, 6:08 pm, Ray Ryan rj...@google.com wrote: On Tue, Oct 20, 2009 at 8:32 AM, John Tamplin j...@google.com wrote: On Tue, Oct 20, 2009 at 11:21 AM, Ray Ryan rj...@google.com wrote: I'll bet a lot that the cross section of 40+ languages and nuanced pluralized translations is vanishingly small. A first cut that simply required status quo for plurals support would still be a big win. Or for that matter I don't most apps would actually notice if their tiny handful of pluralized strings became a runtime entity instead of baked in. The problem is that it is more than just that. Take this for example: - Folder name: {0} File name: {1} in English - xxx {1} yyz {0} xkx in some other locale The code generated is different and there is no piece of text in the English output that can be changed to produce the other locale, and that is because we actually parse the format string at compile time. Out of curiosity, could you post a sample of the generated code? If we instead just substituted those strings, you would have to have all the format parsing code in the compiled output, which will be essentially String.format. In addition, right now we just generate calls to NumberFormat/DateTimeFormat for actual formatting and they parse their pattern at runtime, but I have work in progress to move the parsing of the pattern to compile time. Beyond this, there are things like: @DefaultStringValue(lb) String weightUnit(); and code that does if (kg.equals(constants.weightUnit())) { weightFactor = 2.2; } and then that factor would get inlined all over the codebase by the compiler where it is used. [Note, I don't recommend this pattern, but I have seen it used]. Ick. There are so many other ways to accomplish that, I don't see it as a valid use case for something that would likely be opt in. So, it isn't as simple as doing string substitution on the compiled output. Even discounting plural forms (and frankly, I think any properly localized app needs to use them), there are other cases where it would be rather expensive to be able to do string substitutions on the compiled output. One possible approach would be extending the runtime locales approach (similar to Bob's soft permutations) to cover Messages/Constants. That way the code is optimized for each one, but there is basically a switch for the proper implementation for the current locale, and that choice is made once. You still lose inlining and you are downloading code you will never execute, but perhaps there could be some runAsync integration to reduce the download penalty. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Server side I18N
Thoka, does your code involve changes to GWT proper? If not (or if so, for that matter), would you be willing to create a new Google Code site for it? It doesn't have to be part of GWT proper to be useful. And there's no reason it couldn't reach GWT proper via that route--probably more likely for a larger feature like this one. rjrjr --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Server side I18N
No, the code does not involve changes to the standard library. The only thing you have to do is to replace the localization module to another in the gwt.xml file. It is very simple and contains about 5 simple classes. The only thing you have to do manually is to link lang.js to a servlet in web.xml. We started creating this module for about 3 month ago, and we still need to test it more thorough, which is why I posted this here to get more people involved for comments, features and optimizations. We've deployed an application live containing this server side I18N, and it is working like a charm: http://www.facebook.com/video/video.php?v=1174821983024ref=mf If you are interested in trying it out your selves, I'll be happy to supply you with information and source code. On Oct 21, 11:22 pm, Ray Ryan rj...@google.com wrote: Thoka, does your code involve changes to GWT proper? If not (or if so, for that matter), would you be willing to create a new Google Code site for it? It doesn't have to be part of GWT proper to be useful. And there's no reason it couldn't reach GWT proper via that route--probably more likely for a larger feature like this one. rjrjr --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Server side I18N
Thoka, I hope previous replies didn't come across as a debate as to whether the use cases you describe are valuable or not; clearly they are. The point is just that we want to identify exactly what the pros/cons of each world view are to decide, among other things, if there is one right answer versus just acknolwedging that there should be multiple libraries, each with different tradeoffs. In this case, it seems quite likely to be the latter. So, as Ray suggests, if you'd be willing to make your library available, you could start evangelizing it to other GWT users and if over time a consensus emerges in favor of that approach, it would be much easier to justify trying to roll that functionality into GWT proper. On Wed, Oct 21, 2009 at 2:37 PM, Thoka thobias.karls...@gmail.com wrote: No, the code does not involve changes to the standard library. The only thing you have to do is to replace the localization module to another in the gwt.xml file. It is very simple and contains about 5 simple classes. The only thing you have to do manually is to link lang.js to a servlet in web.xml. We started creating this module for about 3 month ago, and we still need to test it more thorough, which is why I posted this here to get more people involved for comments, features and optimizations. We've deployed an application live containing this server side I18N, and it is working like a charm: http://www.facebook.com/video/video.php?v=1174821983024ref=mf If you are interested in trying it out your selves, I'll be happy to supply you with information and source code. On Oct 21, 11:22 pm, Ray Ryan rj...@google.com wrote: Thoka, does your code involve changes to GWT proper? If not (or if so, for that matter), would you be willing to create a new Google Code site for it? It doesn't have to be part of GWT proper to be useful. And there's no reason it couldn't reach GWT proper via that route--probably more likely for a larger feature like this one. rjrjr --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Server side I18N
It sounds like an alternative might be to have the compiler to spit out properties files full of key value pairs with one per locale. Naturally the compile would output shortened keys etc and record a mapping file. A tool would be made available to update just these text resources and the initial bootsrap code so it now picks up the newly updated files. The exiting use of cache files as much as possible would remain, but there would be less permuTation generated files. Comments On 22/10/2009, at 8:14 AM, Thoka thobias.karls...@gmail.com wrote: I don't think that you guys are seeing the whole picture. By making the string replacements part of the compiled code you actually bind the internationalization into the code. Trust me, when a web application is supporting 20+ languages, the translations will never be absolutely flawless, and the JIT string replacements/formatting that you are complaining about is a very small factor when dealing with large applications. Compare the time taken for dynamically creating, say 200 DIV elements within a DOM tree, with time taken for replacing 2000 internationalized strings using JIT and you'll find out that this is absolutely NO extra time spent and just a VERY small overhead comparing to a web application with the strings compiled into the nocache-files. In a perfect world, the texts would be flawless from project startup, but when creating one major application per month to different companies (using different translators) for 40+ languages, they won't be flawless, even when going live due to dead lines. If nobody sees the business value with server side I18N, I'll rest my case. On Oct 20, 6:08 pm, Ray Ryan rj...@google.com wrote: On Tue, Oct 20, 2009 at 8:32 AM, John Tamplin j...@google.com wrote: On Tue, Oct 20, 2009 at 11:21 AM, Ray Ryan rj...@google.com wrote: I'll bet a lot that the cross section of 40+ languages and nuanced pluralized translations is vanishingly small. A first cut that simply required status quo for plurals support would still be a big win. Or for that matter I don't most apps would actually notice if their tiny handful of pluralized strings became a runtime entity instead of baked in. The problem is that it is more than just that. Take this for example: - Folder name: {0} File name: {1} in English - xxx {1} yyz {0} xkx in some other locale The code generated is different and there is no piece of text in the English output that can be changed to produce the other locale, and that is because we actually parse the format string at compile time. Out of curiosity, could you post a sample of the generated code? If we instead just substituted those strings, you would have to have all the format parsing code in the compiled output, which will be essentially String.format. In addition, right now we just generate calls to NumberFormat/DateTimeFormat for actual formatting and they parse their pattern at runtime, but I have work in progress to move the parsing of the pattern to compile time. Beyond this, there are things like: @DefaultStringValue(lb) String weightUnit(); and code that does if (kg.equals(constants.weightUnit())) { weightFactor = 2.2; } and then that factor would get inlined all over the codebase by the compiler where it is used. [Note, I don't recommend this pattern, but I have seen it used]. Ick. There are so many other ways to accomplish that, I don't see it as a valid use case for something that would likely be opt in. So, it isn't as simple as doing string substitution on the compiled output. Even discounting plural forms (and frankly, I think any properly localized app needs to use them), there are other cases where it would be rather expensive to be able to do string substitutions on the compiled output. One possible approach would be extending the runtime locales approach (similar to Bob's soft permutations) to cover Messages/Constants. That way the code is optimized for each one, but there is basically a switch for the proper implementation for the current locale, and that choice is made once. You still lose inlining and you are downloading code you will never execute, but perhaps there could be some runAsync integration to reduce the download penalty. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Server side I18N
On Wed, Oct 21, 2009 at 3:48 PM, Miroslav Pokorny miroslav.poko...@gmail.com wrote: It sounds like an alternative might be to have the compiler to spit out properties files full of key value pairs with one per locale. Naturally the compile would output shortened keys etc and record a mapping file. A tool would be made available to update just these text resources and the initial bootsrap code so it now picks up the newly updated files. The exiting use of cache files as much as possible would remain, but there would be less permuTation generated files. The problem is more than that. As mentioned above, the actual compiled code is frequently different depending on the messages, such as when the parameters are re-ordered in different locales or have different formatting patterns. Basically allowing them to be switched outside of a full compile means the format strings have to be parsed at runtime, which IMHO is an expensive price to pay. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Server side I18N
Perhaps the compiler just recompile Message etc type classes and have them in a separated *.js file. The problem with that is of course what about references to helper methods and the like that live in the main module. A mapping file would need to record names of said methods. There might also probably need to be a mechanism to avoid inlining a method in main that might need to be called from a messages module. I know this has been discussed before when others want the ability to add plugins to an application without recompiling. On Thu, Oct 22, 2009 at 9:53 AM, John Tamplin j...@google.com wrote: On Wed, Oct 21, 2009 at 3:48 PM, Miroslav Pokorny miroslav.poko...@gmail.com wrote: It sounds like an alternative might be to have the compiler to spit out properties files full of key value pairs with one per locale. Naturally the compile would output shortened keys etc and record a mapping file. A tool would be made available to update just these text resources and the initial bootsrap code so it now picks up the newly updated files. The exiting use of cache files as much as possible would remain, but there would be less permuTation generated files. The problem is more than that. As mentioned above, the actual compiled code is frequently different depending on the messages, such as when the parameters are re-ordered in different locales or have different formatting patterns. Basically allowing them to be switched outside of a full compile means the format strings have to be parsed at runtime, which IMHO is an expensive price to pay. -- John A. Tamplin Software Engineer (GWT), Google -- mP --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6442 committed - Add rebased version of the Protocol Buffer library. ...
Revision: 6442 Author: rda...@google.com Date: Wed Oct 21 17:26:40 2009 Log: Add rebased version of the Protocol Buffer library. Review by: mmendez (TBR) http://code.google.com/p/google-web-toolkit/source/detail?r=6442 Added: /tools/lib/protobuf/protobuf-2.2.0/protobuf-java-rebased-2.2.0.jar Modified: /tools/lib/protobuf/protobuf-2.2.0/README === --- /dev/null +++ /tools/lib/protobuf/protobuf-2.2.0/protobuf-java-rebased-2.2.0.jar Wed Oct 21 17:26:40 2009 Binary file, no diff available. === --- /tools/lib/protobuf/protobuf-2.2.0/README Tue Oct 20 15:43:26 2009 +++ /tools/lib/protobuf/protobuf-2.2.0/README Wed Oct 21 17:26:40 2009 @@ -1,7 +1,7 @@ This is version 2.2.0 of the Java Protocol Buffer Library. We use protocol buffers communication protocol between the Development Mode Server and Remote Viewers. -To build this library: +To build protobuf-java-2.2.0.jar: 1) Download http://protobuf.googlecode.com/files/protobuf-2.2.0.tar.gz 2) Unzip the archive @@ -20,3 +20,26 @@ platform-dependent encoding warnings during the packaging step. See http://maven.apache.org/general.html#encoding-warning for more information. +In order to prevent conflicts with user code which relies on Protocol Buffers, +we've used jarjar (http://code.google.com/p/jarjar) to rebase this library. The +com.google.protobuf package has been rename to com.google.gwt.dev.protobuf. + +To build protobuf-java-rebased-2.2.0.jar: + +1) Download jarjar +2) Run jarjar as follows: + +jarjar command process jarjar rules file protobuf-java-2.2.0.jar protobuf-java-rebased-2.2.0.jar + + where: + + jarjar command - the command used to run jarjar (typically java -jar jarjar-1.0.jar) + jarjar rules file - a rules file for jarjar. In this case, it should consist of the following: + + rule com.google.protobuf.** com.google.gwt.dev.protob...@1 + +3) Remove the META-INF directory from protobuf-java-rebased-2.2.0.jar. You can do this + by expanding the jar, deleting the META-INF directory, and rebuilding the jar with the + -M (no MANIFEST) switch. + + --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review Request: Using the rebased protobuf library
LGTM http://gwt-code-reviews.appspot.com/83809 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6444 committed - Fixed typo caught by mmendez in review of r6442.
Revision: 6444 Author: rda...@google.com Date: Wed Oct 21 18:10:55 2009 Log: Fixed typo caught by mmendez in review of r6442. http://code.google.com/p/google-web-toolkit/source/detail?r=6444 Modified: /tools/lib/protobuf/protobuf-2.2.0/README === --- /tools/lib/protobuf/protobuf-2.2.0/README Wed Oct 21 17:26:40 2009 +++ /tools/lib/protobuf/protobuf-2.2.0/README Wed Oct 21 18:10:55 2009 @@ -22,7 +22,7 @@ In order to prevent conflicts with user code which relies on Protocol Buffers, we've used jarjar (http://code.google.com/p/jarjar) to rebase this library. The -com.google.protobuf package has been rename to com.google.gwt.dev.protobuf. +com.google.protobuf package has been renamed to com.google.gwt.dev.protobuf. To build protobuf-java-rebased-2.2.0.jar: --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review Request: Using the rebased protobuf library
The MesageTransportTest passed without any problems. Committed as r6443. http://gwt-code-reviews.appspot.com/83809 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Server side I18N
On Wed, Oct 21, 2009 at 3:52 PM, John Tamplin j...@google.com wrote: The problem is more than that. As mentioned above, the actual compiled code is frequently different depending on the messages, such as when the parameters are re-ordered in different locales or have different formatting patterns. Basically allowing them to be switched outside of a full compile means the format strings have to be parsed at runtime, which IMHO is an expensive price to pay. I don't know if this solves the right problem, and maybe it would be more trouble than it's worth, but I think you could straddle the middle here. Take your earlier example: * Folder name: {0} File name: {1} in English * xxx {1} yyz {0} xkx in some other locale Presumably that compiles down (in English) to something like this: Folder name: + valueOfZero + File name: + valueOfOne and then the optimizer has its way and things get inlined, propagated, or whatever. What if you just used variables instead and populated the variables via some external mechanism. Something like this: $locConst0 + valueOfZero + $locConst1 + valueOfOne The compiler could generate the names folderNameConst and fileNameConst in some deterministic way so that you could take the original list of properties some.developer.chosen.name=Folder name: {0} File name: {1} and map it to this $locConst0=Folder name: $locConst1= File name: in an automated way. If the automated way is a tool you could run separately from a full compile, Thomas could rig it into his internationalizing servlet such that the user updates the original properties file, and then the tool regenerates the GWT-optimized version. Perhaps the result wouldn't be as thoroughly optimized as the current system (no way to detect that $locConst0 and $locConst1 are the same, for example), but it would be more optimized than parsing message format strings at run time and it would (I think) solve Thomas' problem. Thoughts? Ian --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---