Re: This application is out of date, please click the refresh button on your browser
I had the same issue. Try restarting your computer and if that doesn't fix it then search for this ERROR: Expecting version between 5 and 6 from client, got 7 in the group and you can read through what worked for me. Ash On Wed, May 25, 2011 at 10:45 PM, Jose Luis Hernandez jose.hernande...@gmail.com wrote: Hello! I have a problem with my GWT application. I deploy on Jetty server and it runs. But when I perform a server call (class on server package of GWT), the server returns an error message. The message is: 7|0|6|http://localhost/zbapp/zb_app/|A31E1254E17F9AD731856D6BE34124A2| main.java.com.gwt.app.client.GreetingService|greetServer| java.lang.String/2004016611||1|2|3|4|2|5|5|6|6| //EX[2,1, [com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/ 3936916533,This application is out of date, please click the refresh button on your browser. ( Expecting version 5 from client, got 7. )], 0,5] However, the server returns a 200 code that is OK. I have updated the browser, clear up browser cache and recompiled the application, but it does not run. What is the solution for that?? Thanks in advance! Regards! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Uncaught JavaScript exception in Chome
Hi All, I am really new to GWT and working for my first GWT WebApp. Now I have got an error in the development console from eclipse, it ONLY happens in Chrome (either the latest stable version 11 or the latest beta version 13). I have no idea what is the problem. This happens after I upgraded GWT from 2.2 to 2.3. There is nothing affected by the WebApp itself, everything works as before. In Eclipse Dev Console (UnknownFileName:-1) 2011-05-26 15:52:20,140 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 Every time I left click anywhere (on a widget or even a blank area) in the webapp. In Chrome (V13 beta) Dev Tool window (UnknownFileName:-1) 2011-05-26 15:31:10,375 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 %7Bcommon,util%7D.js:1http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/5/4a/%7Bcommon,util%7D.jsUncaught TypeError: Object #Object has no method '__gjsload__' (UnknownFileName:-1) 2011-05-26 15:34:12,156 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 chrome-extension://hmbifdmobcbjlhplmlnbjbofnnoolink/js/xl.js:111chrome-extension://hmbifdmobcbjlhplmlnbjbofnnoolink/js/xl.jsUncaught ReferenceError: xl_chrome_menu is not defined (UnknownFileName:-1) 2011-05-26 15:34:14,703 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 chrome-extension://hmbifdmobcbjlhplmlnbjbofnnoolink/js/xl.js:111chrome-extension://hmbifdmobcbjlhplmlnbjbofnnoolink/js/xl.jsUncaught ReferenceError: xl_chrome_menu is not defined (UnknownFileName:-1) 2011-05-26 15:34:18,531 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 chrome-extension://hmbifdmobcbjlhplmlnbjbofnnoolink/js/xl.js:111chrome-extension://hmbifdmobcbjlhplmlnbjbofnnoolink/js/xl.jsUncaught ReferenceError: xl_chrome_menu is not defined (Repeat) Any idea? Thanks heaps. -- You received 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: Uncaught JavaScript exception in Chome
An quick update, I have disabled all the extension in Chrome, it seems fixed most of them. I mean I will not get the errors every time by left-clicking, but only happens once I load the webapp in the browser. In Eclipse Dev Console (UnknownFileName:-1) 2011-05-26 15:52:20,140 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 In Chrome (V13 beta) Dev Tool window (UnknownFileName:-1) 2011-05-26 15:31:10,375 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 %7Bcommon,util%7D.js:1http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/5/4a/%7Bcommon,util%7D.jsUncaught TypeError: Object #Object has no method '__gjsload__' On 26 May 2011 16:06, Bin Wu b...@bluepoint.net.au wrote: Hi All, I am really new to GWT and working for my first GWT WebApp. Now I have got an error in the development console from eclipse, it ONLY happens in Chrome (either the latest stable version 11 or the latest beta version 13). I have no idea what is the problem. This happens after I upgraded GWT from 2.2 to 2.3. There is nothing affected by the WebApp itself, everything works as before. In Eclipse Dev Console (UnknownFileName:-1) 2011-05-26 15:52:20,140 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 Every time I left click anywhere (on a widget or even a blank area) in the webapp. In Chrome (V13 beta) Dev Tool window (UnknownFileName:-1) 2011-05-26 15:31:10,375 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 %7Bcommon,util%7D.js:1http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/5/4a/%7Bcommon,util%7D.jsUncaught TypeError: Object #Object has no method '__gjsload__' (UnknownFileName:-1) 2011-05-26 15:34:12,156 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 chrome-extension://hmbifdmobcbjlhplmlnbjbofnnoolink/js/xl.js:111Uncaught ReferenceError: xl_chrome_menu is not defined (UnknownFileName:-1) 2011-05-26 15:34:14,703 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 chrome-extension://hmbifdmobcbjlhplmlnbjbofnnoolink/js/xl.js:111Uncaught ReferenceError: xl_chrome_menu is not defined (UnknownFileName:-1) 2011-05-26 15:34:18,531 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 chrome-extension://hmbifdmobcbjlhplmlnbjbofnnoolink/js/xl.js:111Uncaught ReferenceError: xl_chrome_menu is not defined (Repeat) Any idea? Thanks heaps. -- Regards, Bin Wu | Software Engineer | *BluePoint *| 03 9296 5100 | 0423 710 288 | * www.bluepoint.net.au* http://www.bluepoint.net.au/ BluePoint has Gone *Google*! *Each day, thousands of companies are going Google by switching to Google Apps – a web-based suite of messaging and collaboration applications. It's all hosted by Google, and designed with security and reliability in mind, saving your company the frustrations and hassles of managing traditional IT solutions yourself.** Call BluePoint for more information or view the cloud calculator http://www.gonegoogle.com to calculate your potential business savings.* -- You received 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.
Share a Database Refrence in GWT
I am working on a GWT Application which requires connection with MySQL database. I can do it successfully for a servlet. However I require multiple RemoteServiceServlets to share a single Conection refrence as creating a new one everytime makes no sense. How can I achive this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Initialization Parameter in GWT
This link was helpfull. Problem solved. :) http://stackoverflow.com/questions/6123806/initialization-parameter-in-gwt-for-database-connection -- You received 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: PreloadedTable alternative - GWT Incubator is death?
Thanks for your response. I need to render own Widgets in the Cells - is this really the right way? Other question: Is there a way tp fetch the cell on a PreloadedTable if I click on it? Best Regards! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: This application is out of date, please click the refresh button on your browser
Hi! I have changed the libraries and the error is disappeared. However, the error changes. Now my error is: //EX[2,1, [com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/ 3936916533,Could not locate requested interface 'main.java.com.gwt.app.client.GreetingService' in default classloader],0,7] But the interface is in classloader. I do not why the application is unable to get the interface. I need some help. Regards! On May 26, 8:01 am, Ashwani Gupta ashwani...@gmail.com wrote: I had the same issue. Try restarting your computer and if that doesn't fix it then search for this ERROR: Expecting version between 5 and 6 from client, got 7 in the group and you can read through what worked for me. Ash On Wed, May 25, 2011 at 10:45 PM, Jose Luis Hernandez jose.hernande...@gmail.com wrote: Hello! I have a problem with my GWT application. I deploy on Jetty server and it runs. But when I perform a server call (class on server package of GWT), the server returns an error message. The message is: 7|0|6|http://localhost/zbapp/zb_app/|A31E1254E17F9AD731856D6BE34124A2| main.java.com.gwt.app.client.GreetingService|greetServer| java.lang.String/2004016611||1|2|3|4|2|5|5|6|6| //EX[2,1, [com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/ 3936916533,This application is out of date, please click the refresh button on your browser. ( Expecting version 5 from client, got 7. )], 0,5] However, the server returns a 200 code that is OK. I have updated the browser, clear up browser cache and recompiled the application, but it does not run. What is the solution for that?? Thanks in advance! Regards! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Share a Database Refrence in GWT
Do I need something like Struts? I dont want over complex architecture. I have no prior experience with struts Framework. -- You received 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.
force a node open on a cell tree (GWT 2.3)
Hi I'm doing some common stuff, i.e manage a tree where the user can add and remove nodes. To the right of the tree the user sees an inspector that allows to sees and change detailled propery about the item currently selected in the tree. To add an item, the user selects a node and clicks a (+) button. At that time, the user expects to see the new node, and expects it to be selected so that he can immediatly fills the properties in the inspector. The problem is: when the user selects a closed node and clicks that (+) button, he naturally expects that node to automatically open so to show the newly created (and selected) child node. This does not happen, and I dont see how I can have this happen. So the question is: using a standard GWT 2.3 celltree, how can force a given node to be open ? thanks in advance. -- cd -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Issue in method anonymous class in GWT
Thanks Jen...if u can give me some example of GWT.runAsync...then it wud be little helpful to me On May 24, 2:13 pm, Jens jens.nehlme...@gmail.com wrote: No I assumed you call your model.setRecords() method inside the model() method (because thats the only place where you can call it). So in my example the call label.setText() would by the model.setRecords() call in your example. It has to be executed in order. Just imagine your anonymous inner class has a getter and possibly does some calculations that have to be done and the result of that calculation is used in you outer model() method. Java and GWT's Java - Javascript compiler can not rearrange that flow because it would easily result in broken code. Using GWT.runAsync or Scheduler.get() in your model() method would be the only way to break this flow. -- You received 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.
activities - places with more complex layouts
i just tried to implement one little part of my little app with activities and places (before i tried MVP Part2https://groups.google.com/forum/#%21topic/google-web-toolkit/PYzmI2Ur34c). while this was nearly no problem i stumbled on refactoring/redesigning the rest - the main layout, entry point class and so on. this problems don't arose by using views and presenter since this concepts are very use case related i think (one v/p-pair for each use case?!). but with activities and places the hole application management/ transition between use cases are involved. so i am asking me for what elements i should implement activity/place/view/Containers that only AcceptsOneWidget. In my case my main layout is a tab layout. each tab stands for a sub application (different apps with different purposes). so if i want the tabs bookmarkable (and log tab changes in history probably?!) how to layout the app. what should the main tab layout become - a view that accepts n widgets? or a simple tab layout with n tabs - each AcceptsOneWidget? what should the content of each tab become - a place with an activity for the sub-app? at the moment i only want to implement one sub-app with docklayoutpanel. the real things of each app happen in children of this layout panel. For example the west-side is a stacklayoutpanel and the one use-case i implemented so far (activity/place/view) is a child panel of this stack. So how to layout more complex layouts in general, using activities and places? Or how should i layout my app? thx 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: Validation-api-1.0.0, Doesn't work
Hi, I have a new error : [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.ExceptionInInitializerError at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:160) at com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java: 169) at com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java: 233) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java: 94) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.RuntimeException: Unable to get Unsafe instance at com.google.gwt.rpc.server.CommandSerializationUtil.clinit(CommandSerializationUtil.java: 457) ... 35 more Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.misc) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166) at java.lang.SecurityManager.checkPackageAccess(Unknown Source) at java.lang.ClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.lang.ClassLoader.checkPackageAccess(Unknown Source) at com.google.gwt.rpc.server.CommandSerializationUtil.clinit(CommandSerializationUtil.java: 444) ... 35 more What's wrong ? On 25 mai, 22:14, MaximeMularz max...@mularz.fr wrote: Sorry, I don't understand your implementation could you please give me more details ? On 25 mai, 21:31, Nick Chalko ncha...@google.com wrote: You will need to do something like this. public class ExposeImpl implements IsSerializable { @SuppressWarnings(unused) private ConstraintViolationImpl? constraintViolationImpl; @SuppressWarnings(unused) private PathImpl pathIpml; @SuppressWarnings(unused) private HashSet? hashSet; } And then Create a dummy
Re: using GWT with flex?
Well one the selling argument of most GWT-based framework is no plug in required or based on open standard And i think it s a good one. Flex needs Flash and since Steve Jobs was so nice to Flash the popularity of Flash is schrinking a bit :) Also because there is no way around MXML/AS3 to build Flex applications(atleast until gwt4air), The UI of your application and the backend will be implemented in different languages, meaning you will need a middleware like Blase DS to pass objects from and to the UI . Blase DS is great but no middleware at all is even greater. With GWT no need of a middleware. And if the backend is implemented in Java, GWT becomes superrocket :) And if you want to integrate a Flex UI Element in an existing HTML/JS/CSS based application you get into serious troubles(for the reasons i said in one of my post). One of our customer wanted to have a grid component like this one : http://www.gwt4air.appspot.com/#com.iwobanas.controls.MDataGrid with live search and PDF and Excel export. We could not find a good GWT-based solution for that. So we found ourself embedding the Flex compoment in the GWT application and having some nightmares maintaining that. Then i thought man if i could just do this using a single GWT API :) Personally i think Flex is more powerfull then any GWT library out there.(And i ve tried them all) The richness and the features of Flex are just not matched(yet) But because of MXML/AS3 flex was kind of a no go for Java projects. Hopefully gwt4air will bring more GWT developer to discover the power of Flex. 2011/5/26 Jay Roy jagger...@gmail.com If i understand what you mean, you want to repopulate the grid everytime the data are updated in the backend right ? exactly. yes i think u r right i can do it using timer object. so i am guessing flex does provide asynchronous support in its own way :) I would be curious to see what an AJAX framework like GWT can do which flex cant. thanks for your input. On Wed, May 25, 2011 at 9:34 PM, Alain Ekambi jazzmatad...@googlemail.com wrote: If i understand what you mean, you want to repopulate the grid everytime the data are updated in the backend right ? I think Blase DS does not support pushing Data to the client. Atleast not the free version. A solution could be to set up a timer that will poll data from the backend every 5s ? I think you can do that in as3 Dont get me wrong i dont want to keep you from using GWT, i just think that in your case there is a solution that is more effcient and esay to maintain then using GWT. But if you dont mind having some overhead plus a language explosion (MXML/AS3, JS, Java) and architecture problem in your project. I can tell you what our first solution to solve this type of problem was 2011/5/26 Jay Roy jagger...@gmail.com let me explain with a simple example We have a flex screen with a data grid. The data in data grid is populated with java collection. The java collection contains stock data which comes from backend. In the backend every 0.5 second the stock data in collection is updated(we get market feed of data). so every 0.5 second we need to refresh the flex data grid and update it with the backend data. So the question now is we need to make a asynch call every 0.5 sec to fetch the updated data. I am using blazeds to get the java collection but i dont think blazeds can be used to make asynchronous calls. That is where we want to use ajax to make the asynchronous call every 0.5 sec. thanks. On Wed, May 25, 2011 at 8:32 PM, Alain Ekambi jazzmatad...@googlemail.com wrote: What exactly do you mean with incorporate ajax ? Do you mean making async call to the server ? If yes cant you do that with Blase DS ? Like i said before i dont know if the road mxml/as -External Interface - js - gwt - backend and back is effective because you are adding a lot of overhead just to call methods in the backend. 2011/5/26 Jay jagger...@gmail.com Thanks for response. We are already using blazeds to communicate with our remote spring services. Our present architecture: Flex talks to backend java objects using spring blazeds. I want to incorporate ajax so What I had in mind is Flex mxml/as screen invokes JavaScript invokes java backend? Would that be correct? Thanks On May 25, 2011, at 5:58 PM, Alain Ekambi jazzmatad...@googlemail.com wrote: Well the suggestion was for the Integrating Flex with GWT part. If you come from Flex learning GWT should not be a big problem because the development model is very similar. The official GWT Documentation is always a good point to start: http://code.google.com/webtoolkit/doc/latest/DevGuide.html http://code.google.com/webtoolkit/doc/latest/DevGuide.html And if you are really really stucked there is a guy called *Thomas Broyer* here in the community. You cant miss him :) Making a GWT RPC call from an AS3/MXML based Flex application is
Re: This application is out of date, please click the refresh button on your browser
Well, I have achieved to solve the problem. It is needed to override method 'service' from HttpServlet: @Override protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // Cache the current thread Thread currentThread = Thread.currentThread(); // We are going to swap the class loader ClassLoader oldContextClassLoader = currentThread.getContextClassLoader(); currentThread.setContextClassLoader(this.getClass().getClassLoader()); super.service(req, resp); currentThread.setContextClassLoader(oldContextClassLoader); } Thus, the application runs on Equinox!! On May 26, 9:45 am, Jose Luis Hernandez jose.hernande...@gmail.com wrote: Hi! I have changed the libraries and the error is disappeared. However, the error changes. Now my error is: //EX[2,1, [com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/ 3936916533,Could not locate requested interface 'main.java.com.gwt.app.client.GreetingService' in default classloader],0,7] But the interface is in classloader. I do not why the application is unable to get the interface. I need some help. Regards! On May 26, 8:01 am, Ashwani Gupta ashwani...@gmail.com wrote: I had the same issue. Try restarting your computer and if that doesn't fix it then search for this ERROR: Expecting version between 5 and 6 from client, got 7 in the group and you can read through what worked for me. Ash On Wed, May 25, 2011 at 10:45 PM, Jose Luis Hernandez jose.hernande...@gmail.com wrote: Hello! I have a problem with my GWT application. I deploy on Jetty server and it runs. But when I perform a server call (class on server package of GWT), the server returns an error message. The message is: 7|0|6|http://localhost/zbapp/zb_app/|A31E1254E17F9AD731856D6BE34124A2| main.java.com.gwt.app.client.GreetingService|greetServer| java.lang.String/2004016611||1|2|3|4|2|5|5|6|6| //EX[2,1, [com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/ 3936916533,This application is out of date, please click the refresh button on your browser. ( Expecting version 5 from client, got 7. )], 0,5] However, the server returns a 200 code that is OK. I have updated the browser, clear up browser cache and recompiled the application, but it does not run. What is the solution for that?? Thanks in advance! Regards! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Using RequestFactory with other languages, especially Go
Is it possible to leverage GWT's RequestFactory capability with other backends. Especially I'm interested whether it's possible to use RequestFactory in conjunction with a backend written in Go. And how big is the effort to write the appropriate glue code? -- You received 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 Session/login
Hey guys, I am developing a GWT application that requires login and I am using GWT RPC. I implemented a simple login/session feature that is handled with calls to the database to verify the authenticity of the session ID. I know that this is not efficient, but i am hesitating to use HTTPSession because i didn't find good information about its use with GWT. So, my question is: Should I use HTTPSession? I have the feeling that everything would stay only at memory and that could make the application less robust. I have concerns regarding security so I intend to use a HTTPS connection. Is that enough to prevent forged requests? I am just getting started with web development, so any links and explanations would be very useful. I already looked the following links about this subject: http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications?pli=1 http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ Thanks in advance! -- Renato Beserra Sousa Brazil -- You received 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: Error while deploying my gwt application on a websphere server 6.1 !!!!
hey, for those who might face the same problem, the solution is that when you want to recreat your .war you should clean up your project and compile it (clean up is not always neseccary). On 24 mai, 16:47, Carlos hbazz...@gmail.com wrote: hi, This is the message i found in the log of the my websphere of version 6.1 i want to kno if the problem is a gwt issue or websphere issue so do you have any idea about it? am using gwt SDK 1.5 websphere 6.1 i deployed the .war on the server but i am recieving always this error: --Start of DE processing-- = [24/05/11 16:07:56:178 CEST] , key = javax.servlet.UnavailableException com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() 302 Exception = javax.servlet.UnavailableException Source = com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() probeid = 302 Stack Dump = javax.servlet.UnavailableException: SRVE0200E: Servlet [cap.affinium.testInteract.server.metier.ServicesImpl] : Impossible de trouver la classe requise - cap.affinium.testInteract.server.metier.ServicesImpl at com.ibm.ws.webcontainer.servlet.ServletWrapper $1.run(ServletWrapper.java:1203) at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java: 118) at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java: 1190) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java: 385) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java: 339) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java: 463) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java: 3107) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java: 238) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java: 811) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java: 1425) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java: 92) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java: 465) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java: 394) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java: 102) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java: 152) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java: 213) at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java: 195) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java: 725) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498) Dump of callerThis = null Exception = javax.servlet.UnavailableException Source = com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() probeid = 302 Dump of callerThis = null my web.xml is the following: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Servlets -- servlet servlet-nameServiceServlet/servlet-name servlet-classcap.affinium.testInteract.server.metier.ServicesImpl/ servlet-class /servlet servlet servlet-nameWebServicesServlet/servlet-name servlet- classcap.affinium.testInteract.server.metier.WebServicesImpl/servlet- class /servlet servlet servlet-nameAPIInteractServlet/servlet-name servlet- classcap.affinium.testInteract.server.metier.APIInteractServicesImpl/ servlet-class /servlet servlet-mapping servlet-nameServiceServlet/servlet-name url-pattern/testtool/service/url-pattern /servlet-mapping servlet-mapping servlet-nameWebServicesServlet/servlet-name url-pattern/testtool/webService/url-pattern /servlet-mapping servlet-mapping servlet-nameAPIInteractServlet/servlet-name url-pattern/testtool/apiInteract/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileTestTool.html/welcome-file /welcome-file-list /web-app -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this
ListBox and Data Binding
I'm novice in GWT, help pls with my problem. I try to bind complex data to UI via GWT Editor mechanism. It works perfectly when binding String fields to TextBox widgets, but I cannot understand how to bind any field to ListBox widget. Look at following example, pls Bean class: public class MyData implements Serializable { String name; int gender; ...getters and setters here... Editor: public class MyEditor extends Composite implements EditorMyData { interface Binder extends UiBinderWidget,MyEditor {} private static Binder binder = GWT.create(Binder.class); @UiField TextBox name; @UiField ListBox gender; public MyEditor() { initWidget(binder.createAndBindUi(this)); } } Editor's *.ui.xml: Name:g:TextBox ui:field=name//dev g:ListBox ui:field=gender g:item value=0Male/g:item g:item value=1Female/g:item g:item value=2Shemale/g:item /g:ListBox And that's invoking class: public class MyForm extends Composite { interface Driver extends SimpleBeanEditorDriverMyData,MyEditor {} private Driver driver = GWT.create(Driver.class); MyEditor editor; ClickHandler handler = new ClickHandler() { public void onClick(ClickEvent event) { MyData myData = driver.flush(); Window.alert(Name= + myData.getName() + ; Gender= + myData.getGender()); } }; public void drawMe(FlowPanel panel) { panel.clear(); editor = new MyEditor(); driver.initialize(editor); MyData myData = new MyData(); driver.edit(myData); panel.add(editor); Button button = new Button(Press Me); button.addClickHandler(handler); panel.add(button); } } After entering data and pressing button Press Me I see correct value of String variable name in Alert box, but int variable gender always =0, independently of current state of ListBox. What may be wrong with my code?. -- You received 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: Selecting TextInputCell
Best I could come up with is to use a modified version of EditTextCell instead, which at least highlights the text in the box on click. This still seems like a bug or at least an area that needs improvement. -TJ On May 25, 10:23 am, tjmcc18 tjmc...@gmail.com wrote: I have a CellTable which makes use of TextInputCells to allow the user to edit data. I would like this to behave in a spreadsheet like manner such that the user can select the various textboxes and make changes as they see fit. However, the default behavior for selecting the textboxes is not desirable. When a user first selects a textbox, it receives focus and the user can edit the data. When the user then tries to select another textbox, the previous textbox loses focus but the newly selected textbox does not receive focus. Clicking on the box again gives it focus. In essence it takes two click to select the textbox. This is very annoying. I believe the first click possibly selects the cell, but I'm not sure. Does anyone know how to get around this? -TJ -- You received 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: Share a Database Refrence in GWT
If you are using an application server to run your services, making use if connection pools and datasources at that level is usually an easy way to share a pool of database connections. -TJ On May 26, 4:06 am, Myth17 nitishupr...@gmail.com wrote: Do I need something like Struts? I dont want over complex architecture. I have no prior experience with struts Framework. -- You received 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.
User Agent for Firefox 4
Hello! I'm using Firefox 4.0.1 and gecko1_8 seem to work as value for user.agent.. Could you please tell me which token should I use instead? set-property name=user.agent value= / Thanks, Simona -- You received 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.
localisation issues with DateTimeFormat.PredefinedFormat MONTH_ABBR
Hi, Where can I report this? I think its a bug. It appears that the strings returned for abbreviated month are wrong. I was wondering if anyone else has come across this, whether its likely to be resolved in another release, or if there is a good workaround. We are preparing an application for German and UK markets, in which there is a calendar that shows months. There is no space for the full month name, so we are abbreviating them (MONTH_ABBR). Most of the English month names are coming back with three letters, although many months should be 4 (June, July, Sept). It still makes sense, so we can forgive it...However, German seems to be a mess. Most come back as three letters, some with . at the end, and some without. Unsure why, it does not tally with what was expected - http://library.princeton.edu/departments/tsd/katmandu/reference/months.html or http://lts.library.cornell.edu/lts/pp/spp/mosabbr#german 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.
HTML widget sometimes doesn't render 3rd party Javascript widget
Hi, I tried to use GWT HTML widget to include a third party widget such as javascript code for Expedia banner. It doesn't seem always working when I test it. If the same javascript is directly put in the static HTML host page, it always works. Has anyone seen similar problem? - maq -- You received 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.
cant open gwt web project
hi i am getting this error message,while i try to open a new gwt web project,please let me know if anyone has solution. Plug-in com.google.gdt.eclipse.suite was unable to load class com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard. An error occurred while automatically activating bundle com.google.gdt.eclipse.suite (947). thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
a Way to differentiate between User and Code Events
Is there a Way to differentiate between User and Code Events? I want to do certain actions only when the user blurs out of a field but not when the code does (the blur event is generated when the code sets focus on a different field). Has anybody done anything like 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: PreloadedTable alternative - GWT Incubator is death?
Incubator has a learning curve but it works just fine for me and is blazing fast! On May 25, 11:40 am, Go2one dennis.schum...@go2one.de wrote: Hi everyone, because of performance issues we are using the PreloadedTable instead of FlexTable. No I read, that GWT Incubator is death? Is there any alternative to the PreloadedTable? By the way: Why does PreloadedTable not support the method getCellForEvent(event) (like the FlexTable)? How can I fetch the cell or row, that was clicked at the UI? Thanks and best Regards! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Broken editor type conversions in GWT trunk r10227
Hello, I'm trying to use trunk version of GWT but I'm encountering some conversion issues with the Editor framework. Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at com.google.gwt.text.shared.testing.PassthroughRenderer.render(PassthroughRenderer.java:1) at com.google.gwt.user.client.ui.ValueBoxBase.setValue(ValueBoxBase.java:394) at com.google.gwt.user.client.ui.ValueBoxBase.setValue(ValueBoxBase.java:389) at com.google.gwt.editor.ui.client.adapters.ValueBoxEditor.setValue(ValueBoxEditor.java:106) at com.google.gwt.editor.client.impl.Refresher.visit(Refresher.java:45) at com.google.gwt.editor.client.impl.Initializer.visit(Initializer.java:49) at com.google.gwt.editor.client.impl.AbstractEditorContext.traverse(AbstractEditorContext.java:128) at com.clouway.requestfactory.app.client.CustomerEditor_RequestFactoryEditorDelegate.accept(CustomerEditor_RequestFactoryEditorDelegate.java:54) at com.google.gwt.editor.client.impl.AbstractEditorContext.traverse(AbstractEditorContext.java:129) at com.clouway.requestfactory.app.client.CustomerEditorWorkflow_DriverImpl.accept(CustomerEditorWorkflow_DriverImpl.java:6) at com.google.gwt.editor.client.impl.BaseEditorDriver.doEdit(BaseEditorDriver.java:92) at com.google.web.bindery.requestfactory.gwt.client.impl.AbstractRequestFactoryEditorDriver.edit(AbstractRequestFactoryEditorDriver.java:178) The AbstractEditorDriverGenerator is generating different AbstractEditorContext for each property of the entity, so the following declaration: @UiField ValueBoxEditorDecoratorInteger age; Age: e:ValueBoxEditorDecorator ui:field=age e:valuebox g:TextBox/ /e:valuebox /e:ValueBoxEditorDecorator generates AbstractEditorContext for age field as @Override public Class getEditedType() { return java.lang.Integer.class; } @Override public java.lang.Integer getFromModel() { return (parent != null true) ? parent.getAge() : null; } And here is the problem, the TextBoxBase class is using the default PassthroghtParser (of type String) protected TextBoxBase(Element elem) { super(elem, PassthroughRenderer.instance(), PassthroughParser.instance()); } which is causing the provided exception. Any idea how I can make it working ? -- You received 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: Validation-api-1.0.0, Doesn't work
Maybe it can help you http://stackoverflow.com/questions/2116583/gwt-java-security-accesscontrolexception-access-denied-for-serializer-in-ubunt http://stackoverflow.com/questions/2116583/gwt-java-security-accesscontrolexception-access-denied-for-serializer-in-ubuntrevise, maybe that this exception can not serialize. Also revise the configuration of the server. 2011/5/26 MaximeMularz max...@mularz.fr Hi, I have a new error : [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.ExceptionInInitializerError at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:160) at com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java: 169) at com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java: 233) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java: 94) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.RuntimeException: Unable to get Unsafe instance at com.google.gwt.rpc.server.CommandSerializationUtil.clinit(CommandSerializationUtil.java: 457) ... 35 more Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.misc) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166) at java.lang.SecurityManager.checkPackageAccess(Unknown Source) at java.lang.ClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.lang.ClassLoader.checkPackageAccess(Unknown Source) at com.google.gwt.rpc.server.CommandSerializationUtil.clinit(CommandSerializationUtil.java: 444) ... 35 more What's wrong ? On 25 mai, 22:14, MaximeMularz max...@mularz.fr wrote: Sorry, I don't
cant open gwt web project
It's unclear from that excerpt what is wrong. It could indicate an error with the installation of GPE, or it could indicate some other issue with your eclipse environment. More information is needed. That said, the simplest resolution going forward is to try reinstalling GPE into a fresh eclipse environment and see if the problem persists. -- You received 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: PreloadedTable alternative - GWT Incubator is death?
Thanks for your information but I can't figure out, what is the RowIndex of the clicked Row in a PreloadedTable: PreloadedTable innerGrid = new PreloadedTable(); innerGrid.addHandler(new ClickHandler() { public void onClick(ClickEvent event) { //what is the clicked row index??? } }, ClickEvent.getType()); On 26 Mai, 15:24, markM mark.a.mccon...@pfizer.com wrote: Incubator has a learning curve but it works just fine for me and is blazing fast! On May 25, 11:40 am, Go2one dennis.schum...@go2one.de wrote: Hi everyone, because of performance issues we are using the PreloadedTable instead of FlexTable. No I read, that GWT Incubator is death? Is there any alternative to the PreloadedTable? By the way: Why does PreloadedTable not support the method getCellForEvent(event) (like the FlexTable)? How can I fetch the cell or row, that was clicked at the UI? Thanks and best Regards! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 can I use the Unofficial Google Text-To-Speech API in a GWT application?
Hi, I'm trying to use the Google TTS API (http://translate.google.com/ translate_tts?tl=enq=text”) for my GWT application. This API give me back an mp3 in a buffer that I have to play. To play mp3 files I'm using GWT-Voices (http://code.google.com/p/gwt- voices/) that requires an URL of the mp3 file to play. I use a servlet to do the GET request and receive the mp3 stream buffer. My application uses GAE, so I can't use FileOutputStream to generate an mp3 temporary file on server side... How can I play the mp3 that I have inside my buffer? Thank you for your time and help! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: User Agent for Firefox 4
gecko1_8 is the correct user agent for Firefox 4. This is slightly confusing since FF4 runs Gecko 2.0. However, we only update the user agent permutation properties when there is new code to select, and all of the FF3.6 permutation specific code is still valid for FF4. On Thu, May 26, 2011 at 6:17 AM, Simona Hobjila simona.hobj...@gmail.comwrote: Hello! I'm using Firefox 4.0.1 and gecko1_8 seem to work as value for user.agent.. Could you please tell me which token should I use instead? set-property name=user.agent value= / Thanks, Simona -- You received 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.
how to i persiste state??
hi.. i've read about the MVP / place framework, but from all of this i still don't understand how do i persist the state of view i'm LEAVING, so it would mainted on the url, i have no reference the to place i'm leaving from all i have is the getActivity method with it's place parameter of where it should go. what i'm trying to do, is to create a 'dynamic' basic place, because if i would go the gwt way of creating MVP i would have to: 1. sub class new Place 2. create a tokenizer for it (even if half my activities have context that's still a lot ) 3. register the tokenizer in the withTokenizers annotation. 4. create the activity 5. create the view. step 1-3 could be avoided if i create one basic activity, that would receive a prefix AND context, thus i would have only to create one tokenizer that would get the token (with my prefix and context) and create a new Place with the context. -- You received 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: HTML widget sometimes doesn't render 3rd party Javascript widget
Hi, First, when you want to access variables and functions from JSNI that are outside of the GWT code you must use the $wnd. prefix, for example to run the JavaScript alert() function from JSNI you would write $wnd.alert('something'); Second, you may be trying to call external JavaScript functions or access DOM elements before the external script or DOM were fully loaded. In such a case wrapping the call to the JSNI method with a ScheduledCommand or a Timer may help. Try these: Scheduler.get().scheduleDeferred(new ScheduledCommand() { public void execute() { // call JSNI method here } } or new Timer() { public void run() { // call JSNI method here } }.schedule(100); // play with the number of milliseconds I recommend trying the ScheduledCommand first - when you use it in scheduleDeferred(), it will be called after all other browser operations have been finished. In my experience you should check early if whatever solution that works in development mode also works in compiled mode, you may get different behavior sometimes, for example you would need to use a different period of time before you can call external JavaScript. On May 26, 2:21 pm, maq mumay...@gmail.com wrote: Hi, I tried to use GWT HTML widget to include a third party widget such as javascript code for Expedia banner. It doesn't seem always working when I test it. If the same javascript is directly put in the static HTML host page, it always works. Has anyone seen similar problem? - maq -- You received 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 Designer not working?
Assuming you are using Windows, this issue is generally limited to Windows XP and earlier, so the best solution would be to upgrade to Windows Vista or Windows 7. It looks like something is interfering with localhost communications or JavaScript. Make sure that anything that might interfere with local communications is disabled (like any proxy configured in your browser settings or any overly aggressive anti-virus or firewall software). If you have a proxy server configured in your browser Settings, make sure to set the browser to bypass the proxy server for local addresses. As a test, you can try disabling the proxy / firewall / anti-virus software completely. Also, are you using any other browser plugins that interfere with JavaScript? If so, please try turning them off. Are you able to access gmail using IE? On May 25, 12:08 pm, Navindian navind...@gmail.com wrote: its a working small u.i sample.. -- You received 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: activities - places with more complex layouts
There were interesting discussions in the comments of http://tbroyer.posterous.com/gwt-21-activities and http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni -- You received 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: HTML widget sometimes doesn't render 3rd party Javascript widget
Gabriel, Thanks for reply. Apologize for not being clear about my problem. I was not trying to calling any javascripts through JSNI. I simply want to include the banner scripts got from Expedia affiliate search form in a GWT HTML widget. div id='searchform_634420069924922689'/divscript type='text/ javascript' src='http://widgets.partners.expedia.com/daily/shared/ affiliates/WidgetService.aspx? partner=cjpid=99size=120x600window=newbranded=truewidgetname=searchformdivid=searchform_634420069924922689'/ script So I created HTML object with the above content and lay it out along with other GWT widgets. But it shows up only in a Firefox on SUSE. On windows, neither firefox and IE displays it. (I guess it may be dependent on the browser.) Similar problem happens to include the widget script using GWT HTML from addthis.com - maq -- You received 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.
Cancelling RequestContext.create()
Dear all, Considering the following common data structure: ParentProxy { ... ListChildProxy } In our app, the user may change and add a number of ChildProxies as well as ParentProxy properties, then save everything. When I'm creating a new ChildProxy, I call ParentRequestContext.create() to obtain this, which registers this with the RequestContext. This is then passed to an editor, flushed and added to the editor hierarchy. The whole hierarchy is then flushed and persisted. This works well, except I cannot handle the case when a new ChildProxy is requested but this is then cancelled - the RequestContext will send a ChildProxy with null values. So -- is there a way to cancel a pending create? Otherwise the only workaround I can think of is to utilize a separate RequestContext to create a detached ChildProxy and edit then flush this. Then all being well, the to-be-persisted ChildProxy would be obtained from ParentRequestContext,create and I'd use AutoBeanUtils to copy the detached state to the new proxy. Thanks, Will -- You received 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: activities - places with more complex layouts
thx but guess before i opened this thread :-). the problem with all the tutorials/blogs/threads about places and activities is, that they all try to link themself to mvp and they all use/recycle simple mvp examples. (ok your articles try to show/mention the difference) but the main problem is there is no example that shows the purpose of places/activitie(and their managers) - examples that shows history handling /switching between places/ starting activities and so on. in my case i thought i could begin using activities/and places right after reading about it (like i did with all mvp article) but at starting to use them i am stuck and confused about what should/is a good relation between activities (should they play presenters role?! when/when not), places (should each tab (in my case) be an place )... if a tab would be one place with 3 display areas - how many activities/presenters should be there? i guess most of this question would be answered by an example that uses those concepts the way they are intended for?! -- You received 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.
JUnitCreator not found
On Mac OSX, new to GWT, working through tutorials. I don't understand where JUnitCreator creator is...I cannot find it anywhere, as if i did not install with GWT 2.3 with Eclipse. It looks like (from the web) it should be installed in something like: /Applications/eclipse/plugins/com.google.gwt.junit.tools.JUnitCreator but there is no such .junit. folder. I have Junit 3 and 4 installed. Any ideas? thanks bob -- You received 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 meets Adobe Flex: gwt4air 2.1 is here !
Also i dont know if Adobe will be interested in anything that do not include ActionScript and MXML to build Flexapplications You wont know until you try do yo ? Technically your project is really awesome man but more then the technical battle it s the commnucation battle that you will have to win. If i could come up with only half of the ideas poeple like you have i ll be blogging tweeting spaming or wathever about it :) There are some googlers here in the forum. i would bombard then with emails until i get their attention. loool Specially when a project deserves some attention. GWT is an awesome framework and with the work of people like yourself it s just becoming monumental. The capabilities are becoming limitless. If someboy told me sometimes ago i could write a Flex application in Java i would think he is out of his mind. First let s make the project become the best GWT UI library out there It starts with you man. Go out there and nerv some people about your work. It s worth it. Just my 2cents. Best, Denis -- You received 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 Session/login
Use a framework to manage security concern, for example Spring Security. This framework use HttpSession for example 2011/5/26 Renato Beserra renatobese...@gmail.com Hey guys, I am developing a GWT application that requires login and I am using GWT RPC. I implemented a simple login/session feature that is handled with calls to the database to verify the authenticity of the session ID. I know that this is not efficient, but i am hesitating to use HTTPSession because i didn't find good information about its use with GWT. So, my question is: Should I use HTTPSession? I have the feeling that everything would stay only at memory and that could make the application less robust. I have concerns regarding security so I intend to use a HTTPS connection. Is that enough to prevent forged requests? I am just getting started with web development, so any links and explanations would be very useful. I already looked the following links about this subject: http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications?pli=1 http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ Thanks in advance! -- Renato Beserra Sousa Brazil -- You received 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: Validation-api-1.0.0, Doesn't work
The validation sample works !!! only without GAE - library, My new question : Does the validation sample work with google app engine ? Thanks On 26 mai, 16:00, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote: Maybe it can help youhttp://stackoverflow.com/questions/2116583/gwt-java-security-accessco... http://stackoverflow.com/questions/2116583/gwt-java-security-accessco...revise, maybe that this exception can not serialize. Also revise the configuration of the server. 2011/5/26 MaximeMularz max...@mularz.fr Hi, I have a new error : [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.ExceptionInInitializerError at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:160) at com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java: 169) at com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java: 233) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java: 94) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.RuntimeException: Unable to get Unsafe instance at com.google.gwt.rpc.server.CommandSerializationUtil.clinit(CommandSerializationUtil.java: 457) ... 35 more Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.misc) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166) at java.lang.SecurityManager.checkPackageAccess(Unknown Source) at java.lang.ClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.lang.ClassLoader.checkPackageAccess(Unknown Source)
Re: activities - places with more complex layouts
On Thursday, May 26, 2011 6:48:03 PM UTC+2, tanteanni wrote: thx but guess before i opened this thread :-). the problem with all the tutorials/blogs/threads about places and activities is, that they all try to link themself to mvp and they all use/recycle simple mvp examples. The problem is that many (including the official GWT documentation unfortunately) describe activities as an MVP framework, which it is absolutely *not*! (ok your articles try to show/mention the difference) but the main problem is there is no example that shows the purpose of places/activitie(and their managers) - examples that shows history handling /switching between places/ starting activities and so on. Have a look at the samples from the GWT distribution. The Expenses sample is hard to follow, but the mobile web app should be easier to understand: http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mobilewebapp/ See also http://code.google.com/p/listwidget/ (by Googler –and GWT Developer Advocate– David Chandler). David has good presentations about Activities at http://www.slideshare.net/turbomanage (he might have talked about it at I/O too, so have a look at the slides and videos there) and, finally, someone put up a diagram that shows the interactions (a bit specific to *one* way to use activities, but might help understanding anyway): https://groups.google.com/d/msg/google-web-toolkit-contributors/I418617UCH0/Vla70cXmE3cJ (see for instance http://www.slideshare.net/turbomanage/whats-new-in-gwt-22 starting at slide #38, and http://www.google.com/events/io/2011/sessions/high-performance-gwt-best-practices-for-writing-smaller-faster-apps.html starting at slide #23) in my case i thought i could begin using activities/and places right after reading about it (like i did with all mvp article) but at starting to use them i am stuck and confused about what should/is a good relation between activities (should they play presenters role?! when/when not), It depends, but most of the time it's OK to have the activity play the role of a presenter. places (should each tab (in my case) be an place )... No, the place is a kind of global application state (really, it's just a URL under another name –because it does not necessarily show in the URL / push items to the browser history, if you don't use the PlaceHistoryHandler–); or are you misusing the term place for display area or panel? if a tab would be one place with 3 display areas - how many activities/presenters should be there? i guess most of this question would be answered by an example that uses those concepts the way they are intended for?! …until you try introducing a tab layout into the game… because tabs, by definition, break linear navigation, so they oviously don't play well with browser history and global application state. Places are about navigation, so the first step is to thin about your screen as the result of accessing a URL; you must be able to name where you are at a given point in time (I'll let you struggle doing this with a tab layout), and this is your Place. Activities are a way to *handle* navigation and place changes, each time you change place, you potentially start a new activity (ending the previous one); but you won't change activity without changing place. -- You received 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: Better XSRF protection in 2.3?
Also, you are free to use the underlying RpcToken capabilities, which solves the hard part of the problem (transparently adding a token to every RPC request). You can use it to build on top of whatever session mechanism you have now, like this: // could also add @XsrfProtect and extend RemoteService instead if you prefer public interface MyService extends XsrfProtectedService { ... } MyServiceAsync svc = GWT.create(MyService.class); ((HasRpcToken) svc).setRpcToken(getTokenFromHostPageOrWherever()); public class MyServiceImpl extends AbstractXsrfProtectedServiceServlet implements MyService { protected validateXsrfToken(RpcToken token, Method method) { // throw RpcTokenException if token is not valid } } You already have to extend a particular base class for GWT RPC, to get the serialization/deserialization, so extending a different one doesn't seem much of a burden. I don't think there is going to be a drop-in, zero changes XSRF fix that works with everybody's deployment strategies. -- You received 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.
eclipse GWT plugin jetty server problem
Hi, i keep having an issue with GWT eclipse (helios) plugin in Linux box (opensuse 11.4). sometimes if i stop the dev mode server and then try Run as- web Application it gives me the below error. sometimes this doesn't give error and the dev mode app is started by the gwt eclipse plugin. maybe the dev mode server remains running for sometime after i stop it with red button at right of development mode view tab. any Idea what this problem is about? Starting Jetty on port Port 127.0.0.1: is already is use; you probably still have another session active [WARN] failed SelectChannelConnector@127.0.0.1: java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 77) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java: 205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) [WARN] failed Server@1f34a6 java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 77) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java: 205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) [ERROR] shell failed in doStartupServer method -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: eclipse GWT plugin jetty server problem
The error java.net.BindException: Address already in use indicate that you have a process that are listening in this port. 2011/5/26 othman othmanelmou...@gmail.com Hi, i keep having an issue with GWT eclipse (helios) plugin in Linux box (opensuse 11.4). sometimes if i stop the dev mode server and then try Run as- web Application it gives me the below error. sometimes this doesn't give error and the dev mode app is started by the gwt eclipse plugin. maybe the dev mode server remains running for sometime after i stop it with red button at right of development mode view tab. any Idea what this problem is about? Starting Jetty on port Port 127.0.0.1: is already is use; you probably still have another session active [WARN] failed SelectChannelConnector@127.0.0.1: java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 77) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java: 205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) [WARN] failed Server@1f34a6 java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 77) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java: 205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) [ERROR] shell failed in doStartupServer method -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 Application Working in IE8.0, but Not In FireFox
We've developed a GWT application and it runs like a charm in IE8.0. However, when we try to launch it in FireFox (3.5 or 4.0) it doesn't work -- the layout is incorrect, the formatting is incorrect, some of the buttons and link no longer work, etc, etc. There are two modules in the application, and neither of the modules has a user.agent specified in the module.gwt.xml file. When I compile, I can see that is generating a slow of .js files which makes me think it is generating for all the appropriate browsers. But when I launch anything other than IE 8.0, it simply does not work and appears to be using the wrong version of the Javascript/HTML. Has anyone encountered this before? Is there anything I can check or monitor to see what's going on? -- You received 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: eclipse GWT plugin jetty server problem
probably this command : $sudo netstat --tcp --udp --listening -- program But why sometimes the port is free and app can run whether sometimes the port is not? this is a strange behavior maybe related to eclipse gwt plugin? On May 26, 9:52 pm, othman othmanelmou...@gmail.com wrote: there are no other processes i believe. how can i know which processes are listening to this address? i'm using linux. On May 26, 9:02 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: The error java.net.BindException: Address already in use indicate that you have a process that are listening in this port. 2011/5/26 othman othmanelmou...@gmail.com Hi, i keep having an issue with GWT eclipse (helios) plugin in Linux box (opensuse 11.4). sometimes if i stop the dev mode server and then try Run as- web Application it gives me the below error. sometimes this doesn't give error and the dev mode app is started by the gwt eclipse plugin. maybe the dev mode server remains running for sometime after i stop it with red button at right of development mode view tab. any Idea what this problem is about? Starting Jetty on port Port 127.0.0.1: is already is use; you probably still have another session active [WARN] failed SelectChannelConnec...@127.0.0.1: java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 77) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java: 205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) [WARN] failed Server@1f34a6 java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 77) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java: 205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) [ERROR] shell failed in doStartupServer method -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: eclipse GWT plugin jetty server problem
Try running: ps alx | grep java and carefully check that the jetty server has shut down properly. Sometimes a bug can stop the server shutting down, and thus the port appears to be still in use when you try and start another instance. HTH Alan On 5/26/2011 2:09 PM, othman wrote: probably this command : $sudo netstat --tcp --udp --listening -- program But why sometimes the port is free and app can run whether sometimes the port is not? this is a strange behavior maybe related to eclipse gwt plugin? On May 26, 9:52 pm, othmanothmanelmou...@gmail.com wrote: there are no other processes i believe. how can i know which processes are listening to this address? i'm using linux. On May 26, 9:02 pm, Juan Pablo Gardellagardellajuanpa...@gmail.com wrote: The error java.net.BindException: Address already in use indicate that you have a process that are listening in this port. 2011/5/26 othmanothmanelmou...@gmail.com Hi, i keep having an issue with GWT eclipse (helios) plugin in Linux box (opensuse 11.4). sometimes if i stop the dev mode server and then try Run as- web Application it gives me the below error. sometimes this doesn't give error and the dev mode app is started by the gwt eclipse plugin. maybe the dev mode server remains running for sometime after i stop it with red button at right of development mode view tab. any Idea what this problem is about? Starting Jetty on port Port 127.0.0.1: is already is use; you probably still have another session active [WARN] failed SelectChannelConnec...@127.0.0.1: java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 77) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java: 205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) [WARN] failed Server@1f34a6 java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 77) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java: 205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) [ERROR] shell failed in doStartupServer method -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Problem with Delete id Datastore
Hi There, I'm Starting a Web Project with GWT and some problems about datastore delete by ID. do not know why having this problem. I think it should be the primary key generation. OBS: getters and setters were not placed in this post Class GRUPO: import javax.jdo.PersistenceManager; import javax.jdo.annotations.Extension; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import javax.jdo.listener.StoreCallback; import com.metadot.book.connectr.shared.GrupoDTO; @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = true) public class Grupo implements StoreCallback { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key = gae.encoded- pk, value = true) private String id; @Persistent private String GrupoNome; @SuppressWarnings(unused) @Persistent private UserAccount userAccount; public Grupo() { } public Grupo(GrupoDTO grupoDTO) { this(); this.setBasicInfo(grupoDTO.getGrupoNome()); } } Class GrupoList.java: import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; import com.metadot.book.connectr.shared.GrupoDTO; public class GrupoList extends Composite { private static GrupoListUiBinder uiBinder = GWT .create(GrupoListUiBinder.class); interface GrupoListUiBinder extends UiBinderWidget, GrupoList { } @UiField VerticalPanel gruposPanel; private ListGrupoDTO grupoDTOs; private final static GrupoServiceAsync grupoService = GWT .create(GrupoService.class); public GrupoList() { initWidget(uiBinder.createAndBindUi(this)); } public GrupoList(ListGrupoDTO grupoDTOs) { this(); this.grupoDTOs = grupoDTOs; displayGrupos(); } public void showGrupos() { grupoService .getGrupos(new AsyncCallbackListGrupoDTO() { public void onFailure(Throwable caught) { Window.alert(An error occurred); } public void onSuccess(ListGrupoDTO result) { grupoDTOs = result; displayGrupos(); } }); } private void displayGrupos() { for (final GrupoDTO grupo: grupoDTOs) { gruposPanel.add(new GrupoItem(grupo)); } } } Class GrupoItem.java: import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.UiHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.Widget; import com.metadot.book.connectr.shared.GrupoDTO; public class GrupoItem extends Composite { private static GrupoItemUiBinder uiBinder = GWT .create(GrupoItemUiBinder.class); interface GrupoItemUiBinder extends UiBinderWidget, GrupoItem { } @UiField Label title; @UiField Button delete, edit; GrupoDTO grupo; private final static GrupoServiceAsync grupoService = GWT .create(GrupoService.class); public GrupoItem() { initWidget(uiBinder.createAndBindUi(this)); } public GrupoItem(String title, String id) { this(); this.title.setText(title); } public GrupoItem(GrupoDTO grupoDTO) { this(); this.grupo = grupoDTO; this.title.setText(grupo.getGrupoNome()); } public GrupoItem(String title) { this(); this.title.setText(title); } private static void deleteGrupo(GrupoDTO grupo) { grupoService.deleteGrupo(grupo.getId(), new AsyncCallbackBoolean() { public void onFailure(Throwable caught) { Window.alert(An error occurred); } public void onSuccess(Boolean result) { ConnectrApp.get().cancelEditFriend();
Gwt
Hi I am a beginner in GWT, I download the DynaTableRf and tried to deploy it with eclipse on my google account, but it said that the project is not web app project why? I download it as a GWT project what should I do to deploy it to eclipse? Thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Error when obfuscating a gwt jar
When I obfuscate a jar of a gwt application I got the following error The response could not be deserialized. By obfuscating I do not mean the compiler option of gwt. I mean obfuscating the .class files contained in the jar file Do you have any idea? Thanks a lot -- You received 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
Perhaps this will help: http://www.youtube.com/watch?v=GGJC_i7Dw6c Main documentation site for GWT is here: http://code.google.com/webtoolkit/download.html If you're just starting out, click the Downloads tab and follow the instructions to get Google Plugin for Eclipse, then complete the Stockwatcher tutorial to get your feet wet. HTH, /dmc On Thu, May 26, 2011 at 1:50 PM, POONEH ghorbani.poo...@gmail.com wrote: Hi I am a beginner in GWT, I download the DynaTableRf and tried to deploy it with eclipse on my google account, but it said that the project is not web app project why? I download it as a GWT project what should I do to deploy it to eclipse? Thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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: Problem with Delete id Datastore
Hi Randell, I'm guessing this is an App Engine project, in which case your server-side questions will likely get more response on the App Engine forum: http://groups.google.com/group/google-appengine/topics HTH, /dmc On Thu, May 26, 2011 at 11:09 AM, Randell Schneider randellschnei...@gmail.com wrote: Hi There, I'm Starting a Web Project with GWT and some problems about datastore delete by ID. do not know why having this problem. I think it should be the primary key generation. OBS: getters and setters were not placed in this post Class GRUPO: import javax.jdo.PersistenceManager; import javax.jdo.annotations.Extension; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import javax.jdo.listener.StoreCallback; import com.metadot.book.connectr.shared.GrupoDTO; @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = true) public class Grupo implements StoreCallback { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key = gae.encoded- pk, value = true) private String id; @Persistent private String GrupoNome; @SuppressWarnings(unused) @Persistent private UserAccount userAccount; public Grupo() { } public Grupo(GrupoDTO grupoDTO) { this(); this.setBasicInfo(grupoDTO.getGrupoNome()); } } Class GrupoList.java: import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; import com.metadot.book.connectr.shared.GrupoDTO; public class GrupoList extends Composite { private static GrupoListUiBinder uiBinder = GWT .create(GrupoListUiBinder.class); interface GrupoListUiBinder extends UiBinderWidget, GrupoList { } @UiField VerticalPanel gruposPanel; private ListGrupoDTO grupoDTOs; private final static GrupoServiceAsync grupoService = GWT .create(GrupoService.class); public GrupoList() { initWidget(uiBinder.createAndBindUi(this)); } public GrupoList(ListGrupoDTO grupoDTOs) { this(); this.grupoDTOs = grupoDTOs; displayGrupos(); } public void showGrupos() { grupoService .getGrupos(new AsyncCallbackListGrupoDTO() { public void onFailure(Throwable caught) { Window.alert(An error occurred); } public void onSuccess(ListGrupoDTO result) { grupoDTOs = result; displayGrupos(); } }); } private void displayGrupos() { for (final GrupoDTO grupo: grupoDTOs) { gruposPanel.add(new GrupoItem(grupo)); } } } Class GrupoItem.java: import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.UiHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.Widget; import com.metadot.book.connectr.shared.GrupoDTO; public class GrupoItem extends Composite { private static GrupoItemUiBinder uiBinder = GWT .create(GrupoItemUiBinder.class); interface GrupoItemUiBinder extends UiBinderWidget, GrupoItem { } @UiField Label title; @UiField Button delete, edit; GrupoDTO grupo; private final static GrupoServiceAsync grupoService = GWT .create(GrupoService.class); public GrupoItem() { initWidget(uiBinder.createAndBindUi(this)); } public GrupoItem(String title, String id) { this(); this.title.setText(title); } public GrupoItem(GrupoDTO grupoDTO) { this(); this.grupo = grupoDTO; this.title.setText(grupo.getGrupoNome()); } public GrupoItem(String title) { this(); this.title.setText(title); } private static void deleteGrupo(GrupoDTO grupo) {
Re: eclipse GWT plugin jetty server problem
thanks. could the gwt eclipse plugin developers team check with us if this is a known bug for the gwt eclipse plugin in Linux? does anyone experience this same problem? thanks On May 26, 10:12 pm, Alan Chaney a...@mechnicality.com wrote: Try running: ps alx | grep java and carefully check that the jetty server has shut down properly. Sometimes a bug can stop the server shutting down, and thus the port appears to be still in use when you try and start another instance. HTH Alan On 5/26/2011 2:09 PM, othman wrote: probably this command : $sudo netstat --tcp --udp --listening -- program But why sometimes the port is free and app can run whether sometimes the port is not? this is a strange behavior maybe related to eclipse gwt plugin? On May 26, 9:52 pm, othmanothmanelmou...@gmail.com wrote: there are no other processes i believe. how can i know which processes are listening to this address? i'm using linux. On May 26, 9:02 pm, Juan Pablo Gardellagardellajuanpa...@gmail.com wrote: The error java.net.BindException: Address already in use indicate that you have a process that are listening in this port. 2011/5/26 othmanothmanelmou...@gmail.com Hi, i keep having an issue with GWT eclipse (helios) plugin in Linux box (opensuse 11.4). sometimes if i stop the dev mode server and then try Run as- web Application it gives me the below error. sometimes this doesn't give error and the dev mode app is started by the gwt eclipse plugin. maybe the dev mode server remains running for sometime after i stop it with red button at right of development mode view tab. any Idea what this problem is about? Starting Jetty on port Port 127.0.0.1: is already is use; you probably still have another session active [WARN] failed SelectChannelConnec...@127.0.0.1: java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 77) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java: 205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) [WARN] failed Server@1f34a6 java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 77) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java: 205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 565) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) [ERROR] shell failed in doStartupServer method -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: eclipse GWT plugin jetty server problem
It's been reported several times: http://code.google.com/p/google-web-toolkit/issues/detail?id=3957 http://code.google.com/p/google-web-toolkit/issues/detail?id=4312 http://code.google.com/p/google-web-toolkit/issues/detail?id=4514 (pay attention to the issues status) -- You received 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/GPE 2.3 unable to sign in with Google Apps account
Alright, final notification to everyone's emails... Setting a fresh eclipse on linux worked perfectly. The same accounts that would hang in windows can use the plugin perfectly on ubuntu. This leads me to believe the white screen of death is a redirect hang during auth procedure in the web browser that is wrapped by eclipse. Note, the failed OS was win7x64. I saw someone else on a similar thread also had problems on this particular OS. Hopefully this helps anyone debugging / work-arounding the situation. On May 24, 5:30 pm, Alyxandor Aristocles x...@aiyx.info wrote: Wait, nevermind. That eclipse repo only had the gwt designer modules in it. My bad, jumped the gun. Note that my login fails on both apps accounts and gmail accounts. I have to wonder if this is because I'm on windows and eclipse may rely on Internet Explorer in the auth procedure. I'm setting up on a linux box to see if this helps. If anyone does find / have a link to the 2.2.0 google plugin repo, I would love you forever if you could post it for me =} Thanks =} On May 24, 4:38 pm, Alyxandor Aristocles x...@aiyx.info wrote: I found the old repository from a manifest of the update site:http://commondatastorage.googleapis.com/eclipse_toolreleases/products... It would be very nice if someone at google could alter their search results to show the list of old versions of the eclipse plugin when search for google eclipse plugin downgrade. Many thanks to Alex Humesky for helping me by email with this issue. His help lead to me finding this link. On May 21, 3:27 pm, Alyxandor Aristocles x...@aiyx.info wrote: Hi, I have a project with multiple admins from multiple apps accounts. At first I tried deploying, and had transitioning issues with the account, which I resolved, and still it did not work. So I tried another account from a different apps domain that was already transitioned, and got the same problem. Then I tried a gmail account registered to the app as well, and it also did not work. Note that I sometimes get the scope param error, and other times, it just hangs on a white screen after login. HELP!! ...I am working on a production marketplace app and NEED to deploy by Monday to get a new feature out for a big demo. Can I get a zip of the old GPE to plugin? I can't use the appcfg deploy either because it fails on compiling jsp files. The jsps it fails on have EL codes in them, but absolutely nothing complex. I've searched online for zips to the old GPE plugin, but have had no luck. Any help would be greatly appreciated... Regards, -Ajax -- You received 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: eclipse GWT plugin jetty server problem
thank you this has given one method that solves the problem automatically select unused port On Thu, May 26, 2011 at 11:14 PM, Thomas Broyer t.bro...@gmail.com wrote: It's been reported several times: http://code.google.com/p/google-web-toolkit/issues/detail?id=3957 http://code.google.com/p/google-web-toolkit/issues/detail?id=4312 http://code.google.com/p/google-web-toolkit/issues/detail?id=4514 (pay attention to the issues status) -- You received 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: using GWT with flex?
By the way this is an example illustrating how you can use GWT RPC with Flex using gwt4air. http://www.gwt4air.appspot.com/#mx.extended.rpc I basically just modified the default GWT example by changing the GWT UI with a Flex UI. The communication with the server is the same. This approach is easier to maintain because everything is written in Java. No MXML/AS3 involded. And because the project is based on GWT i do need something like Blase DS to access the backend. Maybe you might want to consider this while planing your next project. Cheers, Alain 2011/5/26 Jay Roy jagger...@gmail.com If i understand what you mean, you want to repopulate the grid everytime the data are updated in the backend right ? exactly. yes i think u r right i can do it using timer object. so i am guessing flex does provide asynchronous support in its own way :) I would be curious to see what an AJAX framework like GWT can do which flex cant. thanks for your input. On Wed, May 25, 2011 at 9:34 PM, Alain Ekambi jazzmatad...@googlemail.com wrote: If i understand what you mean, you want to repopulate the grid everytime the data are updated in the backend right ? I think Blase DS does not support pushing Data to the client. Atleast not the free version. A solution could be to set up a timer that will poll data from the backend every 5s ? I think you can do that in as3 Dont get me wrong i dont want to keep you from using GWT, i just think that in your case there is a solution that is more effcient and esay to maintain then using GWT. But if you dont mind having some overhead plus a language explosion (MXML/AS3, JS, Java) and architecture problem in your project. I can tell you what our first solution to solve this type of problem was 2011/5/26 Jay Roy jagger...@gmail.com let me explain with a simple example We have a flex screen with a data grid. The data in data grid is populated with java collection. The java collection contains stock data which comes from backend. In the backend every 0.5 second the stock data in collection is updated(we get market feed of data). so every 0.5 second we need to refresh the flex data grid and update it with the backend data. So the question now is we need to make a asynch call every 0.5 sec to fetch the updated data. I am using blazeds to get the java collection but i dont think blazeds can be used to make asynchronous calls. That is where we want to use ajax to make the asynchronous call every 0.5 sec. thanks. On Wed, May 25, 2011 at 8:32 PM, Alain Ekambi jazzmatad...@googlemail.com wrote: What exactly do you mean with incorporate ajax ? Do you mean making async call to the server ? If yes cant you do that with Blase DS ? Like i said before i dont know if the road mxml/as -External Interface - js - gwt - backend and back is effective because you are adding a lot of overhead just to call methods in the backend. 2011/5/26 Jay jagger...@gmail.com Thanks for response. We are already using blazeds to communicate with our remote spring services. Our present architecture: Flex talks to backend java objects using spring blazeds. I want to incorporate ajax so What I had in mind is Flex mxml/as screen invokes JavaScript invokes java backend? Would that be correct? Thanks On May 25, 2011, at 5:58 PM, Alain Ekambi jazzmatad...@googlemail.com wrote: Well the suggestion was for the Integrating Flex with GWT part. If you come from Flex learning GWT should not be a big problem because the development model is very similar. The official GWT Documentation is always a good point to start: http://code.google.com/webtoolkit/doc/latest/DevGuide.html http://code.google.com/webtoolkit/doc/latest/DevGuide.html And if you are really really stucked there is a guy called *Thomas Broyer* here in the community. You cant miss him :) Making a GWT RPC call from an AS3/MXML based Flex application is not that easy and adds a lot of overhead to your application. We had the same issue with one of our Flex applications. This is one of the reasons that motivated me to create a GWT API for Flex, so one could use Java everywhere instead of mixing MXML/AS3(Flex UI), JavaScript(External Interface to communicate with the GWT ) and Java(GWT + backend) If your Flex application is MXML/AS3 based the best way should be to use something like Blase DS. If you want to use a GWT API to build a Flex application you can have a look at gwt4air. Best, Alain 2011/5/25 Alain Ekambi jazzmatad...@googlemail.com jazzmatad...@googlemail.com May i suggest you Gwt4Air ? :) http://code.google.com/p/gwt4air/http://code.google.com/p/gwt4air/ 2011/5/25 Jaggernat jagger...@gmail.comjagger...@gmail.com hi guys I need to learn GWT and impliment a simple solution using GWT. I come from flex background. can anyone point me what the important concepts in GWT is? and in what order do i learn?
More logs on requestfactory ?
I am getting an exception sent by a Receiver : Caused by: java.lang.RuntimeException: Server Error: null at com.google.web.bindery.requestfactory.shared.Receiver.onFailure(Receiver.java:36) at com.google.web.bindery.requestfactory.shared.impl.AbstractRequest.onFail(AbstractRequest.java:113) at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext$StandardPayloadDialect.processPayload(AbstractRequestContext.java:271) at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext$4.onTransportSuccess(AbstractRequestContext.java:951) at com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport$1.onResponseReceived(DefaultRequestTransport.java:136) But I have no idea where that comes from, neither do I have any hint from the stacktrace. And there is no log on server side as well. Is it possible to raise the log level of request factory ? -- You received 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: JSNI and Flex Intercommunication Problem (through Javascript Interface)
Sorry i got back at you this late. You allready spot the problem. try doing somethinf like this var network_json = new $wnd.Object(); network_json.data = { data: { nodes: [ { id: 1 }, { id: 2 } ], edges: [ { id: 2to1, target: 1, source: 2 } ] } }; this.draw({network: network_json}); Regards, Alain -- You received 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
Hi I am a beginner in GWT, I download the DynaTableRf and tried to deploy it with eclipse on my google account, but it said that the project is not web app project why? I download it as a GWT project what should I do to deploy it to eclipse? Thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Designer + GXT - Palette don't display GXT components
Eric Clayberg, you are 100% right ! Tanx for the info On 25 mai, 09:43, Eric Clayberg clayb...@google.com wrote: GXT is only supported for GWT Java UIs. UiBinder does not provide an API for non-standard parsers, so, in general, GXT won't work with GWT Designer in UiBinder mode. GXT works fine using GWT Designer and GWT Java UIs. On May 24, 10:08 am, Jonathan jonathan.aubuc...@gmail.com wrote: Hi Eric, I'm editing a Uibinder file. I see all the gwt components, but not the gxt components Still have the problem. On 24 mai, 10:00, Eric Clayberg clayb...@google.com wrote: Are you editing a GWT Java class or UiBinder file? The GXT palette will only appear if you are editing a GWT Java class. On May 22, 11:42 pm, Jonathan jonathan.aubuc...@gmail.com wrote: Hi, This is my versions: gxt-2.2.4-gwt22.jar Google Web Toolkit SDK 2.3.0 2.3.0.r36v201104261928 com.google.gwt.eclipse.sdkbundle.e36.feature.feature.group GWT Designer 2.3.1.r36x201105142201 com.google.gdt.eclipse.designer.feature.feature.group GWT Designer Core 2.3.1.r36x201105142127 com.google.gdt.eclipse.designer.hosted.feature.feature.group GWT Designer Editor 2.3.1.r36x201105142150 com.google.gdt.eclipse.designer.editor.feature.feature.group I fallowed the steps described here:http://code.google.com/intl/fr-FR/webtoolkit/tools/gwtdesigner/featur... The GWT Designer Palette don't display the GXT components, but I can manually add them: Right click on the palette panel -- Add component -- Choose a GXT class name (ie: CardPanel) Does it have a way to do it automatically for all GXT components? (ie: import a xml palette pre-made) Tanx. -- You received 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: Persistence Engine
The hosting issues have since been resolved. Please visit www.DataStoreGwt.com J.Ganesan www.DataStoreGwt.com On May 17, 8:43 pm, Ganesan tanyageo...@gmail.com wrote: It is just a matter of a few days, not exceeding seven days. We had some Linux permission issues while hosting. Thanks for your interest. Please bear with me. J.Ganesan On May 15, 7:24 pm, Jmscavaleiro jmscavale...@gmail.com wrote: -- You received 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
1. You have to install the google plugin for eclipse: http://code.google.com/eclipse/ 2. Right click on the DynaTableRf project and select properties 3. Expand Google 4. Choose App Engine-Enable App-Engine Try running in dev mode or deploying again. Thanks, John LaBanca jlaba...@google.com On Thu, May 26, 2011 at 7:43 PM, POONEH GHORBANI ghorbani.poo...@gmail.comwrote: Hi I am a beginner in GWT, I download the DynaTableRf and tried to deploy it with eclipse on my google account, but it said that the project is not web app project why? I download it as a GWT project what should I do to deploy it to eclipse? Thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to add CompositeCell to the CellTable
I am trying to CompositeCell with three checkboxes and a button hasCells.add(new HasCellContact, Boolean() { private CheckboxCell cell = new CheckboxCell(); @Override public CellBoolean getCell() { return cell; } @Override public FieldUpdaterContact, Boolean getFieldUpdater() { return null; } @Override public Boolean getValue(Contact object) { return object.control; } }); final CompositeCellContact compositeCells = new CompositeCellContact(hasCells); But how do we add this cell to the CellTable and how to provide the text for the Checkboxes. I couldnt find any examples of this in gwt samples. -- You received 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: Resubmitting r9970 again (again) - updating Animation to use the native requestAnimationFrame, w... (issue1446812)
I only gave it a glance but here are a few comments: - while I like the public requestAnimationFrame API, I don't like the static methods - I don't quite like the ImplMozilla/ImplWebkit extends ImplTimer pattern See details inline. http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/Animation.gwt.xml File user/src/com/google/gwt/animation/Animation.gwt.xml (right): http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/Animation.gwt.xml#newcode22 user/src/com/google/gwt/animation/Animation.gwt.xml:22: inherits name=com.google.gwt.user.UserAgent/ Those are implicitly inherited from the c.g.g.user.User module. + inheriting UserAgent without User cause all sorts warnings, see http://code.google.com/p/google-web-toolkit/issues/detail?id=2815 http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/Animation.java File user/src/com/google/gwt/animation/client/Animation.java (right): http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/Animation.java#newcode56 user/src/com/google/gwt/animation/client/Animation.java:56: public static void cancelAnimationFrame(AnimationRequestId requestId) { How about a cancel() method on AnimationRequestId instead? http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/Animation.java#newcode82 user/src/com/google/gwt/animation/client/Animation.java:82: public static AnimationRequestId requestAnimationFrame(AnimationCallback callback) { The issue with static methods is that you cannot mock them. When doing the previous patch, my idea rather was to extend Scheduler with a scheduleAnimationFrame or something like that (but without the cancel bit then, as there's no such notion of cancellation in Scheduler). I didn't go as far as implementing it as I though it'd be better done in a distinct CL. http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/Animation.java#newcode105 user/src/com/google/gwt/animation/client/Animation.java:105: private static AnimationImpl impl() { Is there anything in Animation that wouldn't use the impl and justify lazy-initializing it? or is to allow injecting a mock AnimationImpl using reflection in unit tests? (looks bad; I like the Scheduler.get() / SchedulerImpl.INSTANCE pattern much better) http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/AnimationImplMozilla.java File user/src/com/google/gwt/animation/client/AnimationImplMozilla.java (right): http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/AnimationImplMozilla.java#newcode57 user/src/com/google/gwt/animation/client/AnimationImplMozilla.java:57: if (!isSupported) { Can't there be a better pattern that would use either AnimationImplMozilla (mozRequestAnimationFrame) or AnimationImplTimer so that isSupported is only evaluated once at startup/first use? Maybe something like a hasNativeSupport() method that Animation#impl() would call, and if it returns false it switches to an explicit new AnimationImplTimer() ? (and those ifs in ImplMozilla and ImplWebkit would simply turn into asserts: if the ImplMozilla/ImplWebkit is used, it must be that there is native support for requestAnimationFrame) http://gwt-code-reviews.appspot.com/1446812/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Resubmitting r9970 again (again) - updating Animation to use the native requestAnimationFrame, w... (issue1446812)
http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/Animation.gwt.xml File user/src/com/google/gwt/animation/Animation.gwt.xml (right): http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/Animation.gwt.xml#newcode22 user/src/com/google/gwt/animation/Animation.gwt.xml:22: inherits name=com.google.gwt.user.UserAgent/ On 2011/05/26 13:07:58, tbroyer wrote: Those are implicitly inherited from the c.g.g.user.User module. + inheriting UserAgent without User cause all sorts warnings, see http://code.google.com/p/google-web-toolkit/issues/detail?id=2815 Done. http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/Animation.java File user/src/com/google/gwt/animation/client/Animation.java (right): http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/Animation.java#newcode56 user/src/com/google/gwt/animation/client/Animation.java:56: public static void cancelAnimationFrame(AnimationRequestId requestId) { That works for me. Should we rename AnimationRequestId to AnimationHandle? On 2011/05/26 13:07:58, tbroyer wrote: How about a cancel() method on AnimationRequestId instead? http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/Animation.java#newcode82 user/src/com/google/gwt/animation/client/Animation.java:82: public static AnimationRequestId requestAnimationFrame(AnimationCallback callback) { I think the method will be used like a Scheduler as well, but some people objected to actually putting animation methods in the Scheduler class. What about creating a com.google.gwt.animation.client.AnimationScheduler class and move these methods there (as instance methods)? On 2011/05/26 13:07:58, tbroyer wrote: The issue with static methods is that you cannot mock them. When doing the previous patch, my idea rather was to extend Scheduler with a scheduleAnimationFrame or something like that (but without the cancel bit then, as there's no such notion of cancellation in Scheduler). I didn't go as far as implementing it as I though it'd be better done in a distinct CL. http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/Animation.java#newcode105 user/src/com/google/gwt/animation/client/Animation.java:105: private static AnimationImpl impl() { Agreed. See AnimationScheduler suggestion above. On 2011/05/26 13:07:58, tbroyer wrote: Is there anything in Animation that wouldn't use the impl and justify lazy-initializing it? or is to allow injecting a mock AnimationImpl using reflection in unit tests? (looks bad; I like the Scheduler.get() / SchedulerImpl.INSTANCE pattern much better) http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/AnimationImplMozilla.java File user/src/com/google/gwt/animation/client/AnimationImplMozilla.java (right): http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/AnimationImplMozilla.java#newcode57 user/src/com/google/gwt/animation/client/AnimationImplMozilla.java:57: if (!isSupported) { On 2011/05/26 13:07:58, tbroyer wrote: Can't there be a better pattern that would use either AnimationImplMozilla (mozRequestAnimationFrame) or AnimationImplTimer so that isSupported is only evaluated once at startup/first use? Maybe something like a hasNativeSupport() method that Animation#impl() would call, and if it returns false it switches to an explicit new AnimationImplTimer() ? (and those ifs in ImplMozilla and ImplWebkit would simply turn into asserts: if the ImplMozilla/ImplWebkit is used, it must be that there is native support for requestAnimationFrame) I don't like mixing GWT.create() with new, especially if AnimationImplTimer uses a Timer that needs to be mocked as well for non-browser testing. Alternatively, AnimationImplMozilla can have an inner class NativeImpl that implements AnimationImpl. In the constructor of AnimationImplMozilla, we check isSupported(), then set an instance field impl = new AnimationImplTimer() or to new NativeImpl(). class AnimationImplMozilla implements AnimationImpl } AnimationImpl impl; AnimationImplMozilla() { impl = isSupported() ? new NativeImpl() : new AnimationImplTimer(); } requestAnimationFrame() { return impl.requestAnimationFrame(); } } That way, AnimationImplMozilla does not need to extend AnimationImplTimer, there is only one check in the constructor, and we do not have any new calls in Animation. http://gwt-code-reviews.appspot.com/1446812/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Resubmitting r9970 again (again) - updating Animation to use the native requestAnimationFrame, w... (issue1446812)
http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/Animation.java File user/src/com/google/gwt/animation/client/Animation.java (right): http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/Animation.java#newcode56 user/src/com/google/gwt/animation/client/Animation.java:56: public static void cancelAnimationFrame(AnimationRequestId requestId) { On 2011/05/26 14:15:47, jlabanca wrote: That works for me. Should we rename AnimationRequestId to AnimationHandle? +1 http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/Animation.java#newcode82 user/src/com/google/gwt/animation/client/Animation.java:82: public static AnimationRequestId requestAnimationFrame(AnimationCallback callback) { On 2011/05/26 14:15:47, jlabanca wrote: I think the method will be used like a Scheduler as well, but some people objected to actually putting animation methods in the Scheduler class. What about creating a com.google.gwt.animation.client.AnimationScheduler class and move these methods there (as instance methods)? +1, using the same pattern as Scheduler with a static get() method http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/AnimationImplMozilla.java File user/src/com/google/gwt/animation/client/AnimationImplMozilla.java (right): http://gwt-code-reviews.appspot.com/1446812/diff/1/user/src/com/google/gwt/animation/client/AnimationImplMozilla.java#newcode57 user/src/com/google/gwt/animation/client/AnimationImplMozilla.java:57: if (!isSupported) { On 2011/05/26 14:15:47, jlabanca wrote: I don't like mixing GWT.create() with new, especially if AnimationImplTimer uses a Timer that needs to be mocked as well for non-browser testing. You could GWT.create(AnimationImplTimer.class) if you prefer ;-) But there's already a similar pattern in FocusImpl where, if the GWT.create()d class is a FocusImplStandard (instanceof), then it news a FocusImpl. I think the idea is not to allow usage with GWTMockUtilities.disarm(), but rather to use a DI pattern where, outside tests, you fill the value using Scheduler.get(). (In most cases, code using Scheduler would fail with NPEs if you use it with GWTMockUtilities.disarm(), and I'd support doing the same for AnimationScheduler). Alternatively, AnimationImplMozilla can have an inner class NativeImpl that implements AnimationImpl. In the constructor of AnimationImplMozilla, we check isSupported(), then set an instance field impl = new AnimationImplTimer() or to new NativeImpl(). class AnimationImplMozilla implements AnimationImpl } AnimationImpl impl; AnimationImplMozilla() { impl = isSupported() ? new NativeImpl() : new AnimationImplTimer(); } requestAnimationFrame() { return impl.requestAnimationFrame(); } } That way, AnimationImplMozilla does not need to extend AnimationImplTimer, there is only one check in the constructor, and we do not have any new calls in Animation. But that introduces yet another indirection. Honestly, I have absolutely no problem mixing GWT.create() with new as in FocusImpl, provided this is done in an impl class as well: public abstract class AnimationScheduler { public AnimationScheduler get() { // This is the only use of AnimationSchedulerImpl in AnimationScheduler, so it's safe as long as you don't call get() outside of a browser context; in unit tests, you'd provide a mock AnimationScheduler and never touch AnimationSchedulerImpl return AnimationSchedulerImpl.INSTANCE; } ... } class AnimationSchedulerImpl extends AnimationScheduler { static final AnimationScheduler INSTANCE; static { AnimationSchedulerImpl impl = GWT.create(AnimationSchedulerImpl.class); // if impl==null, use null (would be because of GWTMockUtilities.disarm(), we don't want to new an AnimationSchedulerImpl in this case) INSTANCE = (impl == null || impl.isSupported()) ? impl : new AnimationSchedulerImpl(); } protected abstract boolean isSupported(); } or something like that. Of course YMMV, and I'd be OK with whatever the team prefers. http://gwt-code-reviews.appspot.com/1446812/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Bugfixes in ControlFlowAnalyzer (issue1443807)
http://gwt-code-reviews.appspot.com/1443807/diff/2001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java File dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java (left): http://gwt-code-reviews.appspot.com/1443807/diff/2001/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java#oldcode231 dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:231: } This loop has the same comment as the one in visit(JInterfaceType, ...) but written differently. Since refereces is always false, if isInstantiated is always false, this rescue becomes a no-op. We could either surround this with an if test as below, or just predicate rescue (JReferenceType, isReferenced, isInstantiated with: if (type == null || (!isReferenced !isInstantiated)) { return; } http://gwt-code-reviews.appspot.com/1443807/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Broken editor type conversions in GWT trunk r10227
TextBox is for editing String (it's a IsEditorLeafValueEditorString), use an IntegerBox for Integers (IsEditorLeafValueEditorInteger). (and this group is for contributors to GWT, use http://groups.google.com/group/google-web-toolkit for support questions) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Changed method dependencies report to show method code sizes. Call stacks are now a dropdown act... (issue1451803)
Reviewers: zundel, Description: Changed method dependencies report to show method code sizes. Call stacks are now a dropdown action under each method. Please review this at http://gwt-code-reviews.appspot.com/1451803/ Affected files: M dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java M dev/core/src/com/google/gwt/dev/jjs/impl/JsAbstractTextTransformer.java M dev/core/src/com/google/gwt/dev/jjs/impl/JsFunctionClusterer.java M dev/core/src/com/google/gwt/dev/jjs/impl/JsIEBlockTextTransformer.java M dev/core/src/com/google/gwt/dev/js/JsReportGenerationVisitor.java M dev/core/src/com/google/gwt/dev/js/JsSourceGenerationVisitorWithSizeBreakdown.java M dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java M dev/core/src/com/google/gwt/soyc/SizeBreakdown.java M dev/core/src/com/google/gwt/soyc/SoycDashboard.java M dev/core/src/com/google/gwt/soyc/StaticResources.java M dev/core/src/com/google/gwt/soyc/resources/soyc.css M eclipse/dev/.checkstyle M eclipse/samples/DynaTable/.classpath M eclipse/samples/DynaTable/.project M eclipse/user/.project M samples/dynatable/src/com/google/gwt/sample/dynatable/DynaTable.gwt.xml -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Changed method dependencies report to show method code sizes. Call stacks are now a dropdown act... (issue1451803)
A NOOO On 2011/05/26 15:08:30, dconnelly wrote: http://gwt-code-reviews.appspot.com/1451803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Отг: Re: Broken editor type conversions in GWT trunk r10227
Ah my mistake. Sorry about that post, but I wasn't sure where the problem is with my usage or some GWT issue. Thats why I posted it on both groups. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Misc GWT compiler bugfixes and cleanups (issue1452802)
Reviewers: jbrosenberg, zundel, http://gwt-code-reviews.appspot.com/1452802/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java File dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java (right): http://gwt-code-reviews.appspot.com/1452802/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java#newcode40 dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java:40: if (ctor instanceof JConstructor) { All methods have their params frozen as soon as construction is done. Probably it would be better to simply require params to be provided at construction time instead of making it stateful, but that's how it was written. The reason to check for original params is that we're looking for a specific signature. If some non-default constructor theoretically had its params removed prior to this, we wouldn't want to call the wrong one. Practically speaking, it doesn't matter since opts don't run before GWT.creates() are replaced, but this is more correct. http://gwt-code-reviews.appspot.com/1452802/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java File dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java (right): http://gwt-code-reviews.appspot.com/1452802/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java#newcode220 dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java:220: for (JMethod methodIt : enumType.getMethods()) { Probably so. Will fix, or maybe just compare method signature. http://gwt-code-reviews.appspot.com/1452802/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/ReferenceMapper.java File dev/core/src/com/google/gwt/dev/jjs/impl/ReferenceMapper.java (right): http://gwt-code-reviews.appspot.com/1452802/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/ReferenceMapper.java#newcode157 dev/core/src/com/google/gwt/dev/jjs/impl/ReferenceMapper.java:157: JMethod clinit = I *think* that the currently-being-compiled-unit will want to encode a reference from its own clinit to its super clinit, which will generally be an external type from another unit. There needs to be a placeholder to target so that it can be resolved later. I suppose it could be written such that GwtAstBuilder does not insert the super clinit call and leaves it to UnifyAst (the code I'm working on) to do so later. But even if it didn't make a practical difference, there's a hard-baked assumption in lots of places that method 0 of any class is always the clinit. This isn't necessarily a great formulation, there's probably better ways we could have modeled it, but there you have it. To not have a placeholder method would risk introducing subtle bugs. Please review this at http://gwt-code-reviews.appspot.com/1452802/ Affected files: M dev/core/src/com/google/gwt/dev/jjs/ast/JClassType.java M dev/core/src/com/google/gwt/dev/jjs/ast/JConstructor.java M dev/core/src/com/google/gwt/dev/jjs/ast/JField.java M dev/core/src/com/google/gwt/dev/jjs/ast/JFieldRef.java M dev/core/src/com/google/gwt/dev/jjs/ast/JGwtCreate.java M dev/core/src/com/google/gwt/dev/jjs/ast/JInterfaceType.java M dev/core/src/com/google/gwt/dev/jjs/ast/JMethod.java M dev/core/src/com/google/gwt/dev/jjs/ast/JStringLiteral.java M dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java M dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java M dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java M dev/core/src/com/google/gwt/dev/jjs/impl/MakeCallsStatic.java M dev/core/src/com/google/gwt/dev/jjs/impl/ReferenceMapper.java M dev/core/src/com/google/gwt/dev/util/collect/Lists.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding new DataGrid widget. DataGrid is a variation of CellTable that supports a fixed header a... (issue1450805)
committed as r10228 http://gwt-code-reviews.appspot.com/1450805/diff/1/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java File user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java (right): http://gwt-code-reviews.appspot.com/1450805/diff/1/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java#newcode290 user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java:290: // IE doesn't support innerHtml on a TableSection or Table element, so we The comment is misleading. Its important to know if anyone touches the code, but generating a new table makes sense anyway. Setting innerHtml on a Table or TableSection seems more fragile than just wrapping it with a table tag, regardless of the browser. On 2011/05/25 23:16:42, rchandia wrote: If this is due to IE behavior, shouldn't this strategy go in ImplTrident, with a more refined replacement strategy used here? Or may be explain why generating the whole table is not as bad as it sounds. http://gwt-code-reviews.appspot.com/1450805/diff/1/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java#newcode1722 user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java:1722: private void updateDependsOnSelection() { On 2011/05/25 23:16:42, rchandia wrote: The name of this method is now a misnomer as it updates a lot more than just dependsOnSelection. Same for the javadoc. Done. Renamed to coalesceCellProperties() and updated javadoc. http://gwt-code-reviews.appspot.com/1450805/diff/1/user/src/com/google/gwt/user/cellview/client/CellTable.java File user/src/com/google/gwt/user/cellview/client/CellTable.java (right): http://gwt-code-reviews.appspot.com/1450805/diff/1/user/src/com/google/gwt/user/cellview/client/CellTable.java#newcode669 user/src/com/google/gwt/user/cellview/client/CellTable.java:669: super.setColumnWidth(column, width); I wanted to update the JavaDoc comments. The additional comment doesn't apply to DataGrid because it always uses fixed layout. I added a note explaining why the methods are overridden. On 2011/05/25 23:16:42, rchandia wrote: Are these overriden methods necessary? I'd imagine the standard virtual dispatch in Java would handle this. http://gwt-code-reviews.appspot.com/1450805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Misc GWT compiler bugfixes and cleanups (issue1452802)
LGTM http://gwt-code-reviews.appspot.com/1452802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Misc GWT compiler bugfixes and cleanups (issue1452802)
http://gwt-code-reviews.appspot.com/1452802/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/ReferenceMapper.java File dev/core/src/com/google/gwt/dev/jjs/impl/ReferenceMapper.java (right): http://gwt-code-reviews.appspot.com/1452802/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/ReferenceMapper.java#newcode157 dev/core/src/com/google/gwt/dev/jjs/impl/ReferenceMapper.java:157: JMethod clinit = I'm playing catchup: this part I don't understand. Why is this not just bloat on this class? Is this to satisfy referencing from subclasses? - if so, at the time they are resolved, won't there be a real $clinit() http://gwt-code-reviews.appspot.com/1452802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: AutoboxUtils cleanup (issue1443808)
http://gwt-code-reviews.appspot.com/1443808/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java File dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java (right): http://gwt-code-reviews.appspot.com/1443808/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java#newcode47 dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java:47: for (JMethod method : wrapperType.getMethods()) { move initialization of boxSig unboxSig before the start of the for loop. http://gwt-code-reviews.appspot.com/1443808/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java#newcode97 dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java:97: JMethodCall argMethodCall = (JMethodCall) arg; How do we know the only possible methodCall that could be passed here will be an unboxMethod()? Is that the only methodCall type that can be the lhs of a binaray assignment (e.g. looking at the call-site in FixAssignmentToUnbox). It looks like there are other call-sites with less guaranteed semantics... http://gwt-code-reviews.appspot.com/1443808/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: AutoboxUtils cleanup (issue1443808)
http://gwt-code-reviews.appspot.com/1443808/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java File dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java (right): http://gwt-code-reviews.appspot.com/1443808/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java#newcode47 dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java:47: for (JMethod method : wrapperType.getMethods()) { On 2011/05/26 15:45:00, jbrosenberg wrote: move initialization of boxSig unboxSig before the start of the for loop. Done. Whoops!! http://gwt-code-reviews.appspot.com/1443808/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java#newcode97 dev/core/src/com/google/gwt/dev/jjs/impl/AutoboxUtils.java:97: JMethodCall argMethodCall = (JMethodCall) arg; Yeah, you cannot assign into a method call. Code like foo() = 3 is an error, so is foo()++. The only time it should ever happen is exactly this case that this pass fixes. So it really should just be an assertion. http://gwt-code-reviews.appspot.com/1443808/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A mechanical refactoring of the Precompile options as prep for further cleanup. (issue1452804)
Specifically, I used Eclipse refactoring to move Precompile.PrecompileOptions, Precompile.PrecompileOptionsImpl, Precompile.ArgProcessor, and GraphicsInitThread to top level classes. I updated one or two comments, and added @Override tags where eclipse highlighted them as being needed. http://gwt-code-reviews.appspot.com/1452804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: A mechanical refactoring of the Precompile options as prep for further cleanup. (issue1452804)
LGTM http://gwt-code-reviews.appspot.com/1452804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Changed method dependencies report to show method code sizes. Call stacks are now a dropdown act... (issue1443809)
Reviewers: zundel, Description: Changed method dependencies report to show method code sizes. Call stacks are now a dropdown action under each method. Review by: zun...@google.com Please review this at http://gwt-code-reviews.appspot.com/1443809/ Affected files: M dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java M dev/core/src/com/google/gwt/soyc/SizeBreakdown.java M dev/core/src/com/google/gwt/soyc/SoycDashboard.java M dev/core/src/com/google/gwt/soyc/StaticResources.java M dev/core/src/com/google/gwt/soyc/resources/soyc.css -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add BatchedRequestScope utility class to aggregate all requests made within a single tick of the... (issue1449804)
LGTM http://gwt-code-reviews.appspot.com/1449804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add RequestContext.find() to support chained requests. (issue1448806)
LGTM http://gwt-code-reviews.appspot.com/1448806/diff/1/user/src/com/google/web/bindery/requestfactory/shared/RequestContext.java File user/src/com/google/web/bindery/requestfactory/shared/RequestContext.java (right): http://gwt-code-reviews.appspot.com/1448806/diff/1/user/src/com/google/web/bindery/requestfactory/shared/RequestContext.java#newcode19 user/src/com/google/web/bindery/requestfactory/shared/RequestContext.java:19: * The base interface for RequestFactory service endpoints. Add disclaimer explaining that this interface (and the others) are normally implemented by generated code, and are subject to incompatible updates? And should log an item on the issue tracker with the appropriate breaking change label. http://gwt-code-reviews.appspot.com/1448806/diff/1/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java File user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java (right): http://gwt-code-reviews.appspot.com/1448806/diff/1/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java#newcode528 user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java:528: new Object[] {proxyId}, propertyRefs, proxyId.getProxyClass(), null); Ha! Do you have other sneaky literals like this lying around? http://gwt-code-reviews.appspot.com/1448806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Changed method dependencies report to show method code sizes. Call stacks are now a dropdown act... (issue1443809)
And, as you pointed out, there is no need for the class name headers to be clickable - could you remove that non-functioning clicking? http://gwt-code-reviews.appspot.com/1443809/diff/1/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java File dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java (right): http://gwt-code-reviews.appspot.com/1443809/diff/1/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java#newcode209 dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java:209: outFile.print(b1( + nameArray + ,); Rename b1() and b2() to be one character names in order to save space in the generated output. http://gwt-code-reviews.appspot.com/1443809/diff/1/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java#newcode279 dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java:279: outFile.println(\open\ : \images/play-g16-down.png\,); I assume these files will be checked in with the patch. http://gwt-code-reviews.appspot.com/1443809/diff/1/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java#newcode327 dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java:327: outFile.println(document.write(\img onclick='swapShowHide( + fix the size of the icon when the element is created to avoid re-layout once the image resource is loaded. http://gwt-code-reviews.appspot.com/1443809/diff/1/dev/core/src/com/google/gwt/soyc/SizeBreakdown.java File dev/core/src/com/google/gwt/soyc/SizeBreakdown.java (right): http://gwt-code-reviews.appspot.com/1443809/diff/1/dev/core/src/com/google/gwt/soyc/SizeBreakdown.java#newcode27 dev/core/src/com/google/gwt/soyc/SizeBreakdown.java:27: public MapString, Integer methodToSize = new HashMapString, Integer(); this and most of the other fields should probably be private final and use accessors, but I won't make you go through and do all that. http://gwt-code-reviews.appspot.com/1443809/diff/1/dev/core/src/com/google/gwt/soyc/resources/soyc.css File dev/core/src/com/google/gwt/soyc/resources/soyc.css (right): http://gwt-code-reviews.appspot.com/1443809/diff/1/dev/core/src/com/google/gwt/soyc/resources/soyc.css#newcode208 dev/core/src/com/google/gwt/soyc/resources/soyc.css:208: .soyc-method-size-table { ? needed http://gwt-code-reviews.appspot.com/1443809/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Creating a default Locator for RequestFactoryServlet
@Bobv Thanks for committing the previous change, and I've got one more change that will make my, and probably a bunch of other people's, lives easier. By being able to setup a DefaultLocator, it would stop me from having to copy/paste @ServiceName(value=com.my.service.MyService * locator=com.my.locator.SpringLocator*) in every RequstContext. The cleanest way I can think to implement this is by adding an additional constructor param and requiring the user extend RequestFactoryServlet like they already do with ServiceLayerDecorator The other option I considered was allowing them to specify a default Locator in web.xml, but that either becomes a much bigger patch or involves a static variable in RequestFactoryServlet being referenced by LocatorServiceLayer. What do you think? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Dollar sign and binary types
2011/5/26 Grzegorz Kossakowski grzegorz.kossakow...@gmail.com: 2011/5/26 Eric Ayers zun...@google.com: Hi again, Can you point out any of places where you saw this assumption? The last time I was mucking around with binary type names I was told not to assume that $ could not appear in source names, so it might be unintentional. Hi Eric, The problematic place for me is ReplaceBindings.java, lines 154-155: // Rebinds are always on a source type name. String reqType = type.getName().replace('$', '.'); Any comment on that one? Working-around it is possible but quite involved. I'd love to know if I need some solid work-around or just hack to keep me going because this will be removed upstream. -- Grzegorz Kossakowski -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Creating a default Locator for RequestFactoryServlet
How about simply using a ServiceLayerDecorator that overrides resolveLocator, delegating to super.resolveLocator and, if it returns null then return the default locator instead? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Changed method dependencies report to show method code sizes. Call stacks are now a dropdown act... (issue1443809)
http://gwt-code-reviews.appspot.com/1443809/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Dollar sign and binary types
On Thu, May 26, 2011 at 2:03 PM, Grzegorz Kossakowski grzegorz.kossakow...@gmail.com wrote: The problematic place for me is ReplaceBindings.java, lines 154-155: // Rebinds are always on a source type name. String reqType = type.getName().replace('$', '.'); Any comment on that one? Working-around it is possible but quite involved. I'd love to know if I need some solid work-around or just hack to keep me going because this will be removed upstream. There is a common place for these in c.g.g.dev.util.Name, that provides all the conversions between different name types. So, this should be: String reqType = Name.BinaryName.toSourceName(type.getName()) However, that doesn't solve your problem. The main problem is that once you get to a binary class name as a string, you can no longer distinguish these cases. You would have to have package, enclosing class, and class broken out separately in order to do anything more useful with this, or at least have an oracle of possible classes you can look up (though that would still fail if A.B and A$B were both present). JReferenceType just takes a single string, so you can't get that information. However, I think in this case there is no need to replace $, since despite the lack of documentation I believe type.getName() is actually a source name (we have been really sloppy with the 3 types of names - a year or two ago I started to rewrite it all with type-safe wrappers but that was rejected because it dramatically increased memory usage in the compiler). For example, if you look at ReferenceMapper.createType, it takes a JDT ReferenceBinding.compoundName and creates the names by simply joining the components with dots. My guess is if you simply remove the .replace from that line, it will work fine (and in fact is removing a bug). I wouldn't get your hopes up that that is the last time you will run into a problem, because anyplace that calls Name.isSourceName, for example, will fail on a class name with an embedded $. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Creating a default Locator for RequestFactoryServlet
On Thu, May 26, 2011 at 2:23 PM, Thomas Broyer t.bro...@gmail.com wrote: How about simply using a ServiceLayerDecorator that overrides resolveLocator, delegating to super.resolveLocator and, if it returns null then return the default locator instead? If it were in a separate annotation, you could simply define your own interface with whatever defaults you like and then extend that interface instead of RequestContext. We use this pattern a lot for i18n Messages to get company/project-wide defaults. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the wrapElement API to receive the id and a parent element. I also ported some of the boo... (issue1446811)
http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/IsRenderable.java File user/src/com/google/gwt/user/client/ui/IsRenderable.java (right): http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/IsRenderable.java#newcode29 user/src/com/google/gwt/user/client/ui/IsRenderable.java:29: public interface IsRenderable extends SafeHtmlRendererString { Let's drop the extends SafeHtmlRenderer. Should document that it's up to the implementation to choose how to use the id (unless we pass in a helper, see below). Perhaps change its name to token to drive home the point. http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/IsRenderable.java#newcode33 user/src/com/google/gwt/user/client/ui/IsRenderable.java:33: * the DOM tree. The id is assumed to be the same passed in at render time. I think it's time to implement a helper class, to be used for both rendering and lookup. If we don't have one soon retrofitting will be a nightmare. Document here that the receiver cannot assume that the element is attached to the dom, and @see to the helper. The helper could be something like: SafeHtml stampElement(SafeHtml mustBeOpeningTag, String token) { String tag = mustBeOpeningTag().asString(); assert tag.endsWith(); return SafeHtmlUtil.whatever(tag.substring(tag.length()-1) + , id=' + token + ')); } Element find(String token, Element parentElement) { ensureAttached(parentElement); return Document.get().getElementById(token); } And I think the thing to do is pass an instance of the helper into the render() and wrap() calls. The alternative is to make some hacky static lookup scheme, but I think we'll regret that pretty quickly. You buying it? http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/RenderablePanel.java File user/src/com/google/gwt/user/client/ui/RenderablePanel.java (right): http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/RenderablePanel.java#newcode61 user/src/com/google/gwt/user/client/ui/RenderablePanel.java:61: BUILT, RENDERED, WRAPPED, DONE I'm not liking the phases. I think we can simplify. http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/RenderablePanel.java#newcode65 user/src/com/google/gwt/user/client/ui/RenderablePanel.java:65: // single callback. Time to take care of this. But that said, I don't like our plan from the other day. :-) We earlier talked about having binder generate subclasses of RenderablePanel that override no-op default implementations, but I'm having second thoughts about that. My rational was that it avoids unnecessary class definitions, but that's silly — a subclass of RenderablePanel is a new class just like a command object is — and it will make it trickier to allow people to use their own subclasses of RenderablePanel (which they will do, trust me). Instead, let's introduce a null command object and use it here, so that you can always call the thing without having to think abou it: public Command wrapInitializationCallback = NullCommand.INSTANCE; public Command detachedInitializationCallback = NullCommand.INSTANCE; That said, I think you're right to dislike the magical phase check in getElement(). Can you go ahead and rework this to give the wrap callback an argument? So this becomes: public WrapCallback wrapInitializationCallback = WrapCallback.INSTANCE; public Command detachedInitializationCallback = NullCommand.INSTANCE; But *that* said, see the comment on line 182. Maybe we dont need these commands at all. http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/RenderablePanel.java#newcode70 user/src/com/google/gwt/user/client/ui/RenderablePanel.java:70: protected SafeHtml html = null; I dislike protected fields. Can you methods around these? Should also ensure that the code here uses the methods rather than poking the fields directly, in case subclasses get tricky. http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/RenderablePanel.java#newcode72 user/src/com/google/gwt/user/client/ui/RenderablePanel.java:72: private String styleName = null; TODO need a more general mechanism for caching attributes while unwrapped http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/RenderablePanel.java#newcode182 user/src/com/google/gwt/user/client/ui/RenderablePanel.java:182: public void performDetachedInitialization() { If we go ahead and add the helper object to the wrap and render calls, can it be in charge of accumulating the callbacks as well, and get these command objects out of here? http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/RenderablePanel.java#newcode230 user/src/com/google/gwt/user/client/ui/RenderablePanel.java:230: if (currentPhase != Phase.RENDERED) { You're forcing the
[gwt-contrib] Re: Change the wrapElement API to receive the id and a parent element. I also ported some of the boo... (issue1446811)
http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/IsRenderable.java File user/src/com/google/gwt/user/client/ui/IsRenderable.java (right): http://gwt-code-reviews.appspot.com/1446811/diff/1/user/src/com/google/gwt/user/client/ui/IsRenderable.java#newcode33 user/src/com/google/gwt/user/client/ui/IsRenderable.java:33: * the DOM tree. The id is assumed to be the same passed in at render time. Re-reading this, I see I shifted my stance in midstream. Let me shift if further. To be clear, I think we should not put control of the document.getElementById() call in the hands of the individual panels, and instead we should give them a helper object. And now that I think about it, if we're giving them the helper then we don't need to give them the id at all. It can be built into the helper. And we can go back to giving them just the element they stamped. interface Stamper { /** Error to call more than once */ SafeHtml stampRenderedOpenTag(SafeHtml mustBeOpeningTag); } interface IsRenderable { void render(SafeHtmlBuilder builder, Stamper stamper); /** Provides the element that was stamped, not some ancestor */ void wrapElement(Element); } Note that it's entirely up to them to choose what element they stamp. There is no requirement that it's the root of their rendered product, and no requirement that the renderer produce a single dom element. http://gwt-code-reviews.appspot.com/1446811/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Changed method dependencies report to show method code sizes. Call stacks are now a dropdown act... (issue1443809)
LGTM. Updated report looks great! http://gwt-code-reviews.appspot.com/1443809/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Dollar sign and binary types
Unfortunately, I tried removing the replace('$',.) and it failed miserably. Looking at it in the debugger, those really are binary names. e.g.: com.google.gwt.core.client.impl.AsyncFragmentLoader$LoadingStrategy On Thu, May 26, 2011 at 2:24 PM, John Tamplin j...@google.com wrote: On Thu, May 26, 2011 at 2:03 PM, Grzegorz Kossakowski grzegorz.kossakow...@gmail.com wrote: The problematic place for me is ReplaceBindings.java, lines 154-155: // Rebinds are always on a source type name. String reqType = type.getName().replace('$', '.'); Any comment on that one? Working-around it is possible but quite involved. I'd love to know if I need some solid work-around or just hack to keep me going because this will be removed upstream. There is a common place for these in c.g.g.dev.util.Name, that provides all the conversions between different name types. So, this should be: String reqType = Name.BinaryName.toSourceName(type.getName()) However, that doesn't solve your problem. The main problem is that once you get to a binary class name as a string, you can no longer distinguish these cases. You would have to have package, enclosing class, and class broken out separately in order to do anything more useful with this, or at least have an oracle of possible classes you can look up (though that would still fail if A.B and A$B were both present). JReferenceType just takes a single string, so you can't get that information. However, I think in this case there is no need to replace $, since despite the lack of documentation I believe type.getName() is actually a source name (we have been really sloppy with the 3 types of names - a year or two ago I started to rewrite it all with type-safe wrappers but that was rejected because it dramatically increased memory usage in the compiler). For example, if you look at ReferenceMapper.createType, it takes a JDT ReferenceBinding.compoundName and creates the names by simply joining the components with dots. My guess is if you simply remove the .replace from that line, it will work fine (and in fact is removing a bug). I wouldn't get your hopes up that that is the last time you will run into a problem, because anyplace that calls Name.isSourceName, for example, will fail on a class name with an embedded $. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Activities Places
Thanks!! 2011/5/25 A. Stevko andy.ste...@gmail.com Thanks. I like it. It makes clearer some of the relationships. On Wed, May 25, 2011 at 11:43 AM, danieldietrich cafeb...@googlemail.comwrote: Hi, I've drawn an informal map about Activities Places - perhaps it is helpful for someone... Greetings from Kiel/Germany - Daniel (No warranty is given about correctness/completeness) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- -- A. Stevko === If everything seems under control, you're just not going fast enough. M. Andretti -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the wrapElement API to receive the id and a parent element. I also ported some of the boo... (issue1446811)
For the record: Rafa talked some sense into me offline. The Stamper notion really isn't practical given the limitations of SafeHtmlTemplates, so I'm backing off of most of this craziness. Instead we'll just delete the extends SafeHtmlRenderer thing. That will also allow backing away from the phase stuff, since we won't yet shift responsibility for the getElementById call. Instead, when this is done Rafa will look into extracting a superclass out of UIObject that is able to cache calls made to setStyleName, setVisible, setWidget, etc., before setElement has been called; maybe apply them during getElement(); but mainly provide access to them for smart subclasses to use in their render methods. (Eventually this new superclass, RenderableObject, should itself implement IsRenderable, but not in the first pass.) With that in hand we should be able to make move RenderableComposite back into Composite, and RenderablePanel back into HTMLPanel. WOOT! http://gwt-code-reviews.appspot.com/1446811/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the wrapElement API to receive the id and a parent element. I also ported some of the boo... (issue1446811)
http://gwt-code-reviews.appspot.com/1446811/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors