How to test FlexTable click?
Hi all I have a click handler method like this in my presenter widget.getTable().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { FlexTable table = (FlexTable) event.getSource(); Cell cell = table.getCellForEvent(event); String purchaseOrderId = table.getText(cell.getRowIndex(), cell.getCellIndex()); RegisterArrivalEvent arrivalEvent = new RegisterArrivalEvent(); arrivalEvent.setPurchaseOrderId(purchaseOrderId); eventBus.fireEvent(arrivalEvent); } }); How can I successfully test my presenter with a method like this in it? Would I be better of rewriting this method all together? --~--~-~--~~~---~--~~ You received 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: Debugging GWT App in Eclipse
There's a bug in JDK 1.6.0_14 that does this, so check what version of java you are using. The workaround is to downgrade to JDK 1.6.0_13 Howard Tan wrote: Hi Ekki, Did you get this to work on your office computer? I'm experiencing the same problem, and just like to get this to work. Thanks, Howard On Jul 24, 12:25 pm, CI-CUBE e...@ci-cube.info wrote: Thx. I did setup an identical configuration on my home machine, which works as expected. Even the breakpoint window appears. So, hopefully, I can manage to get it running on the office machine too. Thread over for now. Thx again Ekki On Jul 24, 8:59 pm, Sean slough...@gmail.com wrote: Make sure you're not just hitting run in Eclipse, hit Debug. It'll look like the little bug next to the play button in Eclipse. Breakpoint window usually only shows up when in the Debug View. You can add it to the normal java view (I personally do) by: Window - Show View - Other. Find the +Debug, expand it, select breakpoints. And now you can move that tab where you see fit. On Jul 24, 10:30 am, CI-CUBE e...@ci-cube.info wrote: Hi... I'm in theGettingStartedTutorial example, everything works so far, but I'm unable to debug (Step 6). It always runs thru the code ignoring my breakpoints. BTW, if I create a breakpoint there isn't a breakpoint window where that one appears (like shown in the Tutorial) I tried both values for the 'Run built-in Server' setting - no difference. BTW, the app always appears in Hosted Mode. Where's the option to run it in the system browser, if any? I'm running App Engine 1.2.1, GWT 1.6.4, Eclipse 3.4.2, Firefox 3.0.12 If this is the wrong place to ask something like that, where should I go? Thx ia, Ekki --~--~-~--~~~---~--~~ You received 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: google plugin database connectivity
Now I got the following error.. how to resolve this error? But this error I am not getting in cypal studio plugin for eclipse. SEVERE: [1248680514265000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.websapps.login.client.Mysrervice.checkLogin (java.lang.String,java.lang.String)' threw an unexpected exception: java.lang.ExceptionInInitializerError at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure (RPC.java:360) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:546) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:166) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:306) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Caused by: java.lang.ExceptionInInitializerError at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:283) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at com.spartaconsulting.pmtool.db.Database.getConnection (Database.java:27) at com.spartaconsulting.pmtool.db.QueryFinder.checkDuplicateData (QueryFinder.java:1075) at com.spartaconsulting.pmtool.model.NewTimeSheetModel.checkDuplicateDate (NewTimeSheetModel.java:9) at com.spartaconsulting.pmtool.server.SpartaPMServiceImpl.checkDuplicateDate (SpartaPMServiceImpl.java:12) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:527) ... 25 more Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) at java.security.AccessControlContext.checkPermission (AccessControlContext.java:323) at java.security.AccessController.checkPermission (AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java: 532) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkPermission(DevAppServerFactory.java:122) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkAccess(DevAppServerFactory.java:149) at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:288) at java.lang.Thread.init(Thread.java:332) at java.lang.Thread.init(Thread.java:377) at java.util.TimerThread.init(Timer.java:456) at java.util.Timer.init(Timer.java:71) at java.util.Timer.init(Timer.java:122) at
Re: Cool GWT Features
Apart from Bruce Johnson's list, the killer selection criteria for me is Google App Engine. Outside GWT yes but it was the deciding factor for me. --~--~-~--~~~---~--~~ You received 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: google plugin database connectivity
this is the error I am getting in the when I tried to connect with database. this error I am getting only in google plugin. not in cypal studio plugin. Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) thanks bhanu On Jul 27, 1:55 am, bhanu baksh...@gmail.com wrote: I checked the path. It is correct only. this problem is happening only in google eclipse plugin. But in cypal studio plugin it is working fine. thanks Bhanu On Jul 27, 1:25 am, salvador.ce salvador...@gmail.com wrote: verify your path... 2009/7/26 bhanu baksh...@gmail.com: Hi Hi I am using google plugin for my GWT application.when I am trying to connect with mysql database, I am getting the exception saying java.sql.SQLException: No suitable driver found for jdbc:mysql:// localhost:3306/DBName. But I am sure that my database connection is correct. I checked through stand alone application. Not only that when I changed my database connection to msaccess it is also giving the error saying access denied java security. But this problem was not happening in Cypal studio. How can I remove this exception. Please help me!!! thanks bhanu lakshmi -- Carlos Salvador Consultor BI / SAP BW BPS 021-8426-8120 011-9579-7865- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Sessions And Gwt
Hi, see this tutorial -- http://developerlife.com/tutorials/?p=230 [GWT Tutorial – Using Servlet Sessions in GWT] Thanks Vinay On Jul 27, 1:25 am, Bhayat baki.hayat.c...@gmail.com wrote: When i create my application,i need sessions but i am new ongwtand i dont know how to createsessionand how to store data in this sessions.Can any one give me informations or link to understand them easily ?? --~--~-~--~~~---~--~~ You received 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: Debugging GWT App in Eclipse
I can confirm that after a downgrade to JDK 1.6.0_13 the debugger is working. Crazy IT world isn't? Thx for the information anyway. Ekki On Jul 27, 8:48 am, Paul Robinson ukcue...@gmail.com wrote: There's a bug in JDK 1.6.0_14 that does this, so check what version of java you are using. The workaround is to downgrade to JDK 1.6.0_13 Howard Tan wrote: Hi Ekki, Did you get this to work on your office computer? I'm experiencing the same problem, and just like to get this to work. Thanks, Howard On Jul 24, 12:25 pm, CI-CUBE e...@ci-cube.info wrote: Thx. I did setup an identical configuration on my home machine, which works as expected. Even the breakpoint window appears. So, hopefully, I can manage to get it running on the office machine too. Thread over for now. Thx again Ekki On Jul 24, 8:59 pm, Sean slough...@gmail.com wrote: Make sure you're not just hitting run in Eclipse, hit Debug. It'll look like the little bug next to the play button in Eclipse. Breakpoint window usually only shows up when in the Debug View. You can add it to the normal java view (I personally do) by: Window - Show View - Other. Find the +Debug, expand it, select breakpoints. And now you can move that tab where you see fit. On Jul 24, 10:30 am, CI-CUBE e...@ci-cube.info wrote: Hi... I'm in theGettingStartedTutorial example, everything works so far, but I'm unable to debug (Step 6). It always runs thru the code ignoring my breakpoints. BTW, if I create a breakpoint there isn't a breakpoint window where that one appears (like shown in the Tutorial) I tried both values for the 'Run built-in Server' setting - no difference. BTW, the app always appears in Hosted Mode. Where's the option to run it in the system browser, if any? I'm running App Engine 1.2.1, GWT 1.6.4, Eclipse 3.4.2, Firefox 3.0.12 If this is the wrong place to ask something like that, where should I go? Thx ia, Ekki --~--~-~--~~~---~--~~ You received 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: Waiting for an image to be displayed (not just loaded)
Anyone? Still getting this invisible animation issue on firefox, as 50ms seemed to be fine on older versions, but not any more. Is there really no way to wait till display ? Or at least to see what the minimum update unit is for the clients browser/system. On Jul 17, 6:26 pm, twdarkflame darkfl...@gmail.com wrote: umm.displayed, I mean, not displaced :P On Jul 17, 5:30 pm, darkflame darkfl...@gmail.com wrote: Ive noticed sometimes when trying to animate stuff by flicking an image between urls, that if something changes too quickly, the changes arnt noticable. (too quickly in firefox 3 seems to be around 50ms on my machine). The URL's are changed in the DOM, I can see them animating correctly in firebug. However, the visual from image 1.png2.png3.png1.png isnt happening, it looks to the viewer as if 1.png is the only frame. So is there a method to make sure the new image is actualy displaced? to test that a url change has propergated though to what the user actualy see's on the screen? (note; Images are prefetched already, so should all be in cache. Also, image bundles arnt an option, as they are dynamicaly loaded. Oh, and the images are frames of an animation, so all the same size) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How would I add a mouseover handler to Grid cells?
This is easily achieved by adding an HTML object (with empty HTML) to each Grid cell, setting the size of the HTML objects to match the size of the Grid cells, and then adding MouseOverHandler objects to each HTML object. --~--~-~--~~~---~--~~ You received 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 BUG? .. Not transparent handling of special history tokens in GWT 1.6
Instead of: http://server/app/index.html#index?redirect=encoded original URL Try: http://server/app/index.html?redirect=encoded original URL#index I also ran into that problem until I realized I was placing the anchor before the parameters. On Jul 13, 3:20 pm, Martin m.zd...@gmail.com wrote: Hello In my application, if anonymous user directly visits protectedpage, then the application redirects him to the loginpageand the original URL is specified as aredirectparameter, example: loginpage:http://server/app/index.html#index?redirect=encoded original URL The redirection to the loginpageis done with this code: === String path = Location.getPath(); Location.replace(index.html#home?redirect= + URL.encodeComponent(path.substring(path.lastIndexOf('/') + 1) + # + (IS_FIREFOX ? URL.encodeComponent(History.getToken()) : History.getToken(; === After the user logs in, the redirect parameter is parsed by decoding the value part (encoded original URL) obtained from the History.getToken() call. Then Location.replace(redirect) is called to load the original URL. As you may noticed, the redirect parameter must be composed differently for Firefox (3.0 and 3.5). Tested also with the Chromium browser (Linux) and MSIE6. Opera doesn't work, but I haven't done any more tests for it. The problem was detected with this URL: http://localhost:8080/gofer/gui/pipeline.html#subchannel-modify?paren... redirect version of the URL: http://localhost:8080/gofer/gui/index.html#home?redirect=pipeline.htm... Is this a GWT bug? I think so :-). Should I report it? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Generation of XML
Hi, My web application has textboxes. User inputs value in these textboxes and I am required to generate an xml out these values. Each textbox has a label and I would be using the label text and the textbox text in my xml. The XML has some mandatory fields which i need to specify for each xml and then according to the textbox text i need to modify my xml for each run. This is how I think this would be done. The textboxes and labels are on the client side, once the submit button is submitted I would be sending these values to the server via RPC. But then what to do ? I am new to this. So can anyone tell me how this can be done in gwt. Some tutorials would also be very useful. Sincerely, Rahul --~--~-~--~~~---~--~~ You received 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: Long running Timer RPC issue
When the submit button is clicked, it calls this method: private void startCheckJobTimer() { checkJobTimer = new Timer() { @Override public void run() { checkJob(); } }; checkJobTimer.schedule(TIMER_INTERVAL); checkJobRetries = 0; } private void checkJob() { AsyncCallbackJob callback = new AsyncCallbackJob() { public void onFailure(Throwable caught) { // logs a local error message // many lines of code that try in vain to get // useful information out of the empty Throwable // Keep going so we don't loose the whole job checkJobTimer.schedule(TIMER_INTERVAL); } public void onSuccess(Job job) { if (job.hasFinished()) { // blah, blah, blah... return; } updateProgress(job); checkJobTimer.schedule(TIMER_INTERVAL); } }; checkJobSvc.checkJob(currJobId, callback); } Thanks! John On Jul 26, 10:09 am, brett.wooldridge brett.wooldri...@gmail.com wrote: Pls post some pseudo-code of your timer and RPC call. -Brett On Jul 26, 10:39 pm, kingdomain kingdomainc...@gmail.com wrote: I have an app that involves long run times on a server (scientific app). I ported to GWT specifically to give better user feedback on long jobs (e.g. progress bar, email results option, etc.). I have to control threads on the server side, in my RPC services, in order to avoid memory issues in tomcat due to the size of the jobs this app runs on the server. When a big job is running, subsequent jobs can be submitted, and a GWT Timer polls the server periodically to check on status and let the user know. When a big job is running, subsequent jobs start to generate errors after a while, and the Throwable that comes back to the onFailure() is either NULL or it's message and stack trace is also NULL. Eventually I'll get a strange script stack over flow. The code is very simple: I start a timer when a job is submitted, and schedule it to run in a few seconds. The Timer calls a checkJob() method that calls an RPC service and reschedules the timer to run again if the job is not finished. On the server side, all the service is going is returning a simple object that encapsulates the job and it's progress. Here is a log I keep on the client side: : : 22:04:06 - Checking on Job: 1248572927276 22:04:10 - Checking on Job: 1248572927276 22:04:13 - Checking on Job: 1248572927276 22:04:16 - Checking on Job: 1248572927276 22:04:16 - Check Status failed. The error returned was not NULL. 22:04:16 - The error message was NULL or empty 22:04:16 - The stack trace elements were NULL, looking in nested error... 22:04:19 - Checking on Job: 1248572927276 22:04:19 - Check Status failed. The error returned was not NULL. 22:04:19 - The error message was NULL or empty 22:04:19 - The stack trace elements were NULL, looking in nested error... : : 22:07:53 - Check Status failed. The error returned was not NULL. 22:07:54 - The error message was: (InternalError): script stack space quota is exhausted fileName:http://binf.gmu.edu:8080/CoreGenes3.1/coregenes31/B08D8AE2434D86ADCBA... lineNumber: 669 stack: isb()@:0 eval( 22:07:57 - Checking on Job: 1248572927276 22:08:43 - Check Status failed. The error returned was not NULL. 22:08:43 - The error message was: (InternalError): script stack space quota is exhausted fileName:http://binf.gmu.edu:8080/CoreGenes3.1/coregenes31/B08D8AE2434D86ADCBA... lineNumber: 669 stack: isb()@:0 eval( (etc, etc.) Please help. Really stuck on this. Thanks, John --~--~-~--~~~---~--~~ You received 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-presenter demo
i checked out the demo MVP. 1. is it a must to use gwt2.0 for this to work? when i open up HelloWorldPanel, it stated name = new TextBox( World ); not match. i'm using gwt1.7 2.in HelloWorldPresenter file, i was asked to changed void onClick ( ClickEvent event ) { to public void onClick( ClickEvent event ) { --~--~-~--~~~---~--~~ You received 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: Newbie Question. Windows 7 + Eclispe 3.4 + GWT 1.7 + Debug + Getting Started Tutorial.
There is an issue with JDK 1.6.0_14 and debugging. Are you using this JDK? If so, downgrade to 1.6.0_13 to workaround this problem. On Fri, Jul 24, 2009 at 5:44 PM, Howard Tan howard@gmail.com wrote: Hi, I've been combing through the Getting Started guide, and I got everything to work except this page. http://code.google.com/webtoolkit/tutorials/1.6/debug.html I've followed the directions and it doesn't work. The tutorial runs normally and it doesn't break at the breakpoints. Anybody got any ideas? I must be doing something wrong, and it's probably something simple. Please help, Thanks, Howard --~--~-~--~~~---~--~~ You received 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: help on a servlet issue
See http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html. Make sure you read the section on Implementing Services. Post back here if you have any problems. On Sat, Jul 25, 2009 at 2:48 AM, Simon xingzhi@gmail.com wrote: How are you associating the servlet with your module? I think that is the part I am confused. If I have two modules, how do I specify the association of the servlet and the module? it seems my servlet can only be used on the default module created by eclipse plugin Thanks On Jul 24, 5:40 am, Rajeev Dayal rda...@google.com wrote: Can you post the code for the servlet you're trying to add? Also, when you say that you added a new servlet for the setup module, what exactly do you mean? How are you associating the servlet with your module? On Fri, Jul 24, 2009 at 3:07 AM, Simon xingzhi@gmail.com wrote: hi, sorry, I am a newbie on this. I used eclipse to create the project, and I added a new module called setup (so I have two modules) then I tried to add a new servlet for the setup module, but I got the following error message, if I add a servlet for the original module, it will be fine. GWT document does not seem to have much document to discuss multiple modules. Here is the web.xml that I used for new servlet for the new module servlet servlet-nametestServlet/servlet-name servlet-classcom.simon.chutian.store1.server.TestServiceImpl/ servlet-class /servlet servlet-mapping servlet-nameadduserServlet/servlet-name url-pattern/setup/adduser/url-pattern /servlet-mapping my new module is renamed to setup, I directly added the new module in the existing project. I think there must be something wrong with the path settings or maybe the servlet mapping, Can anyone help? Thanks Jul 24, 2009 6:44:25 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: /setup/adduser java.lang.InstantiationException at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance (Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:306) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442)- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: gwt-presenter demo
3. in HelloWorldPanel , i was asked to extend startProcessing() and stopProcessing() --~--~-~--~~~---~--~~ You received 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-presenter demo
3. in HelloWorldPanel , i was asked to extend startProcessing() and stopProcessing() --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Refresh TabPanel in GWT
How can I refresh TabPanel when particular tab is selected? Because there is no setWidget() method in TabPanel --~--~-~--~~~---~--~~ You received 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 plugin for Eclipse 3.5 (Galileo)
Not to defend dependency on the plugin, but the fact is that gwt coders keep saying that it will be out very shortly and this has kept a good number of us hanging. I understand that the realease has been delayed because quality comes first, as it should, but it would show a bit more professionalism if gwt stopped making announcements for the end of the week and only come up with a date when they are sure of it. Best reagrds On 26 Jul, 18:54, Isaac Truett itru...@gmail.com wrote: It certainly is unfortunate that you would be delaying your project because of a single convenience plugin. I would recommend that you strive for more self-sufficiency and less sense of entitlement. On Sat, Jul 25, 2009 at 8:57 PM, SuperEvaeva.andreas...@gmail.com wrote: So...just curious...when will the plugin be ready. Some of us have been waiting over a month. It is very unfortunate the way this is delaying our project. Do you recommend we move back to 3.4 Eclipse or turn elsewhere for solutions? Or is the fix really gonna come within the next week? Appreciate a quick response, Eva On Jul 23, 10:35 am, Miguel Méndez mmen...@google.com wrote: Don't worry. Release 1.1 of the plugin will support Eclipse 3.3, 3.4 and 3.5. However, we are considering deprecating support for Eclipse 3.3 in the 1.2 release of our plugin. On Thu, Jul 23, 2009 at 12:01 PM, Yaakov yaakov.chai...@gmail.com wrote: Hi Rajeev, You guys are still going to support the version for Eclipse 3.4, right? I am just hoping that you guys don't forget that not everyone can be Google Wave and code against a constantly (and very rapidly) moving platform. Thanks, Yaakov. On Jul 22, 11:46 am, Rajeev Dayal rda...@google.com wrote: Hi, Yes, this has taken longer than expected, but we're now on the finishing touches. We should have something out there within the week. Thanks, Rajeev On Tue, Jul 21, 2009 at 10:28 PM, Nik nikcol...@gmail.com wrote: We're now heading towards months, not weeks. Any progress? On Jun 25, 10:17 pm, Alex Rudnick a...@google.com wrote: If you enjoyed this thread, you may also like these: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa.. .. .. We're working on it *right now*, rest assured! On Thu, Jun 25, 2009 at 4:31 PM, Rob Tannercaspersg...@gmail.com wrote: When will a version of the plugin be released for Eclipse 3.5 (or can I simply use the version for 3.4). I would like to use the new Eclipse, but GWT has become one of my main tools. Thanks, Rob -- Alex Rudnick swe, gwt, atl -- Miguel- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Several GWT frameworks in one Project
Hi, When I programming the GWT sometimes I need to merge frameworks. I see it difficult because each framework suports a different version for GWT for example, GWT-EXT uses GWT1.4 and EXT-GWT uses 1.6 (or 1.5). How can I use both frameworks in one project ? Thanks in advance, Dimitry Haritonov --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How can you detect a mouse double click on a text box?
Hi Rahul, A couple of options: Option 1: Extend TextBox and use the native DoubleClickEvent as follows: import com.google.gwt.event.dom.client.DoubleClickEvent; import com.google.gwt.event.dom.client.DoubleClickHandler; import com.google.gwt.event.dom.client.HasDoubleClickHandlers; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.user.client.ui.TextBox; public class CustomTextBox extends TextBox implements HasDoubleClickHandlers { public CustomTextBox() { super(); } @Override public HandlerRegistration addDoubleClickHandler(final DoubleClickHandler handler) { return addDomHandler(handler, DoubleClickEvent.getType()); } } To to test your requirement: final CustomTextBox textBox = new CustomTextBox(); textBox.addDoubleClickHandler(new DoubleClickHandler() { @Override public void onDoubleClick(final DoubleClickEvent event) { textBox.setText(); } }); Option 2: Increment a clickCount variable inside a ClickHandler. Start a Timer on the first click which resets the clickCount after a certain timeout. If the click count is = 2 on any click then you have a double click. Obviously this is not as good as Option 1 since you have to use your own double click timeout which may be different to the user's operating system setting. Hope this helps. Cheers, Paul. On Jul 26, 2:39 pm, Hussain Cutpiecewala hussuspec...@gmail.com wrote: HI Rahul.. This is hussain. can you tell me whether you are looking for solution in web development or desktop development? On Fri, Jul 24, 2009 at 8:28 PM, Rahul coolrahul18...@gmail.com wrote: Hi i would like the functionality that when a user double clicks on the textbox, the existing text on the textbox deletes itself how should i proceed to do that so ? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
I18n and special Characters
Hi! In my GWT application I used some special Characters like ÄÖÜ etc. The display does not show them correctly. I read that this issue is related to different encodings and I used some other encodings settings in javac option, like UTF8 and ISOsomething. But nothing helps. If I give a special Character during runtime in a dialog this character was stored correctly... Help me :) Cheers Vic --~--~-~--~~~---~--~~ You received 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: Hint: Previous compiler errors may have made this type unavailable
I don't know if this will help, but check your paths. If you have a source path like this: C:\Workspace\App\src\com\me\app: - App.gwt.xml - App.java Where App.gwt.xml reads: ?xml version=1.0 encoding=UTF-8? !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.7.0// EN http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro- source/core/src/gwt-module.dtd module rename-to='app' inherits name='com.google.gwt.user.User'/ inherits name='com.google.gwt.user.theme.standard.Standard'/ entry-point class='com.me.app.App'/ /module You will get an error like this: Compiling module com.me.app.App Computing all possible rebind results for 'com.me.app.App' Rebinding com.me.app.App Checking rule generate-with class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/ [ERROR] Unable to find type 'com.me.app.App' [ERROR] Hint: Previous compiler errors may have made this type unavailable This is because GWT is (very) not smart, and cannot locate classes in the small path as the gwt.xml file (notice how the template projects always have a client and server directory). So fix this, change the class path of App.java to: C:\Workspace\App\src\com\me\app\client And the entry point to: entry-point class='com.me.app.client.App'/ This may not be the problem you have, but it sounds quite similar. Don't worry. It's not just you. I've never come across a good explanation of why this happens. ~ Doug. On Jul 24, 6:44 pm, BMax massimo.bo...@gmail.com wrote: Thanks mirceade! Now, after your post, I'm really so happy! Fortunately you exist!!! However, there is someone (smarter than mirceade) who can help me? Bye, Max On 24 Lug, 10:20, mirceade mirce...@gmail.com wrote: Read the manual, read the errors, learn English, get a life. On Jul 23, 2:46 pm, BMax massimo.bo...@gmail.com wrote: Hi, I post here my module xml code: module inherits name='com.google.gwt.user.User'/ inherits name='com.gwtext.GwtExt' / entry-point class='org.xlab.semantic.gwtext.client.Sisma'/ stylesheet src=js/ext/resources/css/ext-all.css / script src=js/ext/adapter/ext/ext-base.js / script src=js/ext/ext-all.js / inherits name='com.google.gwt.user.theme.standard.Standard'/ servlet path=/sismaService class=org.xlab.semantic.gwtext.server.SismaServiceImpl/ stylesheet src=Sisma.css/ /module I think that it's good...! Bye, Max On 23 Lug, 13:27, Norman Maurer nor...@apache.org wrote: Hi, like stated in the error message... Do you have am inherits statment for org.xlab.semantic.gwtext.client.Sisma ? Bye, Norman 2009/7/23 BMax massimo.bo...@gmail.com: Hi guys, please help me! I have to finish an important work but now my project is blocked by this error: Checking rule generate-with class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/ [ERROR]Unabletofindtype 'org.xlab.semantic.gwtext.client.Sisma' [ERROR] Hint: Previous compiler errors may have made thistypeunavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly I readed other post about this problem but I didn'tfinda solution! Thanks, Max --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Possible to set -localWorkers compiler flag in Eclipse?
Hello - I'm using Eclipse 3.4.2 and GWT 1.7 and wondering if there's some way to set -localworkers (or actually any type of flag) for GWT compiles... Thanks! Jim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Sessions And Gwt
Hi Bhayat, Please find the below link GWT Tutorial – Using Servlet Sessions in GWT - http://developerlife.com/tutorials/?p=230 Thanks Vinay On Jul 27, 1:25 am, Bhayat baki.hayat.c...@gmail.com wrote: When i create my application,i needsessionsbut i am new ongwtand i dont know how to create session and how to store data in thissessions.Can any one give me informations or link to understand them easily ?? --~--~-~--~~~---~--~~ You received 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 control compile time serialization policy generation?
Is there any way to control which classes get included during compile- time serialization policy file generation without having to play coding acrobatics with service method arguments? I am passing a java.io.Serializable object to my service method and the compiler is trying to include all classes that implement this interface but I only want a subset of these classes (because I am mixing GWT code with legacy classes which may not be GWT serializable but regular JRE serializable). Thanks, Shu --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Differences between Firefox and IExplorer
Hi! During development of a complete GWT client server application in hosted mode, I hosted the app in an apache tomcat web container. When I start the application in the Microsoft Internet Explorer the screen shows exactly the same design as shown in hosted mode. But viewed in Firefox does not. Whats wrong here? Do I have to compile the client sources differently? If yes, what do I have to do in order to reach the correct client source from used browser? Cheers harkon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Widget.clear() method not clearing properly
Hi Thamizharasu. Panel.clear() does only remove child-widgets. As the innerHTML 'sample content' is not considered a widget, it won't be affected. You may do the following to completely clear the contents of your div element: ---*snip*--- RootPanel samplePanel = RootPanel.get(sample); // Clear Element element = samplePanel.getElement(); NodeListNode childNodes = element.getChildNodes(); for (int i = 0; i childNodes.getLength(); i++) { element.removeChild(childNodes.getItem(i)); } ---*snip*--- Regards, Phil On Jul 27, 6:37 am, Thamizharasu S zaru...@gmail.com wrote: Hi All, I have defined one div id=samplesample content/div control in static html file. In my Entry point class i have a button, if i click the button i have to clear all the contents from the div and put my own widget inside. So what i did was RootPanel.get(sample).clear(); Then i add my widget inside RootPanel.get(sample).add(widget); This is adding my new widget. But not clearing my old content (sample content) from the div. Could any one help me on this? Thanks, Thamizharasu S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
debugging inside eclipse and using tomcat ?????
hi... i am new in GWT and i need to know how i can debug a project on eclipse and using tomcat when i try to run the debugger from eclipse i get this error... and it asks me to to edit lookup path but when i opened the path... the jar files for GWT and the source files for my project are in the path.. is there any advice... with regards Muhannad --~--~-~--~~~---~--~~ You received 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: Possible cause for IncompatibleRemoteServiceException
I've just noticed that in certain circumstances having a GAE/J JDO persistent detachable class like: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable=true) may also cause: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived (RequestCallbackAdapter.java:204) at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl (Request.java:264) at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch (Request.java:236) at com.google.gwt.http.client.Request.fireOnResponseReceived (Request.java:227) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: 103) at com.google.gwt.dev.shell.mac.MethodDispatch.invoke (MethodDispatch.java:71) at org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(Native Method) at org.eclipse.swt.widgets.Display.sleep(Display.java:3801) at com.google.gwt.dev.SwtHostedModeBase.sleep(SwtHostedModeBase.java: 241) at com.google.gwt.dev.SwtHostedModeBase.processEvents (SwtHostedModeBase.java:236) at com.google.gwt.dev.HostedModeBase.pumpEventLoop (HostedModeBase.java:558) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Unfortunately I've spent a lot of time of useless troubleshooting to reach this conclusion, since the exception message and trace didn't indicated nothing to put me in the right direction, and the server logs didn't pointed out any problem at all. My environment GWT 1.7.0 + GAE/J 1.2.2 --~--~-~--~~~---~--~~ You received 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: Which use for CSS?
Using horizontal and vertical panels is the prefered way of realizing layouts in GWT. You shouldn't try to implement your layout from scrach. But this doesn't mean, that there is no need for CSS in GWT. GWT should also prevent you from many browser differences, but that doesn't mean, that it will do allways. On Mon, Jul 27, 2009 at 2:33 PM, Mehdi Rabah mehdi.ra...@gmail.com wrote: Hi, Thanks for your answer. So you're saying even when using GWT, a web developper have to fight with the browser differences? It seems like the themes used in GWT only change colors, which is not the main problem (which is positionning) For my layouts I use tables, meaning gwt horizontal and vertical panel, with setCellAlignment method. Regards On Mon, Jul 27, 2009 at 7:19 AM, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: Hi, GWT apps are web apps and they're running inside a browser, thus it's a good choice to use CSS. If you look to the Showcase app ( http://gwt.google.comsqf/samples/Showcase/Showcase.htmlhttp://gwt.google.com/samples/Showcase/Showcase.html), it's using different themes and the switch is done by changing the CSS file, which provides colors, borders, etc. There are lots of other examples, like creating a Dialog, which lays over the rest of your app. The differences of CSS in different browsers is a common problem, but most webdevelopers know how to work around. In GWT this also means, that defered binding allows to create different implementations for different browsers. Another point, you should care about, is, how do you create margin or padding without CSS? In other GUI frameworks like SWT, you've got layout constraints, that can be applied to a component, but in GWT, you don't have. CSS is the prefered way to do. Regards Jan Ehrhardt On Sat, Jul 25, 2009 at 11:25 PM, Mehdi Rabah mehdi.ra...@gmail.comwrote: Hi, I'm trying to use CSS for the layout of my website (for now, the layout is made with layouts). The worst problem I've seen is that the layout is not the same on different browsers. So, since the GWT philosophy is to abstract the development from the browser, I was asking myself if the GWT team recommend the use of CSS? Does GWT developpers really use CSS? For what use? (IMHO positionning with CSS really suck, the margin: auto to center a div doesn't work on IE8) --~--~-~--~~~---~--~~ You received 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 plugin for Eclipse 3.5 (Galileo)
On Mon, Jul 27, 2009 at 4:43 AM, Gugas carlos.mfa.mart...@gmail.com wrote: Not to defend dependency on the plugin, but the fact is that gwt coders keep saying that it will be out very shortly and this has kept a good number of us hanging. I understand that the realease has been delayed because quality comes first, as it should, but it would show a bit more professionalism if gwt stopped making announcements for the end of the week and only come up with a date when they are sure of it. Best reagrds I understand where you are coming from. On our part, end of last week was an honest estimate. However, we found a couple of small issues that we wanted to correct and so we held off. In general, we do not announce releases. This is a special case because we were behind on eclipse 3.5 support. This should be the last time that we are not ready with a plugin update the moment eclipse releases a new version; we have made changes to our process. On 26 Jul, 18:54, Isaac Truett itru...@gmail.com wrote: It certainly is unfortunate that you would be delaying your project because of a single convenience plugin. I would recommend that you strive for more self-sufficiency and less sense of entitlement. On Sat, Jul 25, 2009 at 8:57 PM, SuperEvaeva.andreas...@gmail.com wrote: So...just curious...when will the plugin be ready. Some of us have been waiting over a month. It is very unfortunate the way this is delaying our project. Do you recommend we move back to 3.4 Eclipse or turn elsewhere for solutions? Or is the fix really gonna come within the next week? Appreciate a quick response, Eva On Jul 23, 10:35 am, Miguel Méndez mmen...@google.com wrote: Don't worry. Release 1.1 of the plugin will support Eclipse 3.3, 3.4 and 3.5. However, we are considering deprecating support for Eclipse 3.3 in the 1.2 release of our plugin. On Thu, Jul 23, 2009 at 12:01 PM, Yaakov yaakov.chai...@gmail.com wrote: Hi Rajeev, You guys are still going to support the version for Eclipse 3.4, right? I am just hoping that you guys don't forget that not everyone can be Google Wave and code against a constantly (and very rapidly) moving platform. Thanks, Yaakov. On Jul 22, 11:46 am, Rajeev Dayal rda...@google.com wrote: Hi, Yes, this has taken longer than expected, but we're now on the finishing touches. We should have something out there within the week. Thanks, Rajeev On Tue, Jul 21, 2009 at 10:28 PM, Nik nikcol...@gmail.com wrote: We're now heading towards months, not weeks. Any progress? On Jun 25, 10:17 pm, Alex Rudnick a...@google.com wrote: If you enjoyed this thread, you may also like these: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa.. .. .. We're working on it *right now*, rest assured! On Thu, Jun 25, 2009 at 4:31 PM, Rob Tanner caspersg...@gmail.com wrote: When will a version of the plugin be released for Eclipse 3.5 (or can I simply use the version for 3.4). I would like to use the new Eclipse, but GWT has become one of my main tools. Thanks, Rob -- Alex Rudnick swe, gwt, atl -- Miguel- Hide quoted text - - Show quoted text - -- Miguel --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
DisclosurePanel and registered event handlers
Hi, I'm using a DisclosurePanel and have registered an onClose-event- handler and an an onOpen-event-handler. In these handlers I want to store the status of the panel (open or closed) with an rpc method on the server. This part is working. In the second part I want to open or close the panel with his setOpen method due to the open status on the server. But the setOpen method fires the onOpen or onClose events again and changes the status on the server. Is there a way to decide, if the source of the event is a mouse click or the setOpen 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 plugin for Eclipse 3.5 (Galileo)
None of the plugin developers has made an announcement or offered a release date. They have responded to questions from anxious developers eager to see the new version by offering their own hopes or expectations for delivery. That's more then you get from many projects, partially for the very reason we see here: when those aspirations aren't met, people who interpreted them as official commitments start complaining. I shouldn't have to haul out my soap box here. Have a little patience and put this in perspective. You are not paying customers and no one here is under any obligation to you. If you want hard delivery dates and commitments, get out your checkbook and see if anyone bites. A polite how's that coming along inquiry is, I would think, an appreciated sign of community interest. But if you want to sit in the back seat and yell are we there yet at the drivers, either accept that soon is a valid answer or, if you're lucky enough to get something more precise, understand that it's somebody sticking their neck out trying to be helpful. Go back to enjoying your free lunches. When dessert arrives, it will be announced. On Mon, Jul 27, 2009 at 4:43 AM, Gugascarlos.mfa.mart...@gmail.com wrote: Not to defend dependency on the plugin, but the fact is that gwt coders keep saying that it will be out very shortly and this has kept a good number of us hanging. I understand that the realease has been delayed because quality comes first, as it should, but it would show a bit more professionalism if gwt stopped making announcements for the end of the week and only come up with a date when they are sure of it. Best reagrds On 26 Jul, 18:54, Isaac Truett itru...@gmail.com wrote: It certainly is unfortunate that you would be delaying your project because of a single convenience plugin. I would recommend that you strive for more self-sufficiency and less sense of entitlement. On Sat, Jul 25, 2009 at 8:57 PM, SuperEvaeva.andreas...@gmail.com wrote: So...just curious...when will the plugin be ready. Some of us have been waiting over a month. It is very unfortunate the way this is delaying our project. Do you recommend we move back to 3.4 Eclipse or turn elsewhere for solutions? Or is the fix really gonna come within the next week? Appreciate a quick response, Eva On Jul 23, 10:35 am, Miguel Méndez mmen...@google.com wrote: Don't worry. Release 1.1 of the plugin will support Eclipse 3.3, 3.4 and 3.5. However, we are considering deprecating support for Eclipse 3.3 in the 1.2 release of our plugin. On Thu, Jul 23, 2009 at 12:01 PM, Yaakov yaakov.chai...@gmail.com wrote: Hi Rajeev, You guys are still going to support the version for Eclipse 3.4, right? I am just hoping that you guys don't forget that not everyone can be Google Wave and code against a constantly (and very rapidly) moving platform. Thanks, Yaakov. On Jul 22, 11:46 am, Rajeev Dayal rda...@google.com wrote: Hi, Yes, this has taken longer than expected, but we're now on the finishing touches. We should have something out there within the week. Thanks, Rajeev On Tue, Jul 21, 2009 at 10:28 PM, Nik nikcol...@gmail.com wrote: We're now heading towards months, not weeks. Any progress? On Jun 25, 10:17 pm, Alex Rudnick a...@google.com wrote: If you enjoyed this thread, you may also like these: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa.. .. .. We're working on it *right now*, rest assured! On Thu, Jun 25, 2009 at 4:31 PM, Rob Tannercaspersg...@gmail.com wrote: When will a version of the plugin be released for Eclipse 3.5 (or can I simply use the version for 3.4). I would like to use the new Eclipse, but GWT has become one of my main tools. Thanks, Rob -- Alex Rudnick swe, gwt, atl -- Miguel- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problems with hosted mode
Actually, it is not necessary that the script tag be placed in the head section. You can place it in the body section. GWT's samples actually place the script reference in the body. Maybe you had placed it at a position in the body where the load was blocked waiting for another script to finish evaluation? On Sat, Jul 25, 2009 at 11:14 AM, Pavel Byles pavelby...@gmail.com wrote: I figured out the problem: Just after I synced w/ my repo I had put the nocache.js script tag in my body, which doesn't seem to load in hosted mode. But works just fine in Firefox. Putting it back in the head makes it work again. --~--~-~--~~~---~--~~ You received 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: Problems with hosted mode
Actually, it is not necessary that the script tag be placed in the head section. You can place it in the body section. GWT's samples actually place the script reference in the body. Maybe you had placed it at a position in the body where the load was blocked waiting for your other script for evaluate? On Sat, Jul 25, 2009 at 11:14 AM, Pavel Byles pavelby...@gmail.com wrote: I figured out the problem: Just after I synced w/ my repo I had put the nocache.js script tag in my body, which doesn't seem to load in hosted mode. But works just fine in Firefox. Putting it back in the head makes it work again. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Google plugin for eclipse3.4 launches GWT hosted mode with deprecated GWTShell
I am using GWT in an existing web application that has a web folder called 'WebRoot', so the configuration looks like this: [project]/WebRoot/WEB-INF/web.xml When running in hosted mode the deprecated GWTShell is used apparently because it expects the web folder to be called 'war'. This is a shared project and it would be really inconvenient to change the name from 'WebRoot' to 'war'. Is there any other way to get hosted mode to stop using the deprecated GWTShell? --~--~-~--~~~---~--~~ You received 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 plugin for Eclipse 3.5 (Galileo)
I agree with Isaac 100%. The attitude was completely inappropriate. If a project is time sensitive then it wasn't wise to take the risk and wait for the next release. When one takes risks one should only blame him/her-self. We should thank google developers for being responsive, for the dialogue that we (GWT users) can have here with them. On Jul 27, 11:31 am, Isaac Truett itru...@gmail.com wrote: None of the plugin developers has made an announcement or offered a release date. They have responded to questions from anxious developers eager to see the new version by offering their own hopes or expectations for delivery. That's more then you get from many projects, partially for the very reason we see here: when those aspirations aren't met, people who interpreted them as official commitments start complaining. I shouldn't have to haul out my soap box here. Have a little patience and put this in perspective. You are not paying customers and no one here is under any obligation to you. If you want hard delivery dates and commitments, get out your checkbook and see if anyone bites. A polite how's that coming along inquiry is, I would think, an appreciated sign of community interest. But if you want to sit in the back seat and yell are we there yet at the drivers, either accept that soon is a valid answer or, if you're lucky enough to get something more precise, understand that it's somebody sticking their neck out trying to be helpful. Go back to enjoying your free lunches. When dessert arrives, it will be announced. On Mon, Jul 27, 2009 at 4:43 AM, Gugascarlos.mfa.mart...@gmail.com wrote: Not to defend dependency on the plugin, but the fact is that gwt coders keep saying that it will be out very shortly and this has kept a good number of us hanging. I understand that the realease has been delayed because quality comes first, as it should, but it would show a bit more professionalism if gwt stopped making announcements for the end of the week and only come up with a date when they are sure of it. Best reagrds On 26 Jul, 18:54, Isaac Truett itru...@gmail.com wrote: It certainly is unfortunate that you would be delaying your project because of a single convenience plugin. I would recommend that you strive for more self-sufficiency and less sense of entitlement. On Sat, Jul 25, 2009 at 8:57 PM, SuperEvaeva.andreas...@gmail.com wrote: So...just curious...when will the plugin be ready. Some of us have been waiting over a month. It is very unfortunate the way this is delaying our project. Do you recommend we move back to 3.4 Eclipse or turn elsewhere for solutions? Or is the fix really gonna come within the next week? Appreciate a quick response, Eva On Jul 23, 10:35 am, Miguel Méndez mmen...@google.com wrote: Don't worry. Release 1.1 of the plugin will support Eclipse 3.3, 3.4 and 3.5. However, we are considering deprecating support for Eclipse 3.3 in the 1.2 release of our plugin. On Thu, Jul 23, 2009 at 12:01 PM, Yaakov yaakov.chai...@gmail.com wrote: Hi Rajeev, You guys are still going to support the version for Eclipse 3.4, right? I am just hoping that you guys don't forget that not everyone can be Google Wave and code against a constantly (and very rapidly) moving platform. Thanks, Yaakov. On Jul 22, 11:46 am, Rajeev Dayal rda...@google.com wrote: Hi, Yes, this has taken longer than expected, but we're now on the finishing touches. We should have something out there within the week. Thanks, Rajeev On Tue, Jul 21, 2009 at 10:28 PM, Nik nikcol...@gmail.com wrote: We're now heading towards months, not weeks. Any progress? On Jun 25, 10:17 pm, Alex Rudnick a...@google.com wrote: If you enjoyed this thread, you may also like these: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa.. .. .. We're working on it *right now*, rest assured! On Thu, Jun 25, 2009 at 4:31 PM, Rob Tannercaspersg...@gmail.com wrote: When will a version of the plugin be released for Eclipse 3.5 (or can I simply use the version for 3.4). I would like to use the new Eclipse, but GWT has become one of my main tools. Thanks, Rob -- Alex Rudnick swe, gwt, atl -- Miguel- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Possible to set -localWorkers compiler flag in Eclipse?
Hey Jim, In the GWT Compile dialog, you can expand the Advanced section at the bottom to reveal a place to add flags. jason On Sun, Jul 26, 2009 at 3:28 PM, jscheller jschel...@csoftware.com wrote: Hello - I'm using Eclipse 3.4.2 and GWT 1.7 and wondering if there's some way to set -localworkers (or actually any type of flag) for GWT compiles... Thanks! Jim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: debugging inside eclipse and using tomcat ?????
Hi Muhannad, Would you be okay with debugging via Jetty? If so, right-click on your project and select Debug As Web application, and it should just work. If this doesn't, please paste the detailed errors in your reply. Thanks, jason On Mon, Jul 27, 2009 at 2:21 AM, Muhannad Nasser muhannadna...@gmail.comwrote: hi... i am new in GWT and i need to know how i can debug a project on eclipse and using tomcat when i try to run the debugger from eclipse i get this error... and it asks me to to edit lookup path but when i opened the path... the jar files for GWT and the source files for my project are in the path.. is there any advice... with regards Muhannad --~--~-~--~~~---~--~~ You received 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: Possible to set -localWorkers compiler flag in Eclipse?
Thanks Jason! Too much digging in all the preferences and settings trees, only to find this right in front of me... Duh. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
save form data in database
Hi, I want to save data from a form into a database by using GWT. Is there a tutorial how to do it or can somebody paste an example source 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: Generation of XML
Hi everyone i found one tutorial http://www.ibm.com/developerworks/edu/x-dw-x-xmlgwt.html but it would be really helpful if somone could paste here more resources for this operation Thanks On Jul 27, 9:59 am, Rahul coolrahul18...@gmail.com wrote: Hi, My web application has textboxes. User inputs value in these textboxes and I am required to generate an xml out these values. Each textbox has a label and I would be using the label text and the textbox text in my xml. The XML has some mandatory fields which i need to specify for each xml and then according to the textbox text i need to modify my xml for each run. This is how I think this would be done. The textboxes and labels are on the client side, once the submit button is submitted I would be sending these values to the server via RPC. But then what to do ? I am new to this. So can anyone tell me how this can be done in gwt. Some tutorials would also be very useful. Sincerely, Rahul --~--~-~--~~~---~--~~ You received 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 plugin for Eclipse 3.5 (Galileo)
Just to clarify a few things: 1. I demand absolutely nothing and I have nothing but high regard for the coders at google who develop the gwt framework. 2. I have no project on hold for lack of the plugin. I was simply wanting to test it on Galileo, see how well it works. 3. My earlier comment was in regard to expectations of delivery that have been given. 4. I use the GWT framework, and I also promote it and help others around me use it. 5. Being branded by Mr. Isaac as someone who rudely seats back and yells is utterly offensive to me. I am sure those comments cannot come from someone who has any regard for the comunity of developers that help GWT grow. On 27 Jul, 16:31, Isaac Truett itru...@gmail.com wrote: None of the plugin developers has made an announcement or offered a release date. They have responded to questions from anxious developers eager to see the new version by offering their own hopes or expectations for delivery. That's more then you get from many projects, partially for the very reason we see here: when those aspirations aren't met, people who interpreted them as official commitments start complaining. I shouldn't have to haul out my soap box here. Have a little patience and put this in perspective. You are not paying customers and no one here is under any obligation to you. If you want hard delivery dates and commitments, get out your checkbook and see if anyone bites. A polite how's that coming along inquiry is, I would think, an appreciated sign of community interest. But if you want to sit in the back seat and yell are we there yet at the drivers, either accept that soon is a valid answer or, if you're lucky enough to get something more precise, understand that it's somebody sticking their neck out trying to be helpful. Go back to enjoying your free lunches. When dessert arrives, it will be announced. On Mon, Jul 27, 2009 at 4:43 AM, Gugascarlos.mfa.mart...@gmail.com wrote: Not to defend dependency on the plugin, but the fact is that gwt coders keep saying that it will be out very shortly and this has kept a good number of us hanging. I understand that the realease has been delayed because quality comes first, as it should, but it would show a bit more professionalism if gwt stopped making announcements for the end of the week and only come up with a date when they are sure of it. Best reagrds On 26 Jul, 18:54, Isaac Truett itru...@gmail.com wrote: It certainly is unfortunate that you would be delaying your project because of a single convenience plugin. I would recommend that you strive for more self-sufficiency and less sense of entitlement. On Sat, Jul 25, 2009 at 8:57 PM, SuperEvaeva.andreas...@gmail.com wrote: So...just curious...when will the plugin be ready. Some of us have been waiting over a month. It is very unfortunate the way this is delaying our project. Do you recommend we move back to 3.4 Eclipse or turn elsewhere for solutions? Or is the fix really gonna come within the next week? Appreciate a quick response, Eva On Jul 23, 10:35 am, Miguel Méndez mmen...@google.com wrote: Don't worry. Release 1.1 of the plugin will support Eclipse 3.3, 3.4 and 3.5. However, we are considering deprecating support for Eclipse 3.3 in the 1.2 release of our plugin. On Thu, Jul 23, 2009 at 12:01 PM, Yaakov yaakov.chai...@gmail.com wrote: Hi Rajeev, You guys are still going to support the version for Eclipse 3.4, right? I am just hoping that you guys don't forget that not everyone can be Google Wave and code against a constantly (and very rapidly) moving platform. Thanks, Yaakov. On Jul 22, 11:46 am, Rajeev Dayal rda...@google.com wrote: Hi, Yes, this has taken longer than expected, but we're now on the finishing touches. We should have something out there within the week. Thanks, Rajeev On Tue, Jul 21, 2009 at 10:28 PM, Nik nikcol...@gmail.com wrote: We're now heading towards months, not weeks. Any progress? On Jun 25, 10:17 pm, Alex Rudnick a...@google.com wrote: If you enjoyed this thread, you may also like these: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa.. .. .. We're working on it *right now*, rest assured! On Thu, Jun 25, 2009 at 4:31 PM, Rob Tannercaspersg...@gmail.com wrote: When will a version of the plugin be released for Eclipse 3.5 (or can I simply use the version for 3.4). I would like to use the new Eclipse, but GWT has become one of my main tools. Thanks, Rob -- Alex Rudnick swe, gwt, atl -- Miguel- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To
Re: trying to track GWT timers
just to follow up, I was able to override setTimeout and perform some tracking, record timer IDs and track those that expire, which left me with a single timer that always seems to be present upon shutdown. I am now running code that should close that timer as soon as the app knows it is terminating. only time will tell whether it will have an impact - I'm still waiting to see whether I can reproduce the crash. and, by the way, I tried searching the GWT group for this thread and it returned nothing - the index seems broken. On Jun 30, 9:46 am, davidRoe roe.da...@gmail.com wrote: I had thought the same. I am running GWT code under MobileSafari on the iPhone and am seeing occasional program crashes on exit. the stack trace seems to indicate that a timer is being fired, and I believe that perhaps the UIWebView has disappeared by the time it runs code expecting it to be there. #0 0x312e5e60 in KJS::FunctionExecState::FunctionExecState () #1 0x312e5b98 in KJS::FunctionImp::callAsFunction () #2 0x312df0f4 in KJS::FunctionCallDotNode::evaluate () #3 0x312e5a78 in KJS::ExprStatementNode::execute () #4 0x312e61c4 in KJS::FunctionBodyNode::execute () #5 0x312e5bac in KJS::FunctionImp::callAsFunction () #6 0x31326ae8 in KJS::JSObject::call () #7 0x328296d4 in WebCore::ScheduledAction::execute () #8 0x32829350 in KJS::Window::timerFired () #9 0x32829208 in KJS::DOMWindowTimer::fired () #10 0x32824c84 in WebCore::TimerBase::fireTimers () #11 0x328249ac in WebCore::TimerBase::sharedTimerFired () #12 0x3282490c in WebCore::timerFired () #13 0x30269d8e in CFRunLoopRunSpecific () #14 0x30269326 in CFRunLoopRunInMode () #15 0x32bc0748 in RunWebThread () #16 0x3146178c in _pthread_body () #17 0x in ?? () if I can figure out how to override setTimeout() and setInterval(), I may be able to track what is going on. /dave On Jun 30, 5:12 am, Ian Bambury ianbamb...@gmail.com wrote: Surely when you close the browser window (or navigate away) the timers are gone. Ian http://examples.roughian.com 2009/6/30 davidroe roe.da...@gmail.com I have a situation where I need to ensure that _every_ timer launched is closed upon exit, meaning I track each timer I create and ensure that I cancel it when the application is about to close. is anyone aware of any timers that GWT launches that are, perhaps, allowed to self disintegrate, rather than actually being cancelled? thanks, /dave --~--~-~--~~~---~--~~ You received 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: save form data in database
http://code.google.com/webtoolkit/tutorials/1.6/appengine.html I would walk through all of the tutorials on that page --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and spring framework
Hi thaihuynh, Thanks for your replly. However i am looking for a sample code and hello world applicatoin that explains the GWT and integration with Spring MVC. Also how to embed GWT controls in my jsp file. Can you provide some more sample code and explanatory document. Regards Master On Jul 27, 7:34 am, thai huynh thaihuyn...@gmail.com wrote: Hi Master, I think it is useful for you by link:http://code.google.com/p/tocollege-net/ regards, thaihuynh. On Sun, Jul 26, 2009 at 9:55 PM, Master shahparas...@gmail.com wrote: Hi, I am developing an application where i need to integrate GWT with Springs framework. I need to integrate GWT components in JSP pages. Can anyone please help me out and provide some sample code to achieve this. Thanks in Advance.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
could not add gin the project
Hi, I've tried to add gin DI to the project, but have got an error below. I am using gwt 1.7.0 on linux + guice 2.0 + latest gin. I've followed all steps in gin tutorial, but when tried to run my app have got an exception. I could not understand what is wrong and where to look for a solution. Please help. Thanks in advance. [ERROR] Failed to create an instance of 'ru.rchervot.sanasar.client.SearchModule' via deferred binding java.lang.RuntimeException: Deferred binding failed for 'ru.rchervot.sanasar.client.MyWidgetGinjector' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: 43) at com.google.gwt.core.client.GWT.create(GWT.java:91) at ru.rchervot.sanasar.client.SearchModule.init(SearchModule.java: 66) - SearchModule.java(SearchModule is my EntryPoint class) line 66: private final MyWidgetGinjector injector = GWT.create (MyWidgetGinjector.class); MyWidgetClientModule.java: public class MyWidgetClientModule extends AbstractGinModule { @Override protected void configure() { bind(MainPresenter.Display.class).to(MainView.class); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How can you detect a mouse double click on a text box?
Hi Paul, Thanks a lot Its working now :) On Jul 26, 7:41 pm, Paul Messner paul.mess...@gmail.com wrote: Hi Rahul, A couple of options: Option 1: Extend TextBox and use the native DoubleClickEvent as follows: import com.google.gwt.event.dom.client.DoubleClickEvent; import com.google.gwt.event.dom.client.DoubleClickHandler; import com.google.gwt.event.dom.client.HasDoubleClickHandlers; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.user.client.ui.TextBox; public class CustomTextBox extends TextBox implements HasDoubleClickHandlers { public CustomTextBox() { super(); } @Override public HandlerRegistration addDoubleClickHandler(final DoubleClickHandler handler) { return addDomHandler(handler, DoubleClickEvent.getType()); } } To to test your requirement: final CustomTextBox textBox = new CustomTextBox(); textBox.addDoubleClickHandler(new DoubleClickHandler() { @Override public void onDoubleClick(final DoubleClickEvent event) { textBox.setText(); } }); Option 2: Increment a clickCount variable inside a ClickHandler. Start a Timer on the first click which resets the clickCount after a certain timeout. If the click count is = 2 on any click then you have a double click. Obviously this is not as good as Option 1 since you have to use your own double click timeout which may be different to the user's operating system setting. Hope this helps. Cheers, Paul. On Jul 26, 2:39 pm, Hussain Cutpiecewala hussuspec...@gmail.com wrote: HI Rahul.. This is hussain. can you tell me whether you are looking for solution in web development or desktop development? On Fri, Jul 24, 2009 at 8:28 PM, Rahul coolrahul18...@gmail.com wrote: Hi i would like the functionality that when a user double clicks on the textbox, the existing text on the textbox deletes itself how should i proceed to do that so ? --~--~-~--~~~---~--~~ You received 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 CssResource upgrading to 1.7 from 1.5.3
I'm still stuck with this. Is it possible to get negative margins using value() in CssResource? --~--~-~--~~~---~--~~ You received 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: I18n and special Characters
Set everything to UTF=8 The project (if not the default for Eclipse if that is what you are using). The class files will not pick this up unless they change and are saved (just putting a space at the end of a line will do) The HTML index file (meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/) Off the top of my head I think that is all. Ian http://examples.roughian.com 2009/7/27 harkon victor.sauerm...@googlemail.com Hi! In my GWT application I used some special Characters like ÄÖÜ etc. The display does not show them correctly. I read that this issue is related to different encodings and I used some other encodings settings in javac option, like UTF8 and ISOsomething. But nothing helps. If I give a special Character during runtime in a dialog this character was stored correctly... Help me :) Cheers Vic --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Crux - A web framework built over GWT - Released
Hi, I would like to invite GWT community to know Crux. It is a GWT extension that provides a lot of features as: * Declarative UI; * Validation engine, based on Java annotations; * Front Controller approach for server side; * Automatic value binding between page widgets and controller's value objects. It is derived from a masters degree dissertation defended in 2008 at the Federal University of Minas Gerais (UFMG) - Minas Gerais, Brazil and is available as an open source project licensed under APACHE 2.0 License. It can be accessed here: http://code.google.com/p/crux-framework/ Thanks, Thiago Bustamante --~--~-~--~~~---~--~~ You received 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: Newbie Question. Windows 7 + Eclispe 3.4 + GWT 1.7 + Debug + Getting Started Tutorial.
Excellent. It works as described. I've downgraded to jdk 1.6.0_13 from jre 1.6.0_14. Thanks! Howard On Jul 27, 7:40 am, Rajeev Dayal rda...@google.com wrote: There is an issue with JDK 1.6.0_14 and debugging. Are you using this JDK? If so, downgrade to 1.6.0_13 to workaround this problem. On Fri, Jul 24, 2009 at 5:44 PM, Howard Tan howard@gmail.com wrote: Hi, I've been combing through the Getting Started guide, and I got everything to work except this page. http://code.google.com/webtoolkit/tutorials/1.6/debug.html I've followed the directions and it doesn't work. The tutorial runs normally and it doesn't break at the breakpoints. Anybody got any ideas? I must be doing something wrong, and it's probably something simple. Please help, Thanks, Howard --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Connecting GWT with XML or MYSQL... HELP!
I am trying to create a GWT Google Map Application, in which I collect the markers in form of (lat, long) and store in XML or MYSQL. After collection, I read of the data and print out the points. Do you guys know if I can connect MYSQL with GWT? Or, How do I connect and store data in XML from GWT. Thanks, sam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
widget help
I cannot seem to add a widget to my google site. this is the message I get when I try to add a Library Thing widget HTML content will be modifiedYour HTML either contains unsafe tags (iframe, embed, styles, script) or extra attributes. They will be removed when the page is viewed. suggestions? --~--~-~--~~~---~--~~ You received 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: Newbie Question. Windows 7 + Eclispe 3.4 + GWT 1.7 + Debug + Getting Started Tutorial.
*you cant open anything,, mail any of that if this is true,, replay back,, i use a chat room that i can show u step by step.* On Fri, Jul 24, 2009 at 4:44 PM, Howard Tan howard@gmail.com wrote: Hi, I've been combing through the Getting Started guide, and I got everything to work except this page. http://code.google.com/webtoolkit/tutorials/1.6/debug.html I've followed the directions and it doesn't work. The tutorial runs normally and it doesn't break at the breakpoints. Anybody got any ideas? I must be doing something wrong, and it's probably something simple. Please help, Thanks, Howard --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Running a project against a non-Java server (with JUnit)
We have a nice GWT project that hits our XQuery server but are missing out on many of the features of GWT, and I'm trying to add them in despite our non-standard configuration. The overall situation should be identical to GWT+Ruby or PHP, except that we are using XQuery as the back end language.One item is that I get either "The development shell servlet received a request for 'MyApp.css' in module 'com.foo.app.MyApp.JUnit.gwt.xml' "errors, and/or cross-domain violations when I try to Run JUnit to test a service. Specifically, the files are simply not found when I use a relative URL for the RequestBuilder, and if I hardcode the URL to be the correct server+port I also get cross-domain violations. Our setup is that we use GWT with v 1.6 to push compiled .js into a war directory which also contains XQuery code, and have our non-java server serve up files from that location. Running JUnit (or hosted mode) however seems to lock us into the embedded tomcat that GWT uses. Are there standard workarounds? I'm considering trying to proxy everything with a small Java server that is also running to provide some file processing utilities we need, but am concerned about the performance impact of that approach.Thoughts or pointers would be appreciated.Damon --~--~-~--~~~---~--~~ You received 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: Crux - A web framework built over GWT - Released
Very good work Thiago. It's always good to see some brazilian work with that much quality. Realy good work. []s bruno On Mon, Jul 27, 2009 at 4:43 PM, Thiago tr_bustama...@yahoo.com.br wrote: Hi, I would like to invite GWT community to know Crux. It is a GWT extension that provides a lot of features as: * Declarative UI; * Validation engine, based on Java annotations; * Front Controller approach for server side; * Automatic value binding between page widgets and controller's value objects. It is derived from a masters degree dissertation defended in 2008 at the Federal University of Minas Gerais (UFMG) - Minas Gerais, Brazil and is available as an open source project licensed under APACHE 2.0 License. It can be accessed here: http://code.google.com/p/crux-framework/ Thanks, Thiago Bustamante -- Quer aprender a programar? acompanhe: Wants to learn GWT? Follow this blog - http://tcninja.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Indexed Panel
Hi Rahul, It's not a panel per se, it is an interface that a number of different panels implement. If a panel implements the interface, then you know you can that you can get a widget at a particular index, count the number of widgets on the panel, remove a widget at a particular index and get the index of a particular widget. There's always the JavaDoc if you need information, i.e. http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/IndexedPanel.html . Hope that helps. //Adam On 27 Juli, 17:36, Rahul coolrahul18...@gmail.com wrote: Hi, I could not find any documentation regarding this Panel Can someone get me started with Indexed Panel? Sincerely, Rahul Mukhedkar --~--~-~--~~~---~--~~ You received 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: Connecting GWT with XML or MYSQL... HELP!
You need todo the bindings on the serverside (via RPC/JSON etc). Just read the docs Bye, Norman 2009/7/28 sam sabir...@gmail.com: I am trying to create a GWT Google Map Application, in which I collect the markers in form of (lat, long) and store in XML or MYSQL. After collection, I read of the data and print out the points. Do you guys know if I can connect MYSQL with GWT? Or, How do I connect and store data in XML from GWT. Thanks, sam --~--~-~--~~~---~--~~ You received 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: could not add gin the project
You prolly missed to add the following line to your ProjectName.gwt.xml file: inherits name=com.google.gwt.inject.Inject/ Bye, Norman 2009/7/27 r...@n roman.chervot...@gmail.com: Hi, I've tried to add gin DI to the project, but have got an error below. I am using gwt 1.7.0 on linux + guice 2.0 + latest gin. I've followed all steps in gin tutorial, but when tried to run my app have got an exception. I could not understand what is wrong and where to look for a solution. Please help. Thanks in advance. [ERROR] Failed to create an instance of 'ru.rchervot.sanasar.client.SearchModule' via deferred binding java.lang.RuntimeException: Deferred binding failed for 'ru.rchervot.sanasar.client.MyWidgetGinjector' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: 43) at com.google.gwt.core.client.GWT.create(GWT.java:91) at ru.rchervot.sanasar.client.SearchModule.init(SearchModule.java: 66) - SearchModule.java(SearchModule is my EntryPoint class) line 66: private final MyWidgetGinjector injector = GWT.create (MyWidgetGinjector.class); MyWidgetClientModule.java: public class MyWidgetClientModule extends AbstractGinModule { �...@override protected void configure() { bind(MainPresenter.Display.class).to(MainView.class); } } --~--~-~--~~~---~--~~ You received 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: Connecting GWT with XML or MYSQL... HELP!
You can use a Servlet in server side to store/retrieve data using a Database (MySQL) or an XML file. GWT can use that Servlet to communicate. --- Kamal Mettananda http://lkamal.blogspot.com On Tue, Jul 28, 2009 at 10:58 AM, Norman Maurer nor...@apache.org wrote: You need todo the bindings on the serverside (via RPC/JSON etc). Just read the docs Bye, Norman 2009/7/28 sam sabir...@gmail.com: I am trying to create a GWT Google Map Application, in which I collect the markers in form of (lat, long) and store in XML or MYSQL. After collection, I read of the data and print out the points. Do you guys know if I can connect MYSQL with GWT? Or, How do I connect and store data in XML from GWT. Thanks, sam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Need to define common CSS Properties for components for entire application
Hello all, I am facing too much trouble in formatting the components of the application. I have decided to take maximum advantage of CSS. /* * Idea is, In java class just add component to the panel or page - apply style class that's it * All other properties that can be set via style sheet should be defined in style class only not * in your java class. */ I want to define common CSS properties for all components (panel, page, button, etc...). The reason behind is as application growing design issues are come up very often. Please help me in how can I reuse the property classed defined in css gwt-ext(ext-all.css etc.) style sheets Please suggest optimal ways toi achieve 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: Need to define common CSS Properties for components for entire application
Generally what we do is; set the style name in Java class and do the changes in the CSS file. http://lkamal.blogspot.com/2007/08/add-css-style-for-gwt-widgets.html Isn't that what you are thinking of? --- Kamal Mettananda On Tue, Jul 28, 2009 at 11:14 AM, caps dakbhav...@gmail.com wrote: Hello all, I am facing too much trouble in formatting the components of the application. I have decided to take maximum advantage of CSS. /* * Idea is, In java class just add component to the panel or page - apply style class that's it * All other properties that can be set via style sheet should be defined in style class only not * in your java class. */ I want to define common CSS properties for all components (panel, page, button, etc...). The reason behind is as application growing design issues are come up very often. Please help me in how can I reuse the property classed defined in css gwt-ext(ext-all.css etc.) style sheets Please suggest optimal ways toi achieve 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 -~--~~~~--~~--~--~---
[gwt-contrib] Re: DockLayoutPanel
I completely understand your pain -- HTML layout is an absolute nightmare. I'm about to start the review thread for the core Layout class and supporting code (and post an initial design doc at the same time). It is a low-level class that works directly with elements, and is meant primarily to be used by higher-level widgets. It, along with the design doc, should give you an idea of how it all works, and if you like you can start using it directly. I plan on following up with individual widget reviews soon thereafter, and the Dock/Split widget will be among the first. On Sun, Jul 26, 2009 at 5:20 PM, Rob Heittman rob.heitt...@solertium.comwrote: Hi Joel, A little cri de coeur ... whether as a branch, patchset, or note passed under the desk, I would really love to have a look at your draft DockLayoutPanel in the not too distant future. We've also had to reinvent that wheel to meet some project time constraints, but I'd like to try to converge with your approach so I can cut over to DockLayoutPanel someday without too much fuss. Fortunately, my use case allows me to ignore IE, so my workload is not as bad as yours :-) - R On Mon, Jun 29, 2009 at 8:21 AM, Joel Webber j...@google.com wrote: That's fairly closely related to the approach I'm taking. It is worth noting, however, that this totally fails on IE6, because it won't handle the kinds of implicit constraints created by, e.g., { left:0; right:0; }. Just to make matters more difficult, it also can't handle { right:0; } properly (often off-by-one pixel). Part of the work I'm doing involves a lot of script hackery to account for this, without hamstringing the implementation on other browsers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit Contributors group. To post to this group, send email to Google-Web-Toolkit-Contributors@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit-contributors+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit-Contributors?hl=en -~--~~~~--~~--~--~---
[gwt-contrib] Re: DockLayoutPanel
Sounds perfect. Thanks, Joel! On Mon, Jul 27, 2009 at 8:07 AM, Joel Webber j...@google.com wrote: I completely understand your pain -- HTML layout is an absolute nightmare. I'm about to start the review thread for the core Layout class and supporting code (and post an initial design doc at the same time). It is a low-level class that works directly with elements, and is meant primarily to be used by higher-level widgets. It, along with the design doc, should give you an idea of how it all works, and if you like you can start using it directly. I plan on following up with individual widget reviews soon thereafter, and the Dock/Split widget will be among the first. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UsingOOPHM in google-web-toolkit
Comment by mescalinum: thanks dan. I got the same issues on 64bit platform and I fixed thanks to your tips For more information: http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Proposal for improving JDO/JPA RPC support
Hi Sami - 1) To track the previous state would seem to require doubling the amount of data sent from server to client, which doesn't seem like a good tradeoff in general. My proposal avoids the need to send extra data by simply allowing everything to be marked as dirty. What are your specific questions about collections and PersistentSet? 2) The only places I can see to store the extra field data are a) on the client or b) in the persistent store. The HTTP session won't work, I think. For example, the server could be behind a load-balancer, so the object would be materialized on server A, sent to the client, and sent back to server B. If the extra data is not sent along with the object, it has to be somewhere that both A and B can access. It can't just live in A's VM heap. My thought is that it would be counterintuitive for GWT RPC to attempt to modify the persistent store, and probably would create problems. Dan On Wed, Jul 22, 2009 at 9:31 AM, Sami Jaber sami.ja...@gmail.com wrote: Hi Dan, That sounds to be a really good step in the right direction. This mecanisms seems to cover all the nominal use cases that we would face regarding the different o/r mapping impl. I would just make a few remarks : 1) When you call all the setXX() methods when the object is sent back to the server, the o/r mapper will assume that those fields have been modified and the dirty state tracking (which is activated before the setXX() call if I well understand) will raise an update operation for all the fields. I think you have to compare bean n-1 field values and bean n field values to call only the setXX() for the modified values. What about collection ? Hibernate provides a PersistentSet that ensure the object state tracking, will you call setXX() for all items of client data ? 2) If you analyze an enhanced entity in the Hibernate land you will see that it contains many coarse-grained information, like a SessionImplementor (it depends on the dynamic proxy factory and impl you have used) - https://www.hibernate.org/hib_docs/v3/api/org/hibernate/proxy/ProxyFactory.html. Serializing those data in a String based representation could be potentially harmful in term of bandwith and payload. Why not providing a way to store this client data info in the HttpSession ? Sami On Mon, Jul 20, 2009 at 8:06 PM, Daniel Rice (דניאל רייס) r...@google.com wrote: Hi all - I've been working on a patch to improve support for RPC of persistence-enhanced objects that would replace the one I recently submitted as trunk revision 5672. I'd like to give those of you who are interested in the interaction between RPC and persistence a chance to help me validate the design before moving forward. The idea is to be able to deal with different persistence mechanisms in a way that does not depend too much on the details of their implementations. We assume that the persistence mechanism provides a way for instances to be detached from the object store, serialized, deserialized, and reattached in a well-defined way. Our strategy leverages this capability as follows: 1) User code on the server detaches the object and places it into a state such that serialization is valid 2) GWT detects whether any instance fields are present on the object that were not known to client code 3) GWT performs hybrid serialization: a) GWT uses its regular RPC mechanism for the client-visible fields b) GWT uses Java serialization for any additional server-only instance fields c) GWT encodes the results of step (b) as a String d) GWT prepends the encoded String to the regular RPC data and transmits to the client 4) Client code treats the object in the normal way and does not interact with the data from step (3b) 5) When the object is sent back to the server, the normal RPC mechanism is altered as follows a) the encoded server data is decoded and deserialized into the new object instance b) the client data is populated using setXXX() method invocations rather than by directly setting field values All this is done only for classes that can be send bidirectionally, and which are determined to be (potentially) enhanced. The potential for enhancement is signaled in one of three ways: o The user adds the fully-qualified class name to a 'gwt.enhancedClasses' configuration property o The class is determined to have the JDO @PersistenceCapable annotation with detachable=true o The class is determined to have the JPA @Entity annotation If a class is determined to be potentially enhanced, the list of fields known to the client is added to the '.gwt.rpc' file that contains the RPC whitelist. This list is used by step 2 of the RPC process which compares the set of client- and server-visible fields. Step (5b) is necessary to accommodate mechanisms like that of JDO, where the setter methods are enhanced to provide object state tracking (dirty bits). If we were to set the fields directly,
[gwt-contrib] Re: Proposal for improving JDO/JPA RPC support
Hi Dan, Please correct me if I'm wrong. As I understand your proposal, when entity A get back to the server after being modified by the client, you assume that all fields are dirty if extra data are not present ? If extra data exists, you don't compare extra-data state representation (which would be in fact n-1 fields state) with the actual state of your entity ? In other terms, are extra data only a raw base64 serialization of the previous bean state ? My concern about PersistentCollection is the following - Hibernate ensure that dirty state tracking is handled by a kind of client side collection wrapper. If you remove the PersistentCollection type and its behavior, you lose the ability to track on the client side the elements inserted/removed/modified. When you go back to the server, you can only assume that all the elements of your collection are dirty, which would raise (with Hibernate) a [delete all/insert all] operation instead of a simple update. Transitive persistence and cascading merging are handled by information stored in PersistentCollection (that other would call an Observable Collection). Regarding the second point, I agree with you that storing the extra-data on the client is better to ensure that you are stateless architecture compliant. You will probably get complains coming from people that have a pretty complex object graph to serialize. Sami On Mon, Jul 27, 2009 at 10:08 PM, Daniel Rice (דניאל רייס) r...@google.comwrote: Hi Sami - 1) To track the previous state would seem to require doubling the amount of data sent from server to client, which doesn't seem like a good tradeoff in general. My proposal avoids the need to send extra data by simply allowing everything to be marked as dirty. What are your specific questions about collections and PersistentSet? 2) The only places I can see to store the extra field data are a) on the client or b) in the persistent store. The HTTP session won't work, I think. For example, the server could be behind a load-balancer, so the object would be materialized on server A, sent to the client, and sent back to server B. If the extra data is not sent along with the object, it has to be somewhere that both A and B can access. It can't just live in A's VM heap. My thought is that it would be counterintuitive for GWT RPC to attempt to modify the persistent store, and probably would create problems. Dan On Wed, Jul 22, 2009 at 9:31 AM, Sami Jaber sami.ja...@gmail.com wrote: Hi Dan, That sounds to be a really good step in the right direction. This mecanisms seems to cover all the nominal use cases that we would face regarding the different o/r mapping impl. I would just make a few remarks : 1) When you call all the setXX() methods when the object is sent back to the server, the o/r mapper will assume that those fields have been modified and the dirty state tracking (which is activated before the setXX() call if I well understand) will raise an update operation for all the fields. I think you have to compare bean n-1 field values and bean n field values to call only the setXX() for the modified values. What about collection ? Hibernate provides a PersistentSet that ensure the object state tracking, will you call setXX() for all items of client data ? 2) If you analyze an enhanced entity in the Hibernate land you will see that it contains many coarse-grained information, like a SessionImplementor (it depends on the dynamic proxy factory and impl you have used) - https://www.hibernate.org/hib_docs/v3/api/org/hibernate/proxy/ProxyFactory.html. Serializing those data in a String based representation could be potentially harmful in term of bandwith and payload. Why not providing a way to store this client data info in the HttpSession ? Sami On Mon, Jul 20, 2009 at 8:06 PM, Daniel Rice (דניאל רייס) r...@google.com wrote: Hi all - I've been working on a patch to improve support for RPC of persistence-enhanced objects that would replace the one I recently submitted as trunk revision 5672. I'd like to give those of you who are interested in the interaction between RPC and persistence a chance to help me validate the design before moving forward. The idea is to be able to deal with different persistence mechanisms in a way that does not depend too much on the details of their implementations. We assume that the persistence mechanism provides a way for instances to be detached from the object store, serialized, deserialized, and reattached in a well-defined way. Our strategy leverages this capability as follows: 1) User code on the server detaches the object and places it into a state such that serialization is valid 2) GWT detects whether any instance fields are present on the object that were not known to client code 3) GWT performs hybrid serialization: a) GWT uses its regular RPC mechanism for the client-visible fields b) GWT uses Java serialization for any additional
[gwt-contrib] Re: DockLayoutPanel
Great!! I've just started usin g GWT (jumping in at 2.0) and this sound perfect for our app. Thanks Joel. On Jul 27, 1:50 pm, Rob Heittman rob.heitt...@solertium.com wrote: Sounds perfect. Thanks, Joel! On Mon, Jul 27, 2009 at 8:07 AM, Joel Webber j...@google.com wrote: I completely understand your pain -- HTML layout is an absolute nightmare. I'm about to start the review thread for the core Layout class and supporting code (and post an initial design doc at the same time). It is a low-level class that works directly with elements, and is meant primarily to be used by higher-level widgets. It, along with the design doc, should give you an idea of how it all works, and if you like you can start using it directly. I plan on following up with individual widget reviews soon thereafter, and the Dock/Split widget will be among the first. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] TextArea getCursorPos fix for IE in pyjamas, is it the right approach?
folks, hi, as you know, pyjamas tracks GWT fairly closely, with the UI widget API being near-identical to that of GWT, and even to the point where i wrote a java2py.py script which converts GWT java code [mostly] to python, to make the process of porting GWT widgets over to python that much easier. we even copy over the platform overrides with the Javascript sections, wholesale. on very rare occasions, we encounter bugs before you do :) i was wondering therefore if you've encountered this: http://code.google.com/p/pyjamas/issues/detail?id=205 your thoughts appreciated. l. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Proposal for improving JDO/JPA RPC support
At least in JDO, the extra data is essentially a couple of bit sets. It doesn't contain any additional copies of field values. I'm not sure what would happen with collections -- if one were used as a field value, we would call a setter and hand it entire collection, which I suppose Hibernate would have to treat as an entirely new object. Trying to track the individual changes on the client seems like a much harder problem than what I am proposing at the moment. Dan On Mon, Jul 27, 2009 at 4:50 PM, Sami Jaber sami.ja...@gmail.com wrote: Hi Dan, Please correct me if I'm wrong. As I understand your proposal, when entity A get back to the server after being modified by the client, you assume that all fields are dirty if extra data are not present ? If extra data exists, you don't compare extra-data state representation (which would be in fact n-1 fields state) with the actual state of your entity ? In other terms, are extra data only a raw base64 serialization of the previous bean state ? My concern about PersistentCollection is the following - Hibernate ensure that dirty state tracking is handled by a kind of client side collection wrapper. If you remove the PersistentCollection type and its behavior, you lose the ability to track on the client side the elements inserted/removed/modified. When you go back to the server, you can only assume that all the elements of your collection are dirty, which would raise (with Hibernate) a [delete all/insert all] operation instead of a simple update. Transitive persistence and cascading merging are handled by information stored in PersistentCollection (that other would call an Observable Collection). Regarding the second point, I agree with you that storing the extra-data on the client is better to ensure that you are stateless architecture compliant. You will probably get complains coming from people that have a pretty complex object graph to serialize. Sami On Mon, Jul 27, 2009 at 10:08 PM, Daniel Rice (דניאל רייס) r...@google.com wrote: Hi Sami - 1) To track the previous state would seem to require doubling the amount of data sent from server to client, which doesn't seem like a good tradeoff in general. My proposal avoids the need to send extra data by simply allowing everything to be marked as dirty. What are your specific questions about collections and PersistentSet? 2) The only places I can see to store the extra field data are a) on the client or b) in the persistent store. The HTTP session won't work, I think. For example, the server could be behind a load-balancer, so the object would be materialized on server A, sent to the client, and sent back to server B. If the extra data is not sent along with the object, it has to be somewhere that both A and B can access. It can't just live in A's VM heap. My thought is that it would be counterintuitive for GWT RPC to attempt to modify the persistent store, and probably would create problems. Dan On Wed, Jul 22, 2009 at 9:31 AM, Sami Jaber sami.ja...@gmail.com wrote: Hi Dan, That sounds to be a really good step in the right direction. This mecanisms seems to cover all the nominal use cases that we would face regarding the different o/r mapping impl. I would just make a few remarks : 1) When you call all the setXX() methods when the object is sent back to the server, the o/r mapper will assume that those fields have been modified and the dirty state tracking (which is activated before the setXX() call if I well understand) will raise an update operation for all the fields. I think you have to compare bean n-1 field values and bean n field values to call only the setXX() for the modified values. What about collection ? Hibernate provides a PersistentSet that ensure the object state tracking, will you call setXX() for all items of client data ? 2) If you analyze an enhanced entity in the Hibernate land you will see that it contains many coarse-grained information, like a SessionImplementor (it depends on the dynamic proxy factory and impl you have used) - https://www.hibernate.org/hib_docs/v3/api/org/hibernate/proxy/ProxyFactory.html. Serializing those data in a String based representation could be potentially harmful in term of bandwith and payload. Why not providing a way to store this client data info in the HttpSession ? Sami On Mon, Jul 20, 2009 at 8:06 PM, Daniel Rice (דניאל רייס) r...@google.com wrote: Hi all - I've been working on a patch to improve support for RPC of persistence-enhanced objects that would replace the one I recently submitted as trunk revision 5672. I'd like to give those of you who are interested in the interaction between RPC and persistence a chance to help me validate the design before moving forward. The idea is to be able to deal with different persistence mechanisms in a way that does not depend too much on the details of their implementations. We assume that the
[gwt-contrib] Allow new strings to be created in the JS AST
Reviewers: Lex, scottb, Message: Review requested. @Lex, the implementation follows our IM discussion pretty much as discussed. Description: This patch changes the way code-splitting and string interning is performed on the JS AST to allow new strings to be introduced by JsVisitors (such as JsStackEmulator). Changes: - Remove string tracking from CodeSplitter - JsStringInterner is made aware of code splitting and is run after CodeSplitter - JProgram exposes a new API to indicate fragment load order JProgram.lastFragmentLoadingBefore should be extracted into an interface which JsStringInterner depends on. Is is called LoadOrderOracle? Please review this at http://gwt-code-reviews.appspot.com/51820 Affected files: M dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java M dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java M dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java M dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java M dev/core/src/com/google/gwt/dev/jjs/impl/JavaToJavaScriptMap.java M dev/core/src/com/google/gwt/dev/js/JsStringInterner.java M dev/core/src/com/google/gwt/dev/js/ast/JsProgram.java A dev/core/test/com/google/gwt/dev/javac/JProgramLastFragmentLoadingBeforeTest.java M dev/core/test/com/google/gwt/dev/javac/JavaCompilationSuite.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Allow new strings to be created in the JS AST
Bob, Woohoo! I assume this patch general purpose and would allow any of the Js optimization passes to introduce new string literals? I ask because I ran into the problem a few months ago when I wanted to introduce some extra stuff into JsStaticEval for mirroring the Simplifier in the Java AST (concating strings) but at the time, there was a very scary warning on the JsProgram.getStringLiteral :), which appears gone now, so I assume all restrictions are gone? -Ray On Mon, Jul 27, 2009 at 3:56 PM, b...@google.com wrote: Reviewers: Lex, scottb, Message: Review requested. @Lex, the implementation follows our IM discussion pretty much as discussed. Description: This patch changes the way code-splitting and string interning is performed on the JS AST to allow new strings to be introduced by JsVisitors (such as JsStackEmulator). Changes: - Remove string tracking from CodeSplitter - JsStringInterner is made aware of code splitting and is run after CodeSplitter - JProgram exposes a new API to indicate fragment load order JProgram.lastFragmentLoadingBefore should be extracted into an interface which JsStringInterner depends on. Is is called LoadOrderOracle? Please review this at http://gwt-code-reviews.appspot.com/51820 Affected files: M dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java M dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java M dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java M dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java M dev/core/src/com/google/gwt/dev/jjs/impl/JavaToJavaScriptMap.java M dev/core/src/com/google/gwt/dev/js/JsStringInterner.java M dev/core/src/com/google/gwt/dev/js/ast/JsProgram.java A dev/core/test/com/google/gwt/dev/javac/JProgramLastFragmentLoadingBeforeTest.java M dev/core/test/com/google/gwt/dev/javac/JavaCompilationSuite.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Allow new strings to be created in the JS AST
On Mon, Jul 27, 2009 at 7:37 PM, Ray Cromwellcromwell...@gmail.com wrote: Woohoo! I assume this patch general purpose and would allow any of the Js optimization passes to introduce new string literals? That's my expectation. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Locking Columns in PagingScrollTable
I'm about to embark on coming up with a way to lock 1 or more of the left-most columns. E.g., the locked columns will not scroll horizontally as the other columns are scrolled. I've googled around, and not found any other work towards this, so I'm hoping it's not impossible. Currently, I'm using the PagingScrollTable... My first thought is that I would create a wrapper that would internally separate the TableModel into two, and create two separate PagingScrollTable instances, smushed side-by-side. However, if I do this, one thing I really am unsure of is how to keep the height of each row in sync? I appreciate any hints, tips, and/or tricks! jay --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---