Re: ImageResource, Sprites and Data: URL
Oops! I think I replied to the individuals last time ;) Here's a summary: @DoNotEmbed is only for DataResource and not for any ResourcePrototype. Looked at the code of ImageResourceGenerator which says forceInline = false always, without caring about DoNotEmbed. IMHO, a simple change to this effect will be very useful. ClientBundle.enableInlining was the only option that worked, but sadly, it disables at a global level. It works for my case, so I'm ok with it... -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Oct 17, 2:52 pm, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: If your resource is declared from an interface, you can use a @DoNotEmbed annotation above specific resources instead of disabling it for all your application. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/... 2011/10/17 Thomas Broyer t.bro...@gmail.com Simply add set-property name=ClientBundle.enableInlining value=false / to your gwt.xml. See http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.htm... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jh6jFaFGSk4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
ImageResource, Sprites and Data: URL
Hi, Is there any option to force use the generated sprite image instead of the data:image/* URL? As I understand, the only reason to use data: URL is to avoid extra connection to the server. However, if an sprite has been created (and my sprite has around 150 images combined in), I'd prefer using that image. One extra connection for this, IMHO - specially in my case, is better than dumping in all 400KB of data in the HTML image that increases the payload and initial load-time by a huge amount (my basic HTML is only a few KBs, not even 100's of KBs) Happy Hacking, Gaurav Vaish http://www.mastergaurav.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: StackPanel
Hi Ani, If you can elaborate on what you're trying to achieve, the forum may be able to suggess you with better options. -- Happy Hacking, Gaurav Vaish http://www.incoleg.com On Apr 19, 5:33 pm, Issam boualem.is...@gmail.com wrote: Hi, Make the one item a VerticalPanel (or HorizontalPanel) and then put what ever you want in Vertical/Horizontal Panel.. On Apr 19, 1:44 pm, Ani anapont...@gmail.com wrote: Hello, I hope that someone can help me with this question. Is it possible to show more than 1 item on a stackpanel? I mean, i know that by definition it just show 1 at time, but i'd like to know if it's possible to do something like that Thank you very much for your 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: optimizing GWT code
As Magno said, refactor your code into multiple methods/classes. Create logical packages - for UI, biz-logic, data-model, server- connections (RPC or ReguestBuilder or otherwise). Study some decently sized application on places like Sourceforge to get idea of how to structure your application ;) -- Happy Hacking, Gaurav Vaish http://www.incoleg.com On Apr 17, 1:54 am, Magno Machado magn...@gmail.com wrote: This is pretty much like having a huge main() method on a traditional Java application It's hard to tell what you can do without knowing your code, but I'd try to refactor this code and separate it into other classes and methods with well defined responsabilities. Are you instantiating widgets inside your entry point to build a GUI? If so, try to put that on another class, using UiBinder On Fri, Apr 15, 2011 at 11:26 AM, Carlos hbazz...@gmail.com wrote: hi all, am creating a web application testing tool for a specific server, and using gwt for this purpose (first contact with gwt). The code of the EntryPoint class is enorme and somehow confusing for anyone who wants to re-read it or modify it after me. so how i can realy optimize the code? is writing several EntryPoint classes can solve the problem? and if so what problems would i face with respect to performance of loading and etc Merci d'avance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Magno Machado Paulohttp://blog.magnomachado.com.brhttp://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Calling server-side rpc method from server-side code
What do you want to achieve? If it's just about invoking a method, it can be as simple as: 1. Create an instance of the corresponding RPC servlet 2. Call the desired method with appropriate parameters. 3. Process the return value. Hope that helps. -- Cheers, Gaurav Vaish http://www.incoleg.com On Apr 16, 9:58 pm, dreamer venugopal.vasire...@gmail.com wrote: Is it not possible to create object for implementation class and fire methods as you do for any other java object? On Apr 15, 1:30 pm, Bob robert_li...@verizon.net wrote: I have a bit of an unusual need. I have a server-side method which is normally called from the client via GWT-RPC but I now want to call it from server-side code. How do I do this? I could make a static version of the method and have the rpc- accessible-method just wrap the static method...but alas, all the methods that the static method would need must also be static. kudzu being kudzu...this is a difficult (and messy) refactoring. I'm bouncing this question off the grand-masters in this group to see if there is yet a cleaner and simpler solution to my query. Any help would be very much appreciated. Thank you!! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Casting JavaScriptObject with GWT 2.1
Hi Julio, I think you need to first understand JavaScript before jumping on to using GWT. Once you are done, and you understand why JavaScriptObject instances can be type-casted from one type to another without giving any compiletime or runtime errors, you will automatically have solution to your problem! -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Dec 10, 9:08 pm, julio antongiuli...@gmail.com wrote: weird, it looks like i can pass through classes primitive values as int, char etc but not complex objects extending JavaScriptObject, cos I cannot cast them anymore (BTW no errors got, just empty values) Julio On Dec 10, 10:43 am, julio antongiuli...@gmail.com wrote: before this: BeanData bd = data.createObject().cast(); I tried with a normal: BeanData bd = (BeanData) data; and: BeanData bd = data.cast(); but they don't work. BTW debugged them I saw that the data passed has the same refId of the original, so it looks like is just not cast at all. On Dec 10, 10:22 am, skrat dusan.malia...@gmail.com wrote: You can't, what you do here is that you create new (and empty) JavaScriptObject, and cast it to your type. It seems that you think you're copying the object, but that's certainly not true. I'm not sure what the problem is, if you need to pass that instance to another class, you can do it without any tranformation. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is GWT GAE open Source?
Well... the code for GAE is only for the SDK and not for the engine itself ;) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Dec 10, 3:51 pm, Didier Durand durand.did...@gmail.com wrote: Hi, Yes for GWT:http://code.google.com/webtoolkit/ For all details on GAE, seehttp://googleappengine.blogspot.com/2010/10/research-project-appscale YOu can then get code athttp://code.google.com/p/googleappengine/ didier On Dec 10, 11:07 am, Emanhossny e.hos...@gmail.com wrote: Hello All, Is GWT GAE is open source? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Dynamically Instantiation
Hi, I have a peculiar situation in my application. I need to instantiate a class given its name. The name is determined dnyamically. In JavaScript, it's easy to do... --- var ctorFn = window[className]; //assuming that the className does not have any dots var instance = new ctorFn(); --- How can I, if at all, accomplish this in GWT. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.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-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Fire a button click event programmatically
Native javascript: btnElement.click() -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Dec 9, 4:42 am, Nick Newman nick.x.new...@gmail.com wrote: Might be simpler and clearer to have the button click event call a method, and simply call that method directly. Nick On Wed, Dec 8, 2010 at 4:27 PM, zhong zhongl...@gmail.com wrote: Hi, Is there a way to fire a button click event programmatically? Many thanks, Zhong -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 + MySQL
Ensure that the jar is also in the WEB-INF/lib folder (required during runtime - Jetty server). -- Happy hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 30, 1:54 pm, mgm gabor.mundru...@gmail.com wrote: I am having the same issue.. I am using MySQL on the server side (server source package only) and there is the run-time error of: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver I do have the mysql package (mysql-connector-java.jar) in the eclipse class path (in Project / Properties / Java Build Path) and still it does not work. Does anyone know how to configure correctly? perhaps there are other settings to make... thanks Gabor On Nov 5, 2:23 pm, Ross McKinnon r.mckinno...@googlemail.com wrote: Hi there, I've spent numerous hours this week trying to get my existing GWT application to connect with an existing MySQL database with no luck. I've created my code to connect to the database using JDBC and is kept in the server package to ensure it remains as java code. Also i have included the mySQL jar file in the build path for the project but still get an error java.lang.ClassNotFoundException:com.mysql.jdbc.Driver... I have tried numerous ways of getting the database and have ran out of ideas now so thought I would consult the experts to see if any kind person can lend a hang.. Thanks for any help, Ross -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem with GWT-RPC
Hi, My application, so far, had been working fine - I'm using GWT-2.1 and Appengine 1.3.8... until recently. Lately, my application has been consistent in throwing a IncompatibleRemoteServiceException... the exact message is given below. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Expecting version 5 from server, got 6. ) Any help to resolve this issue will be highly appreciated! -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with GWT-RPC
No help! Double checked the jars. Double checked the interface + async parts. Did a full clean+build. :( -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Dec 4, 7:55 pm, Sean slough...@gmail.com wrote: Also, if you recently upgraded, make sure you upgraded the jars on the server as well. On Dec 4, 7:15 am, Gaurav Vaish gaurav.va...@gmail.com wrote: Hi, My application, so far, had been working fine - I'm using GWT-2.1 and Appengine 1.3.8... until recently. Lately, my application has been consistent in throwing a IncompatibleRemoteServiceException... the exact message is given below. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Expecting version 5 from server, got 6. ) Any help to resolve this issue will be highly appreciated! -- Happy Hacking, Gaurav Vaishhttp://www.mastergaurav.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with GWT-RPC
Caught it! The build file that I had created was refering to the older version of GWT SDK (and hence the older gwt-servlet.jar during compilation). Thanks for your inputs! -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Dec 5, 8:28 am, Gaurav Vaish gaurav.va...@gmail.com wrote: No help! Double checked the jars. Double checked the interface + async parts. Did a full clean+build. :( -- Happy Hacking, Gaurav Vaishhttp://www.mastergaurav.com On Dec 4, 7:55 pm, Sean slough...@gmail.com wrote: Also, if you recently upgraded, make sure you upgraded the jars on the server as well. On Dec 4, 7:15 am, Gaurav Vaish gaurav.va...@gmail.com wrote: Hi, My application, so far, had been working fine - I'm using GWT-2.1 and Appengine 1.3.8... until recently. Lately, my application has been consistent in throwing a IncompatibleRemoteServiceException... the exact message is given below. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Expecting version 5 from server, got 6. ) Any help to resolve this issue will be highly appreciated! -- Happy Hacking, Gaurav Vaishhttp://www.mastergaurav.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-tool...@googlegroups.com. To unsubscribe from this group, send email 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 Databases
Hi, You need to look at the topic of JDBC - Java Database Connectivity - to learn how to connect to database. Note additionally that GWT will not allow you to connect to the database server directly - after all GWT is only a code generator for JavaScript and JavaScript has not API to connect to database. And Tomcat server is not a mandatory requirement. And Servlet Container (Jetter, Tomcat, JBoss, WebLogic, WebSphere etc) will do. -- Happy hacking, Gaurav Vaish http://www.mastergaurav.com On Dec 5, 1:34 am, newto...@web.de newto...@web.de wrote: Hello, i am very new to GWT and just finished the tutorial. Now i want to connect and query my postgresql 9 database. what do i need? What is a tomcat server? Can i work without a tomcat server? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Ship a GWT app as a desktop app with local server?
Why not use Jetty (Embeddable, Lightweight Java Servlet Container - cross platform). -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Dec 3, 10:09 pm, Brett Thomas brettptho...@gmail.com wrote: Hi all, sort of an off beat question: what's the best cross-platform library for a local web server, that could effectively make a standard GWT app into a desktop app? Ideal would be super light weight, and just allow users to run the app offline, with local data. Language could be Java, C++ or Python. If curious about why such a library would be desired, some background at the end of the email... Thanks for the help, Brett *** Background: I'm about to build an app for researchers to browse and analyze large scientific datasets. We want to permit two uses: -- Web version: users can browse/analyze common public datasets over the web -- Local version: users can do the same browsing/analysis on their own data set, *without* transferring the data to the server. The plan now is to build a desktop app for this. I'd love to make it a browser app instead, with GWT as the front end. If we went this route, we'd have to provide some software download for the local version. Here are the options I can think of: 1 -- Local version is a completely separate app. Hope to avoid this so users get the same interface on web/local. 2 -- Use Gears (or Adobe Air). Avoided because that would require transferring server side analysis code to javascript (or Actionscript). (Right?) 3 -- Ship an executable that starts a local web server. User views app athttp://localhost:12345/in the browser. (Any others I'm missing?) I am trying to assess the feasability of #3. The ideal workflow of our app would be: -- Researcher checks out our site in the browser and tries it out. Likes it, clicks the Try this on your own data button -- Downloads executable with mystery web server described above :) -- Double clicks executable and a minor GUI shows up with a Get started! button -- User clicks, and the app is loaded in the browser athttp://localhost:[whatever port]/. The app looks the same as it did online with the same functionality, except the Select data set option lists local files... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Calling EJB from RPC method
Hi, I am not quite sure what's your EJB configuration and how are the EJB's being loaded... but to me it seems that in the GWT-Service method addCustomer you're working with a null pointer. Note that GWT-RPC (server-side) will not automatically setup the bean. You'll need to use the JNDI etc in your server code to ensure that the bean is available. Disclaimer: I am not an EJB expert. Albeit, I hate them passionately. ;) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Dec 3, 7:32 pm, dato.java david.chokhoneli...@gmail.com wrote: Hello , I am developing simple GWT application with EJB 3.0 ,and user Apache Maven 3.0 , but my porblem is that when i try to call some ejb method from rpc method it fails with error: 2010-12-03 18:26:34,698 ERROR [org.apache.catalina.core.ContainerBase. [jboss.web].[localhost].[/gwt-mvc-ui]] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String david.chokhonelidze.gwt.mvc.ui.client.ApplicationService.addCustomer(java.lang.String)' threw an unexpected exception: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 207) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 243) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) 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.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java: 96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java: 182) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java: 84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 446) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NullPointerException at david.chokhonelidze.gwt.mvc.ui.server.ApplicationServiceImpl.addCustomer(ApplicationServiceImpl.java: 26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 562) ... 23 more I see that it cant inject my ejb, so what is solution? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Place image in object, send object over rpc, use hibernate to update database
Sending image data over RPC... how do you plan to use this binary data on the client side? It's not possible... JavaScript does not have any image-processing API. You can do something like this: - Create the image binary data on the server, and label it with some unique ID (store in memory, filesystem, db wherever). - Create a servlet, say ServeImageServlet that will do something like this doGet(...) { String id = request.getParameter(imageID); InputStream input = huntForImageUsingID(id); response.setContentType(image/png); // or jpg, gif... OutputStream output = response.getOutputStream(); //copy all data from input to output } - In your RPC response, just send the URL. Assuming that the servlet is mapped to /img, the URL can be something like /img?imageID=abcd - In the GWT app, use this URL to create a new Image(url) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 29, 12:20 pm, Noor baken...@gmail.com wrote: Thus,the object will contain an image -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Several Servlets Help
Like any other class. And in any medium sized application, there can be over 1000 classes :) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 29, 10:14 am, Noor baken...@gmail.com wrote: HI, in almost every tutorial I have seen only on servlets, Is it possible to have several servlets. if yes how to manage the several servlets 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-tool...@googlegroups.com. To unsubscribe from this group, send email 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 port of CodeMirror
Hi Gang, I am working on a GWT port of CodeMirror (http://codemirror.net). The project is available at Google Code at http://code.google.com/p/gcodemirror. Let me know if you find it useful. Critics, feedback welcome! :) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.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-tool...@googlegroups.com. To unsubscribe from this group, send email 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 port of CodeMirror
Great! btw, here's the direct URL: http://gcodemirror.googlecode.com/svn/trunk/src/CodeMirrorTest/war/CodeMirrorTest.html -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 25, 2:20 am, nino ekambi jazzmatad...@googlemail.com wrote: Good work pal, i ll definetly check it out. Regards, Alain 2010/11/24 Gaurav Vaish gaurav.va...@gmail.com Hi Gang, I am working on a GWT port of CodeMirror (http://codemirror.net). The project is available at Google Code at http://code.google.com/p/gcodemirror. Let me know if you find it useful. Critics, feedback welcome! :) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 port of CodeMirror
Yes Alain... the documentation is in the roadmap... basically, I need to find some time to write it :) May be a couple of days off. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 25, 2:40 am, nino ekambi jazzmatad...@googlemail.com wrote: Maybe you could write some getting started stuff in the wiki ? Cheers, Alain 2010/11/24 Gaurav Vaish gaurav.va...@gmail.com Great! btw, here's the direct URL: http://gcodemirror.googlecode.com/svn/trunk/src/CodeMirrorTest/war/Co... -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 25, 2:20 am, nino ekambi jazzmatad...@googlemail.com wrote: Good work pal, i ll definetly check it out. Regards, Alain 2010/11/24 Gaurav Vaish gaurav.va...@gmail.com Hi Gang, I am working on a GWT port of CodeMirror (http://codemirror.net). The project is available at Google Code at http://code.google.com/p/gcodemirror. Let me know if you find it useful. Critics, feedback welcome! :) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Servlet Performance
No problems... only thing is that the logic in your servlet goes complex. For example, in Struts - the Action Servlet handles all incoming requests (generally to /do/* or *.do mappings) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 25, 3:48 am, Ross McKinnon r.mckinno...@googlemail.com wrote: Hi there, Just a quick question regarding performance of Servlets... My App is database driven and was wondering if performance is affected if there are multiple servlets opposed to one single servlet to handle all requests? Thank you Ross -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 port of CodeMirror
Hi Guys, I've put up quick starter documentation at http://code.google.com/p/gcodemirror/wiki/GettingStarted and javadoc at http://gcodemirror.googlecode.com/svn/trunk/src/CodeMirror/docs/javadoc/index.html Let me know if that helps! (Thanks to Alain for forcing me do so ;) ) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 25, 8:34 am, Gaurav Vaish gaurav.va...@gmail.com wrote: Yes Alain... the documentation is in the roadmap... basically, I need to find some time to write it :) May be a couple of days off. -- Happy Hacking, Gaurav Vaishhttp://www.mastergaurav.com On Nov 25, 2:40 am, nino ekambi jazzmatad...@googlemail.com wrote: Maybe you could write some getting started stuff in the wiki ? Cheers, Alain 2010/11/24 Gaurav Vaish gaurav.va...@gmail.com Great! btw, here's the direct URL: http://gcodemirror.googlecode.com/svn/trunk/src/CodeMirrorTest/war/Co... -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 25, 2:20 am, nino ekambi jazzmatad...@googlemail.com wrote: Good work pal, i ll definetly check it out. Regards, Alain 2010/11/24 Gaurav Vaish gaurav.va...@gmail.com Hi Gang, I am working on a GWT port of CodeMirror (http://codemirror.net). The project is available at Google Code at http://code.google.com/p/gcodemirror. Let me know if you find it useful. Critics, feedback welcome! :) -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: System MAC Address
No. You can only get the remote-IP address. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 24, 8:08 am, Anoop John anoopjoh...@gmail.com wrote: Is there any way to get the client system MAC address in gwt? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 highlight word under mouse in TextArea?
IMHO, there's no Javascript API to select only a part of text in text- area... would be happy to be proven wrong. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 20, 11:20 am, Yu yfan...@gmail.com wrote: Hi, I'd like to highlight the word under the mouse as the mouse pointer move around in a TextArea. But I haven't found any API to do that? Could you please help? Thanks, Yu -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 show the contents from a checkbox in a separate panel
Hi Samuel, Here's an outline of solution that can you may want to use (frankly speaking, I haven't gone in depth of your code): 1. Create an ArrayListCheckbox of all checkboxes 2. Add a ValueChangeChandler (if interested in only value) or ClickHandler (if you want instance reference as well). No specific preference in this case... feel free to choose anyone. 3. To get all checkboxes selected, iterate through all the checkboxes in the ArrayList created earlier and use getValue() method to get if it is selected or not. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 20, 11:55 pm, joelsamuel marc.bleic...@gmail.com wrote: Background: Hello I am quite new to GWT and Java. I have an application which helps students select courses. The application starts and the user clicks on a department. When they click on the department the courses offered by that department are shown with check boxes next to each course. Objective/Problem: What I need to do is have a separate panel called the summary panel that shows a summary of the users selections. I need to keep track of the current selections in some variable that can be used to populate the new widget. Questions: For my checkboxes, how do I call a method to set the check box as checked or unchecked depending on its state when clicked and then show the users selections when something is clicked? The summary panel also needs to be updated on each change in the course selection. My code is below, any help would be appreciated. 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-tool...@googlegroups.com. To unsubscribe from this group, send email 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 highlight word under mouse in TextArea?
Hi Nicolas, Fantastic reference. And look at http://codemirror.net/jstest.html (search for var and it's great). Looking into the code, I found something of interest in js/editor.js file. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 21, 7:49 pm, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: I do not know the low level functions for doing this, but it is possible. We use a tool called CodeMirror on our project. It is a rich text area with code parser and syntax highlight. There are methods it the api to select portion of text. http://codemirror.net/ http://codemirror.net/ 2010/11/21 Gaurav Vaish gaurav.va...@gmail.com IMHO, there's no Javascript API to select only a part of text in text- area... would be happy to be proven wrong. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 20, 11:20 am, Yu yfan...@gmail.com wrote: Hi, I'd like to highlight the word under the mouse as the mouse pointer move around in a TextArea. But I haven't found any API to do that? Could you please help? Thanks, Yu -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 highlight word under mouse in TextArea?
A very ugly way (last resort) is to put each and every word under a separate div. Duh me! -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 21, 8:19 pm, Thomas Broyer t.bro...@gmail.com wrote: On 21 nov, 15:44, Gaurav Vaish gaurav.va...@gmail.com wrote: IMHO, there's no Javascript API to select only a part of text in text- area... would be happy to be proven wrong. setSelectionRange?http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g..., int) The issue here is to get the word under the mouse pointer. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Saving contents of RichTextArea?
You have three choices: - Use flash's offline storage feature - Use Google gears (less chances of having it installed) - Use Silverlight (works only on Windows) -- Happy Hacking, Gaurav Vaish www.mastergaurav.com On Nov 20, 5:30 am, Jeff Chimene jchim...@gmail.com wrote: You don't have access to the local file system in that way. You could upload the text to the server, then send it as a separate file via a GET. On Fri, Nov 19, 2010 at 4:41 PM, Neil Halelamien ne...@caltech.edu wrote: Does anybody have pointers on how one might go about saving the contents of a RichTextArea to a file on a client's machine? Hopefully this question isn't too general... -- Neil -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 kill a GWT request which has not yet completed
RPC request cannot be cancelled. Use the method Request::cancel() with RequestBuilder. Request req = requestBuilder.send(...); req.cancel(); //when needed. -- Happy Hacking, Gaurav Vaish www.mastergaurav.com On Nov 20, 12:47 am, Sunit Katkar sunitkat...@gmail.com wrote: I Googled and also this group but could not find an answer. Here is the use case: 1) User enters a value in a textfield and clicks Submit button 2) The GWT RPC request has been sent to the server where it will take some time to process. (Say 10 or 15 seconds) 3) But before the request can be seviced by the server and and the onSuccess() is called on the client side, the user needs to do something else, which requires that this request be killed. How do you kill a just fired GWT RPC request? We cannot provide a separate UI button which the user clicks to send a KILL request to the server with a request id, etc. However, we can allow for 'kill just fired request' code when user navigates to another part of the screen or does the new action. Any ideas? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem creating custom gwt theme
Ensure that your theme module inherits from com.google.gwt.user.User so as to get a default-linker. -- Happy Hacking, Gaurav Vaish www.mastergaurav.com On Nov 18, 1:16 am, mitratul mitratul2...@gmail.com wrote: Hi, I am trying to create my own theme and use it. But while launching Dev mode, it is giving the following errors in eclipse console: Initializing AppEngine server Loading modules com.mitratul.theme.standard.Standard Translatable source found in... [WARN] No source path entries; expect subsequent failures Bootstrap link for command-line module 'com.mitratul.theme.standard.Standard' Linking module 'com.mitratul.theme.standard.Standard' Constructing StandardLinkerContext [ERROR] Primary linker is null. Does your module inherit from com.google.gwt.core.Core or com.google.gwt.user.User? com.mitratul.theme.standard.Standard is my theme module. I have followed the same directory structure inside the module as i found inside GWT inbuilt themes. Can anybody tell me why is this error coming? Thanks Ratul -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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 Hosting
+1. To store more documents in repository, you can definitely start with BlobStore. You pay only if the storage exceeds 1GB. And beyond that, the storage charges are dirt cheap at $0.15 per GB per month. -- Happy Hacking, Gaurav Vaish www.mastergaurav.com On Nov 18, 10:51 pm, Didier Durand durand.did...@gmail.com wrote: Hi You really should give a second chance to GAE: - space can go very high if you are willing to pay as you go - document upload is possible via BlobStore (I do it in one of my apps) - I would emphasize extremely detailled monitoring for which i know no equivalent by other hosters. Then, you will get scalability for free. The feature that is the most unsual at beginning: the datastore. You have to get used to its specifc constraints (bigtable, entity groups) regards didier On Nov 18, 5:49 pm, Isuru Madusanka 2eis...@gmail.com wrote: Hi, I have trouble with finding a good hosting service. I can try Google App Engine. But my app need more space and allow users upload documents. I tried a trial account with a reputed hosting company. But they are not good at customer service. I am looking for a low-cost hosting. Do you guys have any suggestions? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: Displaying Loading icon while loading images
You can do something like this: Image tgtImage = new Image(loading.gif); panel.add(tgtImage); The code above will show up a Loading... image. Image finalImage = new Image(huge-image.png); finalImage.addLoadListener(new LoadListener() { ... onLoad(Widget w) { panel.remove(tgtImage); panel.add(w);// w is finalImage } }); -- Happy Hacking, Gaurav Vaish www.mastergaurav.com On Nov 14, 8:20 am, Navdeep navdeep.maha...@gmail.com wrote: I have images which are big in size so i would like to display the animated loading gif while the main images are actually being loaded and once they have been loaded then display the actual image. How can i do the same? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email 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: shared src folder and default constructor
Any class that participates in GWT-RPC should have a default constructor which is invoked during deserialization (on either size - server and client). The initialization code in your constructor is never trashed. It may happen that based on the data transferred, the values would get overwritten. If you can post across what are you trying to accomplish, you may get better suggestions :) -- Happy Hacking, Gaurav Vaish www.mastergaurav.com On Nov 13, 9:29 pm, d...@vide.bz davide...@gmail.com wrote: Hi, I have seen that a class that is in the shared folder should have no constructors or a default constructor. This can create problem for me, because the default constructor sometime initialize some structures. This initialization then I think is trashed, because after transfering the object from server to client, gwt will iniect all the values in the object. There is a way to handle this? If I for example have a method init, then i should call it explicity or using lazy calling in the first method call. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.