Gwt and Android
HI, I want to make an application gwt for android. Its possible? In particolar I wanto to send a photo that are on emulator to an external server. How to install an apps gwt on android? Or the only way is to connect from the browser? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re[2]: FF vs IE, when dealing with Lists
Hello Nick, Exactly the same issue was in our app. We need to display big lists (100 - 500) records, and FlexTable seems not solution for this. The problem is that FlexTable always checks table bounds (row number, column number) and when you put some value in FlexTable it performs checking for bounds, moreover it not store the colnum and rownum in some variables, but always calculate them dynamically. Moreover it dynamocally adds new rows. Thats why it becomes slower when number of rows increase. We had decided to use Grid rather then FlexTable. We can specify Grid bounds right after creation, and while we put data in cells in the cycle its performance remains the same for different grid size (here I mean speed of adding row). But it also has it's disadvantages. When we need to display another data in the same Grid, and this data has different number of rows, we should call Grod.resize(int, int). And for big grids, this operation is very slow in IE (in our tests resizing grid with 200 rows, 5 columns, takes ~13000 ms in IE). So It seems paging here the only solution. Tuesday, February 17, 2009, 6:40:51 PM, you wrote: Ok, I did some more testing and I was wrong. It's not the inserting and removing from lists that are the bottleneck. I moved the time and log statements around and it had to do with adding to the FlexTable itself. I'm using code like: int row = 1; for (IteratorMyData iter = eventList.iterator(); iter.hasNext(); row+ +) { long sysTime = System.currentTimeMillis(); int column = 0; MyData event = (MyData)iter.next(); table.setText(row, column, event.getNameLast()); column++; table.setText(row, column, event.getNameFirst()); column++; table.setText(row, column, event.getJob()); column++; GWT.log(update time 4: +(System.currentTimeMillis()-sysTime)+ms , null); } Now, you can see I'm logging the time after every row is inserted. The odd thing I'm seeing is that the time per row increase as rows are traversed. For example, row 1 takes about 30ms but as the rows traverse by row 100 each row is taking about 150ms. It's a steady increase. Any insights? -- Best regards, Alexey_Tsiunchikmailto:alexey.tsiunc...@gmail.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 -~--~~~~--~~--~--~---
Image.addClickListener() - BUG?
Hi, We are working on small Java robotics project (www.RoboHobby.com) And we use GWT as a web-based front end for for remote control for remote control for our robotics project. (http://www.robohobby.com/web_remote_control_for_robotics_gwt.jsp) QUESTION: It seams that there is a bug in ClickListener handler when you use it with Image. The code, like this is not working with GWT 1.5.x. Image myImage = new Image(); myImage.setUrl( url_to_myImage/myImage.jpg ); myImage.addClickListener(new ClickListener() { public void onClick(Widget sender) { //Do something, like: //myLabel.setText( Hello from myImage.addClickListener()!); } }); The code like this is work normal way with GWT 1.4.x (1.4.6, etc.). But it doesn't work with new versions – 1.5.3, 1.5.1, etc. Do you see such a problems in your projects? Or, may be there is another reason of such a problem? addClickListener() works good with Button, but not with Image. Technically it is possible to use a lot of buttons instead of images, but the page as a result looks not very good. Do you see such a bugs in your projects? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: DateTimeFormat problem when deploying to tomcat on unix
Just to inform that I resolved my problem including a patch in GWT 1.5 which we can put in parameter the TimeZone (of my server) on the method DateTimeFormat.format(date, TimeZone), the patch can be found here: http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/bfe963da51824ce0 thanks a lot to the author :) On Feb 13, 9:02 am, jptard jpt...@gmail.com wrote: Thanks Pascal... The application I implemented is to follow command made by our client... and it's needed to display all the information of the date (timestamp format) saved on database ... We have some people working in Maroc and it's them that encountered 'the problem' ... I thought that to force the locale of the application in the .gwt.xml and in the jsp page with the meta line, will resolve the problem... it seems that its the case on my computer.. but not when i deploy the application ! Not easy to manipulate date in informatic ! JP On Feb 12, 8:54 pm, Pascal zig...@gmail.com wrote: Bonjour JP, The problem is not with the DateTimeFormat class. You have to look at the way dates work in java. A date object is little more than an offset in milliseconds which happens to be on a give day in the timezone where the date object has been created. So for example, if you create it with a calendar object with no time component or retrieve it from a database date object, it will be at midnight on a given day. Now, if you send it to the client which is in a time zone that's behind the server's timezone, it will fall on the previous day. The way we solved this was to create our own DateDTO for dealing with dates with no time component. It only captured year, month and day. Then we do a conversion to Date on the client for rendering. Note that in another context, the timezone behavior is prettty useful. If you create a date object on the server that represents 11am, you send it to the client, which is 2 hours behind, and you render it, you will see that it now displays 9am which is what the server time is in local time. Hope this helps, Pascal On Feb 12, 10:44 am, jptard jpt...@gmail.com wrote: Hello, I encounter a problem with DateTimeFormat class..., not on my computer but when my application is deployed on production: I configured my module to force locale fr_FR like this on my module properties file: extend-property name=locale values=fr_FR/ and I put the meta line below on my jsp page: meta name=gwt:property content=locale=fr_FR/ When I am on my computer with a tomcat server, i can change my timezone of my computer and my date displayed on the module is the same each time When we deployed the application on an unix server, if I change the timezone of my computer, the date displayed on my module can change : 20/03/2009 instead of 21/03/2009 for example... I can't understand why.. and spend my day to resolve the problem.. but with no success... If anyone has encountered a similar problem and can help me... Thanks in advance, JP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
working with % forgwt/gwtext widget(Panel) height
Hi All, I am tiring to use % with GWT/GWText widget(Panel). But this does not work.Could i know how to do or if any work around for this. Regards, Manish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Shanthala M S wants to chat
--- Shanthala M S wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-2513449922-ba756ac207-835860af6280dd5a You'll need to click this link to be able to chat with Shanthala M S. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with Shanthala M S, visit: http://mail.google.com/mail/a-2513449922-ba756ac207-85caa1153d Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into conversations - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client Gmail and Google Talk are still in beta. We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Hibernate4GWT with GWT 1.5 Mysql
Hi, I've a problem with GWT 1.5.3, Gilead, Hibernate 3 Mysql 5. The problem is the same of many others people and is about the timeout of connections to the database that are closed after some hours. In particular after some hours when I try to list data on my application is raised this error: 09:12:38,104 WARN JDBCExceptionReporter:100 - SQL Error: 0, SQLState: 08S01 09:12:38,104 ERROR JDBCExceptionReporter:101 - Communications link failure Last packet sent to the server was 63 ms ago. org.hibernate.exception.JDBCConnectionException: could not execute query at org.hibernate.exception.SQLStateConverter.convert (SQLStateConverter.java:97) at org.hibernate.exception.JDBCExceptionHelper.convert (JDBCExceptionHelper.java:66) at org.hibernate.loader.Loader.doList(Loader.java:2231) at org.hibernate.loader.Loader.listIgnoreQueryCache (Loader.java:2125) at org.hibernate.loader.Loader.list(Loader.java:2120) at org.hibernate.loader.criteria.CriteriaLoader.list (CriteriaLoader.java:118) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1596) at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306) at it.pianetatecno.pianetabarche.server.dao.NewsDao.cercaNews (NewsDao.java:127) at it.pianetatecno.pianetabarche.server.ServiceImpl.cercaNews (ServiceImpl.java:112) 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.RPCCopy_GWT15.invoke (RPCCopy_GWT15.java:563) at com.google.gwt.user.server.rpc.RPCCopy.invoke(RPCCopy.java: 134) at net.sf.gilead.gwt.PersistentRemoteService.processCall (PersistentRemoteService.java:149) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 710) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:263) at org.apache.coyote.ajp.AjpAprProcessor.process (AjpAprProcessor.java:419) at org.apache.coyote.ajp.AjpAprProtocol $AjpConnectionHandler.process(AjpAprProtocol.java:394) at org.apache.tomcat.util.net.AprEndpoint$Worker.run (AprEndpoint.java:1508) at java.lang.Thread.run(Thread.java:619) Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure I'm using c3p0 and my hiberntate.cg.xml is: hibernate-configuration session-factory !-- Database connection settings -- !-- MySQL -- property name=connection.driver_classcom.mysql.jdbc.Driver/property property name=connection.urljdbc:mysql:// 192.168.1.101:3306/pianetabarche/property property name=connection.autoReconnecttrue/property property name=connection.autoReconnectForPoolstrue/ property property name=connection.is-connection-validation- requiredtrue/property property name=connection.usernameuser/property property name=connection.passwordpsw /property property name=connection.provider_classorg.hibernate.connection.C3P0ConnectionProvider/ property property name=c3p0.acquire_increment1/property property name=c3p0.idle_test_period14400/property property name=c3p0.max_size100/property property name=c3p0.max_statements0/property property name=c3p0.min_size10/property property name=hibernate.c3p0.idle_test_period14400/ property property name=hibernate.c3p0.max_size100/property property name=hibernate.c3p0.max_statements0/property property name=hibernate.c3p0.min_size10/property property name=hibernate.c3p0.timeout25200/property !-- SQL dialect -- property name=dialectorg.hibernate.dialect.MySQLInnoDBDialect /property property name=hibernate.transaction.factory_classorg.hibernate.transaction.JDBCTransactionFactory /property property
Re: doGet in remoteserviceservlet (HELP!)
ytbryan schrieb: thanks for the reply. but how do i prompt the user through save as dialog box from the client side? This happens automatically with setting the Content-Disposition- header which you already do. It's a functionality of the client that you can't control directly from the server-side (or via GWT). lothar, it is String. sorry i missed that out.. i write it as a csv file Can you quote correctly in the future, because right now, I don't know what you mean by that. If you mean that filename is a String, I know that, because I know what constructors there are coming with FileWriter. The question is why you write into a file locally if you want to deliver data to a client whose PrintWriter you already have in your hand and that you can use for writing your CSV-data directly. The other question was what _value_ filename has, to check if that might lead to problems when running with reduced rights inside the servlet-container. As well I asked you to have a look into the logs of the server to see if there is an error-message that point to the reason for the error-message on the client. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: doGet in remoteserviceservlet (HELP!)
gregor schrieb: Sorry, I misunderstood what you where trying to do. You want the user to be able top download the CSV file to their own disk, right? You can't use GWT RPC to do that, He's overwriting doGet of a RemoteServiceServlet and let the browser do a GET-request. So it should work, in fact I do that all the time and the file-delivery always happens here in the RemoteServiceServlet. and I don't think you can return the file as a String either. You get a Writer from the Response-parameter passed from the container. A writer lets you write Strings easily, so it is possible. I think you need a standard HttpServlet that writes the CSV file as binary data to the servlet response stream. RemoteServiceServlets are standard HttpServlets with an already implemented doPost-method. But you still can overwrite doGet which is sufficient for downloading files delivered by that server. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Resource not found: org.bcs.Main/org.bcs.Main.nocache.js ??
You do really need to get familiar with the GWT project structure, and what the default path expectations are - that will get you up and running quicker. http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=ConfiguringaGWTProject All resources specified in your module gwt.xml file are specified relative to the directory location of the resource file with the default expectation that GWT UI widgets will be located under /client, html, CSS, images etc under /public, and RPC servlets and other server code under /server. Therefore a typical project, say c:/../com/foo/myapp/MyApp.gwt.xml, will have CSS file at c:/../com/foo/myapp/public/MyApp.css and this will be referred to in the module HTML file as link rel=stylesheet href=MyApp.css or alternatively in the module get.xml file as stylesheet src='MyApp.css'/ On Feb 18, 4:22 am, BobM bmar...@bcscomputers.com wrote: Gregor, you get another medal! I am a little frustrated because I don't really understand why that fixed that problem, but I am happy to let that go for now. However, now my application cannot find the css files which do reside in org.bcs.public. Here are the hosted shell log messages: * The development shell servlet received a request for 'org/bcs/public/ selectionPage.css' in module 'org.bcs.CSRapp.gwt.xml * Resource not found: org/bcs/public/selectionPage.css; (could a file be missing from the public path or a servlet tag misconfigured in module org.bcs.CSRapp.gwt.xml * The development shell servlet received a request for 'org/bcs/public/ messagePanel.css' in module 'org.bcs.CSRapp.gwt.xml * Resource not found: org/bcs/public/messagePanel.css; (could a file be missing from the public path or a servlet tag misconfigured in module org.bcs.CSRapp.gwt.xml I am sure you will sort that out quickly, too, but I am very frustrated that I could be experiencing so many simple configuration errors. Why couldn't I have avoided that? Many thaks for you very good help. On Feb 17, 8:29 pm, gregor greg.power...@googlemail.com wrote: On Feb 18, 1:39 am, BobM bmar...@bcscomputers.com wrote: Oh, Gregor! You are so good! I did find the text specifying org.bcs.Main in the CSRapp.html. Now ... when I fixed that I now get the message: * The development shell servlet received a request for 'org.bcs.CSRapp/ org.bcs.CSRapp.nocache.js' in module 'org.bcs.CSRapp.gwt.xml * Resource not found: org.bcs.CSRapp/org.bcs.CSRapp.nocache.js; (could a file be missing from the public path or a servlet tag misconfigured in module org.bcs.CSRapp.gwt.xml org.bcs.CSRapp/org.bcs.CSRapp.nocache.js doesn't look right. Try org.bcs.CSRapp.nocache.js in the HTML file instead I can see www/org.bcs.CSRapp/org.bcs.CSRapp.nocache.js. Why can't the process find that .js? On Feb 17, 4:48 pm, gregor greg.power...@googlemail.com wrote: * The development shell servlet received a request for 'org.bcs.Main/ org.bcs.Main.nocache.js' in module 'org.bcs.CSRapp.gwt.xml' * Resource not found: org.bcs.Main/org.bcs.Main.nocache.js It may be finding org.bcs.Main/org.bcs.Main.nocache.js in CSRapp.html I cannot find any reference to anything Main (except, maybe, MainEntryPoint.java) in the module file, CSRapp.gwt.xml. How do I chase this down? The command used to run the GWTShell is ... java -Xmx256M -cp $APPDIR/src:$APPDIR/web:/usr/local/Java/GWT/gwt- linux-1.5.0/gwt-user.jar:/usr/local/Java/GWT/gwt-linux-1.5.0/gwt-dev- linux.jar com.google.gwt.dev.GWTShell -out $APPDIR/www $@ org.bcs.CSRapp/CSRapp.html; BTW, tomcat directory gets created as a consequence of running GWTShell, but directory www does not. It should create it when the compilation succeeds Thanks for your time and assistance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: doGet in remoteserviceservlet (HELP!)
Hi Lothar, I thought RPC servlets were always called via a POST and you couldn't change that, whereas if you use a standard HttpServlet you can use a HttpRequest on the client and specify a GET for it. Surely overriding stuff in a RemoteServiceServlet is more complicated than using HttpRequest? Is there some special reason you do this? gregor On Feb 18, 9:22 am, Lothar Kimmeringer j...@kimmeringer.de wrote: gregor schrieb: Sorry, I misunderstood what you where trying to do. You want the user to be able top download the CSV file to their own disk, right? You can't use GWT RPC to do that, He's overwriting doGet of a RemoteServiceServlet and let the browser do a GET-request. So it should work, in fact I do that all the time and the file-delivery always happens here in the RemoteServiceServlet. and I don't think you can return the file as a String either. You get a Writer from the Response-parameter passed from the container. A writer lets you write Strings easily, so it is possible. I think you need a standard HttpServlet that writes the CSV file as binary data to the servlet response stream. RemoteServiceServlets are standard HttpServlets with an already implemented doPost-method. But you still can overwrite doGet which is sufficient for downloading files delivered by that server. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Third party libraries for GWT
We are using Ext GWT and we are happy with it... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: doGet in remoteserviceservlet (HELP!)
gregor schrieb: I thought RPC servlets were always called via a POST and you couldn't change that, whereas if you use a standard HttpServlet you can use a HttpRequest on the client and specify a GET for it. If you call a GWT-RFC the GWT-framework will do this by doing a POST, that's correct. But if you tell the browser to get a resource, this will lead to a GET-request. If the URL is the same that you use for the RFC-requests, the same servlet will be called, but the container will call the doGet- instead of the doPost-method. So you can inplement different logic like delivering resources e.g. images, files, etc. using the same servlet, that is otherwise performing RFC-method-calls. Surely overriding stuff in a RemoteServiceServlet is more complicated than using HttpRequest? Not really. Is there some special reason you do this? One Servlet less that needs to be deployed. So there is one reason less why the deployment might fail. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Preserve current EventHandlers
Hi, Is it possible to preserve old event handlers when calling DOM.setEventHandler(...)? I'd like to bubble my events to several event handlers, because they are being manipulated in two very distinct places of the code, but when I set the second event handler I lose the ability to propagate events to the first. Thanks, Miguel Ping --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Dialog Box HELP
Hi, I think I had a similar problem, I think what you may be doing is adding a click listener to the button to open a dialog box, then once you have closed the dialog box, you may be forgetting to remove the click listener from the button. e.g. Button clickButton = new Button(Open Sesame!); clickButton.addClickListener(new ClickListener() { public void onClick(Widget _sender) { DialogBox newDialog = new Dialog(); ... newDialog.center(); newDialog.show(); } }); Then the next time your code runs you may be adding another click listener, forgetting that the first click listener is already there, which then reopens the old dialog box and the new one with one click of the button. So you need to store a handle to each ClickListener and remove it from the button - clickButton.removeClickListener(ClickListener) once you have closed the DialogBox. I'm kind of reading through the lines of your question, so I may be completely mistaken, if so sorry for all this gumpf. Cheers Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Dialog Box HELP
you're indeed mistaken ;) .e.g. Button clickButton = new Button(Open Sesame!); clickButton.addClickListener(new ClickListener() { public void onClick(Widget _sender) { DialogBox newDialog = new Dialog(); ... newDialog.center(); newDialog.show(); } }); you don't center and show at the same time. .center will automatically call .show(); so if you're calling .center and .show in the click listener, then this is obvious to have 2 Dialogs being shown. malen, can you post the code that you're using to show your dialog box? regards, ruds On Wed, Feb 18, 2009 at 2:19 PM, Simon B simon.bott...@gmail.com wrote: Hi, I think I had a similar problem, I think what you may be doing is adding a click listener to the button to open a dialog box, then once you have closed the dialog box, you may be forgetting to remove the click listener from the button. e.g. Button clickButton = new Button(Open Sesame!); clickButton.addClickListener(new ClickListener() { public void onClick(Widget _sender) { DialogBox newDialog = new Dialog(); ... newDialog.center(); newDialog.show(); } }); Then the next time your code runs you may be adding another click listener, forgetting that the first click listener is already there, which then reopens the old dialog box and the new one with one click of the button. So you need to store a handle to each ClickListener and remove it from the button - clickButton.removeClickListener(ClickListener) once you have closed the DialogBox. I'm kind of reading through the lines of your question, so I may be completely mistaken, if so sorry for all this gumpf. Cheers Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Hibernate4GWT with GWT 1.5 Mysql
I know you've explicitly got the autoreconnect as a property. Even so, if you haven't already tried it, you could try actually sticking the autoReconnect onto the end of you connection url : so it would look like this: jdbc:mysql://192.168.1.101:3306/pianetabarche?autoReconnect=true Cheers Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Image.addClickListener() - BUG?
What's exactly the error message? On 18 Feb., 09:08, RoboHobby roboho...@gmail.com wrote: Hi, We are working on small Java robotics project (www.RoboHobby.com) And we use GWT as a web-based front end for for remote control for remote control for our robotics project. (http://www.robohobby.com/web_remote_control_for_robotics_gwt.jsp) QUESTION: It seams that there is a bug in ClickListener handler when you use it with Image. The code, like this is not working with GWT 1.5.x. Image myImage = new Image(); myImage.setUrl( url_to_myImage/myImage.jpg ); myImage.addClickListener(new ClickListener() { public void onClick(Widget sender) { //Do something, like: //myLabel.setText( Hello from myImage.addClickListener()!); } }); The code like this is work normal way with GWT 1.4.x (1.4.6, etc.). But it doesn't work with new versions – 1.5.3, 1.5.1, etc. Do you see such a problems in your projects? Or, may be there is another reason of such a problem? addClickListener() works good with Button, but not with Image. Technically it is possible to use a lot of buttons instead of images, but the page as a result looks not very good. Do you see such a bugs in your projects? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Image.addClickListener() - BUG?
I'm not sure, I was able to do a simple example straight from the default project that comes from running the ProjectCreator and ApplicationCreator for eclipse. I added the lines: img.addClickListener(new ClickListener(){ public void onClick(Widget sender) { button.setText(I was clicked!); } }); and when I clicked the GoogleTool box image, the buttons' text changed. Can you mimic that as well? Maybe there's something else going on? On Feb 18, 3:08 am, RoboHobby roboho...@gmail.com wrote: Hi, We are working on small Java robotics project (www.RoboHobby.com) And we use GWT as a web-based front end for for remote control for remote control for our robotics project. (http://www.robohobby.com/web_remote_control_for_robotics_gwt.jsp) QUESTION: It seams that there is a bug in ClickListener handler when you use it with Image. The code, like this is not working with GWT 1.5.x. Image myImage = new Image(); myImage.setUrl( url_to_myImage/myImage.jpg ); myImage.addClickListener(new ClickListener() { public void onClick(Widget sender) { //Do something, like: //myLabel.setText( Hello from myImage.addClickListener()!); } }); The code like this is work normal way with GWT 1.4.x (1.4.6, etc.). But it doesn't work with new versions – 1.5.3, 1.5.1, etc. Do you see such a problems in your projects? Or, may be there is another reason of such a problem? addClickListener() works good with Button, but not with Image. Technically it is possible to use a lot of buttons instead of images, but the page as a result looks not very good. Do you see such a bugs in your projects? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Apps on Android!
GWT is for the web, so what you would want to do if you're heart is set on GWT and not on the Android native langauge, is to make a webpage just for the Andriod, so you can imagine the scaling and buttons and text to be usable on the phone. THne just use Android to gotot hat web page. The bright side oft hat is, any handheld device with web access (iPhone, Blackberry) should be able to use it. The downside is, it's still a webpage and you won't have access to the Android's more impressive functionality, like the GPS, the accelerometers and such. Depending on the app, you may want to make a program specifically for the android on the android. On Feb 17, 5:30 pm, frankCostello smar...@gmail.com wrote: Thanks for the reply; but I want to say how to create a simple gwt application on Android! Thanks. On 17 Feb, 20:20, Ben Tilford bentilf...@gmail.com wrote: The Android SDK and GWT have a lot in common as far as design and code styles. There are a couple of web servers available for Android that would let you serve up a webpage with GWT embeded in it but that would be a very round about way of getting things done. On Tue, Feb 17, 2009 at 2:02 PM, frankCostello smar...@gmail.com wrote: Hi, I want to make a Gwt application on Android! It's possible? How do I do? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Apps on Android!
Are there any procedures for the comunication between android and qwt- server? I want to make a simply app in android that send a String to a server that are extenal(not in android); this server is make in gwt. Thanks On 18 Feb, 14:39, Sean slough...@gmail.com wrote: GWT is for the web, so what you would want to do if you're heart is set on GWT and not on the Android native langauge, is to make a webpage just for the Andriod, so you can imagine the scaling and buttons and text to be usable on the phone. THne just use Android to gotot hat web page. The bright side oft hat is, any handheld device with web access (iPhone, Blackberry) should be able to use it. The downside is, it's still a webpage and you won't have access to the Android's more impressive functionality, like the GPS, the accelerometers and such. Depending on the app, you may want to make a program specifically for the android on the android. On Feb 17, 5:30 pm, frankCostello smar...@gmail.com wrote: Thanks for the reply; but I want to say how to create a simple gwt application on Android! Thanks. On 17 Feb, 20:20, Ben Tilford bentilf...@gmail.com wrote: The Android SDK and GWT have a lot in common as far as design and code styles. There are a couple of web servers available for Android that would let you serve up a webpage with GWT embeded in it but that would be a very round about way of getting things done. On Tue, Feb 17, 2009 at 2:02 PM, frankCostello smar...@gmail.com wrote: Hi, I want to make a Gwt application on Android! It's possible? How do I do? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Resource not found: org.bcs.Main/org.bcs.Main.nocache.js ??
Gregor, once again ... !! I am dismayed and frustrated by the problems I have encountered. I will re-read - study - the section on configuring a project. You have provided prompt and effective counsel on my problems. I am very grateful. I now have another problem, but on a GWT RPC issue. I will post another topic on this later today. Best regards to you! On Feb 18, 4:49 am, gregor greg.power...@googlemail.com wrote: You do really need to get familiar with the GWT project structure, and what the default path expectations are - that will get you up and running quicker. http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog... All resources specified in your module gwt.xml file are specified relative to the directory location of the resource file with the default expectation that GWT UI widgets will be located under /client, html, CSS, images etc under /public, and RPC servlets and other server code under /server. Therefore a typical project, say c:/../com/foo/myapp/MyApp.gwt.xml, will have CSS file at c:/../com/foo/myapp/public/MyApp.css and this will be referred to in the module HTML file as link rel=stylesheet href=MyApp.css or alternatively in the module get.xml file as stylesheet src='MyApp.css'/ On Feb 18, 4:22 am, BobM bmar...@bcscomputers.com wrote: Gregor, you get another medal! I am a little frustrated because I don't really understand why that fixed that problem, but I am happy to let that go for now. However, now my application cannot find the css files which do reside in org.bcs.public. Here are the hosted shell log messages: * The development shell servlet received a request for 'org/bcs/public/ selectionPage.css' in module 'org.bcs.CSRapp.gwt.xml * Resource not found: org/bcs/public/selectionPage.css; (could a file be missing from the public path or a servlet tag misconfigured in module org.bcs.CSRapp.gwt.xml * The development shell servlet received a request for 'org/bcs/public/ messagePanel.css' in module 'org.bcs.CSRapp.gwt.xml * Resource not found: org/bcs/public/messagePanel.css; (could a file be missing from the public path or a servlet tag misconfigured in module org.bcs.CSRapp.gwt.xml I am sure you will sort that out quickly, too, but I am very frustrated that I could be experiencing so many simple configuration errors. Why couldn't I have avoided that? Many thaks for you very good help. On Feb 17, 8:29 pm, gregor greg.power...@googlemail.com wrote: On Feb 18, 1:39 am, BobM bmar...@bcscomputers.com wrote: Oh, Gregor! You are so good! I did find the text specifying org.bcs.Main in the CSRapp.html. Now ... when I fixed that I now get the message: * The development shell servlet received a request for 'org.bcs.CSRapp/ org.bcs.CSRapp.nocache.js' in module 'org.bcs.CSRapp.gwt.xml * Resource not found: org.bcs.CSRapp/org.bcs.CSRapp.nocache.js; (could a file be missing from the public path or a servlet tag misconfigured in module org.bcs.CSRapp.gwt.xml org.bcs.CSRapp/org.bcs.CSRapp.nocache.js doesn't look right. Try org.bcs.CSRapp.nocache.js in the HTML file instead I can see www/org.bcs.CSRapp/org.bcs.CSRapp.nocache.js. Why can't the process find that .js? On Feb 17, 4:48 pm, gregor greg.power...@googlemail.com wrote: * The development shell servlet received a request for 'org.bcs.Main/ org.bcs.Main.nocache.js' in module 'org.bcs.CSRapp.gwt.xml' * Resource not found: org.bcs.Main/org.bcs.Main.nocache.js It may be finding org.bcs.Main/org.bcs.Main.nocache.js in CSRapp.html I cannot find any reference to anything Main (except, maybe, MainEntryPoint.java) in the module file, CSRapp.gwt.xml. How do I chase this down? The command used to run the GWTShell is ... java -Xmx256M -cp $APPDIR/src:$APPDIR/web:/usr/local/Java/GWT/gwt- linux-1.5.0/gwt-user.jar:/usr/local/Java/GWT/gwt-linux-1.5.0/gwt-dev- linux.jar com.google.gwt.dev.GWTShell -out $APPDIR/www $@ org.bcs.CSRapp/CSRapp.html; BTW, tomcat directory gets created as a consequence of running GWTShell, but directory www does not. It should create it when the compilation succeeds Thanks for your time and assistance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: undefined error
Recompile with style set to -PRETTY. That will give you more meaningful identifiers. On Sun, Feb 15, 2009 at 3:57 PM, Brian brian.reyno...@pobox.com wrote: I got an error in which the server side finishes processing but the information does not load into the front end. In Safari, I turned on the Developer menu and looked at the Console. It shows an error on that page that says undefined on line 866 of http://my.domain.com/***/some-big-number.cache.html. When I click on that error from the console, it brings me to that line which looks like the following: ** snip function jI(e,d,c,h){hI();var a,b,f,g;if(e===null){throw eI(new dI (),'Unable to parse null');}b=oJ(e);f=b0iJ(e,0)==45?1:0;for (a=f;ab;a++){if(dG(iJ(e,a),d)==(-1)){throw eI(new dI(),'Could not parse '+e+' in radix '+d);}}g=kI(e,d);if(iI(g)){throw eI(new dI (),'Unable to parse '+e);}else if(gc||gh){throw eI(new dI(),'The string '+e+' exceeds the range for the requested data type');}return g;} * snip It's pretty cryptic generated code from GWT. I imagine it means there's an undefined variable or function. Any idea how to track that down or better yet, any idea what I might have done to cause it? We're using GWT 1.4.something --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Apps on Android!
GWT isn't a server, it would be the front end used to communicate with or display data from a server. You can use a GWT web page to submit a string to a server, just like any other web page on the Android. That would work. Otherwise you could look into Android's native code, there has to be some sort of UDP or TCP/IP stack in Android. This would allow you to run the program on the Android, instead of viewing just the webpage. I haven't looked at Android too heavily yet (waiting for some better phones/plans), so I can't tell you the best interface to use. On Feb 18, 8:52 am, frankCostello smar...@gmail.com wrote: Are there any procedures for the comunication between android and qwt- server? I want to make a simply app in android that send a String to a server that are extenal(not in android); this server is make in gwt. Thanks On 18 Feb, 14:39, Sean slough...@gmail.com wrote: GWT is for the web, so what you would want to do if you're heart is set on GWT and not on the Android native langauge, is to make a webpage just for the Andriod, so you can imagine the scaling and buttons and text to be usable on the phone. THne just use Android to gotot hat web page. The bright side oft hat is, any handheld device with web access (iPhone, Blackberry) should be able to use it. The downside is, it's still a webpage and you won't have access to the Android's more impressive functionality, like the GPS, the accelerometers and such. Depending on the app, you may want to make a program specifically for the android on the android. On Feb 17, 5:30 pm, frankCostello smar...@gmail.com wrote: Thanks for the reply; but I want to say how to create a simple gwt application on Android! Thanks. On 17 Feb, 20:20, Ben Tilford bentilf...@gmail.com wrote: The Android SDK and GWT have a lot in common as far as design and code styles. There are a couple of web servers available for Android that would let you serve up a webpage with GWT embeded in it but that would be a very round about way of getting things done. On Tue, Feb 17, 2009 at 2:02 PM, frankCostello smar...@gmail.com wrote: Hi, I want to make a Gwt application on Android! It's possible? How do I do? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hibernate4GWT with GWT 1.5 Mysql
c3p0 has the facilities to automatically test your pooled connections to make sure they haven't been disconnected or it can just expire connections that haven't been used for X amount of time. See the configuration page here: http://www.mchange.com/projects/c3p0/index.html and hibernate's here: http://www.hibernate.org/214.html On Feb 18, 4:16 am, bond daniele.re...@gmail.com wrote: Hi, I've a problem with GWT 1.5.3, Gilead, Hibernate 3 Mysql 5. The problem is the same of many others people and is about the timeout of connections to the database that are closed after some hours. In particular after some hours when I try to list data on my application is raised this error: 09:12:38,104 WARN JDBCExceptionReporter:100 - SQL Error: 0, SQLState: 08S01 09:12:38,104 ERROR JDBCExceptionReporter:101 - Communications link failure --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
(HELP) com.google.gwt.user.client.rpc.StatusCodeException after deployment on tomcat
hi all, after i deploy my application with has rpc on tomcat, i got a error: HTTP Status 404 - /gwt-test-MySQLConn/ com.tribling.gwt.test.mysqlconn.MySQLConn/MySQLConnService type Status report message /gwt-test-MySQLConn/com.tribling.gwt.test.mysqlconn.MySQLConn/ MySQLConnService description The requested resource (/gwt-test-MySQLConn/ com.tribling.gwt.test.mysqlconn.MySQLConn/MySQLConnService) is not available. i have no clue what is wrong as it was working fine at hosted mode. please help 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: (HELP) com.google.gwt.user.client.rpc.StatusCodeException after deployment on tomcat
and the MySQLConnService is in the client folder of com.tribling.gwt.test.mysqlconn what is com.google.gwt.user.client.rpc.StatusCodeException exactly? On Feb 18, 3:51 pm, ytbryan ytbr...@gmail.com wrote: hi all, after i deploy my application with has rpc on tomcat, i got a error: HTTP Status 404 - /gwt-test-MySQLConn/ com.tribling.gwt.test.mysqlconn.MySQLConn/MySQLConnService type Status report message /gwt-test-MySQLConn/com.tribling.gwt.test.mysqlconn.MySQLConn/ MySQLConnService description The requested resource (/gwt-test-MySQLConn/ com.tribling.gwt.test.mysqlconn.MySQLConn/MySQLConnService) is not available. i have no clue what is wrong as it was working fine at hosted mode. please help 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 -~--~~~~--~~--~--~---
GWT RPC problem while deploying on glassfish
Hi everybody I builded a war and using gwt-rpc mechanism. It works well on tomcat. But there comes a problem when I want to deploy on glassfish. I couldn't find anything on web. I will be happy if somebody helps. The error is written below.(detected on glassfish logs) Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type '[Lheadman.client.modeller.Student;' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. at com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize (StandardSerializationPolicy.java:83) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:591) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue (ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java: 573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess (RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:529) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 754) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 847) at org.apache.catalina.core.ApplicationFilterChain.servletService (ApplicationFilterChain.java:427) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:333) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:214) at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java: 192) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:214) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:313) at org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContextValve.java:287) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:218) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:593) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java: 94) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke (PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:222) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:1096) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:166) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:1096) at org.apache.coyote.tomcat5.CoyoteAdapter.service (CoyoteAdapter.java:288) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter (DefaultProcessorTask.java:647) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess (DefaultProcessorTask.java:579) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process (DefaultProcessorTask.java:831) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask (DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask (DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask (DefaultReadTask.java:214) at com.sun.enterprise.web.portunif.PortUnificationPipeline $PUTask.doTask(PortUnificationPipeline.java:380) at com.sun.enterprise.web.connector.grizzly.TaskBase.run (TaskBase.java:265)
Re: best practices for gwt caching
On Tue, Feb 17, 2009 at 22:41, batosai tariq.albabt...@gmail.com wrote: I am working on optimizing my gwt app performance and I was looking at caching among other things. But I noticed that there are only a few posts that address the best practice of caching for GWT apps. (e.g. etags , mod_expires) I wanted to start a discussion on the matter and I would appreciate if anybody there could shre his ideas and experience in this matter. I can't speak for anyone else, but I'm using this filter to enforce caching of the non-changing files, e.g. the $hash.cache.html files produced by the GWT compiler: http://android.git.kernel.org/?p=tools/gerrit.git;a=blob;f=src/main/java/com/google/gerrit/server/CacheControlFilter.java;hb=HEAD http://android.git.kernel.org/?p=tools/gerrit.git;a=blob;f=src/main/webapp/WEB-INF/web.xml;hb=HEAD Using the web.xml I send all requests through the cache control filter, but only cache those that end in *.cache.html, or *.cache.png (ImageBundles). The others are marked as uncached as they are typically RPCs. I also run the application container behind an Apache2 reverse proxy, with caching enabled in Apache: http://gerrit.googlecode.com/svn/documentation/2.0/install.html#apache2 In practice, the container only receives RPC requests, everything else is served out of the disk cache by the Apache children. And clients and edge proxies are able to quite aggressively cache content, reducing the number of hits Apache sees. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
self-destroy image
Sorry for this very off-topic question. But is there any mechanism to set up expiration date on image, and after that date the image won't be viewable, just like injecting a virus into the image. Or if not image format, is Flash capable of doing that? Thanks for any thoughts, Charlie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Inside RichTextArea
I got it for firefox. Dont know how it will behave for internet explorer. Still experimenting with things... this might help somebody else. Or me too... // Gets the selection-start (anchor) node. It is where the cursor should be native Node getAnchorNode(IFrameElement frame) /*-{ return frame.contentWindow.getSelection().anchorNode; }-*/; // Gets the offset of selection start in the anchor node native int getAnchorOffset(IFrameElement frame) /*-{ return frame.contentWindow.getSelection().selection.anchorOffset; }-*/; // Gets the selection-end (focus) node native Node getFocusNode(IFrameElement frame) /*-{ return frame.contentWindow.getSelection().selection.focusNode; }-*/; // Gets the offset of selection end in focus node native int getFocusOffset(IFrameElement frame) /*-{ return frame.contentWindow.getSelection().selection.focusOffset; }-*/; Now where you need, use these methods like this: IFrameElement ife = IFrameElement.as(richTextArea.getElement()); Node anchorNode = getAnchorNode(ife); ... Reference: https://developer.mozilla.org/en/DOM/Selection http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/955bbb6d3da873e2/23ea5026dbfbb6f9 If someone could reply with Internet Explorer documentation link like the above of mozilla, it would be great. Omer Akhter On Feb 18, 6:41 am, satya satya.mu...@gmail.com wrote: RichTextArea does not provide a method to get the current cursor location. Sorry Satya On Feb 15, 8:22 am, Tóth Imre tothi...@gmail.com wrote: 2009/2/14 A Friend Of Yours omer.akh...@gmail.com Got things working a little... could anyone tell me how to get the cursor location in a RichTextArea? that is interest me as well. On Feb 14, 1:34 am, A Friend Of Yours omer.akh...@gmail.com wrote: Hello I am working on a project where I need a (java) source code highlighting editor. I searched everywhere but could not find any solution that could work with GWT. There are solutions such as codepress but dont work with GWT. Neither in this forum could I find anything useful. I was hoping if somebody could tell me what actually GWT does inside RichTextArea to enable rich text editing so that I might be able to make my own widget for this purpose. I tried the RichTextArea, RichTextAreaImpl and all its child classes but could not really get what they are playing with except that they are using iframe somehow. (May be because I dont know javascript as much as used there) Thanks Omer -- Best Regards Tóth Imre --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Using previously existing project on the client side
Hello, i just wanted to make sure that i got it right... If i have an existing project, which has its own dependencies, and i want to use it on my GWT application, on the client side, ¿i have to package the mentioned project and then get the source packages for all its dependencies? (considering they are all 5.0 compatible) The problem is i have an ORM generator which generates a set of classes which i would like to use on the client side, but they are a little more than POJOS, thats why they have their own dependencies and i have not been able to use them so far (on the client side, of course). Thank you all in advance Cheers! Rafael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: best practices for gwt caching
Thanks shawn for the feedback. I know that there are files like the *.cache.* files produced by the compiler with hash values that are unique for every build. So we can cache them for a long time using http server (apache in my case ) by setting the cache-control header for a max age for a year or more on those files :) But I have been reading the apache caching guide http://httpd.apache.org/docs/trunk/caching.html and I feel that I should do more than just enable the cache Anyone there also care to share his ideas. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Manage development and production environment
Hi, I need to know what is the best way to manage development and production environment with the module.xml file and html file. Here is a very simple sample: I got an application to code, I need to compile my application with the real GWT compiler (not the hosted mode) but i don't want to wait for 15 minutes because of too many permutations (en_EN + fr_FR + gecko1_8 + ie6 + etc...). I just want to compile fast and dirty in fr + gecko1_8 for intance ! (1minutes) But in production environment i need to compile with all the permutations... (en_EN + fr_FR + gecko1_8 + ie6 + etc...). So I thought I just need 2 module.xml files, one for development mode and one for production mode. I duplicated my module.xml and I modify both to fit what I want (prod = all permutations, dev = fr + gecko1_8) But I faced a problem when I want to modify the html file, I need to modify the line : meta name='gwt:module' content='aaa.bbb.ccc.DDD' / But how to have a generic html page when you have 2 modules (prod + dev)... I hope my problem would be clear, That is not easy to explain this problem ! Any idea ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Third party libraries for GWT
Hi, Thanks for ur suggestion but is it possible to avoid using EXT GWT and make it work with only GWT itself On Wed, Feb 18, 2009 at 4:48 PM, Antonio Leonforte antonio.leonfo...@fhoster.com wrote: We are using Ext GWT and we are happy with it... -- Regards, Mittal Thakkar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Importing server-side classes
Hi everybody, I know this is probably a very stupid question but please bear with me. I'm trying to use the same class on server and client (so I don't have to duplicate code): is it at all possible? Apparently it is, but for the life of me I can't figure out how to do it, I did the following, in file Client.java package my.client; import my.server.Myclass; In file Client.gwt.xml I added: inherit name=my.server.myclass / At this point the compiler complained about a missing .gwt.xml file, so I added a file Myclass.gwt.xml to the my.server directory, the file looks like this: ?xml version=1.0 encoding=UTF-8 standalone=no? module inherits name='com.google.gwt.user.User'/ inherits name=com.gwtext.GwtExt/ entry-point class='my.server.Myclass'/ /module but I still get this error: No source code is available for type my.server.Myclass; did you forget to inherit a required module? Any pointers will be very much appreciated. Cheers, Eros --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
TextBox.setFocus(true) not working
Hi, I have created an application in which i want to set focus on the textbox on the load of the panel; i am using TextBox.setFocus(true) but it doesnot work. I tried different ways wiz using DiferredCommand and onLoad(); but no go. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT and the Asterisk VoIP PBX
At the moment I am researching the possibility to make an integration between GWT and the Asterisk telephony PBX. My goal is to create a dashboard for the reception, wich makes it possible to dynamically transfer and stack calls in a web interface. Now, that last thing is my point. Asterisk is offering a manager interface (AMI), wich sends the Asterisk call events of the registered extensions to the at that moment connected manager. Build over that, there also is a javascript api called AJAM wich can do some basic Ajax tasks. AJAM can't capture the events like AMI does because http is a stateless protocol. I would like to use Ext GWT to create my dashboard, is it possible to capture the events with GWT wich Asterisk sends? Else, is there a working alternative? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 + FlowPanel + CSS = Tableless
Hello All, I am currently developing an application with GWT. It has all I need in order to create a smart/dynamic user interface. But I just would like to start a discussion about the usage of Grid, FlexTable, Vertical Panel, HorizontalPanel and all other component in GWT that generates after the compilation HTML Table structures. When I started my developing I did use a lot those components. But today, I can create my layout organization only using the FlowPanel component which generates a HTML div. By using FlowPanel and CSS I can build my layout and place my fields, images, links where I want. Now I only use GRID, FlexTable when I really want to display a search result. That is the goal of Tableless right? This is my feedback: I found out that is much more easy and fast to use FlowPanel + CSS to build layouts than any other GWT components. I only use GRID, FlexTable and similar when I am displaying a real Grid. I chose FlowPanel to organize my layout because it generates after the compilation a div element. If I add CSS to it, I can do whatever I want with my layout without changing the Java code. What I expect from the community: 1. I would appreciate if you can share your experience in terms of layout organization with GWT and the usage of Grid, FlexTable, Vertical Panel, HorizontalPanel components in your code. 2. Are there others developers with similar strategy: FlowPanel + CSS? 3. Does anyone know if GWT can be faster if it has to build a layout with less table tags? Thank you in advance. José Vicente --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
1-2 minute build time in netbeans with nb4gwt
Howdy folks I'm pretty new to GWT, and most everything is going fine for me...but trying to build the project in netbeans (using the nb4gwt plugin) takes forever. Even the basic project that's built with the wizard takes well over a minute to build. This really kills productivity. I can build a GWT app in eclipse or through terminal in much less time...why is netbeans taking so long? has anyone else had this problem? am I doing something wrong? any tips? Thanks. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to send request
I was trying to send request from my machine to a server to get the infromation provided by the server API. However, I get something like this when I run the method builder.sendRequest(null, new RequestCallback() {} Can any one tell me how can I fix the problem. I have spent the whole day on it. I guess the problem is that it violate the same-origin security restriction. Thank you so much com.google.gwt.http.client.RequestPermissionException: The URL http://abc.com/ddd/ghgg/a is invalid or violates the same-origin security restriction at com.google.gwt.http.client.RequestBuilder.doSend (RequestBuilder.java:384) at com.google.gwt.http.client.RequestBuilder.sendRequest (RequestBuilder.java:258) at com.activemediatech.client.EventForm.makeRequest(EventForm.java: 199) at com.activemediatech.client.EventForm.retriveHandset(EventForm.java: 156) at com.activemediatech.client.EventForm.onModuleLoad(EventForm.java: 56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:329) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300 (BrowserWidgetIE6.java:37) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:76) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:139) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke (IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 (IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6 (COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) Caused by: com.google.gwt.http.client.RequestException: Access is denied. at com.google.gwt.http.client.RequestBuilder.doSend (RequestBuilder.java:386) ... 22 more --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Importing server-side classes
?xml version=1.0 encoding=UTF-8 standalone=no? module inherits name='com.google.gwt.user.User'/ inherits name=com.gwtext.GwtExt/ entry-point class='my.server.Myclass'/ /module First, you don't have a source tag, so you're just getting a source path of client by default. That would include anything in the my.server.client package but would not include my.server.MyClass. Second, you're declaring my.server.Myclass as an entry point. I can't imagine why you'd actually have an EntryPoint in your server package, so I'm going to assume this is a mistake and recommend removing that line. Third, I think you're going to be better off creating a third package called common or shared or some such and putting your shared client/server code there. Having references to server packages in your client code should be a giant red flag. On Wed, Feb 18, 2009 at 11:30 AM, Eros eros.zanche...@gmail.com wrote: Hi everybody, I know this is probably a very stupid question but please bear with me. I'm trying to use the same class on server and client (so I don't have to duplicate code): is it at all possible? Apparently it is, but for the life of me I can't figure out how to do it, I did the following, in file Client.java package my.client; import my.server.Myclass; In file Client.gwt.xml I added: inherit name=my.server.myclass / At this point the compiler complained about a missing .gwt.xml file, so I added a file Myclass.gwt.xml to the my.server directory, the file looks like this: ?xml version=1.0 encoding=UTF-8 standalone=no? module inherits name='com.google.gwt.user.User'/ inherits name=com.gwtext.GwtExt/ entry-point class='my.server.Myclass'/ /module but I still get this error: No source code is available for type my.server.Myclass; did you forget to inherit a required module? Any pointers will be very much appreciated. Cheers, Eros --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 + FlowPanel + CSS = Tableless
On 18 fév, 11:44, Zé Vicente wrote: This is my feedback: I found out that is much more easy and fast to use FlowPanel + CSS to build layouts than any other GWT components. I only use GRID, FlexTable and similar when I am displaying a real Grid. I chose FlowPanel to organize my layout because it generates after the compilation a div element. If I add CSS to it, I can do whatever I want with my layout without changing the Java code. What I expect from the community: 1. I would appreciate if you can share your experience in terms of layout organization with GWT and the usage of Grid, FlexTable, Vertical Panel, HorizontalPanel components in your code. VerticalPanel is useful only in very rare cases. In most cases, you just add your widgets to a FlowPanel, as most widgets are made with a block-level root element. To reduce the number of classes used in our code (and thus the output size), we only use Grid (not even a single HorizontalPanel), and in one occasion a FlexTable (because we're using a colspan, but replacing it with an HTMLPanel or some other widget is on my TODO list). For our Grids, we're almost always using table-layout:fixed, which renders much faster on IE (we unfortunately *have* to support IE6 :'- ( ). In some cases, we're using float:left and float:right on widgets added to a FlowPanel where a GWT beginner would have put a Grid or HorizontalPanel. Finally, we've built a SpanPanel instead of using display:inline on a FlowPanel (just a matter of taste; might also be a bit faster, dunno) and we make use of InlineLabel and InlineHTML (we had them before they were added to GWT, and happily switched to the new ones as soon as they became available) 2. Are there others developers with similar strategy: FlowPanel + CSS? We still have quite a lot of tables (mostly DecoratorPanels, Trees and Grids), but yes. Yahoo! UI's strategy is far better and I'd love to have the same kind DOM behind similar GWT widgets, but they might not play as well as GWT in old browsers (IE6, I'm looking at you). 3. Does anyone know if GWT can be faster if it has to build a layout with less table tags? Sure! (less elements created, and browsers tend to render DIVs and SPANs faster than TABLEs; except maybe IE6 provided you're using table- layout:fixed) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Importing server-side classes
Eros schrieb: I know this is probably a very stupid question but please bear with me. I'm trying to use the same class on server and client (so I don't have to duplicate code): is it at all possible? It is possible, but these classes have to reside in the client- package or in a package that is defined as source-package. E.g. I placed all the data-objects I exchange between server and client in a package com.example.data and added this package as source-package to the gwt.xml-file. My xml-file residing in the package/directory com.example.myapp looks like the following: ... entry-point class=com.example.myapp.client.MyApp/ source path=client/ source path=data/ ... That way I can disinguish between classes that really are intended for the client only by placing them into the client-package and classes that are shared by placing them into the data-package. This allows a easier routine when creating the WAR-file because you simply need to put the classes in data into the server-jar-file and leave away the classes residing in client. Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Manage development and production environment
On 18 fév, 17:17, cyril.lakech cyril.lak...@gmail.com wrote: I need to know what is the best way to manage development and production environment with the module.xml file and html file. Here is a very simple sample: I got an application to code, I need to compile my application with the real GWT compiler (not the hosted mode) but i don't want to wait for 15 minutes because of too many permutations (en_EN + fr_FR + gecko1_8 + ie6 + etc...). I just want to compile fast and dirty in fr + gecko1_8 for intance ! (1minutes) But in production environment i need to compile with all the permutations... (en_EN + fr_FR + gecko1_8 + ie6 + etc...). [...] Any idea ? RTFM? ;-) http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5t=DevGuideModuleXml Section named Renaming a module. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Importing server-side classes
Thank you both, I was finally able to do it (I had completely missed the source tag since it wasn't in any of the sample xml files I used so far). And yes, using a separate package for data object is definitely a good idea, I'll start refactoring right away. Cheers, Eros --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Mobile Phones
Hi everyone, I am currently working on a project that needs to use mobile phones with GWT using a web browser. Firstly, please can someone tell me if this is easily possible, and secondly what phones will work? It is only a simple application, nothing too fancy. Any help much appreciated. Regards, Jack --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Mobile Phones
GWT works great with the iPhone and Android based phones. however, phones with WAP browsers are unlikely to ever be supported well due to the lack of any real javascript engine. I haven't tried the mobile opera browser with GWT but it may work reasonably well for simple applications -jason On Feb 18, 2009, at 11:01 AM, fatjack1...@googlemail.com wrote: Hi everyone, I am currently working on a project that needs to use mobile phones with GWT using a web browser. Firstly, please can someone tell me if this is easily possible, and secondly what phones will work? It is only a simple application, nothing too fancy. Any help much appreciated. Regards, Jack --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Mobile Phones
Ok cheers for the info. Is there any sort of specification I should be following? For example, as mobiles are narrower than PC monitors do the widgets I produce need to be narrower? I'm new to all this so please help!! Regards, Jack On Feb 18, 6:13 pm, Jason Essington jason.essing...@gmail.com wrote: GWT works great with the iPhone and Android based phones. however, phones with WAP browsers are unlikely to ever be supported well due to the lack of any real javascript engine. I haven't tried the mobile opera browser with GWT but it may work reasonably well for simple applications -jason On Feb 18, 2009, at 11:01 AM, fatjack1...@googlemail.com wrote: Hi everyone, I am currently working on a project that needs to use mobile phones with GWT using a web browser. Firstly, please can someone tell me if this is easily possible, and secondly what phones will work? It is only a simple application, nothing too fancy. Any help much appreciated. Regards, Jack --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to send request
Hi Bruce, The message is explicit : The URL http://abc.com/ddd/ghgg/a is invalid or violates the same-origin security restriction For security reasons, browsers don't allow an AJAX call to access an url which is not on the same domain (maybe sub-domain, not sure). It think that the URL abc.com is just a test for you, you probably develop your application locally. In that case, try an URL in the same domain as you open your page (probably somthing like http://localhost:8080/app/project.html). If it is not the case, copy-past your code. Regards, Damien 2009/2/18 Bruce Tan wei.h@googlemail.com I was trying to send request from my machine to a server to get the infromation provided by the server API. However, I get something like this when I run the method builder.sendRequest(null, new RequestCallback() {} Can any one tell me how can I fix the problem. I have spent the whole day on it. I guess the problem is that it violate the same-origin security restriction. Thank you so much com.google.gwt.http.client.RequestPermissionException: The URL http://abc.com/ddd/ghgg/a is invalid or violates the same-origin security restriction at com.google.gwt.http.client.RequestBuilder.doSend (RequestBuilder.java:384) at com.google.gwt.http.client.RequestBuilder.sendRequest (RequestBuilder.java:258) at com.activemediatech.client.EventForm.makeRequest(EventForm.java: 199) at com.activemediatech.client.EventForm.retriveHandset(EventForm.java: 156) at com.activemediatech.client.EventForm.onModuleLoad(EventForm.java: 56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:329) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300 (BrowserWidgetIE6.java:37) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:76) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:139) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke (IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 (IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6 (COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) Caused by: com.google.gwt.http.client.RequestException: Access is denied. at com.google.gwt.http.client.RequestBuilder.doSend (RequestBuilder.java:386) ... 22 more --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: FF vs IE, when dealing with Lists
Thanks for the response, I think you're correct. And it makes sense that adding rows dynamically would account for the increase in time as the row count is higher. I'm going to run a few tests, and I'll post anything I find to this post. On Feb 18, 3:09 am, Alexey_Tsiunchik alexey.tsiunc...@gmail.com wrote: Hello Nick, Exactly the same issue was in our app. We need to display big lists (100 - 500) records, and FlexTable seems not solution for this. The problem is that FlexTable always checks table bounds (row number, column number) and when you put some value in FlexTable it performs checking for bounds, moreover it not store the colnum and rownum in some variables, but always calculate them dynamically. Moreover it dynamocally adds new rows. Thats why it becomes slower when number of rows increase. We had decided to use Grid rather then FlexTable. We can specify Grid bounds right after creation, and while we put data in cells in the cycle its performance remains the same for different grid size (here I mean speed of adding row). But it also has it's disadvantages. When we need to display another data in the same Grid, and this data has different number of rows, we should call Grod.resize(int, int). And for big grids, this operation is very slow in IE (in our tests resizing grid with 200 rows, 5 columns, takes ~13000 ms in IE). So It seems paging here the only solution. Tuesday, February 17, 2009, 6:40:51 PM, you wrote: Ok, I did some more testing and I was wrong. It's not the inserting and removing from lists that are the bottleneck. I moved the time and log statements around and it had to do with adding to the FlexTable itself. I'm using code like: int row = 1; for (IteratorMyData iter = eventList.iterator(); iter.hasNext(); row+ +) { long sysTime = System.currentTimeMillis(); int column = 0; MyData event = (MyData)iter.next(); table.setText(row, column, event.getNameLast()); column++; table.setText(row, column, event.getNameFirst()); column++; table.setText(row, column, event.getJob()); column++; GWT.log(update time 4: +(System.currentTimeMillis()-sysTime)+ms , null); } Now, you can see I'm logging the time after every row is inserted. The odd thing I'm seeing is that the time per row increase as rows are traversed. For example, row 1 takes about 30ms but as the rows traverse by row 100 each row is taking about 150ms. It's a steady increase. Any insights? -- Best regards, Alexey_Tsiunchik mailto:alexey.tsiunc...@gmail.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: GWT + FlowPanel + CSS = Tableless
José Vicente, Please read this: http://meyerweb.com/eric/thoughts/2009/02/17/wanted-layout-system/ Hope this helps, Geraldo On 18 fev, 07:44, Zé Vicente josevicentec...@gmail.com wrote: Hello All, I am currently developing an application with GWT. It has all I need in order to create a smart/dynamic user interface. But I just would like to start a discussion about the usage of Grid, FlexTable, Vertical Panel, HorizontalPanel and all other component in GWT that generates after the compilation HTML Table structures. When I started my developing I did use a lot those components. But today, I can create my layout organization only using the FlowPanel component which generates a HTML div. By using FlowPanel and CSS I can build my layout and place my fields, images, links where I want. Now I only use GRID, FlexTable when I really want to display a search result. That is the goal of Tableless right? This is my feedback: I found out that is much more easy and fast to use FlowPanel + CSS to build layouts than any other GWT components. I only use GRID, FlexTable and similar when I am displaying a real Grid. I chose FlowPanel to organize my layout because it generates after the compilation a div element. If I add CSS to it, I can do whatever I want with my layout without changing the Java code. What I expect from the community: 1. I would appreciate if you can share your experience in terms of layout organization with GWT and the usage of Grid, FlexTable, Vertical Panel, HorizontalPanel components in your code. 2. Are there others developers with similar strategy: FlowPanel + CSS? 3. Does anyone know if GWT can be faster if it has to build a layout with less table tags? Thank you in advance. José Vicente --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6 Milestone 1
Is com.google.gwt.dev.Compiler with this release supposed to run on the Mac? Looks like library(s) are being shipped for it, but with OS X 10.5.6 and java 6 (Java(TM) SE Runtime Environment (build 1.6.0_07- b06-153)) I'm getting: ... [INFO] Unpacking /Users/jimt/.m2/repository/com/google/gwt/gwt-dev/ 1.6.0/gwt-dev-1.6.0-mac-libs.zipto /Users/jimt/.m2/repository/com/google/gwt/gwt-dev/1.6.0 with Includes null and excludes:null [INFO] [gwt:compile {execution: default}] [INFO] establishing classpath list (buildClaspathList - scope = COMPILE) [INFO] google.webtoolkit.home (gwtHome) *not* set, using project POM for GWT dependencies Compiling module org.kuali.student.core.organization.ui.OrgEntry Invalid memory access of location rip=01160767 /Users/jimt/src/kuali/student/ks-core/branches/ks-core-dev/core-ui/ target/compile.sh: line 5: 6139 Segmentation fault /System/ Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java - XstartOnFirstThread -Xmx512m -cp $CLASSPATH com.google.gwt.dev.Compiler -gen /Users/jimt/src/kuali/student/ks-core/ branches/ks-core-dev/core-ui/target/.generated -logLevel INFO -style OBF -war /Users/jimt/src/kuali/student/ks-core/branches/ks-core-dev/ core-ui/target/ks-core-ui-0.0.1-SNAPSHOT org.kuali.student.core.organization.ui.OrgEntry [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Exception attempting to run script - compile.sh I saw this same issue on Ubuntu with 1.6.0_07. Upgrading to _12 fixed the problem there, but there's no such upgrade avenue (yet) on OS X. Known issue? Thanks. - Jim Tomlinson On Feb 6, 7:26 am, Scott Blum sco...@google.com wrote: Greetings GWT developers, The GWT team is happy to announce the availability of 1.6 Milestone 1! Binary distributions are available for download directly from GWT's Google Code project. http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0 ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Servlet Problems (Simple GWT Application)
Hello All -- I've been to the Tomcat forums already originally thinking it was a servlet container issue. I don't think this is the case anymore. I have made a simple generic gwt rpc module.. When I run in hosted mode, everything is great. When I deploy my WAR file, the client side stuff works, but no servlet. Does anything jump out?? I've been fighting this for a couple of days.. I keep coming back to the conclusion that my container is configured wrong. A bit more info about container.. I'm running Ubuntu 8.10 / Apache2 / tomcat6 / mod-proxy Apache and Tomcat appear fully functional.. I have also successfully added a proxy to take me to port 8080 when calling my webapp. I've posted similar data to TomCat forum, and judging from responses, I have the container properly configured? I've also tried re-arranging my WEB-INF/ structure... It was original WEB-INF/classes/MsgServiceImpl.class not it is WEB-INF/classes/com/i2s/webMonster/server/ MsgServiceImpl.class I don't think I have a clue at this point... Thanks in Advance, Attached below are my code/logs -Scarlson --- Tomcat localhost log file output - SEVERE: Allocate exception for servlet MsgService java.lang.ClassNotFoundException: com.i2s.webMonster.client.MsgService at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1233) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal (WebappClassLoader.java:1847) at org.apache.catalina.loader.WebappClassLoader.findClass (WebappClassLoader.java:890) at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1354) at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1233) at org.apache.catalina.core.StandardWrapper$1.run (StandardWrapper.java:1077) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:1073) at org.apache.catalina.core.StandardWrapper.allocate (StandardWrapper.java:808) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:568) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619) -snip --- web.xml - ?xml version=1.0 encoding=UTF-8? web-app !-- Standard Action Servlet Configuration -- servlet servlet-nameMsgService/servlet-name servlet-classcom.i2s.webMonster.server.MsgServiceImpl/servlet- class /servlet !-- Standard Action Servlet Mapping -- servlet-mapping servlet-nameMsgService/servlet-name url-pattern/MsgService/url-pattern /servlet-mapping /web-app snip --- MsgService.java -- package com.i2s.webMonster.client; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath(MsgService) public interface MsgService extends RemoteService { /** * Utility class for simplifying access to the instance of async service. */ public String getMsg(); public static class Util { private static MsgServiceAsync instance; public static MsgServiceAsync getInstance(){ if (instance == null) { instance = GWT.create(MsgService.class); } return instance; } } } snip --- MsgServiceAsync.java -- package com.i2s.webMonster.client; import com.google.gwt.user.client.rpc.AsyncCallback; public interface MsgServiceAsync {
Re: Servlet Problems (Simple GWT Application)
java.lang.ClassNotFoundException: com.i2s.webMonster.client.MsgService You didn't deploy this class. On Wed, Feb 18, 2009 at 3:08 PM, scarlson scottrcarl...@gmail.com wrote: Hello All -- I've been to the Tomcat forums already originally thinking it was a servlet container issue. I don't think this is the case anymore. I have made a simple generic gwt rpc module.. When I run in hosted mode, everything is great. When I deploy my WAR file, the client side stuff works, but no servlet. Does anything jump out?? I've been fighting this for a couple of days.. I keep coming back to the conclusion that my container is configured wrong. A bit more info about container.. I'm running Ubuntu 8.10 / Apache2 / tomcat6 / mod-proxy Apache and Tomcat appear fully functional.. I have also successfully added a proxy to take me to port 8080 when calling my webapp. I've posted similar data to TomCat forum, and judging from responses, I have the container properly configured? I've also tried re-arranging my WEB-INF/ structure... It was original WEB-INF/classes/MsgServiceImpl.class not it is WEB-INF/classes/com/i2s/webMonster/server/ MsgServiceImpl.class I don't think I have a clue at this point... Thanks in Advance, Attached below are my code/logs -Scarlson --- Tomcat localhost log file output - SEVERE: Allocate exception for servlet MsgService java.lang.ClassNotFoundException: com.i2s.webMonster.client.MsgService at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1233) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal (WebappClassLoader.java:1847) at org.apache.catalina.loader.WebappClassLoader.findClass (WebappClassLoader.java:890) at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1354) at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1233) at org.apache.catalina.core.StandardWrapper$1.run (StandardWrapper.java:1077) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:1073) at org.apache.catalina.core.StandardWrapper.allocate (StandardWrapper.java:808) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:568) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619) -snip --- web.xml - ?xml version=1.0 encoding=UTF-8? web-app !-- Standard Action Servlet Configuration -- servlet servlet-nameMsgService/servlet-name servlet-classcom.i2s.webMonster.server.MsgServiceImpl/servlet- class /servlet !-- Standard Action Servlet Mapping -- servlet-mapping servlet-nameMsgService/servlet-name url-pattern/MsgService/url-pattern /servlet-mapping /web-app snip --- MsgService.java -- package com.i2s.webMonster.client; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath(MsgService) public interface MsgService extends RemoteService { /** * Utility class for simplifying access to the instance of async service. */ public String getMsg(); public static class Util { private static MsgServiceAsync instance; public static MsgServiceAsync getInstance(){ if (instance == null) { instance = GWT.create(MsgService.class); } return instance;
historyHandler GWT 1.6m1 and IE6/7 error
Hi, I'm trying the GWT's milestone 1. With this code: final ValueChangeHandlerString historyHandler = new ValueChangeHandlerString() { @Override public void onValueChange(ValueChangeEventString event) { //Window.alert(Valore history cambiato); } }; History.addValueChangeHandler(historyHandler); All in Firefox works but in IE6 or IE7 the application is not loaded beacuse of an error: handlers is null or it's not a object. This is the code that raise the error(get with a debug tool): _ = DocumentRootImpl.prototype = new Object_0(); _.getClass$ = getClass_21; _.typeId$ = 0; var documentRoot; function $addValueChangeHandler(this$static, handler){ return $addHandler_0(this$static.handlers, getType_1(), handler); } Any ideas to solve the problem? Thanks! Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hosted Mode crashes when embedding applet
Thanks! Is there a bug filed with Sun or Google that I can track? El Mentecato Mayor wrote: Yes, this is a known problem. Hosted mode doesn't support applets (not running a real html/javascript page), so you'll have to test your applet integration on web-mode only. I do something like this: if (GWT.isScript()) { // running on web mode applet = new AppletPanel(); } else { // running on hosted mode applet = // new Dummy panel such as SimplePanel(); } so that you can test evrything else in hosted mode, and only go to web mode when you really need to test something on the applet or its interactions with your other widgets. On Feb 16, 8:54 am, DAve smith.davi...@gmail.com wrote: I'm writing a GWT app that embeds a Java applet (for legacy reasons). Whenever I try to run it in Hosted Mode, the host browser crashes, so I have to compile it and load it in a real browser, slowing down my development process and preventing me from using the step-through debugger. Is this a known problem? Is there a workaround? 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: Announcing GWT 1.6 Milestone 1
What happens if you use a Java 1.5 VM? On Wed, Feb 18, 2009 at 2:52 PM, Jim Tomlinson jimtomlin...@gmail.comwrote: Is com.google.gwt.dev.Compiler with this release supposed to run on the Mac? Looks like library(s) are being shipped for it, but with OS X 10.5.6 and java 6 (Java(TM) SE Runtime Environment (build 1.6.0_07- b06-153)) I'm getting: ... [INFO] Unpacking /Users/jimt/.m2/repository/com/google/gwt/gwt-dev/ 1.6.0/gwt-dev-1.6.0-mac-libs.zipto /Users/jimt/.m2/repository/com/google/gwt/gwt-dev/1.6.0 with Includes null and excludes:null [INFO] [gwt:compile {execution: default}] [INFO] establishing classpath list (buildClaspathList - scope = COMPILE) [INFO] google.webtoolkit.home (gwtHome) *not* set, using project POM for GWT dependencies Compiling module org.kuali.student.core.organization.ui.OrgEntry Invalid memory access of location rip=01160767 /Users/jimt/src/kuali/student/ks-core/branches/ks-core-dev/core-ui/ target/compile.sh: line 5: 6139 Segmentation fault /System/ Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java - XstartOnFirstThread -Xmx512m -cp $CLASSPATH com.google.gwt.dev.Compiler -gen /Users/jimt/src/kuali/student/ks-core/ branches/ks-core-dev/core-ui/target/.generated -logLevel INFO -style OBF -war /Users/jimt/src/kuali/student/ks-core/branches/ks-core-dev/ core-ui/target/ks-core-ui-0.0.1-SNAPSHOT org.kuali.student.core.organization.ui.OrgEntry [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Exception attempting to run script - compile.sh I saw this same issue on Ubuntu with 1.6.0_07. Upgrading to _12 fixed the problem there, but there's no such upgrade avenue (yet) on OS X. Known issue? Thanks. - Jim Tomlinson On Feb 6, 7:26 am, Scott Blum sco...@google.com wrote: Greetings GWT developers, The GWT team is happy to announce the availability of 1.6 Milestone 1! Binary distributions are available for download directly from GWT's Google Code project. http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0 ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
timeout on call to an RPC server
Hello, I'm wondering what GWT's default behavior is if I initiate an RPC call (using code like the following): protected IMyServiceAsync myService = (IMyServiceAsync) GWT.create (IMyService.class); ServiceDefTarget endpoint = (ServiceDefTarget) eventService; endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + ../exporter/ MyService.rpc); myService.getDetails(callback); and the server is down? In most cases I'm finding that a com.google.gwt.user.client.rpc.StatusCodeException is thrown with status code 12029, which is appropriate and what I'd like to have happen all the time. However, in a few cases, these calls seem to be getting queued and then get passed to the server once the server is back up. What could account for this different behavior in different situations? I presume there must be some setting somewhere to adjust this but I haven't been able to find it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: timeout on call to an RPC server
On Wed, Feb 18, 2009 at 2:04 PM, david_data_digga david...@datadigga.com wrote: In most cases I'm finding that a com.google.gwt.user.client.rpc.StatusCodeException is thrown with status code 12029, which is appropriate and what I'd like to have happen all the time. However, in a few cases, these calls seem to be getting queued and then get passed to the server once the server is back up. What could account for this different behavior in different situations? I presume there must be some setting somewhere to adjust this but I haven't been able to find it. I can't really answer your question directly, but I'll try to fill you in on some details, in case that answers it indirectly. RPC is built directly on top of XMLHttpRequest (xhr). As far as I know, using an xhr instance to speak HTTP to a server is exactly the same as typing a URL in the URL bar of your browser and initiating an HTTP connection that way. If the server is down but comes back before the browser gives up, you'll eventually get a response. If the browser gives up before the server comes back, you'll get some kind of timeout or unreachable server exception. As far as I know, browsers give up on HTTP connections after a timeout has expired and the length of the timeout is either built-in or configured via browser-specific UI. In other words, the timeout is not, AFAIK, configurable from script. On the other hand, you could set up your own timeout that invokes the cancel() method on the in-flight xhr to cancel a request early. You can get at the xhr that undergirds your RPC request by declaring the relevant method on your async service interface to return RequestBuilder instead of void. (I'm not 100% sure that RequestBuilder is the right type name. This subject has come up at least once before on the mailing list, though, so, if I'm wrong, trying searching the history.) I think there are some caveats regarding using cancel(). I'm not 100% sure, but I think, if the response is already on the way, the callback may be invoked even though the request was canceled. I'm not sure if there's a work-around, or even if there's any built-in way to discover that the response you're handling has been canceled. Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWTTestCase v/s Selenium
Does Selenium support drag and drop functionality? I am basically working on IE. Some things do not work on IE and they work on Firefox. Does anybody have a good link for the Selenium API where we can find all this info? Thanks, rex On Jan 28, 5:43 pm, Daniel Wellman etl...@gmail.com wrote: I've always usedSeleniumdirectly. You can start by using theSeleniumIDE to record the script, but for an AJAX application, you'll need to tweak the script by hand to add the appropriate waitFor() commands (e.g. waitForVisible, waitForElementPresent, etc.) to ensure that your script waits for sever commands to complete, windows to redraw, etc. You can decide if you want the tests to run in pure Selenese (the HTML table structure created by theSeleniumIDE) or in a host language like Java or Ruby usingSeleniumRC. I prefer writing the tests in Java or Ruby instead of Selenese because it's easy for me to edit bothGWTcode andSeleniumtests all from one IDE (IntelliJ, Eclipse, etc.), and it's easier to write reusable routines in Java or Ruby than in Selenese tables. If you are having problems using DOM IDs, you might consider using CSS selectors instead to locate the items you want. Cheers, Dan On Jan 28, 2:24 pm, rex ruchi.malp...@gmail.com wrote: Yes. Exactly. The dynamic id generation is a pain. That is an obstacle in the test development. Does anybody know how to tackle it in Selenium? Also, i repeat my previous question whether to useSelenium alone or with another framework like 'PushToTest'? Thanks, Rex On Jan 28, 2:36 am, Serge bse...@bk.ru wrote: I see one serious problem withSeleniumusing: if you use GwtExt then all page's ids changes dynamically, so you can't useSelenium's scripts directly - you have to rewrite it for another methods of page's widgets determination (f.e. by name, by location and so on). If anybody know how to force GwtExt to generate ids once it would be good! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to send request
Even I'm facing the same problem. GWT 1.5.3 will not allow to access any http request even to a different port say http://localhost:9090/. This voilates something thats called same origin policy. After Reading a lot of older posts and few articles I came to know that: 1. Use proxy server to call a outside domain server call. 2. JSON using script tag. 3 or make the call within the same domain. 4 use GWT 1.5.2 But I could not find a way or example which explains the 1st option to use proxy. If someone can help me out it will resolve my week of bad luck trying all understandable options. This thing is holding me up for a long time now. On Wed, Feb 18, 2009 at 1:50 PM, Damien Picard picard.dam...@gmail.com wrote: Hi Bruce, The message is explicit : The URL http://abc.com/ddd/ghgg/a is invalid or violates the same-origin security restriction For security reasons, browsers don't allow an AJAX call to access an url which is not on the same domain (maybe sub-domain, not sure). It think that the URL abc.com is just a test for you, you probably develop your application locally. In that case, try an URL in the same domain as you open your page (probably somthing like http://localhost:8080/app/project.html). If it is not the case, copy-past your code. Regards, Damien 2009/2/18 Bruce Tan wei.h@googlemail.com I was trying to send request from my machine to a server to get the infromation provided by the server API. However, I get something like this when I run the method builder.sendRequest(null, new RequestCallback() {} Can any one tell me how can I fix the problem. I have spent the whole day on it. I guess the problem is that it violate the same-origin security restriction. Thank you so much com.google.gwt.http.client.RequestPermissionException: The URL http://abc.com/ddd/ghgg/a is invalid or violates the same-origin security restriction at com.google.gwt.http.client.RequestBuilder.doSend (RequestBuilder.java:384) at com.google.gwt.http.client.RequestBuilder.sendRequest (RequestBuilder.java:258) at com.activemediatech.client.EventForm.makeRequest(EventForm.java: 199) at com.activemediatech.client.EventForm.retriveHandset(EventForm.java: 156) at com.activemediatech.client.EventForm.onModuleLoad(EventForm.java: 56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace (BrowserWidget.java:329) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300 (BrowserWidgetIE6.java:37) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:76) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:139) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke (IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 (IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6 (COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) Caused by: com.google.gwt.http.client.RequestException: Access is denied. at com.google.gwt.http.client.RequestBuilder.doSend (RequestBuilder.java:386) ... 22 more -- Vishesh Sahu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: self-destroy image
On Feb 18, 8:44 am, Charlie xuchangli...@gmail.com wrote: Sorry for this very off-topic question. But is there any mechanism to set up expiration date on image, and after that date the image won't be viewable, just like injecting a virus into the image. Or if not image format, is Flash capable of doing that? Thanks for any thoughts, Charlie The way I've done this in the past is to have a Perl script in a cron job that sweeps directories and overwrites content with appropriate expired content (.html with such text or .jpg with such content). The issue is that Apache (or whatever your httpd) needs to be trained to return other content after the as-of date. That's a bit much to impose on the httpd server. The replacement text is there to avoid 404s --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: FF vs IE, when dealing with Lists
Ok, Results What I’m finding is that the Grid does beat the FlexTable, but not by much with a small data set. Larger sets seem to widen the gap. My guess for this is that since FlexTable has the ability to add rows (Grid is sized from the start) that it works much like how other resizable constructs work such as Java’s ArrayList. My reasoning for this is that the first time the test is run the speed is very slow on the FlexTable (especially in IE). Repeated test runs after the initial are faster and I think this is because the table was being sized the first time as rows were added, and didn’t need to be resized during the following tests. The other thing I’m finding is that performace varies based on browser. I’m seeing FF run reasonably well. With IE the Grid runs about the same as FF but the FlexTable runs considerably slower. I also tested Opera and was stunned as it blew both others out of the water. My full write up is here with times and a test application you can run in your browser. http://whatwouldnickdo.com/wordpress/401/performance-grid-vs-flextable/ On Feb 18, 2:10 pm, Nick nickc...@gmail.com wrote: Thanks for the response, I think you're correct. And it makes sense that adding rows dynamically would account for the increase in time as the row count is higher. I'm going to run a few tests, and I'll post anything I find to this post. On Feb 18, 3:09 am, Alexey_Tsiunchik alexey.tsiunc...@gmail.com wrote: Hello Nick, Exactly the same issue was in our app. We need to display big lists (100 - 500) records, and FlexTable seems not solution for this. The problem is that FlexTable always checks table bounds (row number, column number) and when you put some value in FlexTable it performs checking for bounds, moreover it not store the colnum and rownum in some variables, but always calculate them dynamically. Moreover it dynamocally adds new rows. Thats why it becomes slower when number of rows increase. We had decided to use Grid rather then FlexTable. We can specify Grid bounds right after creation, and while we put data in cells in the cycle its performance remains the same for different grid size (here I mean speed of adding row). But it also has it's disadvantages. When we need to display another data in the same Grid, and this data has different number of rows, we should call Grod.resize(int, int). And for big grids, this operation is very slow in IE (in our tests resizing grid with 200 rows, 5 columns, takes ~13000 ms in IE). So It seems paging here the only solution. Tuesday, February 17, 2009, 6:40:51 PM, you wrote: Ok, I did some more testing and I was wrong. It's not the inserting and removing from lists that are the bottleneck. I moved the time and log statements around and it had to do with adding to the FlexTable itself. I'm using code like: int row = 1; for (IteratorMyData iter = eventList.iterator(); iter.hasNext(); row+ +) { long sysTime = System.currentTimeMillis(); int column = 0; MyData event = (MyData)iter.next(); table.setText(row, column, event.getNameLast()); column++; table.setText(row, column, event.getNameFirst()); column++; table.setText(row, column, event.getJob()); column++; GWT.log(update time 4: +(System.currentTimeMillis()-sysTime)+ms , null); } Now, you can see I'm logging the time after every row is inserted. The odd thing I'm seeing is that the time per row increase as rows are traversed. For example, row 1 takes about 30ms but as the rows traverse by row 100 each row is taking about 150ms. It's a steady increase. Any insights? -- Best regards, Alexey_Tsiunchik mailto:alexey.tsiunc...@gmail.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: Announcing GWT 1.6 Milestone 1
Well, our project has lots of dependencies on java6, so there are beaucoup failures, but it doesn't get a segment violation as it does with 1.6.0_07. Guess I'll muddle along with my Ubuntu VM until the next milestone. Here's hoping the Mac (and its java6 64-bit libraries) get full support soon. Thanks. - Jim Tomlinson On Feb 18, 1:01 pm, Scott Blum sco...@google.com wrote: What happens if you use a Java 1.5 VM? On Wed, Feb 18, 2009 at 2:52 PM, Jim Tomlinson jimtomlin...@gmail.comwrote: Is com.google.gwt.dev.Compiler with this release supposed to run on the Mac? Looks like library(s) are being shipped for it, but with OS X 10.5.6 and java 6 (Java(TM) SE Runtime Environment (build 1.6.0_07- b06-153)) I'm getting: ... [INFO] Unpacking /Users/jimt/.m2/repository/com/google/gwt/gwt-dev/ 1.6.0/gwt-dev-1.6.0-mac-libs.zipto /Users/jimt/.m2/repository/com/google/gwt/gwt-dev/1.6.0 with Includes null and excludes:null [INFO] [gwt:compile {execution: default}] [INFO] establishing classpath list (buildClaspathList - scope = COMPILE) [INFO] google.webtoolkit.home (gwtHome) *not* set, using project POM for GWT dependencies Compiling module org.kuali.student.core.organization.ui.OrgEntry Invalid memory access of location rip=01160767 /Users/jimt/src/kuali/student/ks-core/branches/ks-core-dev/core-ui/ target/compile.sh: line 5: 6139 Segmentation fault /System/ Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java - XstartOnFirstThread -Xmx512m -cp $CLASSPATH com.google.gwt.dev.Compiler -gen /Users/jimt/src/kuali/student/ks-core/ branches/ks-core-dev/core-ui/target/.generated -logLevel INFO -style OBF -war /Users/jimt/src/kuali/student/ks-core/branches/ks-core-dev/ core-ui/target/ks-core-ui-0.0.1-SNAPSHOT org.kuali.student.core.organization.ui.OrgEntry [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Exception attempting to run script - compile.sh I saw this same issue on Ubuntu with 1.6.0_07. Upgrading to _12 fixed the problem there, but there's no such upgrade avenue (yet) on OS X. Known issue? Thanks. - Jim Tomlinson On Feb 6, 7:26 am, Scott Blum sco...@google.com wrote: Greetings GWT developers, The GWT team is happy to announce the availability of 1.6 Milestone 1! Binary distributions are available for download directly from GWT's Google Code project. http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=1.6.0 ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: Timer / Progress bar on a form to show countdown.
This is what I was actually looking for: http://code.google.com/p/google-web-toolkit-incubator/wiki/ProgressBar Thanks for everyone for your responses and help.. On Feb 17, 8:39 pm, satya satya.mu...@gmail.com wrote: GWT-Ext has timer functions. Will that help you? here is an demo link which has the source code also. http://www.gwt-ext.com/demo/#messageBox On Feb 17, 2:08 pm, Vishesh visheshs...@gmail.com wrote: What timer function do you think will return the timer's current value so that I can read and display on a lable? I'm clueless :( On 2/17/09, Litty Preeth preeth.h...@gmail.com wrote: Well using the Timer you can periodically request the server for the time remaining and update the count down Label. But this will require may be a server call in every min or few seconds. But I think the better approach is to get the remaining time at the first load and using a Timer to deduct a sec each time and update the label with new remaining time. - Litty On Tue, Feb 17, 2009 at 2:00 PM, alex.d alex.dukhov...@googlemail.comwrote: Timer is just a class that helps you to do smth. periodically(see docs for an example). You'll have to use it to update some label with your time value. On 17 Feb., 05:23, Vishesh visheshs...@gmail.com wrote: Thanks for replying. But is there a way to show the timer on the rootpanel or other screen? If there is I cant seem to find it anywhere. On Sun, Feb 15, 2009 at 4:50 PM, jossey joss...@gmail.com wrote: Will the Timer in GWT help? On Feb 14, 12:13 pm, Vish visheshs...@gmail.com wrote: Hi All, I'm trying to show acountdowntimer on a form which displays the time left for a discussion on some topic mentioned on that form. I'm not able to decide or figure out the best way to do it, also I couldn't find any earlier post discussing this. If someone can help me suggesting this it will be really helpful and I would be very thankful. Regard Vish. -- Vishesh Sahu -- Vishesh Sahu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 RPC issue: Unable to instantiate 'org.bcs.server.SelectionSearchServiceImpl
More detail from this message which was presented in the GWT shell when I made a GWT RPC call attempt: java.lang.ClassNotFoundException: org.bcs.server.SelectionSearchServiceImp The message from caught.getMessage(): Unable to find/load mapped servlet class 'org.bcs.server.SelectionSearchServiceImpl The rpc.log (which to my surprise gets created upon gwt compile) reports this: Reachable types computed on: Wed Feb 18 20:29:40 CST 2009 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException Serialization status Instantiable Path Started from 'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' java.lang.Exception Serialization status Field serializable Path Started from 'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' java.lang.Object Serialization status Not serializable Path Started from 'java.lang.String' java.lang.RuntimeException Serialization status Field serializable Path Started from 'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' java.lang.String Serialization status Instantiable Path Started from 'java.lang.String' java.lang.String[] Serialization status Instantiable Path Type 'java.lang.String[]' is reachable from array type 'java.lang.String[][]' Started from 'java.lang.String[][]' java.lang.String[][] Serialization status Instantiable Path Started from 'java.lang.String[][]' java.lang.Throwable Serialization status Field serializable Path Started from 'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' === Is there something I have failed to do with regard to setup to run in hosted mode? What is the problem here? Although I doubt I am yet really able to decipher the log, I don't see anything in the log that is an obvious problem although it reports this ImcompatibleRemoteServiceException, if that is the/a problem. Anything else I need to look at or report to y'all to fully diagnose this issue? Thanks for help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: self-destroy image
Your suggestion is certainly needed on the one hand as making the images no longer viewable on the http server side; but on the other hand, how about the images already downloaded or cached in the browser (for the cache stuff, maybe last modified date can help) But I guess there is really no mechanism to prevent from downloading the images on the user side and then they can spread it as they wish. I just wish I can have a hard cut-off date on the images and after certain days the images themselves can turn into all white pixels or alike. Thanks for the thought. On 2月18日, 下午7时05分, jchimene jchim...@gmail.com wrote: On Feb 18, 8:44 am, Charlie xuchangli...@gmail.com wrote: Sorry for this very off-topic question. But is there any mechanism to set up expiration date on image, and after that date the image won't be viewable, just like injecting a virus into the image. Or if not image format, is Flash capable of doing that? Thanks for any thoughts, Charlie The way I've done this in the past is to have a Perl script in a cron job that sweeps directories and overwrites content with appropriate expired content (.html with such text or .jpg with such content). The issue is that Apache (or whatever your httpd) needs to be trained to return other content after the as-of date. That's a bit much to impose on the httpd server. The replacement text is there to avoid 404s --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: working with % for gwt/gwtext widget(Panel) height
Hi All, Could I please expect any talk on this? Every single contribution will be appreciated well as I am now on dead-end where I need to say yes or no. Regards, Manish - Original Message - From: Manish Kumar To: Google-Web-Toolkit@googlegroups.com Sent: Wednesday, February 18, 2009 2:19 PM Subject: working with % forgwt/gwtext widget(Panel) height Hi All, I am trying to use % with GWT/GWText widget(Panel). But this does not work.Could i know how to do or if any work around for this. Regards, Manish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Want to call a GWT page by servlet
Till now I am using servlet to fetch the data from the databse and then the servlet send those data to a jsp page for displaying those data. Now i want, instead of jsp can we call we pass those data to a GWT page for displaying. If yes then how? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT + FlowPanel + CSS = Tableless
Hi all I am currently developing an application with GWT. It has all I need in order to create a smart/dynamic user interface.i m confused about using layout. when i used Flow panel+CSS , HTMLdivi think not compatible to all browser and if i used FlexTable, Vertical Panel, Horizontal Panel etc what is impact of the performance. please help me Thanks Regards Ashutosh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 GWT code before third-party script tags
I'm working with a consumer web app which uses GWT extensively and also integrates several third-party services (ads, user tracking, etc.) via script tags. (For context, we generate as much of our HTML as possible, including those script tags, on the server side, and add behavior with GWT. This keeps us search-engine friendly and reduces the time to when the user begins to see interesting content.) Unfortunately, all those third-party scripts run before GWT does, since all of the scripts are in the page and run during page load, while GWT runs on DOMContentLoaded. The result is that some prominent page elements aren't drawn, and behavior isn't available, until all of the third-party stuff is finished, which takes much too long (a couple of seconds). We'd rather have a happy user using the page right away and let the ads and user tracking and such complete afterwards, so we'd like all of the third-party stuff to run after GWT does. It seems as though the right way would be to write the third-party script tags into the DOM in our GWT code, after we've done all of the real application stuff that we want to do first. My first crack at this was (warning, from memory): ScriptElement script = ScriptElement.as(DOM.createElement(script)); script.setSrc(http:///third-party-service.com?...;); script.setType(text/javascript); Element container = DOM.getElementById(anId); container.appendChild(script); The above is at the end of my onModuleLoad. I also tried DeferredCommand.add(new Command() { // the same code }). Either way the result is the same: - in the hosted mode browser and IE 7, nothing happens (and there is no error in the hosted mode browser) - in Firefox 3, - the page loads until GWT gets around to running the above code - the script tag issues a request to the correct URL - the whole page is replaced by the content at that URL - Firebug reports an error in Google Maps code, which is running from our app, not from the third-party tag - the browser hangs! Can anyone either explain what's going on and suggest how to fix it, or suggest another way to accomplish the goal? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: FF vs IE, when dealing with Lists
Hi Nick, Flex table is pretty slow if you want to display 50+ rows in it at a time based on our experience. The slowness also varies for each browser, only realistic way of getting around this problem is to implement pagination, where you display only 20-30 rows on each page and then provide links on the header to navigate through the pages. This way i am able to manage a display of thousands of records in less than 500 milliseconds across the browsers (FF and chrome faster then IE). The application has many views with this approach displaying simple tabluar data and also hierarchical data structures. For displaying hierarchical data structures i initially went with Tree, but that was pretty slow for large no. of rows, so i simulated tree inside FlexTable using Click listener on (+/-) images. This works like a charm. Regards, Milind On Feb 18, 4:21 pm, Nick nickc...@gmail.com wrote: Ok, Results What I’m finding is that the Grid does beat the FlexTable, but not by much with a small data set. Larger sets seem to widen the gap. My guess for this is that since FlexTable has the ability to add rows (Grid is sized from the start) that it works much like how other resizable constructs work such as Java’s ArrayList. My reasoning for this is that the first time the test is run the speed is very slow on the FlexTable (especially in IE). Repeated test runs after the initial are faster and I think this is because the table was being sized the first time as rows were added, and didn’t need to be resized during the following tests. The other thing I’m finding is that performace varies based on browser. I’m seeing FF run reasonably well. With IE the Grid runs about the same as FF but the FlexTable runs considerably slower. I also tested Opera and was stunned as it blew both others out of the water. My full write up is here with times and a test application you can run in your browser.http://whatwouldnickdo.com/wordpress/401/performance-grid-vs-flextable/ On Feb 18, 2:10 pm, Nick nickc...@gmail.com wrote: Thanks for the response, I think you're correct. And it makes sense that adding rows dynamically would account for the increase in time as the row count is higher. I'm going to run a few tests, and I'll post anything I find to this post. On Feb 18, 3:09 am, Alexey_Tsiunchik alexey.tsiunc...@gmail.com wrote: Hello Nick, Exactly the same issue was in our app. We need to display big lists (100 - 500) records, and FlexTable seems not solution for this. The problem is that FlexTable always checks table bounds (row number, column number) and when you put some value in FlexTable it performs checking for bounds, moreover it not store the colnum and rownum in some variables, but always calculate them dynamically. Moreover it dynamocally adds new rows. Thats why it becomes slower when number of rows increase. We had decided to use Grid rather then FlexTable. We can specify Grid bounds right after creation, and while we put data in cells in the cycle its performance remains the same for different grid size (here I mean speed of adding row). But it also has it's disadvantages. When we need to display another data in the same Grid, and this data has different number of rows, we should call Grod.resize(int, int). And for big grids, this operation is very slow in IE (in our tests resizing grid with 200 rows, 5 columns, takes ~13000 ms in IE). So It seems paging here the only solution. Tuesday, February 17, 2009, 6:40:51 PM, you wrote: Ok, I did some more testing and I was wrong. It's not the inserting and removing from lists that are the bottleneck. I moved the time and log statements around and it had to do with adding to the FlexTable itself. I'm using code like: int row = 1; for (IteratorMyData iter = eventList.iterator(); iter.hasNext(); row+ +) { long sysTime = System.currentTimeMillis(); int column = 0; MyData event = (MyData)iter.next(); table.setText(row, column, event.getNameLast()); column++; table.setText(row, column, event.getNameFirst()); column++; table.setText(row, column, event.getJob()); column++; GWT.log(update time 4: +(System.currentTimeMillis()-sysTime)+ms , null); } Now, you can see I'm logging the time after every row is inserted. The odd thing I'm seeing is that the time per row increase as rows are traversed. For example, row 1 takes about 30ms but as the rows traverse by row 100 each row is taking about 150ms. It's a steady increase. Any insights? -- Best regards, Alexey_Tsiunchik mailto:alexey.tsiunc...@gmail.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
[gwt-contrib] Re: Could we create begin/end css attributes rather then switching left and right?
FWIW, similar sorts of things were done in HorizontalSplitPanel and DockPanel for the RTL work that was done as part of 1.5. Both of these panels had a concept of LEFT or EAST in GWT 1.4, but the bidi-friendly LINE_START and LINE_END contants were added in GWT 1.5. On Wed, Feb 18, 2009 at 9:43 AM, Emily Crutcher e...@google.com wrote: On Tue, Feb 17, 2009 at 9:13 PM, BobV b...@google.com wrote: Is @noflip{} insufficient? The problem manifests when you are using style injector to inject normal style sheets. When in that mind-set, the flipping of left and right fields can seem unexpected. Also is there a way to get the @noflip to parse when using the stylesheet with normal css tools? If you go down this route, it would be necessary to add -begin and -end suffixes as well. border-begin: 4px; padding-begin: 5px; That looks very readable to me. Darn it, the more cool features you put into the css resources, the more I wish we could switch over and not worry about normal css at all! -- Bob Vawter Google Web Toolkit Team -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR : Declassifying RPC / Removing all type names from compilation
On Tue, Feb 17, 2009 at 5:46 PM, BobV b...@google.com wrote: On Wed, Feb 18, 2009 at 8:50 AM, Joel Webber j...@google.com wrote: ControlFlowAnalyzer: - Just to make sure I understand this correctly, can you explain why we had to move the class-literal rescue code to JVariable? Because of ::class references; access to class literals from JSNI is handled as though it were a field reference. I could change JsniMethodBody.traverse() to examine it's field references and construct JClassLiterals to pass into JVisitor.accept() if you think it would be more clear as to what's gong on. Got it, that makes sense. JProgram/CompilingClassLoader: - It feels like there's got to be some way to merge the implementations of getTypeFromJsniRef() and getClassFromBinaryName(). Feel free to tell me it's not worth it, though. They operate on totally different data-types. getTypeFromJsniRef() needs access to JProgram fields, but getClassFromBinaryName() doesn't seem appropriate to add to JProgram. Fair enough. They look so close if you squint a little bit, but it's not worth convoluting the code to try and shove them together. It's not like someone's going to invent a new primitive Java type anytime soon. JsInliner: - (861) Why the comment about clinits being folded into the JsProgram body? I think I'm missing something here -- are we calling clinits in a context where they might get inlined directly into the outer scope? ClassLiteralHolder's clinit is effectively inlined into the JProgram in GenerateJavaScriptAST.generateClassLiterals. Understood. In the jjs tests, is there any eay way to share all those class name tests (i.e. startsWith(Class$)) without getting into heavy refactoring? It seems like we're only going to run into this sort of thing more as we start implementing optional optimizations (e.g. disable cast-checking), and it would be good to start a sensible pattern for these kinds of tests. I agree that there should be some common way of querying wether or not a particular optimization is applied for those tests that test for specific optimizations. Implement System.getProperties() to return compiler flags and module properties and a utility class to interpret them? Mostly just an observation. Something like that could work. Now's probably not the time, but I wanted to put the idea out there so we didn't forget about it. A few more comments follow: SerializerBase contains the comment Relies on monotonic behavior of hashcodes in web mode. I see no problem with this (and I've wanted to do so for JRE stuff at times), but I don't think we've ever explicitly stated this as a requirement of System.identityHashCode(). We should, at a minimum, document this requirement in our implementation of identityHashCode()/Impl.getHashCode(), so we don't inadvertently break it. SerializerBase.MethodMap is a JSO whose methods are non-final. Do you know why this is working? Do we only run JSO constraint-checking in hosted mode? Nits:ClientSerializationStreamWriter:57,82,96: JSNI reformat cruft. StandardSerializationPolicy:55: Double semicolons. ServerSerializationStreamWriter:412: Comment reformatting cruft (right-shifted notes). All that said, once you feel comfortable with it go ahead and commit away. I've run it against some pretty big projects without incident thus far, so... Good work! --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] The java code about applicationCreator script generated
I have been searched the gwt-related groups for the question, but it seems that there are no related discussions, so I post the question here. The java source code in client folder generated by applicationCreator script contains code segment: .. Button button = new Button(Click me); .. final DialogBox dialogBox = new DialogBox(); .. button.addClickListener(new ClickListener() { public void onClick(Widget sender) { dialogBox.center(); dialogBox.show(); } }); when user clicks the Click me button, program logic will run dialogBox.center(); and then dialogBox.show(); using Eclipse, we can conveniently see the javadoc descriptions of these two methods: void com.google.gwt.user.client.ui.PopupPanel.center() Centers the popup in the browser window and shows it. If the popup was already showing, then the popup is centered. void com.google.gwt.user.client.ui.PopupPanel.show() Shows the popup. It must have a child widget before this method is called. By the descriptions, the center() method has already included the function of showing the popup. Also, examining the code of them: public void center() { boolean initiallyShowing = showing; boolean initiallyAnimated = isAnimationEnabled; if (!initiallyShowing) { setVisible(false); setAnimationEnabled(false); show(); } int left = (Window.getClientWidth() - getOffsetWidth()) 1; int top = (Window.getClientHeight() - getOffsetHeight()) 1; setPopupPosition(Window.getScrollLeft() + left, Window.getScrollTop () + top); if (!initiallyShowing) { hide(); setVisible(true); setAnimationEnabled(initiallyAnimated); show(); } } public void show() { if (showing) { return; } showing = true; DOM.addEventPreview(this); resizeAnimation.setState(true); } If 'showing' is false, the code in center() will call show(); if 'showing' is true, center() will not call show(), and further, in this situation, the show() will return immediately and thus do nothing. This means that the center() method has already included the function of showing the popup by calling show(), and if 'showing' is true, the final results are the same. I have tried deleting the line of code dialogBox.show(); and run in hosted mode and web mode, the dialog display results are the same as retain this line of code. I wonder whether there are extra effects or special purposes to call show() immediately after center() in the matter of showing a popup in the center of browser window. The gwt version is 1.5.3. Thanks in advance. Austin --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: [google-web-toolkit commit] r4723 - in releases/1.6/dev/core: src/com/google/gwt/dev/javac test/com/google/gwt/dev/javac
Thanks for the great feedback, I implemented your suggestions in r4782. Please check it out and lemme know what you think. Thanks! Scott --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Wrap upgrades
I'm looking at it right now. On Wed, Feb 18, 2009 at 1:09 PM, Emily Crutcher e...@google.com wrote: Joel, Should I redirect this review to John? As I know you are very busy, so he may be a better person to review. If you could make the call on whether this should go into 1.6 or trunk, that would be appreciated though :-) Cheers, Emily On Thu, Feb 12, 2009 at 2:45 PM, e...@google.com wrote: Reviewers: jgw, Description: This patch included the implementation of SuggestBox.wrap, correct handling of composites wrapping root elements and a better error message if a panel tries to add a root widget. Please review this at http://gwt-code-reviews.appspot.com/2806 Affected files: user/src/com/google/gwt/user/client/ui/Composite.java user/src/com/google/gwt/user/client/ui/RootPanel.java user/src/com/google/gwt/user/client/ui/SuggestBox.java user/src/com/google/gwt/user/client/ui/Widget.java user/test/com/google/gwt/user/client/ui/SuggestBoxTest.java -- There are only 10 types of people in the world: Those who understand binary, and those who don't --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] testability of static methods
Hello everyone, I have a fairly complex class that is almost entirely non-GWT specific aside from a single line that uses GWT's URL.decodeComponent method. While I rediscovered GWTMockUtilities and found EasyMock Class extension, I still can't think of any way to mock out the URL class. This is because the object is not instantiable (it's final) and it's a static method call. I'm not sure if there's some performance reason behind making it a final class and using static methods, but it does make testing a pain. It forces me to use GWTTestCase instead of TestNG to test that particular class because of the single line of code. P.S. Does anyone mind if I write a little guide in the GWT Group about using GWTMockUtilities with EasyMock? -- Arthur Kalmenson --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: testability of static methods
Mind? Heck no! That would be great! On Wed, Feb 18, 2009 at 5:21 PM, Arthur Kalmenson arthur.k...@gmail.comwrote: Hello everyone, I have a fairly complex class that is almost entirely non-GWT specific aside from a single line that uses GWT's URL.decodeComponent method. While I rediscovered GWTMockUtilities and found EasyMock Class extension, I still can't think of any way to mock out the URL class. This is because the object is not instantiable (it's final) and it's a static method call. I'm not sure if there's some performance reason behind making it a final class and using static methods, but it does make testing a pain. It forces me to use GWTTestCase instead of TestNG to test that particular class because of the single line of code. P.S. Does anyone mind if I write a little guide in the GWT Group about using GWTMockUtilities with EasyMock? -- Arthur Kalmenson --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR : Declassifying RPC / Removing all type names from compilation
Thanks for the review. SerializerBase contains the comment Relies on monotonic behavior of hashcodes in web mode. I see no problem with this (and I've wanted to do so for JRE stuff at times), but I don't think we've ever explicitly stated this as a requirement of System.identityHashCode(). We should, at a minimum, document this requirement in our implementation of identityHashCode()/Impl.getHashCode(), so we don't inadvertently break it. Comments updated. SerializerBase.MethodMap is a JSO whose methods are non-final. Do you know why this is working? Do we only run JSO constraint-checking in hosted mode? MethodMap is a final class. Nits: ClientSerializationStreamWriter:57,82,96: JSNI reformat cruft. StandardSerializationPolicy:55: Double semicolons. ServerSerializationStreamWriter:412: Comment reformatting cruft (right-shifted notes). Fixed cruft. All that said, once you feel comfortable with it go ahead and commit away. I've run it against some pretty big projects without incident thus far, so... Good work! Merged to trunk at r4790. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] build issue in trunk with 'ant clean buildonly'
I use ant clean buildonly to quickly build gwt without the examples. However it fails due to missing folders. I have created an issue to track it, and attached a patch that fixes it. http://code.google.com/p/google-web-toolkit/issues/detail?id=3370 Cheers Cameron --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---