Re: Installing the toolkit
Strange. The unresolved org.eclipse.jst.server.core plugin appears to be part of WTP, which should get picked up through the default defined update sites in a fresh eclipse install. Could you confirm which distro/packaging of eclipse you downloaded (different than the Helios identifier you listed earlier)? I'd also be interested in seeing what the available software sites list looks like on your eclipse install. It's available through the preferences, or should be a reference to it from the install new software menu as well. -seth -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OtAmOzawlLMJ. 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 Scroll bars in ScrollPanel/cell table
Summarizing, it will be similar to: scrollPanel.setWidth(Window.getClientWidth().+px); grid.setWidth((widthOfEachCell*numOfCells+px); in the scroll panel, you can set up whatever size you want. Here, I put the width of the entire window. You have to set up the grid: separation between cells, etc On Jun 9, 3:14 pm, Darpan Kamboj kamboj.dar...@gmail.com wrote: I need to scroll bars to cell table but as I gone through some the posts this feature is not available currently. could anyone help me how to use ScrollPanel with cell table and how to set the dimentions of the panel to see the scrool bar. As I want to show the 5000 rows in a cell table. Thanks Darpan -- You received 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 Scroll bars in ScrollPanel/cell table
I forgot to tell you. Scroll bar will be only showed if the size of the widget inside the scroll panel is bigger than the scroll panel. Hope I explain it ok:) On Jun 10, 9:28 am, redjhawk jorges...@gmail.com wrote: Summarizing, it will be similar to: scrollPanel.setWidth(Window.getClientWidth().+px); grid.setWidth((widthOfEachCell*numOfCells+px); in thescrollpanel, you can set up whatever size you want. Here, I put the width of the entire window. You have to set up the grid: separation between cells, etc -- You received 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 plugin compile can not ignore a source directory
Hi, Not an ideal solution (since I have lots of support classes which do not follow some naming convention), but it will do. Thanks, David -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Sfb-XsLYvm4J. 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 meets Adobe Flex: gwt4air 2.1 is here !
@Denis. The ActionScript part of gwt4air is not opensource. Also i dont know if i ll open that yet. Need to think about it. @Leandro The idea of gwt4air started after we had a requirement to implement a web and a desktop client for the same application. We wanted to be able to do that using only one code basis. GWT provided us the right platform to do so. Because GWT generates HTML/JS and CSS we could deploy the same code to the browser and to AIR. Then then client wanted to also hav a Flex widget on the web client (to enable client side PDF generation). Because i wanted to that using GWT I started looking for a solution. And the results of those researchs is what you see in gwt4air If you are more interested you can see the story of the genesis here: http://code.google.com/p/gwt4air/wiki/Beginn Best, Alain 2011/6/8 leandro borbosa leandrob...@googlemail.com This is a free time project ? ? Really impressive stuff. Hopefully i did a good job at that. I ve played around with the library i must say you did more then a good job at that. I still cant believe i m writing a Flex application. I just wonder what makes you start this project. I mean Flex is not a small framework. Exporting it to GWT must have been some hard work. 2011/6/7 Alain Ekambi jazzmatad...@googlemail.com Hello Alexandro, Thank you for your kind words. I m glad that you like the project. I m also happy that it can help you solve some of the problems you have. Gwt4Air is a free time project. We use it internally at the company i work but i dont get paid for that. It s small company so i decided to play the nice guy :).But I wish I could do this full time dough. i m know the link you provided. As a matter of fact i have a comment there. While searching for ideas on how to implement the Flex API i came accross that post. What i did not like about that solution was the fact that the user must deal with both sides. Flex and GWT. I wanted a more simpler solution where one will only programm in Java like any GWT project. Hopefully i did a good job at that. Concerning what the Adobe Engineer told you: I think what he ment is that for every MXML based Flex project the MXML Compiler does some initialization work that you will have to do manually if you dont want to use MXML. And that initialization is a quiet complex thing. So he probably thought that no one would be crazy enough to try to figure out what the compiler really does . But because i wanted to use GWT to write Flex applicatons i had to be crazy enough lol. cheers, Alain 2011/6/5 leandro leandrob...@googlemail.com Hi, I just went to your project and i have to say this is just mind blowing! Are you doing this full time ? Really i wonder how you guyz come up with this kind of stuff. We have been struggling integrating flex client into how existing GWT application. We ve tried this solution here http://lgrammel.blogspot.com/2010/02/i-am-working-on-project-that-integrates.html but that did not scale very well. Maintining MXML/AS3, JavaScript and Java in the same project is a nightmare. Last year at Adobe Max i asked an engineer at from adobe if it s possible to write Flex applications without using AS3 and MXML because we wanted to keep everything in Java and he basically said that s impossible. So i wonder how do you do this ? I cant wait to play to hero tomorrow at the office when i present the solution that will solve our problems :) Good work man Alexandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/QTE0WG5VSzdpM0FK. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/
Re: GWT+GAE+Tomcat - java.lang.NullPointerException: No API environment is registered for this thread
Any idea On Jun 9, 7:58 am, Anoop John anoopjoh...@gmail.com wrote: Hi, I have developed an application in two ways: 1) GWT+Mysql+Tomcat - Here the GWT compiler was compiled java code to JS. In the server side the data stored inside the Mysql database. Here i didn't used Google data store. It worked fine when i deployed in tomcat server. 2) GWT+GAE+Tomcat - Here i used the Google Data Store instead of MySql database. This application doesn't worked and crashed at server side. The exception is occured at the code ListDB_Users list=(ListDB_Users) query.execute(username); . The whole code is given below. PersistenceManager mngr=ServerUtils.getServerutils().getPMF().getPersistenceManager(); try{ String filter=username==filter; Query query=mngr.newQuery(DB_Users.class); query.setFilter(filter); query.declareParameters(String filter); ListDB_Users list=(ListDB_Users) query.execute(username); if(list!=nulllist.size()0){ return false; } else{ return true; } } catch (Exception e) { e.printStackTrace(); } finally{mngr.close();} return false; The error is: java.lang.NullPointerException: No API environment is registered for this thread . at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId (DatastoreApiHelper.java:108) at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId Namespace(DatastoreApiHelper.java:118) at com.google.appengine.api.datastore.Query.init(Query.java: 112) at org.datanucleus.store.appengine.query.DatastoreQuery.validate(Datasto reQuery.java:654) at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute(D atastoreQuery.java:217) at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute(JDOQL Query.java:89) at org.datanucleus.store.query.Query.executeQuery(Query.java: 1489) at org.datanucleus.store.query.Query.executeWithArray(Query.java:1371) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:243) This code is worked fine with Eclipse(RunAs-- Web Application) Is there any way to execute this code in tomcat server??? -- You received 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: SyncProxy + Tomcat
Any idea On Jun 9, 10:18 pm, Anoop John anoopjoh...@gmail.com wrote: Hi, I am using syncproxy tool kit for a testing purpose. It working perfectly when i deploy my web application in the Eclipse default server (Jetty). That i could access my remote method from my java application. But when i deploy the web application in Tomcat5 server, its failed to access the remote method. Please help me how to resolve this. I am getting the following error. com.google.gwt.user.client.rpc.InvocationException: Exception while invoking the remote service anoop.web_service.client.GreetingService.greetServer at com.gdevelop.gwt.syncrpc.RemoteServiceInvocationHandler.invoke(RemoteServiceInvocationHandler.java: 185) at $Proxy0.greetServer(Unknown Source) at anoop.web_service.client.AppMain.main(AppMain.java:24) Caused by: com.google.gwt.user.client.rpc.InvocationException: IOException at com.gdevelop.gwt.syncrpc.RemoteServiceSyncProxy.doInvoke(RemoteServiceSyncProxy.java: 171) at com.gdevelop.gwt.syncrpc.RemoteServiceInvocationHandler.invoke(RemoteServiceInvocationHandler.java: 164) ... 2 more Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL:http://localhost:8080/jax/jax_server/greet at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(UnknownSource) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.gdevelop.gwt.syncrpc.RemoteServiceSyncProxy.doInvoke(RemoteServiceSyncProxy.java: 145) ... 3 more Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL:http://localhost:8080/jax/jax_server/greet at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(Unknown Source) at com.gdevelop.gwt.syncrpc.CookieManager.storeCookies(CookieManager.java: 73) at com.gdevelop.gwt.syncrpc.DefaultSessionManager.handleResponseHeaders(DefaultSessionManager.java: 29) at com.gdevelop.gwt.syncrpc.RemoteServiceSyncProxy.doInvoke(RemoteServiceSyncProxy.java: 143) ... 3 more My code is: try{ String ModuleBaseURL=http://localhost:8080/jax/jax_server/;; GreetingService server = (GreetingService) SyncProxy.newProxyInstance(GreetingService.class, ModuleBaseURL, greet); System.out.println(server.greetServer(Anoop John));// A method in interface and crashed here System.out.println(server.getUpdatedMessage(Buzz));// A method in interface } catch (Exception e) { e.printStackTrace(); } -- You received 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.
Why is the XMLParser not returning a org.w3c.dom.Document ?
Hello, XML support in GWT is quite substandard. Why did the GWT devs not base the implementation on the org.w3c.dom interfaces ? Just like the JRE emulation classes they could have done that and make it possible to share code between client and server when using Documents. Namespace support in the current implementation is also lacking. I know that the native browser XML support is very minimal, but it would have been very easy to add Namespace aware operations from org.w3c.dom (depending on the browser). Any idea if there will be a more focus on improving this part of GWT ? Not everything is working with JSON or GWT-RPC. I created an issue for this: http://code.google.com/p/google-web-toolkit/issues/detail?id=6467 David -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ki7cPrZ8WRcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aw: Maintaining application state
On client side I am working with a singleton that can be injected via gin everywhere I need these kind of login information. Works fine so far. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ATC609dohsAJ. 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 is the XMLParser not returning a org.w3c.dom.Document ?
Hi David, feel free to take a look at Taoki: http://code.google.com/p/totoe/. It contains an XML parser with namespace support. Although it does not implement org.w3c.dom.Document it tries to be as close as possible. There's also a little test app. You can use it to quickly check whether it meets your requirements: http://totoe-tester.appspot.com/ - Harald -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DubBVCP2LM8J. 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.
set CSS Styles for Charts
hi, where i can find the info about the default css for the visualisation api? i want to change background an other stuff for a PieChart, but i can´t found the info, about the CSS. regards arno -- You received 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+GAE+Tomcat - java.lang.NullPointerException: No API environment is registered for this thread
Please, check if this happens in dev mode only. Try to deploy, it happens too? 2011/6/10 Anoop John anoopjoh...@gmail.com Any idea On Jun 9, 7:58 am, Anoop John anoopjoh...@gmail.com wrote: Hi, I have developed an application in two ways: 1) GWT+Mysql+Tomcat - Here the GWT compiler was compiled java code to JS. In the server side the data stored inside the Mysql database. Here i didn't used Google data store. It worked fine when i deployed in tomcat server. 2) GWT+GAE+Tomcat - Here i used the Google Data Store instead of MySql database. This application doesn't worked and crashed at server side. The exception is occured at the code ListDB_Users list=(ListDB_Users) query.execute(username); . The whole code is given below. PersistenceManager mngr=ServerUtils.getServerutils().getPMF().getPersistenceManager(); try{ String filter=username==filter; Query query=mngr.newQuery(DB_Users.class); query.setFilter(filter); query.declareParameters(String filter); ListDB_Users list=(ListDB_Users) query.execute(username); if(list!=nulllist.size()0){ return false; } else{ return true; } } catch (Exception e) { e.printStackTrace(); } finally{mngr.close();} return false; The error is: java.lang.NullPointerException: No API environment is registered for this thread . at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId (DatastoreApiHelper.java:108) at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId Namespace(DatastoreApiHelper.java:118) at com.google.appengine.api.datastore.Query.init(Query.java: 112) at org.datanucleus.store.appengine.query.DatastoreQuery.validate(Datasto reQuery.java:654) at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute(D atastoreQuery.java:217) at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute(JDOQL Query.java:89) at org.datanucleus.store.query.Query.executeQuery(Query.java: 1489) at org.datanucleus.store.query.Query.executeWithArray(Query.java:1371) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:243) This code is worked fine with Eclipse(RunAs-- Web Application) Is there any way to execute this code in tomcat server??? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Prevent data url for images in css
Is there a way to have background images in css files that are not data urls? We have a bunch of small images that are shown only in special case, so there is no need to load them on startup. -- You received 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: Prevent data url for images in css
There's a new preventInlining option to @ImageOptions that should land in GWT 2.4: http://code.google.com/p/google-web-toolkit/source/detail?r=10268 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/x1VkLURdDmYJ. 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: Null Version
So, what implementation of JPA are you using? EclipseLink, OpenJPA, ... 2011/6/10 Pavel Byles pavelby...@gmail.com Not using hibernate. On Thu, Jun 9, 2011 at 11:33 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Hibernate? 2011/6/9 Pavel Byles pavelby...@gmail.com 3.0-1.1.1 On Thu, Jun 9, 2011 at 8:56 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: What implementation of JPA are you use? 2011/6/9 Pavel Byles pavelby...@gmail.com anyone? On Wed, Jun 8, 2011 at 10:46 PM, Pavel Byles pavelby...@gmail.comwrote: I'm getting the following error when I'm using requestfactory with locators: The persisted entity with id 152 has a null version I have a version column in my datastore and the following in my Entity: public Integer getVersion() { return this.version; } public void setVersion(Integer version) { this.version = version; } I also have this in my locator: @Override public Object getVersion(Country domainObject) { return domainObject.getVersion(); } If I return 1 all the time for getVersion, everything works fine. I have looked at all the examples I could but there aren't many and tried to figure this out for a while. Things look right but doesn't seem to work. Any ideas? -- -Pav -- -Pav -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -Pav -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -Pav -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Installing the toolkit
Seth, The distro/packaging I had initially downloaded was Eclipse IDE for Java Developershttp://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliossr2 . * *There were no sites in the available software sites. Your questions led me to download Eclipse IDE for Java EE Developershttp://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliossr2 . Again there were no sites in the available software sites. However on checking the Already Installed List the missing plugin was there and I was able to install the GPE from the zip file and the designer from the update site. I can now move on and try to automate a bunch of spreadsheets that I have in google docs. I would be interested in knowing why the first distro did not include the required plugin if you know or if there are some instructions that I missed. Again thanks for your help. For someone who left coding (Pascal Fortran and C, {compile - assemble - link}) to move to management and now retired this new world is certainly different, but; I am sure the juices will once again flow and the excitement of discovery will be very rewarding. John On Fri, Jun 10, 2011 at 2:17 AM, Seth Hollyman s...@jujufrog.com wrote: Strange. The unresolved org.eclipse.jst.server.core plugin appears to be part of WTP, which should get picked up through the default defined update sites in a fresh eclipse install. Could you confirm which distro/packaging of eclipse you downloaded (different than the Helios identifier you listed earlier)? I'd also be interested in seeing what the available software sites list looks like on your eclipse install. It's available through the preferences, or should be a reference to it from the install new software menu as well. -seth -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OtAmOzawlLMJ. 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. -- John More 727-372-4994 -- You received 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: SyncProxy + Tomcat
Try open an issue in SyncProxy project page 2011/6/9 Anoop John anoopjoh...@gmail.com Hi, I am using syncproxy tool kit for a testing purpose. It working perfectly when i deploy my web application in the Eclipse default server (Jetty). That i could access my remote method from my java application. But when i deploy the web application in Tomcat5 server, its failed to access the remote method. Please help me how to resolve this. I am getting the following error. com.google.gwt.user.client.rpc.InvocationException: Exception while invoking the remote service anoop.web_service.client.GreetingService.greetServer at com.gdevelop.gwt.syncrpc.RemoteServiceInvocationHandler.invoke(RemoteServiceInvocationHandler.java: 185) at $Proxy0.greetServer(Unknown Source) at anoop.web_service.client.AppMain.main(AppMain.java:24) Caused by: com.google.gwt.user.client.rpc.InvocationException: IOException at com.gdevelop.gwt.syncrpc.RemoteServiceSyncProxy.doInvoke(RemoteServiceSyncProxy.java: 171) at com.gdevelop.gwt.syncrpc.RemoteServiceInvocationHandler.invoke(RemoteServiceInvocationHandler.java: 164) ... 2 more Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/jax/jax_server/greet at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.gdevelop.gwt.syncrpc.RemoteServiceSyncProxy.doInvoke(RemoteServiceSyncProxy.java: 145) ... 3 more Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/jax/jax_server/greet at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(Unknown Source) at com.gdevelop.gwt.syncrpc.CookieManager.storeCookies(CookieManager.java: 73) at com.gdevelop.gwt.syncrpc.DefaultSessionManager.handleResponseHeaders(DefaultSessionManager.java: 29) at com.gdevelop.gwt.syncrpc.RemoteServiceSyncProxy.doInvoke(RemoteServiceSyncProxy.java: 143) ... 3 more My code is: try{ String ModuleBaseURL= http://localhost:8080/jax/jax_server/;; GreetingService server = (GreetingService) SyncProxy.newProxyInstance(GreetingService.class, ModuleBaseURL, greet); System.out.println(server.greetServer(Anoop John));// A method in interface and crashed here System.out.println(server.getUpdatedMessage(Buzz));// A method in interface } catch (Exception e) { e.printStackTrace(); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
R: Re: Re: problem with crawler
Thank you maq! I didn't tought about the war name in the url so I try to add to my url the war name and: 1) if I use the crawler url h*tp://www.youtrail.com/youtrail/?_escaped_fragment_=trailentityId=579101 in my servlet I see the queryString not null (now there is an other problem, but this is an other story, I simply forget to include the httpclient-4.1.1.jar... this evening I deploy a new version) 2) if I use the normal url with the war name: http://www.youtrail.com/youtrail#trailentityId=579101 I'll recive a FORBIDDEN error... Is this strange? (it is strange for me ok... but it is really strange?) For now I think I put some hidden links dedicated to crawlers, but I don't know if it is a good idea... keep working too... thanks again! Ale -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/qx4zBlgFIQAJ. 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: set CSS Styles for Charts
Hello, I am working on GWT Visualization Annotated Time Line chart. Even I am trying to find solution for applying css. Is there any solution? Regards, Kalpana On Fri, Jun 10, 2011 at 2:34 PM, ArnoNyhm etechniker@googlemail.comwrote: hi, where i can find the info about the default css for the visualisation api? i want to change background an other stuff for a PieChart, but i can´t found the info, about the CSS. regards arno -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Some GWT source samples from Google IO 2011?
Hello all, I'm struggling to finde some source code from the examples shown by Chris Ramsdale in his Using GWT and Eclipse to Build Great Mobile Web Apps presentation, and from John Labanca on his GWT + HTML5: A web developers dream!. Anyone can suggest me where to find them? It exists something somewhere? (to Chris and John, thank you for your presentations!!!) Cristiano -- You received 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.
Design Implementation on GIN
Hi, After going through several blogs and sample code , I have successfully implement a sample code over GWT using GIN. Now the problem is regarding the design implementation. On Fire of any event the activity call the goto function and it render the whole new screen . I want some way , so that I can render a section of area to be affects not the whole screen. Please suggest no Idea . 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: XsrfTokenServiceServlet requires deployed gwt-dev.jar?
I modified the GWT sample app to be Xsrf safe. http://code.google.com/p/xsrf-safe/ On Jun 9, 12:55 pm, Nick nix...@gmail.com wrote: As a workaround you can create a copy of the Utility class in your project. Just make sure its in the original package 'package com.google.gwt.util.tools', and deleted the methods with restricted code (if deploying to gae). p.s. You might need to adjust your build path so that your code comes before the gwt library. On May 17, 11:25 am, Karl karl.rest...@gmail.com wrote: Hi, thank you for the quick answer, I created an issue for ithttp://code.google.com/p/google-web-toolkit/issues/detail?id=6367. I have been using gwt-dispatch for another project and I really like it, but I thought I'd try the new stuff. I suppose that have to wait a bit... /Karl On May 17, 4:24 pm, David Chandler drfibona...@google.com wrote: Hi Karl, This looks like a GWT bug, as gwt-servlet should not have any dependencies on gwt-dev. Please file in the issue tracker. As an aside, have you looked at the Command pattern as implemented by gwt-dispatch or RequestFactory? These are both easier than securing each service individually IMHO. Thanks, /dmc On Tue, May 17, 2011 at 12:14 PM, Karl karl.rest...@gmail.com wrote: Hi! I'm trying to implement the 2.3 xsrf protection as described here http://code.google.com/webtoolkit/doc/latest/DevGuideSecurityRpcXsrf but I run into a NoClassDefFoundError: java.lang.NoClassDefFoundError: com/google/gwt/util/tools/Utility at com.google.gwt.user.server.rpc.XsrfTokenServiceServlet.generateTokenValue(X srfTokenServiceServlet.java: 198) [:] at com.google.gwt.user.server.rpc.XsrfTokenServiceServlet.getNewXsrfToken(Xsrf TokenServiceServlet.java: 163) [:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [: 1.6.0_20] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 57) [:1.6.0_20] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 43) [:1.6.0_20] at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_20] at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 569) [:] ... 28 more Caused by: java.lang.ClassNotFoundException: com.google.gwt.util.tools.Utility from BaseClassLoader@31843ea1{vfs:/// home/user/dev/JBoss/distrib/server/myCompany/deploy/myWar.war} at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.ja va: 480) [jboss-classloader.jar:2.2.0.GA] at java.lang.ClassLoader.loadClass(ClassLoader.java:266) [:1.6.0_20] ... 35 more The only place I can find this com/google/gwt/util/tools/Utility class is in gwt-dev.jar but deploying this results in the following exception: Caused by: LifecycleException: Error initializaing : javax.management.ReflectionException: Cannot find method addChild with this signature same as described here: http://groups.google.com/group/google-web-toolkit/browse_thread/threa... I'm running JBoss 6.0. and I build my project with maven2 as described here http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users/b... What am I doing wrong? Any help would be greatly appreciated. /Karl -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w:http://code.google.com/ b:http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Design Implementation on GIN
Read: http://tbroyer.posterous.com/gwt-21-placeshttp://www.google.com/url?sa=Dq=http://tbroyer.posterous.com/gwt-21-places http://tbroyer.posterous.com/gwt-21-places-part-iihttp://www.google.com/url?sa=Dq=http://tbroyer.posterous.com/gwt-21-places-part-ii Juan 2011/6/10 Anup anupdutta1...@gmail.com Hi, After going through several blogs and sample code , I have successfully implement a sample code over GWT using GIN. Now the problem is regarding the design implementation. On Fire of any event the activity call the goto function and it render the whole new screen . I want some way , so that I can render a section of area to be affects not the whole screen. Please suggest no Idea . 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. -- You received 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: Maintaining application state
I use an object called ApplicationModel, that is passed to every presenter on creation. It stores application state, as its name might suggest. It also fires off events whenever any of the presenters modifies one of its values, which helps keep the application in sync. Things like user roles and what the user has currently selected are stored in there. I should also mention that the ApplicationModel is actually handed off to the presenter as part of an ApplicationBundle, which is basically just a parameter object. It holds the model, the ApplicationNavigationControl, ApplicationEventBus, ApplicationFactory, etc. Wrapping it all up in the parameter object makes it really easy to add new application-wide bits. -Ben -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/51lt6kbjjoQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UiBinder multi-line tool tip not possible?
I'm trying to set the title on an element in UiBinder with a carriage return or line feed in it, which is valid in JavaScript. For example, the following code works: element.setTitle(Line 1.\r\nLine2.); When I put the same text into the title attribute in a UiBinder element, the text is written exactally as seen, on the same line. How do we go about displaying a multi-line tool tip in UiBinder? Thanks, Pat -- You received 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: Holy Cow! GWT Designer comes up quick in 2.4 beta?!?!
I am using the latest version of GPE from http://code.google.com/eclipse/beta/docs/download.html. Does this include the latest version of Designer? Or, should I download Designer separately per the link below? Thanks. BTW, my workaround has been to uninstall and reinstall. Since the last time I did this (a couple of days ago) I haven't seen the problem again. On Jun 9, 8:36 pm, Eric Clayberg clayb...@google.com wrote: Make sure you are using the latest GWT Designer build... http://code.google.com/intl/en/webtoolkit/tools/download-gwtdesigner-... On Jun 9, 9:29 am, cri chuck.irvine...@gmail.com wrote: Yes, precisely what I've noticed. Very excellent. Thanks. I am having a persistent and time consumingGWTDesignerproblem, however. Seems with all versions: 2.2, 2.3, 2.4 beta. Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=6457sor Would be great is someone could help me get to the bottom of this. On Jun 8, 8:15 pm, Eric Clayberg clayb...@google.com wrote: As you noticed, we have been working on a lot of optimizations that should result is a much better user experience. The first time you access GWTD in a session, it still needs to warm up dev mode (which takes most of the time...and is itself much faster now). Subsequent editor opening operations should be much quicker and switching between source and design mode should be extremely quick. On Jun 8, 11:23 am, cri chuck.irvine...@gmail.com wrote: Couldn't easily get the gist of your links Could you summarize? One thing I've just noticed. I used to hesitate to open agwtdesigner window because it took so long. Now that the wait is dramatically shorter, I use thedesignerwindow just to navigate my code, even when I don't have any gui changes to make. Cool! On Jun 8, 9:09 am, Gal Dolber gal.dol...@gmail.com wrote: Could be because of this?: #GWThttps://twitter.com/#!/search?q=%23GWT trunk watch: Google projects seeing 30-40% dev mode speedup withhttp://gwt-code-reviews.appspot.com/1448801/ On Wed, Jun 8, 2011 at 9:44 AM, cri chuck.irvine...@gmail.com wrote: I just installed GPE 2.4 beta and it sure seems to me thatGWT Designerdesign windows are coming up faster - much faster! Tell me I'm not imagining things. So, this must be a new feature in 2.4. I'm a big advocate ofGWTDesignerand this helps tremendously. 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. -- Guit: Elegant, beautiful, modular and *production ready*gwtapplications. http://code.google.com/p/guit/ -- You received 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 pass hash map to native java script method
Actually I don't think it's as simple as you'd think. Gwt java objects are pretty opaque to JSNI. Depending on what you need, i'd suggest using JSONObject as a replacement for HashMap. That should probably work for you. On Jun 8, 9:19 pm, rsutton rsut...@asteriskit.com.au wrote: I am trying to pass a Hashmap to a native method as can be seen below. I have been unable to find any suitable example code. Any assistance would be greatly appreciated. I know this is simple, I just haven't done it before. Thanks. public void onClick(ClickEvent event) { MapString, String params = new HashMapString, String(); params.putAll(definition.getParams()); this is where my problem is, how to convert the params object to a suitable object to work with the native openReportWindow method openReportWindow(definition.getReportServletName(), params); } private static native void openReportWindow(String action, values) /*- { var form = document.createElement(form); form.setAttribute(method, post); form.setAttribute(action, action); // setting form target to a window named 'formresult' form.setAttribute(target, _blank); for (var i=0; ivalues.length; i++) { var hiddenField = document.createElement(input); hiddenField.setAttribute(name, values[i].name); hiddenField.setAttribute(value, values[i].value); form.appendChild(hiddenField); } document.body.appendChild(form); form.submit(); document.body.removeChild(form); }-*/; -- You received 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.
Immediate Need of SAP MM Need Consultant
*Dear Professional, Hope your doing great, I have a good oportunity for you can you please see the below job description, if your interested please reply me back with your updated resume.Please send me youre resume on* *b...@panzersolutions.com* *Title:SAP MM Need Consultant Location :Nashville, TN Duration:3+ months contract Pay Rate:$32/corp to corp * *Credentials: SAP ECC, MM, IM, WM (Which is required on this position) SAP BW (Good to have on this position). Functional SAP BA Business Analyst that can complete research in order to accurately and timely document assigned functional specs, containing business requirements, business rules data mapping. This includes SAP system integration in the following areas: Logistics (SAP integration with TMS WMS) MDD/TDD (Master Transactional data movements) Material Master They want heavy reporting and inventory mgmt ECC 6.0* *Thanks Ben Smith | Technical Recruiter Panzer Solutions LLC 45 Stuart Ave, K Norwalk CT 06850 USA b...@panzersolutions.co*m -- You received 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.
Javadoc version (GWT 2.3.0.rc1)
This is trivial... http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/index.html The version number at the top still says GWT 2.3.0.rc1. -- You received 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 multi-line tool tip not possible?
\r\n is a notation to write these otherwise-forbidden-in-a-Java-String-literal chars. UiBinder is XML, so you need a similar notation for XML: #13;#10; should do it (but maybe just using a CRLF in your XML would do it actually). Disclaimer: this is theory, I didn't tried it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/pJ-eYV8vTVMJ. 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 pass hash map to native java script method
Wouldn't it be easier to rewrite your openReportWindow in Java rather than JSNI? On Thursday, June 9, 2011 3:19:05 AM UTC+2, rsutton wrote: var form = document.createElement(form); FormElement form = Document.get().createFormElement(); form.setAttribute(method, post); form.setAttribute(method, post); or form.setMethod(post); (would be the equivalent of form.method='post' in JS) form.setAttribute(action, action); // setting form target to a window named 'formresult' form.setAttribute(target, _blank); for (var i=0; ivalues.length; i++) { for (Map.EntryString, String entry : values) { var hiddenField = document.createElement(input); InputElement hiddenField = Document.get().createHiddenInputElement(); hiddenField.setAttribute(name, values[i].name); input.setName(entry.getKey()); hiddenField.setAttribute(value, values[i].value); input.setValue(entry.getValue()); form.appendChild(hiddenField); form.appendChild(hiddenField); } document.body.appendChild(form); Document.get().getBody().appendChild(form); form.submit(); form.submit(); document.body.removeChild(form); form.removeFromParent(); // this is a very handy shortcut provided by GWT! }-*/; -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/z8iYzAOrmpcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to make a simple login using GWT and Extjs and GAE
Hello everyone i'm new at google app engine and ive been trying to make a really basic login using GWT , ExtJs. Unfortunately there is no documentation nor tutorials on how to do it, there is just one login tutorial on GAEs web but the login authentification is with a gmail adress and im trying to make one for a lot of differents usernames. Whatever help you can give it would be very nice thanks a lot . -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8Q_-EPnP5A0J. 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: Holy Cow! GWT Designer comes up quick in 2.4 beta?!?!
If uninstalling and reinstalling actually solved the problem, then perhaps something had locally corrupted your GPE installation. That specific error looked like something we might see in conjunction with an bad or incomplete update/install. Updating to the latest GWTD build (which is basically a reinstall as it updates all of the GWTD plugins) would solve also have likely solved the problem. The latest GPE beta does not include the latest GWT Designer build as GWT Designer is refreshed more frequently. On Jun 10, 9:45 am, cri chuck.irvine...@gmail.com wrote: I am using the latest version of GPE fromhttp://code.google.com/eclipse/beta/docs/download.html. Does this include the latest version ofDesigner? Or, should I downloadDesignerseparately per the link below? Thanks. BTW, my workaround has been to uninstall and reinstall. Since the last time I did this (a couple of days ago) I haven't seen the problem again. On Jun 9, 8:36 pm, Eric Clayberg clayb...@google.com wrote: Make sure you are using the latestGWTDesignerbuild... http://code.google.com/intl/en/webtoolkit/tools/download-gwtdesigner-... On Jun 9, 9:29 am, cri chuck.irvine...@gmail.com wrote: Yes, precisely what I've noticed. Very excellent. Thanks. I am having a persistent and time consumingGWTDesignerproblem, however. Seems with all versions: 2.2, 2.3, 2.4 beta. Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=6457sor Would be great is someone could help me get to the bottom of this. On Jun 8, 8:15 pm, Eric Clayberg clayb...@google.com wrote: As you noticed, we have been working on a lot of optimizations that should result is a much better user experience. The first time you access GWTD in a session, it still needs to warm up dev mode (which takes most of the time...and is itself much faster now). Subsequent editor opening operations should be much quicker and switching between source and design mode should be extremely quick. On Jun 8, 11:23 am, cri chuck.irvine...@gmail.com wrote: Couldn't easily get the gist of your links Could you summarize? One thing I've just noticed. I used to hesitate to open agwtdesigner window because it took so long. Now that the wait is dramatically shorter, I use thedesignerwindow just to navigate my code, even when I don't have any gui changes to make. Cool! On Jun 8, 9:09 am, Gal Dolber gal.dol...@gmail.com wrote: Could be because of this?: #GWThttps://twitter.com/#!/search?q=%23GWT trunk watch: Google projects seeing 30-40% dev mode speedup withhttp://gwt-code-reviews.appspot.com/1448801/ On Wed, Jun 8, 2011 at 9:44 AM, cri chuck.irvine...@gmail.com wrote: I just installed GPE 2.4 beta and it sure seems to me thatGWT Designerdesign windows are coming up faster - much faster! Tell me I'm not imagining things. So, this must be a new feature in 2.4. I'm a big advocate ofGWTDesignerand this helps tremendously. 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. -- Guit: Elegant, beautiful, modular and *production ready*gwtapplications. http://code.google.com/p/guit/ -- You received 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.
Widget in com.google.gwt.cell.client
Can the widgets in com.google.gwt.cell.client be directly used in uibinder? Jim -- You received 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: Maintaining application state
Mmm, very interesting idea, Ben. I was already a little distressed that my Activity constructors are getting large (5+ parameters). Bundling them up into an ApplicationBundle object is appealing. Although since I'm using Gin, I guess the constructor size isn't really a problem. Do you use this ApplicationBundle object to pass presenter-specific information? I.e., a specific view or place provider? If so, how do you parameterize the bundle to work for all presenters? Ryan On Jun 10, 6:37 am, Ben Imp benlee...@gmail.com wrote: I use an object called ApplicationModel, that is passed to every presenter on creation. It stores application state, as its name might suggest. It also fires off events whenever any of the presenters modifies one of its values, which helps keep the application in sync. Things like user roles and what the user has currently selected are stored in there. I should also mention that the ApplicationModel is actually handed off to the presenter as part of an ApplicationBundle, which is basically just a parameter object. It holds the model, the ApplicationNavigationControl, ApplicationEventBus, ApplicationFactory, etc. Wrapping it all up in the parameter object makes it really easy to add new application-wide bits. -Ben -- You received 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: Widget in com.google.gwt.cell.client
Just like any widget, yes. They don't have any integration though (no @UiConstructor) though, and no specific parsers either, so you'd have to initialize most things from Java, including for some of them the instantiation (either through a @UiFactory method, or via @UiField(provided=true)) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8269PMUMYncJ. 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: Maintaining application state
The bundle is presenter-agnostic. It only contains application-wide state and control objects. I do have two classes of presenters in my application, however. Those that get passed the ApplicationBundle are page presenters, and control the whole screen (or at least the central content portion of it anyway). They are created in response to navigation events. These, in turn, may create component presenters and pass them specific bits of information, like an instance of their view that was retrieved from somewhere in the main page view interface, or a specific implementation of their model interface that will play well with the rest of the page. Something like this: public XxxPagePresenter(ApplicationBundle bundle, XxxPageView view) { this.bundle = bundle; this.view = view; this.model = new XxxPageModelImpl(); this.yyyComponentPresenter1 = new YyyComponentPresenter(model.getYyyComponentModel(), view.getYyyComponentView()); ... } -Ben -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aZpqp1HwcwwJ. 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.
Scrolling CellList sample?
I thought it would be a trivial matter to build a scrolling CellList like the one in the showcase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList But I need to work with hand-coded GWT Widgets, and that sample is based on UiBinder. Can anyone point me to a sample like the one in the showcase (a large scrolling list) that does not use UiBinder? The documentation isn't helpful; it's all based on trivial samples like days-of-the-week that don't require scrolling. -- You received 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: Maintaining application state
I do something kinda similar. I make the assumption that a Place object should store all the state/data for the particular place. I then have something called a ContextWatcher which controls any application wide state or data. I use a static Cache class to actually store any data. The impl also makes it very easy to rebuild application state from a refresh or bookmark Everything is controlled by a PlaceChangeEvent. So, on a PCE the new Activity (ActivityMapper calles setPlace(NewPlace) - which makes the start() method somewhat irrelevant but allows the same place to be called consecutively and have new params for each place) and ContextWatcher (implements PCE.Handler) so both have a reference to the new Place. The Activity adds an a callback to the place (addOnValidCallback - other objects which need to know when the Place and AppWide info is valid) and the ContextWatcher adds a callback to the place for onContextCheck (basically the place will make sure it has the necessary data it needs then hands control over to the ContextWatcher. The ContextWatcher does its thing and then calls place.startOnValidCallbacks. The place will then go through all callbacks that need to know everything is valid (The activity and any other object that have been put on hold) The method has been working extremely well for keeping Application State, Place specific data, Refresh, Bookmark, Caching etc It does add some custom complexity to the mix and slightly changes the way an activity is started but has proved well worth it. on a PCE the place will take the String token given to its constructor and then check to make sure the Client Cache has all the necessary data (retrieving it when needed). On Jun 10, 2:08 pm, Ben Imp benlee...@gmail.com wrote: The bundle is presenter-agnostic. It only contains application-wide state and control objects. I do have two classes of presenters in my application, however. Those that get passed the ApplicationBundle are page presenters, and control the whole screen (or at least the central content portion of it anyway). They are created in response to navigation events. These, in turn, may create component presenters and pass them specific bits of information, like an instance of their view that was retrieved from somewhere in the main page view interface, or a specific implementation of their model interface that will play well with the rest of the page. Something like this: public XxxPagePresenter(ApplicationBundle bundle, XxxPageView view) { this.bundle = bundle; this.view = view; this.model = new XxxPageModelImpl(); this.yyyComponentPresenter1 = new YyyComponentPresenter(model.getYyyComponentModel(), view.getYyyComponentView()); ... } -Ben -- You received 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: Design Implementation on GIN
Yeah those links should give you a much better idea of what you are trying to do. When you say any event, do you mean PlaceChangeEvents? The PlaceController should be in charge of calling the placeController.goTo(place). You can either use an href=#myplace which will fire the PCE (PlaceChangeEvent) or actually use the placeController directo to call goTo Not sure what goTo function you are referring to.. The above articles will explain using ActivityMappers/Activities + Places in order to load parts of your application (no a full reload) On Jun 10, 9:22 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Read:http://tbroyer.posterous.com/gwt-21-placeshttp://www.google.com/url?sa=Dq=http://tbroyer.posterous.com/gwt-21-... http://tbroyer.posterous.com/gwt-21-places-part-iihttp://www.google.com/url?sa=Dq=http://tbroyer.posterous.com/gwt-21-... Juan 2011/6/10 Anup anupdutta1...@gmail.com Hi, After going through several blogs and sample code , I have successfully implement a sample code over GWT using GIN. Now the problem is regarding the design implementation. On Fire of any event the activity call the goto function and it render the whole new screen . I want some way , so that I can render a section of area to be affects not the whole screen. Please suggest no Idea . 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. -- You received 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-earth sample - question
I'm trying to learn and work with the gwt-earth project.. started with the sort of hello earth program available at: http://code.google.com/p/earth-api-samples/source/browse/#svn%2Ftrunk%2Fdemos%2Fgwt-earth%2Fsrc%2Fcom%2Fgoogle%253Fstate%253Dclosed While the GEPlugin concept is fairly tricky - there is a GEWrapper class that encapsulates a GEPlugin class, which in turn talks to a class with native communication to the GEPlugin (GEPluginNative). In that latter class i find native methods like: public static native JavaScriptObject getFeatures(JavaScriptObject ge)/*-{ return ge.getFeatures(); }-*/; and i'm trying to add a new one that sets up zoom controllers (etc), but can't seem to make it work. I've tried adding this: public static native void setControlsVisible(JavaScriptObject ge)/*-{ ge.getNavigationControl().setControlType(ge.NAVIGATION_CONTROL_LARGE); ge.getNavigationControl().setVisibility(ge.VISIBILITY_SHOW); }-*/; and then call it via GEPlugin class: public void setControlsVisible() {GEPluginNative.setControlsVisible(ge);} but i end up with a runtime JS error (this.d.b is null).. Is it possible to add controls to the gwt-earth example program? what am i missing? Thanks for insight. -- You received 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 multi-line tool tip not possible?
I had tried the escape for both of them, unfortunately the compiler doesn't like them and errors. Sorry, I should have mentioned it in the original post. [ERROR] Line 32: String literal is not properly closed by a double- quote I'm assuming it converts them to an actual carriage return or line feed when they should be converted to something else. Thanks for your response, Pat On Jun 10, 11:25 am, Thomas Broyer t.bro...@gmail.com wrote: \r\n is a notation to write these otherwise-forbidden-in-a-Java-String-literal chars. UiBinder is XML, so you need a similar notation for XML: #13;#10; should do it (but maybe just using a CRLF in your XML would do it actually). Disclaimer: this is theory, I didn't tried 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: Maintaining application state
I am storing the information in the Client Factory. Alisson Prestes www.google.com/profiles/javalisson On Fri, Jun 10, 2011 at 4:00 PM, Ashton Thomas ash...@acrinta.com wrote: I do something kinda similar. I make the assumption that a Place object should store all the state/data for the particular place. I then have something called a ContextWatcher which controls any application wide state or data. I use a static Cache class to actually store any data. The impl also makes it very easy to rebuild application state from a refresh or bookmark Everything is controlled by a PlaceChangeEvent. So, on a PCE the new Activity (ActivityMapper calles setPlace(NewPlace) - which makes the start() method somewhat irrelevant but allows the same place to be called consecutively and have new params for each place) and ContextWatcher (implements PCE.Handler) so both have a reference to the new Place. The Activity adds an a callback to the place (addOnValidCallback - other objects which need to know when the Place and AppWide info is valid) and the ContextWatcher adds a callback to the place for onContextCheck (basically the place will make sure it has the necessary data it needs then hands control over to the ContextWatcher. The ContextWatcher does its thing and then calls place.startOnValidCallbacks. The place will then go through all callbacks that need to know everything is valid (The activity and any other object that have been put on hold) The method has been working extremely well for keeping Application State, Place specific data, Refresh, Bookmark, Caching etc It does add some custom complexity to the mix and slightly changes the way an activity is started but has proved well worth it. on a PCE the place will take the String token given to its constructor and then check to make sure the Client Cache has all the necessary data (retrieving it when needed). On Jun 10, 2:08 pm, Ben Imp benlee...@gmail.com wrote: The bundle is presenter-agnostic. It only contains application-wide state and control objects. I do have two classes of presenters in my application, however. Those that get passed the ApplicationBundle are page presenters, and control the whole screen (or at least the central content portion of it anyway). They are created in response to navigation events. These, in turn, may create component presenters and pass them specific bits of information, like an instance of their view that was retrieved from somewhere in the main page view interface, or a specific implementation of their model interface that will play well with the rest of the page. Something like this: public XxxPagePresenter(ApplicationBundle bundle, XxxPageView view) { this.bundle = bundle; this.view = view; this.model = new XxxPageModelImpl(); this.yyyComponentPresenter1 = new YyyComponentPresenter(model.getYyyComponentModel(), view.getYyyComponentView()); ... } -Ben -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Widget in com.google.gwt.cell.client
It doesn't work. I think cell widgets in com.google.gwt.cell.client are designed to work with their parent container such as CellTable. The render method in the cell widgets are called by their parent container during rendering process. I want to implement the following features on one page: First Name :TextInputCell Last Name: TextInputCell Date Of Birth: DatePickerCell I would appreciate your solution. On Jun 10, 1:58 pm, Thomas Broyer t.bro...@gmail.com wrote: Just like any widget, yes. They don't have any integration though (no @UiConstructor) though, and no specific parsers either, so you'd have to initialize most things from Java, including for some of them the instantiation (either through a @UiFactory method, or via @UiField(provided=true)) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
deploy a GWT project.war to tomcat
Hi list, i got a problem when i tried to deploy a gwt project from eclipse to Tomcat. I'm using GWT 2.1.1 without App Engine in Development Mode and run successfully. When I try to deploy in Tomcat 6, I have next error: GWT module 'modulename' may need to be (re)compiled... I don´t know what is´t wrong, could anyone help me? Greetings -- You received 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.
Populate Dropdowns
Hi All, I am trying to populate a dropdown from database using rpc (Async) in OnmoduleLoad. The problem is the page gets rendered and dropdown does not get populated, but it has the values, i had tried printing the size. I believe the approach that i took is incorrect, it should not be Async, but again i did not find any other way to call the service from gwt client. Can i know what is the best way to populate the dropdowns Can someone helpme on this 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.
MenuBar Keyboard Navigation with Hidden MenuItems
I have a MenuBar with two MenuItems. On creation the first MenuItem is hidden via setVisible(false). Once various checks (during onload) have been passed then the MenuItem is made visible again. If those checks pass then the MenuBar behaves as expected; the user can tab into the MenuBar where the first MenuItem will receive focus and the arrow keys can be used to navigate the menu. However when those checks don't pass and the user tabs into the MenuBar the focus is again on the first MenuItem as opposed to the first visible MenuItem. Just to clarify, in the latter case the hidden MenuItem stays hidden but to the user it appears as if they have tabbed into an invisible element. I can prevent the user from executing the hidden MenuItem command (via enter key) by setting the command to null during setVisible() but I'd rather have a solution that effectively removes the MenuItem from the MenuBar in this scenario. Any suggestions? Tested on... GWT 2.1.1 Firefox 3.6.17 IE7 -- You received 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.
CheckboxCell 2 clicks for selection, when using SingleSelectionModel
Hi, I have a celltable with several columns, one of them holds CheckboxCell ´s. Additional I use a SingleSelectionModel for that celltable. The CheckboxCell column should be independent from the SingleSelectionModel. The user should be able to check more that one checkbox and select only one row via mouse click or keyboard. That's why I Instantiate them as follows: celltable.setSelectionModel(new SingleSelectionModelMyDomainObject()); ColumnMyDomainObject, Boolean selCol = new ColumnMyDomainObject, Boolean(new CheckboxCell()) { ... }; selCol.setFieldUpdater(new FieldUpdaterMyDomainObject, Boolean() { ... }); celltablekurzansicht.addColumn(selCol, Select); I chrome everything works as planned, the user can check several checkboxes. After a Checkbox is clicked, row is selected, status changed and setFieldUpdater is called. In firefox 3.6 - 4.0 and ie7 the user can check several checkboxes, too, but only after two clicks. After the 1st click the row will only be selected. Only the 2nd click on a selected row will change the status and call setFieldUpdater. I hope someone can bring light into the darkness and help me to achieve the chrome behaviour in firefox (from 3.6) and ie7, too. thx in advance! bb.f.pav -- You received 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.
TimeoutException from GWTTest
Hello, I got TimeoutException when run GWTTest. I try to set '- testBeginTimeout minutes' option without sucess. Is anyone know how to solve the problem. Following message is from Failure trace output: com.google.gwt.junit.client.TimeoutException: The browser did not contact the server within 6ms. - 1 client(s) haven't responded back to JUnitShell since the start of the test. Actual time elapsed: 60.005 seconds. Try increasing this timeout using the '-testBeginTimeout minutes' option The default value of minutes is 1, i.e., the server waits 1 minute or 60 seconds. at com.google.gwt.junit.JUnitShell.notDone(JUnitShell.java:1025) at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1352) at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1280) at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:625) at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java: 456) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:311) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java: 81) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java: 49) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java: 38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: 467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: 683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java: 390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java: 197) -- You received 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-earth sample - question
Thanks Powered by Telkomsel BlackBerry® -Original Message- From: Ben ben.falc...@gmail.com Sender: google-web-toolkit@googlegroups.com Date: Fri, 10 Jun 2011 12:38:06 To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com Reply-To: google-web-toolkit@googlegroups.com Subject: gwt-earth sample - question I'm trying to learn and work with the gwt-earth project.. started with the sort of hello earth program available at: http://code.google.com/p/earth-api-samples/source/browse/#svn%2Ftrunk%2Fdemos%2Fgwt-earth%2Fsrc%2Fcom%2Fgoogle%253Fstate%253Dclosed While the GEPlugin concept is fairly tricky - there is a GEWrapper class that encapsulates a GEPlugin class, which in turn talks to a class with native communication to the GEPlugin (GEPluginNative). In that latter class i find native methods like: public static native JavaScriptObject getFeatures(JavaScriptObject ge)/*-{ return ge.getFeatures(); }-*/; and i'm trying to add a new one that sets up zoom controllers (etc), but can't seem to make it work. I've tried adding this: public static native void setControlsVisible(JavaScriptObject ge)/*-{ ge.getNavigationControl().setControlType(ge.NAVIGATION_CONTROL_LARGE); ge.getNavigationControl().setVisibility(ge.VISIBILITY_SHOW); }-*/; and then call it via GEPlugin class: public void setControlsVisible() {GEPluginNative.setControlsVisible(ge);} but i end up with a runtime JS error (this.d.b is null).. Is it possible to add controls to the gwt-earth example program? what am i missing? Thanks for insight. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MenuBar Keyboard Navigation with Hidden MenuItems
Not sure how you have things set up but here is a possible solution: Implement the Menu/Nav using VerticalPanel (or an element that can insert elements based on index) Let's say you have Button1 (the button dependent on the startup checks), Button2, Button3 When you build the menu just go ahead and add Button2 and Button3. After the checks you can then add Button1 at the correct index Now you can notify your menu widget directly (for the checking) or through event (just register a new event and handler) But the most important thing for you is: VerticalPanel.insert(button, 0) - VerticalPanel panel = new VerticalPanel(); Anchor button2 = new Anchor(button2); Anchor button3 = new Anchor(button3); panel.add(button2); panel.add(button3); - then something like: panel.insert(new Anchor(button1), 0) Except you can replace Anchor with your button widget or whatever I have an AppEventLink which just takes in a callback which is called onClick. So I can easily separate general appLinks and the styling from the code that is executed On Jun 10, 12:03 pm, SciencePiggy brett.rowl...@gmail.com wrote: I have a MenuBar with two MenuItems. On creation the first MenuItem is hidden via setVisible(false). Once various checks (during onload) have been passed then the MenuItem is made visible again. If those checks pass then the MenuBar behaves as expected; the user can tab into the MenuBar where the first MenuItem will receive focus and the arrow keys can be used to navigate the menu. However when those checks don't pass and the user tabs into the MenuBar the focus is again on the first MenuItem as opposed to the first visible MenuItem. Just to clarify, in the latter case the hidden MenuItem stays hidden but to the user it appears as if they have tabbed into an invisible element. I can prevent the user from executing the hidden MenuItem command (via enter key) by setting the command to null during setVisible() but I'd rather have a solution that effectively removes the MenuItem from the MenuBar in this scenario. Any suggestions? Tested on... GWT 2.1.1 Firefox 3.6.17 IE7 -- You received 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: Populate Dropdowns
You can try something like this: ListBox box = new ListBox(); box.setEnabled(false); box.addItem(loading...); service.getData(new AsyncCallback{public void onSuc(loadData(result)); public void loadData(ArrayListData list){ box.clear(); for(Data d:list){ box.addItem(d.getName()); } box.setEnabled(true); } basically just add the SingleSelect ListBox to the UI with a message to the user and disable it then when the request returns, clear the box, enable it, and add items Maybe your problem isn't that easy though... On Jun 10, 10:11 am, rudresh rudresh...@gmail.com wrote: Hi All, I am trying to populate a dropdown from database using rpc (Async) in OnmoduleLoad. The problem is the page gets rendered and dropdown does not get populated, but it has the values, i had tried printing the size. I believe the approach that i took is incorrect, it should not be Async, but again i did not find any other way to call the service from gwt client. Can i know what is the best way to populate the dropdowns Can someone helpme on this 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: CheckboxCell 2 clicks for selection, when using SingleSelectionModel
1) are you sure the code compile for other browser? 2) I do the same thing without problems: CheckBoxColumnMyEntity seleccionado = new CheckBoxColumnMyEntity() { @Override public Boolean getValue(MyEntity object) { return object.isSeleccionado(); } }; seleccionado.setFieldUpdater(fieldUpdaterForMyEntity()); ... private FieldUpdaterMyEntity , Boolean fieldUpdaterParaDeclaracion() { return new FieldUpdaterMyEntity , Boolean() { @Override public void update(int index, MyEntity object, Boolean value) { if (value != null ) { object.setSelected(value.booleanValue()); } }; }; } I have a selected var. instance (is transient) for query if the entity is selectable. Juan 2011/6/10 bb.f.pav bb.f@googlemail.com Hi, I have a celltable with several columns, one of them holds CheckboxCell ´s. Additional I use a SingleSelectionModel for that celltable. The CheckboxCell column should be independent from the SingleSelectionModel. The user should be able to check more that one checkbox and select only one row via mouse click or keyboard. That's why I Instantiate them as follows: celltable.setSelectionModel(new SingleSelectionModelMyDomainObject()); ColumnMyDomainObject, Boolean selCol = new ColumnMyDomainObject, Boolean(new CheckboxCell()) { ... }; selCol.setFieldUpdater(new FieldUpdaterMyDomainObject, Boolean() { ... }); celltablekurzansicht.addColumn(selCol, Select); I chrome everything works as planned, the user can check several checkboxes. After a Checkbox is clicked, row is selected, status changed and setFieldUpdater is called. In firefox 3.6 - 4.0 and ie7 the user can check several checkboxes, too, but only after two clicks. After the 1st click the row will only be selected. Only the 2nd click on a selected row will change the status and call setFieldUpdater. I hope someone can bring light into the darkness and help me to achieve the chrome behaviour in firefox (from 3.6) and ie7, too. thx in advance! bb.f.pav -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: deploy a GWT project.war to tomcat
You compile to javascript ? Run in devmode? 2011/6/10 Annabell Schelton aschelt...@gmail.com Hi list, i got a problem when i tried to deploy a gwt project from eclipse to Tomcat. I'm using GWT 2.1.1 without App Engine in Development Mode and run successfully. When I try to deploy in Tomcat 6, I have next error: GWT module 'modulename' may need to be (re)compiled... I don´t know what is´t wrong, could anyone help me? Greetings -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Scrolling CellList sample?
On Fri, Jun 10, 2011 at 14:57, Jim Douglas jdou...@basis.com wrote: I thought it would be a trivial matter to build a scrolling CellList like the one in the showcase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList But I need to work with hand-coded GWT Widgets, and that sample is based on UiBinder. Can anyone point me to a sample like the one in the showcase (a large scrolling list) that does not use UiBinder? The documentation isn't helpful; it's all based on trivial samples like days-of-the-week that don't require scrolling. The idea's the same regardless of the usage of uibinder isn't it? the basic idea is to put the celllist inside a scrollpanel, and then listen to scroll events on the scrollpanel, once you reach the bottom, load more data. -- Joe -- You received 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: Scrolling CellList sample?
Thanks for the response, Joe. I'm sure the general idea is the same, but the UiBinder stuff is gibberish to me; translating UiBinder code to traditional code is making my head hurt. I *think* I copied all of the relevant pieces out of the sample, but I'm clearly missing something. I get a page of items, but the ScrollPanel doesn't appear to be working. Does anything in this jump out at you as obviously wrong? package com.sample.client; import java.util.Arrays; import java.util.List; import com.google.gwt.cell.client.TextCell; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.dom.client.Style; import com.google.gwt.event.dom.client.ScrollEvent; import com.google.gwt.event.dom.client.ScrollHandler; import com.google.gwt.user.cellview.client.AbstractPager; import com.google.gwt.user.cellview.client.CellList; import com.google.gwt.user.cellview.client.HasKeyboardPagingPolicy.KeyboardPagingPolicy; import com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy.KeyboardSelectionPolicy; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.ScrollPanel; import com.google.gwt.user.client.ui.Widget; import com.google.gwt.view.client.HasRows; import com.google.gwt.view.client.SelectionChangeEvent; import com.google.gwt.view.client.SingleSelectionModel; public class Sample implements EntryPoint { private static final ListString LIST = Arrays.asList(getList()); public void onModuleLoad() { final Label message = new Label(); CellListString cellList = new CellListString(new TextCell()); cellList.setKeyboardPagingPolicy(KeyboardPagingPolicy.INCREASE_RANGE); cellList.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.BOUND_TO_SELECTION); final SingleSelectionModelString selectionModel = new SingleSelectionModelString(); cellList.setSelectionModel(selectionModel); selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() { public void onSelectionChange(SelectionChangeEvent event) { String selected = selectionModel.getSelectedObject(); message.setText(selected == null ? : selected); } }); cellList.setPageSize(20); cellList.setRowCount(LIST.size(), true); cellList.setRowData(0, LIST); ScrollingPager pager = new ScrollingPager(); pager.setDisplay(cellList); RootPanel.get(list).add(pager); RootPanel.get(message).add(message); } /** * A scrolling pager that automatically increases the range every time the * scroll bar reaches the bottom. */ public class ScrollingPager extends AbstractPager { private int incrementSize = 20; private int lastScrollPos = 0; private final ScrollPanel scrollable = new ScrollPanel(); public ScrollingPager() { initWidget(scrollable); scrollable.setPixelSize(250, 350); scrollable.getElement().getStyle().setBorderWidth(1, Style.Unit.PX); scrollable.getElement().getStyle().setBorderColor(red); scrollable.getElement().setTabIndex(-1); // Handle scroll events. scrollable.addScrollHandler(new ScrollHandler() { public void onScroll(ScrollEvent p_event) { // If scrolling up, ignore the event. int oldScrollPos = lastScrollPos; lastScrollPos = scrollable.getVerticalScrollPosition(); if (oldScrollPos = lastScrollPos) { return; } HasRows display = getDisplay(); if (display == null) { return; } int maxScrollTop = scrollable.getWidget().getOffsetHeight() - scrollable.getOffsetHeight(); if (lastScrollPos = maxScrollTop) { // We are near the end, so increase the page size. int newPageSize = Math.min(display.getVisibleRange() .getLength() + incrementSize, display.getRowCount()); display.setVisibleRange(0, newPageSize); } } }); } public int getIncrementSize() { return incrementSize; } @Override public void setDisplay(HasRows display) { assert display instanceof Widget : display must extend Widget; scrollable.setWidget((Widget)display); super.setDisplay(display); } public void setIncrementSize(int incrementSize)
Re: UiBinder multi-line tool tip not possible?
You should (IMO) file a bug in the issue tracker then: http://code.google.com/p/google-web-toolkit/issues/entry -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2gbT8ODxprIJ. 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: Widget in com.google.gwt.cell.client
Oh, sorry, misread your question! There are no Widgets in c.g.g.cell.client, only (mostly) Cells. You can use Cells as widget using the CellWidget from c.g.g.user.cellview.client: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/CellWidget.html You'll have to instantiate themin your Java code though until specific subclasses are added (such as TextButton in http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/widget/client/ , not on GWT 2.3) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/rUiSRkzoo0MJ. 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 pass hash map to native java script method
when I do a post from gwt, the generated html page is returned in an object. there are 2 problems with this. 1. I want the browser to render the returned page 2. this report could be excess of 1GB. -- You received 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 pass hash map to native java script method
OK, I'll try this. Thanks On Jun 11, 12:03 am, Derek derekad...@gmail.com wrote: Actually I don't think it's as simple as you'd think. Gwt java objects are pretty opaque to JSNI. Depending on what you need, i'd suggest using JSONObject as a replacement for HashMap. That should probably work for you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RequestFactory returning list with children of only the first item populated
We have a request for a collection of objects with children: RequestListAssayProxy assayRequest = requestFactory.assayRequest() .fullFetchAssaysForStep(step.getPrimaryKey()) .with(well.designSummary.wells, well.assaies, well.attachment, sequenceBases, exts, warnings); The children of the first object in the response list is populated fine. E.g. we can getSequenceBases(). For other objects in the response list the methods return null-not a lazy initialization error. Any ideas? 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: Scrolling CellList sample?
On Fri, Jun 10, 2011 at 20:54, Jim Douglas jdou...@basis.com wrote: Thanks for the response, Joe. I'm sure the general idea is the same, but the UiBinder stuff is gibberish to me; translating UiBinder code to traditional code is making my head hurt. I *think* I copied all of the relevant pieces out of the sample, but I'm clearly missing something. I get a page of items, but the ScrollPanel doesn't appear to be working. Does anything in this jump out at you as obviously wrong? [snip] On Jun 10, 5:26 pm, Qian Qiao qian.q...@gmail.com wrote: On Fri, Jun 10, 2011 at 14:57, Jim Douglas jdou...@basis.com wrote: I thought it would be a trivial matter to build a scrolling CellList like the one in the showcase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList But I need to work with hand-coded GWT Widgets, and that sample is based on UiBinder. Can anyone point me to a sample like the one in the showcase (a large scrolling list) that does not use UiBinder? The documentation isn't helpful; it's all based on trivial samples like days-of-the-week that don't require scrolling. The idea's the same regardless of the usage of uibinder isn't it? the basic idea is to put the celllist inside a scrollpanel, and then listen to scroll events on the scrollpanel, once you reach the bottom, load more data. -- Joe You haven't given the cellist a data provider, that's why :) -- You received 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.
the problem of hosting gwt files in different servers
Hi I got all gwt files for Hello application. The index.html hosted in host1.com. All other gwt files hosted in host2.com/Hello The index.html has this script type=text/javascript language=javascript src=http://host2.com/Hello/ com.google.gwt.sample.hello.Hello.nocache.js/script But Nothing happened when I opened http://host1.com/index.html, it just showed a blank page. Could you tell me how to solve that problem? -- You received 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.
Different type for rows in a CellTable
I want to display a list of Order in a CellTable along with the detail of each order. In that example I have 2 orders that each has 2 products. 06/10/2011 | Order # 1505 | | | $150.00 Empty | Product 1 | 5 | 10 | $50.00 Empty | Product 2 | 10 | 10 | $100.00 05/10/2011 | Order # 1504 | | | $150.00 Empty | Product 1 | 5 | 10 | $50.00 Empty | Product 2 | 10 | 10 | $100.00 Is there a way to display different type for rows in a CellTable? The CellTable would be a CellTableOrderProxy. OrderProxy contains a ListProductProxy. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9FB8lAC99H4J. 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: Scrolling CellList sample?
Can you elaborate on that a bit? How would you change that sample? On Jun 10, 9:13 pm, Qian Qiao qian.q...@gmail.com wrote: On Fri, Jun 10, 2011 at 20:54, Jim Douglas jdou...@basis.com wrote: Thanks for the response, Joe. I'm sure the general idea is the same, but the UiBinder stuff is gibberish to me; translating UiBinder code to traditional code is making my head hurt. I *think* I copied all of the relevant pieces out of the sample, but I'm clearly missing something. I get a page of items, but the ScrollPanel doesn't appear to be working. Does anything in this jump out at you as obviously wrong? [snip] On Jun 10, 5:26 pm, Qian Qiao qian.q...@gmail.com wrote: On Fri, Jun 10, 2011 at 14:57, Jim Douglas jdou...@basis.com wrote: I thought it would be a trivial matter to build a scrolling CellList like the one in the showcase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList But I need to work with hand-coded GWT Widgets, and that sample is based on UiBinder. Can anyone point me to a sample like the one in the showcase (a large scrolling list) that does not use UiBinder? The documentation isn't helpful; it's all based on trivial samples like days-of-the-week that don't require scrolling. The idea's the same regardless of the usage of uibinder isn't it? the basic idea is to put the celllist inside a scrollpanel, and then listen to scroll events on the scrollpanel, once you reach the bottom, load more data. -- Joe You haven't given the cellist a data provider, that's why :) -- You received 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: Scrolling CellList sample?
Ahh, thanks for the hint, Joe. I can't say I understand this yet, but it looks like this is what needed to be changed: From this: cellList.setRowData(0, LIST); to this: ListDataProviderString dataProvider = new ListDataProviderString(LIST); dataProvider.addDataDisplay(cellList); http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/view/client/ListDataProvider.html Now I need to try to understand why that made the difference. I think I'll need to study the source code; the documentation for the cell widgets is sparse. On Jun 10, 10:00 pm, Jim Douglas jdou...@basis.com wrote: Can you elaborate on that a bit? How would you change that sample? On Jun 10, 9:13 pm, Qian Qiao qian.q...@gmail.com wrote: On Fri, Jun 10, 2011 at 20:54, Jim Douglas jdou...@basis.com wrote: Thanks for the response, Joe. I'm sure the general idea is the same, but the UiBinder stuff is gibberish to me; translating UiBinder code to traditional code is making my head hurt. I *think* I copied all of the relevant pieces out of the sample, but I'm clearly missing something. I get a page of items, but the ScrollPanel doesn't appear to be working. Does anything in this jump out at you as obviously wrong? [snip] On Jun 10, 5:26 pm, Qian Qiao qian.q...@gmail.com wrote: On Fri, Jun 10, 2011 at 14:57, Jim Douglas jdou...@basis.com wrote: I thought it would be a trivial matter to build a scrolling CellList like the one in the showcase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList But I need to work with hand-coded GWT Widgets, and that sample is based on UiBinder. Can anyone point me to a sample like the one in the showcase (a large scrolling list) that does not use UiBinder? The documentation isn't helpful; it's all based on trivial samples like days-of-the-week that don't require scrolling. The idea's the same regardless of the usage of uibinder isn't it? the basic idea is to put the celllist inside a scrollpanel, and then listen to scroll events on the scrollpanel, once you reach the bottom, load more data. -- Joe You haven't given the cellist a data provider, that's why :) -- You received 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: Null Version
Sorry, DataNucleus. On Fri, Jun 10, 2011 at 5:44 AM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: So, what implementation of JPA are you using? EclipseLink, OpenJPA, ... 2011/6/10 Pavel Byles pavelby...@gmail.com Not using hibernate. On Thu, Jun 9, 2011 at 11:33 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Hibernate? 2011/6/9 Pavel Byles pavelby...@gmail.com 3.0-1.1.1 On Thu, Jun 9, 2011 at 8:56 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: What implementation of JPA are you use? 2011/6/9 Pavel Byles pavelby...@gmail.com anyone? On Wed, Jun 8, 2011 at 10:46 PM, Pavel Byles pavelby...@gmail.comwrote: I'm getting the following error when I'm using requestfactory with locators: The persisted entity with id 152 has a null version I have a version column in my datastore and the following in my Entity: public Integer getVersion() { return this.version; } public void setVersion(Integer version) { this.version = version; } I also have this in my locator: @Override public Object getVersion(Country domainObject) { return domainObject.getVersion(); } If I return 1 all the time for getVersion, everything works fine. I have looked at all the examples I could but there aren't many and tried to figure this out for a while. Things look right but doesn't seem to work. Any ideas? -- -Pav -- -Pav -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -Pav -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -Pav -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -Pav -- You received 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: Scrolling CellList sample?
On Sat, Jun 11, 2011 at 01:00, Jim Douglas jdou...@basis.com wrote: Can you elaborate on that a bit? How would you change that sample? On Jun 10, 9:13 pm, Qian Qiao qian.q...@gmail.com wrote: On Fri, Jun 10, 2011 at 20:54, Jim Douglas jdou...@basis.com wrote: Thanks for the response, Joe. I'm sure the general idea is the same, but the UiBinder stuff is gibberish to me; translating UiBinder code to traditional code is making my head hurt. I *think* I copied all of the relevant pieces out of the sample, but I'm clearly missing something. I get a page of items, but the ScrollPanel doesn't appear to be working. Does anything in this jump out at you as obviously wrong? [snip] On Jun 10, 5:26 pm, Qian Qiao qian.q...@gmail.com wrote: On Fri, Jun 10, 2011 at 14:57, Jim Douglas jdou...@basis.com wrote: I thought it would be a trivial matter to build a scrolling CellList like the one in the showcase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList But I need to work with hand-coded GWT Widgets, and that sample is based on UiBinder. Can anyone point me to a sample like the one in the showcase (a large scrolling list) that does not use UiBinder? The documentation isn't helpful; it's all based on trivial samples like days-of-the-week that don't require scrolling. The idea's the same regardless of the usage of uibinder isn't it? the basic idea is to put the celllist inside a scrollpanel, and then listen to scroll events on the scrollpanel, once you reach the bottom, load more data. -- Joe You haven't given the cellist a data provider, that's why :) Just had another look at your example, it shouldn't even need a data provider, could you be a bit more specific on what the problem is? -- Joe -- You received 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: Scrolling CellList sample?
The original version doesn't show a vertical scrollbar and doesn't load new data when I attempt to move past the bottom of the first page, so all I ever see is a single page of names out of the 1000 names in the list. The tiny change I posted appears to have fixed that, although I have no clue what difference it made or why. On Jun 10, 10:21 pm, Qian Qiao qian.q...@gmail.com wrote: On Sat, Jun 11, 2011 at 01:00, Jim Douglas jdou...@basis.com wrote: Can you elaborate on that a bit? How would you change that sample? On Jun 10, 9:13 pm, Qian Qiao qian.q...@gmail.com wrote: On Fri, Jun 10, 2011 at 20:54, Jim Douglas jdou...@basis.com wrote: Thanks for the response, Joe. I'm sure the general idea is the same, but the UiBinder stuff is gibberish to me; translating UiBinder code to traditional code is making my head hurt. I *think* I copied all of the relevant pieces out of the sample, but I'm clearly missing something. I get a page of items, but the ScrollPanel doesn't appear to be working. Does anything in this jump out at you as obviously wrong? [snip] On Jun 10, 5:26 pm, Qian Qiao qian.q...@gmail.com wrote: On Fri, Jun 10, 2011 at 14:57, Jim Douglas jdou...@basis.com wrote: I thought it would be a trivial matter to build a scrolling CellList like the one in the showcase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList But I need to work with hand-coded GWT Widgets, and that sample is based on UiBinder. Can anyone point me to a sample like the one in the showcase (a large scrolling list) that does not use UiBinder? The documentation isn't helpful; it's all based on trivial samples like days-of-the-week that don't require scrolling. The idea's the same regardless of the usage of uibinder isn't it? the basic idea is to put the celllist inside a scrollpanel, and then listen to scroll events on the scrollpanel, once you reach the bottom, load more data. -- Joe You haven't given the cellist a data provider, that's why :) Just had another look at your example, it shouldn't even need a data provider, could you be a bit more specific on what the problem is? -- Joe -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: JavaAstConstructor uses UnifyAst. (issue1453810)
@Scott If you patch this in and follow the arcane directions, you can get the incremental compile support in blaze. https://mondrian.corp.google.com/changelist/21809612 -Eric. On Thu, Jun 9, 2011 at 5:46 PM, cromwell...@google.com wrote: Overall LGTM. I had to update CFA in my recent CL on class literal optimization to treat an invocation of Object.getClass() as rescuing the class literals of any instantiated types as well as to handle the new Immortal CodeGenTypes. We may have to revisit the UnifyAstVisitor, since it may need special handling for the Immortal types, as well as class literal references, since GenerateJavaAST no longer overrides getClass() for every time in my latest patch. http://gwt-code-reviews.**appspot.com/1453810/http://gwt-code-reviews.appspot.com/1453810/ -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: ForeachStatement fix for GwtAstBuilder (issue1450814)
LGTM (but I'd love a comment, and a detailed TODO for the test-case which triggered this fix, so that if someone wants to create a unit test, the scenario is clear). Also, I'm curious, if GenerateJavaAST already has this hack, why didn't GwtAstBuilder also have it initially? Any point in going ahead with adding the caching of the Field also to GenerateJavaAST here? Or are we deprecating GenerateJavaAST eventually anyway? http://gwt-code-reviews.appspot.com/1450814/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java File dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java (right): http://gwt-code-reviews.appspot.com/1450814/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java#newcode2776 dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java:2776: InternalCompilerException.preload(); How about a comment describing why this is needed here. http://gwt-code-reviews.appspot.com/1450814/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Updated rpc generator result caching for field serializers to use type signature instead of last... (issue1446818)
http://gwt-code-reviews.appspot.com/1446818/diff/1/user/src/com/google/gwt/user/rebind/rpc/TypeSerializerCreator.java File user/src/com/google/gwt/user/rebind/rpc/TypeSerializerCreator.java (right): http://gwt-code-reviews.appspot.com/1446818/diff/1/user/src/com/google/gwt/user/rebind/rpc/TypeSerializerCreator.java#newcode388 user/src/com/google/gwt/user/rebind/rpc/TypeSerializerCreator.java:388: signature = ((JRealClassType) signatureType).getTypeStrongHash(); by the way, here's the original BSM review, where we discuss this (the top level comments for the review): http://gwt-code-reviews.appspot.com/1359802 In thinking back now, I'm not sure why BSM didn't care about annotation changes? http://gwt-code-reviews.appspot.com/1446818/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: This patch substantially reduces the overhead of Java types in the output by minimizing vtable s... (issue1447821)
I'm about a 3rd of the way through this, but here's some initial comments. I'll be able to spend more time on this evening http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java File dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java (right): http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java#newcode312 dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java:312: // prune all Object.getClass() overrides and replace with inline field ref It's a shame this can't be called earlier on, so that optimizers can take advantage of the loss of polymorphism with getClass()... http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java File dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java (right): http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java#newcode937 dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:937: } whitespace http://gwt-code-reviews.appspot.com/1447821/diff/3001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java#newcode995 dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:995: This seems a bit expensive (iterating through all instantiated types). It looks like it could be called many times per optimization pass? For instance, traverseFrom() is called multiple times in a loop, in traverseEntryMethods(). Is there any impact on execution time, for large projects? It seems like it should only be called once per CFA pass, no? Also, traverseFrom is called in many places external to this class, in tight loops iterating over multiple methods, etc. http://gwt-code-reviews.appspot.com/1447821/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: ForeachStatement fix for GwtAstBuilder (issue1450814)
I just went ahead and added test coverage. Meh. No point in caching the field in GenerateJavaAST, it's going away soon. I don't remember why I didn't copy the hack, I think I was trying to be more clever about it to not have to use reflection, but it broke down in this case. http://gwt-code-reviews.appspot.com/1450814/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java File dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java (right): http://gwt-code-reviews.appspot.com/1450814/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java#newcode2776 dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java:2776: InternalCompilerException.preload(); You mean the InternalCompilerException.preload() call? The target method has spot-on Javadoc already. http://gwt-code-reviews.appspot.com/1450814/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10313 committed - ForeachStatement fix for GwtAstBuilder....
Revision: 10313 Author: sco...@google.com Date: Fri Jun 10 05:39:40 2011 Log: ForeachStatement fix for GwtAstBuilder. Fixes a compile error that occurs with code like this: interface SubIteratorE extends IteratorE { } class Foo implements IterableString { @Override public SubIteratorString iterator() { return null; } } We were trying to find 'SubIterator.next()' which isn't modeled in JDT. It turns out JDT has the right answer in a private field. http://gwt-code-reviews.appspot.com/1450814/ Review by: jbrosenb...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10313 Modified: /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java /trunk/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java Thu Jun 9 11:46:19 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java Fri Jun 10 05:39:40 2011 @@ -199,6 +199,7 @@ import org.eclipse.jdt.internal.compiler.lookup.VariableBinding; import org.eclipse.jdt.internal.compiler.util.Util; +import java.lang.reflect.Field; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -979,16 +980,7 @@ // Perform any implicit reference type casts (due to generics). // Note this occurs before potential unboxing. if (elementVar.getType() != javaLangObject) { -/* - * Compute the collection element type by walking the iterator() - * method, which may be parameterized. - */ -ReferenceBinding collectionType = (ReferenceBinding) x.collection.resolvedType; -MethodBinding iteratorMethod = -collectionType.getExactMethod(ITERATOR, NO_TYPES, cudScope); -ReferenceBinding iteratorType = (ReferenceBinding) iteratorMethod.returnType; -MethodBinding nextMethod = iteratorType.getMethods(NEXT)[0]; -TypeBinding collectionElementType = nextMethod.returnType; +TypeBinding collectionElementType = (TypeBinding) collectionElementTypeField.get(x); JType toType = typeMap.get(collectionElementType); assert (toType instanceof JReferenceType); elementDecl.initializer = maybeCast(toType, elementDecl.initializer); @@ -2762,6 +2754,12 @@ private static final char[] _STRING = _String.toCharArray(); private static final String ARRAY_LENGTH_FIELD = length; + + /** + * Reflective access to {@link ForeachStatement#collectionElementType}. + */ + private static final Field collectionElementTypeField; + private static final char[] CREATE_VALUE_OF_MAP = createValueOfMap.toCharArray(); private static final char[] HAS_NEXT = hasNext.toCharArray(); private static final char[] ITERATOR = iterator.toCharArray(); @@ -2775,6 +2773,13 @@ static { InternalCompilerException.preload(); +try { + collectionElementTypeField = ForeachStatement.class.getDeclaredField(collectionElementType); + collectionElementTypeField.setAccessible(true); +} catch (Exception e) { + throw new RuntimeException( + Unexpectedly unable to access ForeachStatement.collectionElementType via reflection, e); +} } static String dotify(char[][] name) { === --- /trunk/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java Mon Apr 19 09:23:34 2010 +++ /trunk/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java Fri Jun 10 05:39:40 2011 @@ -17,6 +17,9 @@ import com.google.gwt.junit.client.GWTTestCase; +import java.util.Arrays; +import java.util.Iterator; + /** * This test is intended to exercise as many code paths and node types as * possible in the Java to JavaScript compiler. This test is not at all intended @@ -412,9 +415,66 @@ } private void testForeachStatement() { + // Array of primitive. for (int q : ia) { i = q; } + // Array of primitive with unboxing. + for (Integer q : ia) { +i = q; + } + // Array of object. + for (String str : sa) { +s = str; + } + // Iterable. + for (Object obj : Arrays.asList(new Object(), new Object())) { +o = obj; + } + // Iterable with unboxing. + for (int q : Arrays.asList(1, 2, 3)) { +i = q; + } + // Iterable with generic cast. + for (String str : Arrays.asList(sa)) { +s = str; + } + // Iterable with array element. + for (String[] stra : Arrays.asList(sa, sa, sa)) { +s = sa[0]; + } + // Iterable Iterator subclass. + class SubIteratorT implements IteratorT { +private final IteratorT it; + +public SubIterator(IteratorT it) { + this.it = it; +} + +@Override +public boolean hasNext() { + return it.hasNext();
[gwt-contrib] [google-web-toolkit] r10314 committed - Error reporting for UnifyAst....
Revision: 10314 Author: sco...@google.com Date: Fri Jun 10 05:54:05 2011 Log: Error reporting for UnifyAst. Report errors cleanly and don't blow up. http://gwt-code-reviews.appspot.com/1451814/ Review by: zun...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10314 Modified: /trunk/dev/core/src/com/google/gwt/dev/CompileTaskRunner.java /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java /trunk/dev/core/test/com/google/gwt/dev/jjs/impl/AdditionalTypeProviderDelegateTest.java === --- /trunk/dev/core/src/com/google/gwt/dev/CompileTaskRunner.java Wed Oct 28 10:56:52 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/CompileTaskRunner.java Fri Jun 10 05:54:05 2011 @@ -17,6 +17,7 @@ import com.google.gwt.core.ext.TreeLogger; import com.google.gwt.core.ext.UnableToCompleteException; +import com.google.gwt.dev.javac.CompilationProblemReporter; import com.google.gwt.dev.shell.log.SwingLoggerPanel; import com.google.gwt.dev.util.log.PrintWriterTreeLogger; @@ -88,7 +89,7 @@ } catch (UnableToCompleteException e) { // Assume logged. } catch (Throwable e) { - logger.log(TreeLogger.ERROR, Unexpected, e); + CompilationProblemReporter.logAndTranslateException(logger, e); } return false; } === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java Thu Jun 9 11:46:19 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java Fri Jun 10 05:54:05 2011 @@ -17,6 +17,7 @@ import com.google.gwt.core.ext.TreeLogger; import com.google.gwt.core.ext.UnableToCompleteException; +import com.google.gwt.dev.javac.CompilationProblemReporter; import com.google.gwt.dev.javac.CompilationUnit; import com.google.gwt.dev.javac.CompiledClass; import com.google.gwt.dev.jdt.RebindPermutationOracle; @@ -70,6 +71,7 @@ import com.google.gwt.dev.js.ast.JsProgram; import com.google.gwt.dev.js.ast.JsRootScope; import com.google.gwt.dev.util.JsniRef; +import com.google.gwt.dev.util.Name; import com.google.gwt.dev.util.Name.BinaryName; import com.google.gwt.dev.util.Name.InternalName; import com.google.gwt.dev.util.collect.IdentityHashSet; @@ -189,7 +191,7 @@ @Override public void endVisit(JExpression x, Context ctx) { - assert !x.getType().isExternal(); + assert !x.getType().isExternal() || errorsFound; } @Override @@ -226,7 +228,10 @@ public void endVisit(JMethodCall x, Context ctx) { // Already resolved during visit(). JMethod target = x.getTarget(); - assert !target.isExternal(); + if (target.isExternal()) { +assert errorsFound; +return; + } if (magicMethodCalls.contains(target)) { JExpression result = handleMagicMethodCall(x); if (result == null) { @@ -399,7 +404,9 @@ JsniRef ref = JsniRef.parse(stringValue); if (ref != null) { -searchForType(ref.className()); +if (Name.isBinaryName(ref.className())) { + searchForType(ref.className()); +} node = JsniRefLookup.findJsniRefTarget(ref, program, new JsniRefLookup.ErrorReporter() { public void reportError(String errMsg) { error(x, errMsg); @@ -463,6 +470,7 @@ private final MapString, CompiledClass classFileMap; private boolean errorsFound = false; + private final SetCompilationUnit failedUnits = new IdentityHashSetCompilationUnit(); private final MapString, JField fieldMap = new HashMapString, JField(); /** @@ -518,7 +526,7 @@ } assimilateUnit(cc.getUnit()); type = program.getFromTypeMap(sourceTypeName); -assert type != null; +assert type != null || errorsFound; } } } @@ -650,8 +658,16 @@ } private void assimilateUnit(CompilationUnit unit) { -// TODO: error checking. +if (unit.isError()) { + if (failedUnits.add(unit)) { +CompilationProblemReporter.reportErrors(logger, unit, false); +errorsFound = true; + } + return; +} +// TODO(zundel): ask for a recompile if deserialization fails? ListJDeclaredType types = unit.getTypes(); +assert containsAllTypes(unit, types); for (JDeclaredType t : types) { program.addType(t); } @@ -711,6 +727,19 @@ } } } + + private boolean containsAllTypes(CompilationUnit unit, ListJDeclaredType types) { +SetString binaryTypeNames = new HashSetString(); +for (JDeclaredType type : types) { + binaryTypeNames.add(type.getName()); +} +for (CompiledClass cc : unit.getCompiledClasses()) { + if (!binaryTypeNames.contains(InternalName.toBinaryName(cc.getInternalName( { +return false; + } +} +return true; + } private void error(JNode x, String errorMessage) { errorsFound = true; @@ -730,9 +759,13 @@ } private void flowInto(JField field) { -if
[gwt-contrib] Re: Resolve PotentialElement children before inserting them into a container. (issue1454810)
http://gwt-code-reviews.appspot.com/1454810/diff/3001/user/src/com/google/gwt/user/client/DOM.java File user/src/com/google/gwt/user/client/DOM.java (right): http://gwt-code-reviews.appspot.com/1454810/diff/3001/user/src/com/google/gwt/user/client/DOM.java#newcode974 user/src/com/google/gwt/user/client/DOM.java:974: String value, int index) { Seems like the assert line should be added here too. assert !PotentialElement.isPotential(selectElem) : Cannot insert into a PotentialElement; http://gwt-code-reviews.appspot.com/1454810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: UiBinder - register custom ElementParser (issue1454804)
As soon as we have done that, we can't make changes to UiBinderWriter and all the other classes the parsers actually talk to, nor can we make sweeping changes to the code they generate. If the problem is retrofitting widgets you don't own, would a non-annotation alternative to UiChild get the job done? Perhaps a config file, perhaps a builder of some kind? On Thu, Jun 9, 2011 at 8:16 PM, jus...@jhickman.com wrote: Unfortunately @UiChild doesn't handle the flexibility I need, especially in cases where you are wanting to write parsers for a 3rd party widget library and do not have the ability to modify the source to include annotations. Is there any way of convincing you to make it more extendable? Even without providing an official mechanism for registering ElementParsers, doing small things such as the following would do wonders: * In UiBinderGenerator, extract the instantiation of the UiBinderWriter into a protected method so that developers can subclass the UiBinderGenerator and construct their own subclass of UiBinderWriter * In UiBinderWriter, make addElementParser() protected rather than private. http://gwt-code-reviews.**appspot.com/1454804/http://gwt-code-reviews.appspot.com/1454804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: UiBinder - register custom ElementParser (issue1454804)
On Fri, Jun 10, 2011 at 7:22 PM, Ray Ryan rj...@google.com wrote: As soon as we have done that, we can't make changes to UiBinderWriter and all the other classes the parsers actually talk to, nor can we make sweeping changes to the code they generate. If the problem is retrofitting widgets you don't own, would a non-annotation alternative to UiChild get the job done? Perhaps a config file, perhaps a builder of some kind? Particularly as you should be able to make an IsWidget class with @UiChild methods as a lightweight wrapper around the widget, kind of a builder (similar to PotentialElement but at a Widget level). -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Add ServerFailure.getRequestContext(). (issue1451815)
Reviewers: rjrjr, jasonhall, Description: Add ServerFailure.getRequestContext(). Provide getters for Request - RequestContext - RequestFactory - RequestTransport. Add fakes for modified interfaces. Patch by: bobv Review by: rjrjr Suggested by: jasonhall Please review this at http://gwt-code-reviews.appspot.com/1451815/ Affected files: M user/src/com/google/web/bindery/requestfactory/shared/Request.java M user/src/com/google/web/bindery/requestfactory/shared/RequestContext.java M user/src/com/google/web/bindery/requestfactory/shared/RequestFactory.java M user/src/com/google/web/bindery/requestfactory/shared/RequestTransport.java M user/src/com/google/web/bindery/requestfactory/shared/ServerFailure.java M user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequest.java M user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java A user/src/com/google/web/bindery/requestfactory/shared/testing/FakeRequest.java M user/src/com/google/web/bindery/requestfactory/shared/testing/FakeRequestContext.java A user/src/com/google/web/bindery/requestfactory/shared/testing/FakeRequestFactory.java A user/src/com/google/web/bindery/requestfactory/shared/testing/FakeRequestTransport.java M user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: UiBinder - register custom ElementParser (issue1454804)
Exactly. And I was thinking we could introduce something like BuildsWidgetW extends IsWidget extends IsWidget. UiBinder could learn to honor the setters and such of the underlying widget as well as the BuildsWidget. On Fri, Jun 10, 2011 at 10:41 AM, Thomas Broyer t.bro...@gmail.com wrote: On Fri, Jun 10, 2011 at 7:22 PM, Ray Ryan rj...@google.com wrote: As soon as we have done that, we can't make changes to UiBinderWriter and all the other classes the parsers actually talk to, nor can we make sweeping changes to the code they generate. If the problem is retrofitting widgets you don't own, would a non-annotation alternative to UiChild get the job done? Perhaps a config file, perhaps a builder of some kind? Particularly as you should be able to make an IsWidget class with @UiChild methods as a lightweight wrapper around the widget, kind of a builder (similar to PotentialElement but at a Widget level). -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Resolve PotentialElement children before inserting them into a container. (issue1454810)
LGTM On Fri, Jun 10, 2011 at 10:29 AM, jul...@google.com wrote: Uploaded patch with assertion in DOM.insertListItem as patch set 3. http://gwt-code-reviews.**appspot.com/1454810/diff/3001/** user/src/com/google/gwt/user/**client/DOM.javahttp://gwt-code-reviews.appspot.com/1454810/diff/3001/user/src/com/google/gwt/user/client/DOM.java File user/src/com/google/gwt/user/**client/DOM.java (right): http://gwt-code-reviews.**appspot.com/1454810/diff/3001/** user/src/com/google/gwt/user/**client/DOM.java#newcode974http://gwt-code-reviews.appspot.com/1454810/diff/3001/user/src/com/google/gwt/user/client/DOM.java#newcode974 user/src/com/google/gwt/user/**client/DOM.java:974: String value, int index) { On 2011/06/10 17:12:23, rjrjr wrote: Seems like the assert line should be added here too. assert !PotentialElement.isPotential(**selectElem) : Cannot insert into a PotentialElement; Done. http://gwt-code-reviews.**appspot.com/1454810/http://gwt-code-reviews.appspot.com/1454810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds setTagName to PotentialElement, so that PotentialElement instances can be passed to the as(... (issue1451810)
On 2011/06/08 17:42:53, rdcastro wrote: LGTM http://gwt-code-reviews.appspot.com/1451810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Suport polymorphic return values in RequestFactory. (issue1453811)
LGTM Wow. That was a lot less work than I expected. Patch description is oddly restrictive, polymorphic return values. You also support polymorphic arguments, right? http://gwt-code-reviews.appspot.com/1453811/diff/1/user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java File user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java (right): http://gwt-code-reviews.appspot.com/1453811/diff/1/user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java#newcode251 user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java:251: poison(Unable to find extra type %s in TypeOracle, clazz.getCanonicalName()); TypeOracle is an implementation detail, odd to see it called out in a user facing error message. How about Unknown class %s in @ExtraTypes? http://gwt-code-reviews.appspot.com/1453811/diff/1/user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java#newcode289 user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java:289: builder.setSuperProxyTyes(superTypes); Tyes http://gwt-code-reviews.appspot.com/1453811/diff/1/user/test/com/google/web/bindery/requestfactory/server/RequestFactoryPolymorphicJreTest.java File user/test/com/google/web/bindery/requestfactory/server/RequestFactoryPolymorphicJreTest.java (right): http://gwt-code-reviews.appspot.com/1453811/diff/1/user/test/com/google/web/bindery/requestfactory/server/RequestFactoryPolymorphicJreTest.java#newcode62 user/test/com/google/web/bindery/requestfactory/server/RequestFactoryPolymorphicJreTest.java:62: * method declared to return Integer. Are such cases this subtle a fail in real life? Seems like this could be maddening to debug. http://gwt-code-reviews.appspot.com/1453811/diff/1/user/test/com/google/web/bindery/requestfactory/shared/TestRequestFactory.java File user/test/com/google/web/bindery/requestfactory/shared/TestRequestFactory.java (right): http://gwt-code-reviews.appspot.com/1453811/diff/1/user/test/com/google/web/bindery/requestfactory/shared/TestRequestFactory.java#newcode19 user/test/com/google/web/bindery/requestfactory/shared/TestRequestFactory.java:19: * Creates TestFooPolymorphicRequest. Does this test serve any purpose any more? If so, could you spell out what it is? http://gwt-code-reviews.appspot.com/1453811/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add ServerFailure.getRequestContext(). (issue1451815)
LGTM http://gwt-code-reviews.appspot.com/1451815/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add ServerFailure.getRequestContext(). (issue1451815)
http://gwt-code-reviews.appspot.com/1451815/diff/1/user/src/com/google/web/bindery/requestfactory/shared/Request.java File user/src/com/google/web/bindery/requestfactory/shared/Request.java (right): http://gwt-code-reviews.appspot.com/1451815/diff/1/user/src/com/google/web/bindery/requestfactory/shared/Request.java#newcode19 user/src/com/google/web/bindery/requestfactory/shared/Request.java:19: * Implemented by the request objects created by this factory. lame http://gwt-code-reviews.appspot.com/1451815/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] inline imgs with safeuri
Hi, I'm using trunk and noticed that inline img srcs are broken. E.g. in a ui.xml file with: img src={resources.theImage.getUrl}/ Leads to JavaScript like: sb.impl.string += ' src='; $append_3(sb, htmlEscape( isSafeUri('data:image/...') ? 'data:image/...' : '#')); However, isSafeUri doesn't treat the data: scheme as safe, so the src attribute ends up being #. Switching the img to a gwt:Image restores the functionality, because the js just does f_Image.state.setUrl(f_Image, 'data:image/...') and no safe uri checking is done. I also tried changing it to src={...theImage.getSafeUri}, thinking that might avoid the isSafeUri check, but uibinder failed saying SafeUri can't be used as a String. I'm not an expert on SafeUri, so am unsure whether data: just needs to be added to the isSafeUri check or if something else should be done. Thanks, Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10315 committed - Resolve PotentialElement children before inserting them into a contain...
Revision: 10315 Author: jul...@google.com Date: Fri Jun 10 09:32:40 2011 Log: Resolve PotentialElement children before inserting them into a container. Before this patch, if someone tried to insertChild or insertBefore a renderable child into a renderable container, a DOM exception was thrown, as the element could not be found in the document. This patch follows the same pattern as appendChild: it first tries to resolve the child being inserted to get the real element. While in the neighborhood, fixed some Javadoc tags related to PotentialElement. Review at http://gwt-code-reviews.appspot.com/1454810 http://code.google.com/p/google-web-toolkit/source/detail?r=10315 Modified: /trunk/user/src/com/google/gwt/user/client/DOM.java === --- /trunk/user/src/com/google/gwt/user/client/DOM.java Mon Jun 6 04:09:34 2011 +++ /trunk/user/src/com/google/gwt/user/client/DOM.java Fri Jun 10 09:32:40 2011 @@ -53,11 +53,14 @@ /** * Appends one element to another's list of children. - * If the child element is a {@link PotentialElement}, it is first resolved - * {@see PotentialElement#resolve(Element)}. + * p + * If the child element is a {@link com.google.gwt.user.client.ui.PotentialElement}, it is first + * resolved. + * /p * * @param parent the parent element * @param child its new child + * @see com.google.gwt.user.client.ui.PotentialElement#resolve(Element) */ public static void appendChild(Element parent, Element child) { assert !PotentialElement.isPotential(parent) : Cannot append to a PotentialElement; @@ -914,27 +917,45 @@ /** * Inserts an element as a child of the given parent element, before another * child of that parent. + * p + * If the child element is a {@link com.google.gwt.user.client.ui.PotentialElement}, it is first + * resolved. + * /p * * @param parent the parent element * @param child the child element to add to codeparent/code * @param before an existing child element of codeparent/code before which * codechild/code will be inserted + * @see com.google.gwt.user.client.ui.PotentialElement#resolve(Element) */ public static void insertBefore(Element parent, Element child, Element before) { -parent.insertBefore(child, before); +assert !PotentialElement.isPotential(parent) : Cannot insert into a PotentialElement; + +// If child isn't a PotentialElement, resolve() returns +// the Element itself. +parent.insertBefore(PotentialElement.resolve(child).Element cast(), before); } /** * Inserts an element as a child of the given parent element. + * p + * If the child element is a {@link com.google.gwt.user.client.ui.PotentialElement}, it is first + * resolved. + * /p * * @param parent the parent element * @param child the child element to add to codeparent/code * @param index the index before which the child will be inserted (any value * greater than the number of existing children will cause the child * to be appended) + * @see com.google.gwt.user.client.ui.PotentialElement#resolve(Element) */ public static void insertChild(Element parent, Element child, int index) { -impl.insertChild(parent, child, index); +assert !PotentialElement.isPotential(parent) : Cannot insert into a PotentialElement; + +// If child isn't a PotentialElement, resolve() returns +// the Element itself. +impl.insertChild(parent, PotentialElement.resolve(child).Element cast(), index); } /** @@ -951,6 +972,8 @@ */ public static void insertListItem(Element selectElem, String item, String value, int index) { +assert !PotentialElement.isPotential(selectElem) : Cannot insert into a PotentialElement; + SelectElement select = selectElem.SelectElement cast(); OptionElement option = Document.get().createOptionElement(); option.setText(item); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add ServerFailure.getRequestContext(). (issue1451815)
Fixed lame comment and committed at r10316. http://gwt-code-reviews.appspot.com/1451815/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10316 committed - Add ServerFailure.getRequestContext()....
Revision: 10316 Author: b...@google.com Date: Fri Jun 10 10:21:52 2011 Log: Add ServerFailure.getRequestContext(). Provide getters for Request - RequestContext - RequestFactory - RequestTransport. Add fakes for modified interfaces. Issue 6469. Review at http://gwt-code-reviews.appspot.com/1451815/ Patch by: bobv Review by: rjrjr Suggested by: jasonhall http://code.google.com/p/google-web-toolkit/source/detail?r=10316 Added: /trunk/user/src/com/google/web/bindery/requestfactory/shared/testing/FakeRequest.java /trunk/user/src/com/google/web/bindery/requestfactory/shared/testing/FakeRequestFactory.java /trunk/user/src/com/google/web/bindery/requestfactory/shared/testing/FakeRequestTransport.java Modified: /trunk/user/src/com/google/web/bindery/requestfactory/shared/Request.java /trunk/user/src/com/google/web/bindery/requestfactory/shared/RequestContext.java /trunk/user/src/com/google/web/bindery/requestfactory/shared/RequestFactory.java /trunk/user/src/com/google/web/bindery/requestfactory/shared/RequestTransport.java /trunk/user/src/com/google/web/bindery/requestfactory/shared/ServerFailure.java /trunk/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequest.java /trunk/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java /trunk/user/src/com/google/web/bindery/requestfactory/shared/testing/FakeRequestContext.java /trunk/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java === --- /dev/null +++ /trunk/user/src/com/google/web/bindery/requestfactory/shared/testing/FakeRequest.java Fri Jun 10 10:21:52 2011 @@ -0,0 +1,67 @@ +/* + * Copyright 2011 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.web.bindery.requestfactory.shared.testing; + +import com.google.web.bindery.requestfactory.shared.Receiver; +import com.google.web.bindery.requestfactory.shared.Request; +import com.google.web.bindery.requestfactory.shared.RequestContext; + +/** + * A no-op implementation of Request that can be used as a base type for writing + * unit tests. + * + * @param T The return type of objects in the corresponding response. + */ +public class FakeRequestT implements RequestT { + + /** + * No-op. + */ + @Override + public void fire() { + } + + /** + * No-op. + */ + @Override + public void fire(Receiver? super T receiver) { + } + + /** + * Returns {@code null}. + */ + @Override + public RequestContext getRequestContext() { +return null; + } + + /** + * Returns {@code null}. + */ + @Override + public RequestContext to(Receiver? super T receiver) { +return null; + } + + /** + * Returns {@code this}. + */ + @Override + public RequestT with(String... propertyRefs) { +return this; + } +} === --- /dev/null +++ /trunk/user/src/com/google/web/bindery/requestfactory/shared/testing/FakeRequestFactory.java Fri Jun 10 10:21:52 2011 @@ -0,0 +1,118 @@ +/* + * Copyright 2011 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.web.bindery.requestfactory.shared.testing; + +import com.google.web.bindery.event.shared.EventBus; +import com.google.web.bindery.requestfactory.shared.EntityProxy; +import com.google.web.bindery.requestfactory.shared.EntityProxyId; +import com.google.web.bindery.requestfactory.shared.ProxySerializer; +import com.google.web.bindery.requestfactory.shared.ProxyStore; +import com.google.web.bindery.requestfactory.shared.Request; +import com.google.web.bindery.requestfactory.shared.RequestFactory; +import com.google.web.bindery.requestfactory.shared.RequestTransport; + +/** + * A no-op implementation of {@link RequestFactory} that can be used for + * building mocks. + */ +public class FakeRequestFactory implements RequestFactory { + + private EventBus eventBus; +
[gwt-contrib] Fixes a problem where inheriting LoggingDisabled (like RequestFactory does) clobbers the value o... (issue1451816)
Reviewers: unnurg, Description: Fixes a problem where inheriting LoggingDisabled (like RequestFactory does) clobbers the value of gwt.logging.enabled for downstream modules. Without this change RequestFactory apps were forced to set gwt.logging.enabled themselves, instead of just inheriting Logging.gwt.xml Please review this at http://gwt-code-reviews.appspot.com/1451816/ Affected files: M samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml M user/src/com/google/gwt/logging/Logging.gwt.xml M user/src/com/google/gwt/logging/LoggingDisabled.gwt.xml -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixes a problem where inheriting LoggingDisabled (like RequestFactory does) clobbers the value o... (issue1451816)
On 2011/06/10 21:08:17, rjrjr wrote: LGTM http://gwt-code-reviews.appspot.com/1451816/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10318 committed - Created wiki page through web user interface.
Revision: 10318 Author: b...@google.com Date: Fri Jun 10 14:24:57 2011 Log: Created wiki page through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=10318 Added: /wiki/RequestFactory_2_4.wiki === --- /dev/null +++ /wiki/RequestFactory_2_4.wiki Fri Jun 10 14:24:57 2011 @@ -0,0 +1,75 @@ +#summary A summary of RequestFactory changes in GWT 2.4 + += !RequestFactory changes in GWT 2.4 = + +[http://code.google.com/p/google-web-toolkit/issues/list?can=2q=Milestone%3D2_4+requestfactorycolspec=ID+Type+Status+Owner+Milestone+Summary+Starscells=tiles Issue tracker search] + +wiki:toc / + +== Overview == + * (Issue 5367) RequestFactory now supports polymorphic return values. + * (Issue 5394) Make type and operation tokens more compact +* Method overloads are now supported in RequestContexts. + * (Issue 5901) RequestFactory now uses the `javax.validation.ConstraintViolation` interface + * (Issue 6035) Proxy interfaces can be composed + * (Issue 6139) Memory leak in JRE-clean implementation fixed + * (Issue 6234) RequestContext interfaces can be composed + * (Issue 6253) All RequestFactory and AutoBean interfaces have moved to the `com.google.web.bindery' namespace + * (Issue 6393) `RequestFactoryServlet.getThreadLocalServletContext()` provides access to the current HTTP request's `ServletContext` + * (Issue 6469) Provide getters for `ServerFailure - Request - RequestContext - RequestFactory - RequestTransport` + +== Polymorphism support == + +A proxy type will be available on the client: + * Referenced from a RequestContext as a Request parameter or return type. + * Referenced from a referenced proxy. + * Supertypes of referenced proxies that are proxies (i.e. assignable to EntityProxy or ValueProxy and has an @ProxyFor(Name) annotation). + * Referenced via an @ExtraTypes annotation placed on the RequestFactory, RequestContext, or a referenced proxy. +* Adding an @ExtraTypes annotation on the RequestFactory or RequestContext allows you to add subtypes to some else's proxy types. + +Type-mapping rules: + * All properties defined in a proxy type or inherited from super-interfaces must be available on the domain type. +* This allows a proxy interface to extend a mix-in interface. + * All proxies must map to a single domain type via a @ProxyFor(Name) annotation. + * The @ProxyFor of the proxy instance is used to determine which concrete type on the server to instantiate. + * Any supertypes of a proxy interface that are assignable to EntityProxy or ValueProxy and have an @ProxyFor(Name) annotation must be valid proxies. +* Given BProxy extends AProxy: if only BProxy is referenced (e.g. via @ExtraTypes), it is still permissable to create an AProxy. + * Type relationships between proxy interfaces do not require any particular type relationship between the mapped domain types. +* Given BProxy extends AProxy: it is allowable for BEntity not to be a subclass of AEntity. +* This allows for duck-type-mapping of domain objects to proxy interfaces. + * To return a domain object via a proxy interface, the declared proxy return type must map to a domain type assignable to the returned domain object. + * The specific returned proxy type will be the most-derived type assignable to the declared proxy type that also maps to the returned domain type or one of its supertypes. + +== !RequestFactorySource and Annotation Processing == + +Users who depend on RequestFactorySource must now compile their proxy +interfaces with the RequestFactory annotation processor. This tool is +bundled in the requestfactory-client.jar or available separately in +requestfactory-apt.jar. For Java 6 users, javac will automatically +detect the annotation processor. Eclipse users will need to enable +annotation processing via Project properties -- Java Compiler -- +Annotation Processing and add requestfactory-apt.jar to the list of +jars in Java Compiler -- Annotation Processing -- Factory Path. + +Users can confirm that the annotation processor is installed by +looking for a META-INF/requestFactory/typeTokens file to be generated +in the compiler's output directory. This file must be packaged into +the jar file that contains the compiled proxy classes. + +Additionally, the -Averbose=true flag can be passed to javac (or +specified in the Annotation Processing configuration UI) to enable +diagnostic output for the annotation processor. + +== !ServiceLayer changes == + +Several of the ServiceLayer.resolveX() method signatures have changed +in this release. These changes were made in order to allow the use of +obfuscated type and operation tokens to reduce payload and generated +JS size and to allow the use of overloaded method names in +RequestContext subtypes. Users who have written their own +ServiceLayerDecorator subclasses that override any of the resolveX() +methods will need
[gwt-contrib] Re: Suport polymorphic return values in RequestFactory. (issue1453811)
Both polymorphic return and parameter values are supported. Turns out that polymorphic parameters already worked. Committed at r10317. http://gwt-code-reviews.appspot.com/1453811/diff/1/user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java File user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java (right): http://gwt-code-reviews.appspot.com/1453811/diff/1/user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java#newcode251 user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java:251: poison(Unable to find extra type %s in TypeOracle, clazz.getCanonicalName()); On 2011/06/10 19:20:41, rjrjr wrote: TypeOracle is an implementation detail, odd to see it called out in a user facing error message. How about Unknown class %s in @ExtraTypes? Done. http://gwt-code-reviews.appspot.com/1453811/diff/1/user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java#newcode289 user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java:289: builder.setSuperProxyTyes(superTypes); On 2011/06/10 19:20:41, rjrjr wrote: Tyes Done. http://gwt-code-reviews.appspot.com/1453811/diff/1/user/test/com/google/web/bindery/requestfactory/server/RequestFactoryPolymorphicJreTest.java File user/test/com/google/web/bindery/requestfactory/server/RequestFactoryPolymorphicJreTest.java (right): http://gwt-code-reviews.appspot.com/1453811/diff/1/user/test/com/google/web/bindery/requestfactory/server/RequestFactoryPolymorphicJreTest.java#newcode62 user/test/com/google/web/bindery/requestfactory/server/RequestFactoryPolymorphicJreTest.java:62: * method declared to return Integer. On 2011/06/10 19:20:41, rjrjr wrote: Are such cases this subtle a fail in real life? Seems like this could be maddening to debug. Expanded the comment to explain why this normally won't happen. http://gwt-code-reviews.appspot.com/1453811/diff/1/user/test/com/google/web/bindery/requestfactory/shared/TestRequestFactory.java File user/test/com/google/web/bindery/requestfactory/shared/TestRequestFactory.java (right): http://gwt-code-reviews.appspot.com/1453811/diff/1/user/test/com/google/web/bindery/requestfactory/shared/TestRequestFactory.java#newcode19 user/test/com/google/web/bindery/requestfactory/shared/TestRequestFactory.java:19: * Creates TestFooPolymorphicRequest. On 2011/06/10 19:20:41, rjrjr wrote: Does this test serve any purpose any more? If so, could you spell out what it is? Done. http://gwt-code-reviews.appspot.com/1453811/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10319 committed - Edited wiki page RequestFactory_2_4 through web user interface.
Revision: 10319 Author: b...@google.com Date: Fri Jun 10 14:37:27 2011 Log: Edited wiki page RequestFactory_2_4 through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=10319 Modified: /wiki/RequestFactory_2_4.wiki === --- /wiki/RequestFactory_2_4.wiki Fri Jun 10 14:24:57 2011 +++ /wiki/RequestFactory_2_4.wiki Fri Jun 10 14:37:27 2011 @@ -2,7 +2,7 @@ = !RequestFactory changes in GWT 2.4 = -[http://code.google.com/p/google-web-toolkit/issues/list?can=2q=Milestone%3D2_4+requestfactorycolspec=ID+Type+Status+Owner+Milestone+Summary+Starscells=tiles Issue tracker search] +[http://code.google.com/p/google-web-toolkit/issues/list?can=1q=requestfactory%20Milestone=2_4sort=idcolspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars%20Releasenote Issue tracker search] wiki:toc / @@ -20,56 +20,34 @@ == Polymorphism support == -A proxy type will be available on the client: - * Referenced from a RequestContext as a Request parameter or return type. +A proxy type will be available on the client if it is: + * Referenced from a `RequestContext` as a `Request` parameter or return type. * Referenced from a referenced proxy. - * Supertypes of referenced proxies that are proxies (i.e. assignable to EntityProxy or ValueProxy and has an @ProxyFor(Name) annotation). - * Referenced via an @ExtraTypes annotation placed on the RequestFactory, RequestContext, or a referenced proxy. -* Adding an @ExtraTypes annotation on the RequestFactory or RequestContext allows you to add subtypes to some else's proxy types. + * A supertype of a referenced proxy that is also a proxy (i.e. assignable to `EntityProxy` or `ValueProxy` and has an `@ProxyFor(Name)` annotation). + * Referenced via an `@ExtraTypes` annotation placed on the RequestFactory, `RequestContext`, or a referenced proxy. +* Adding an `@ExtraTypes` annotation on the RequestFactory or `RequestContext` allows you to add subtypes to some else's proxy types. Type-mapping rules: * All properties defined in a proxy type or inherited from super-interfaces must be available on the domain type. * This allows a proxy interface to extend a mix-in interface. - * All proxies must map to a single domain type via a @ProxyFor(Name) annotation. - * The @ProxyFor of the proxy instance is used to determine which concrete type on the server to instantiate. - * Any supertypes of a proxy interface that are assignable to EntityProxy or ValueProxy and have an @ProxyFor(Name) annotation must be valid proxies. -* Given BProxy extends AProxy: if only BProxy is referenced (e.g. via @ExtraTypes), it is still permissable to create an AProxy. + * All proxies must map to a single domain type via a `@ProxyFor(Name)` annotation. + * The `@ProxyFor` of the proxy instance is used to determine which concrete type on the server to instantiate. + * Any supertypes of a proxy interface that are assignable to `EntityProxy` or `ValueProxy` and have an `@ProxyFor(Name)` annotation must be valid proxies. +* Given `BProxy extends AProxy`: if only `BProxy` is referenced (e.g. via `@ExtraTypes`), it is still permissible to create an `AProxy`. * Type relationships between proxy interfaces do not require any particular type relationship between the mapped domain types. -* Given BProxy extends AProxy: it is allowable for BEntity not to be a subclass of AEntity. +* Given `BProxy extends AProxy`: it is allowable for `BEntity` not to be a subclass of `AEntity`. * This allows for duck-type-mapping of domain objects to proxy interfaces. * To return a domain object via a proxy interface, the declared proxy return type must map to a domain type assignable to the returned domain object. * The specific returned proxy type will be the most-derived type assignable to the declared proxy type that also maps to the returned domain type or one of its supertypes. == !RequestFactorySource and Annotation Processing == -Users who depend on RequestFactorySource must now compile their proxy -interfaces with the RequestFactory annotation processor. This tool is -bundled in the requestfactory-client.jar or available separately in -requestfactory-apt.jar. For Java 6 users, javac will automatically -detect the annotation processor. Eclipse users will need to enable -annotation processing via Project properties -- Java Compiler -- -Annotation Processing and add requestfactory-apt.jar to the list of -jars in Java Compiler -- Annotation Processing -- Factory Path. - -Users can confirm that the annotation processor is installed by -looking for a META-INF/requestFactory/typeTokens file to be generated -in the compiler's output directory. This file must be packaged into -the jar file that contains the compiled proxy classes. - -Additionally, the -Averbose=true flag can be passed to javac (or -specified in the Annotation
[gwt-contrib] [google-web-toolkit] r10320 committed - Fixes a problem where inheriting LoggingDisabled (like RequestFactory ...
Revision: 10320 Author: rj...@google.com Date: Fri Jun 10 11:47:48 2011 Log: Fixes a problem where inheriting LoggingDisabled (like RequestFactory does) clobbers the value of gwt.logging.enabled for downstream modules. Without this change RequestFactory apps were forced to set gwt.logging.enabled themselves, instead of just inheriting Logging.gwt.xml Review at http://gwt-code-reviews.appspot.com/1451816 Review by: unn...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10320 Modified: /trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml /trunk/user/src/com/google/gwt/logging/Logging.gwt.xml /trunk/user/src/com/google/gwt/logging/LoggingDisabled.gwt.xml === --- /trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml Wed Jun 1 09:26:16 2011 +++ /trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml Fri Jun 10 11:47:48 2011 @@ -8,6 +8,12 @@ inherits name='com.google.gwt.editor.Editor'/ inherits name='com.google.gwt.sample.mobilewebapp.FormFactor'/ inherits name='com.google.web.bindery.requestfactory.RequestFactory'/ + + !-- Use GWT's java.util.logging emulation -- + inherits name=com.google.gwt.logging.Logging/ + !-- Turn off the popup log handler, which is on by default to make sure + people are very aware that they are including the logging code -- + set-property name=gwt.logging.popupHandler value=DISABLED / inherits name='com.google.gwt.sample.gaerequest.GaeRequest'/ inherits name='com.google.gwt.sample.core.Core'/ === --- /trunk/user/src/com/google/gwt/logging/Logging.gwt.xml Wed Jun 8 16:44:32 2011 +++ /trunk/user/src/com/google/gwt/logging/Logging.gwt.xml Fri Jun 10 11:47:48 2011 @@ -13,125 +13,6 @@ !-- limitations under the License. -- module - inherits name=com.google.gwt.json.JSON/ - inherits name=com.google.gwt.user.User / - inherits name=com.google.gwt.logging.LogImpl/ - source path=client / - source path=shared / - - replace-with class=com.google.gwt.logging.client.LogConfiguration.LogConfigurationImplRegular -when-type-is class=com.google.gwt.logging.client.LogConfiguration.LogConfigurationImplNull/ -when-property-is name=gwt.logging.enabled value=TRUE / - /replace-with - - - !-- Set up and handle the gwt.logging.logLevel property -- - define-property name=gwt.logging.logLevel values=ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE / - replace-with class=com.google.gwt.logging.client.DefaultLevel.All -when-type-is class=com.google.gwt.logging.client.DefaultLevel / -when-property-is name=gwt.logging.logLevel value=ALL / - /replace-with - replace-with class=com.google.gwt.logging.client.DefaultLevel.Finest -when-type-is class=com.google.gwt.logging.client.DefaultLevel / -when-property-is name=gwt.logging.logLevel value=FINEST / - /replace-with - replace-with class=com.google.gwt.logging.client.DefaultLevel.Finer -when-type-is class=com.google.gwt.logging.client.DefaultLevel / -when-property-is name=gwt.logging.logLevel value=FINER / - /replace-with - replace-with class=com.google.gwt.logging.client.DefaultLevel.Fine -when-type-is class=com.google.gwt.logging.client.DefaultLevel / -when-property-is name=gwt.logging.logLevel value=FINE / - /replace-with - replace-with class=com.google.gwt.logging.client.DefaultLevel.Config -when-type-is class=com.google.gwt.logging.client.DefaultLevel / -when-property-is name=gwt.logging.logLevel value=CONFIG / - /replace-with - replace-with class=com.google.gwt.logging.client.DefaultLevel.Info -when-type-is class=com.google.gwt.logging.client.DefaultLevel / -when-property-is name=gwt.logging.logLevel value=INFO / - /replace-with - replace-with class=com.google.gwt.logging.client.DefaultLevel.Warning -when-type-is class=com.google.gwt.logging.client.DefaultLevel / -when-property-is name=gwt.logging.logLevel value=WARNING / - /replace-with - replace-with class=com.google.gwt.logging.client.DefaultLevel.Severe -when-type-is class=com.google.gwt.logging.client.DefaultLevel / -when-property-is name=gwt.logging.logLevel value=SEVERE / - /replace-with - - - !-- Set up and handle the gwt.logging.xxxHandler properties -- - define-property name=gwt.logging.consoleHandler values=ENABLED, DISABLED / - replace-with class=com.google.gwt.logging.client.NullLogHandler -when-type-is class=com.google.gwt.logging.client.ConsoleLogHandler / -any - when-property-is name=gwt.logging.enabled value=FALSE / - when-property-is name=gwt.logging.consoleHandler value=DISABLED / -/any - /replace-with - define-property name=gwt.logging.developmentModeHandler values=ENABLED, DISABLED / - replace-with
[gwt-contrib] Re: Fixes a problem where inheriting LoggingDisabled (like RequestFactory does) clobbers the value o... (issue1451816)
r10320 http://gwt-code-reviews.appspot.com/1451816/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Clean up RequestFactoryInterfaceValidator and Deobfuscator to simplify (issue1455803)
Reviewers: rjrjr, Description: Clean up RequestFactoryInterfaceValidator and Deobfuscator to simplify ResolverServiceLayer. This allows the validator to be jettisoned in favor of a lighter-weight object. Patch by: bobv Review by: rjrjr Please review this at http://gwt-code-reviews.appspot.com/1455803/ Affected files: M user/src/com/google/web/bindery/requestfactory/server/Deobfuscator.java M user/src/com/google/web/bindery/requestfactory/server/OperationData.java M user/src/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidator.java M user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java M user/test/com/google/web/bindery/requestfactory/server/RequestFactoryInterfaceValidatorTest.java M user/test/com/google/web/bindery/requestfactory/server/RequestFactoryPolymorphicJreTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Clean up RequestFactoryInterfaceValidator and Deobfuscator to simplify (issue1455803)
LGTM http://gwt-code-reviews.appspot.com/1455803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: inline imgs with safeuri
See http://code.google.com/p/google-web-toolkit/issues/detail?id=6145 There's some additional work needed in UiBinder to better support SafeUri (generate a SafeUri argument in the generated SafeHtmlTemplates, instead of a String argument; and similarly for SafeStyles). -- http://groups.google.com/group/Google-Web-Toolkit-Contributors