Re: Capture ctr-z(undo) and ctr-y(redo) within GWT application
See this thread: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/3e6abc385efb4533 On Oct 27, 8:30 pm, Ahmed wrote: > Hello, > > I have been writing a web application based on GWT 2.3 and along with > it I have written my own undo and redo functions. When the user > presses ctr-z or ctr-y the undoes or redoes the last changes. Is their > a way to effectively detect the ctr-z and ctr-y keypress events that > occur anywhere on the page and cause them to run my own functions. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Diagramming Using GWT?
For me, porting Eclipse GEF - http://eclipse.org/gef to GWT is promising. http://demo.gdevelop.com uses GEF. Trung On Feb 17, 4:10 am, Jan Mostert wrote: > Have a look at the GWT graphics library, vector graphics would be the best > way to go. > > http://code.google.com/p/gwt-graphics/ > > gwt-g2d is another alternative. > > -- > Jan Vladimir Mostert > BEngSci > > MyCee Technologies > > On Wed, Feb 16, 2011 at 9:06 PM, Dilkington wrote: > > I have just been checking out the GWT library and it really impressed > > me and would like some pointers in the best way to go about > > development when using this new technology. > > > To learn about this toolkit I would like to create for my first > > application a simple tool that allows the user to press a button or > > use drag and drop to add an element to a "canvas". Imagine a simple > > diagramming tool. > > > Using GWT what is the best way to go about this. What could be used to > > create a canvas that allows images to be added to it and then moved > > around the inside of this canvas? > > > I have looked at the Javascript Raphaél library that was ported to > > GWT, do you think that this would be a good place to start and also, > > does GWT have support for drag and drop? > > > Thanks for all input. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to download all developer's guide and other articles?
AppEngine team provide offline docs, hope GWT team do the same thanks On Dec 25, 9:02 am, Alex Luya wrote: > Sometimes,when I am reading a articles ,a question comes up,but I want > to delay to get answer,so I mark it(coloring it or do something else > by a chrome extension called PageEdit) then save this page.Problem is > with more and more pages have been saved in my disk,I have to edit > hyperlinks manually to make sure these saved pages are not superheated > pages but a complete document. This is very inconvenient for me.So can > anybody tell how to download all pages under > urlhttp://code.google.com/webtoolkit/doc/latest/DevGuide.htmlas a > complete documents.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-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 RPC
If you want server --> server communication using GWT RPC, gwt- syncproxy is what you need. On Nov 15, 6:50 pm, Raju wrote: > Hi, > > I am new to GWT and had a requirement. > I have two applications running on two different servers. > And i need to make an asynchronous call from one application to the > other. > Is it possible to call the Remote Procedure of one application running > on a different server from a different application running on a > different server? > > If so please let me know. > > Thanks in advance. > > Raju -- You received 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.
Announcing: Visual GUI Designer in web browser
Update: new http://demo.gdevelop.com/ with more widgets (Label, TextBox, CheckBox, Radio Button, List Box and Button) and panels (Vertical Panel, Horizontal Panel). Please note about Editing features: - Shortcut keys (Ctrl+C, Ctrl+V, Ctrl+Z, Ctrl+Y, Ctrl+A, etc) - Select multiple widgets by holding Shift/Ctrl key while (de)selecting widgets. - Drag widgets from a panel to another one: move widgets to the new panel. - Hold Ctrl key down while dragging will clone widgets. Comments and suggestions are highly appreciated. On Oct 29, 9:28 am, Trung wrote: > Hi all, > > We have a Visual GUI Designer application running in web browser (work > fine in Firefox, Chrome, Safari, but not good in IE and Opera). > > See the blog > posthttp://www.gdevelop.com/w/blog/2010/10/29/visual-gui-designer-in-web-... > and the demohttp://demo.gdevelop.com/ > > The application is currently in early stage, comments and suggestions > are appreciated. > > Cheers -- You received 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.
ANN: Visual GUI Designer in web browser
Hi all, We have a Visual GUI Designer application running in web browser (work fine in Firefox, Chrome, Safari, but not good in IE and Opera). See the blog post http://www.gdevelop.com/w/blog/2010/10/29/visual-gui-designer-in-web-browser/ and the demo http://demo.gdevelop.com/ The application is currently in early stage, comments and suggestions are appreciated. Cheers -- You received 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 run a unittest for a class in client folder of gwt which makes Async calls to the server
See this thread http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a870643861023d35 discussing GWT RPC calls from Java On May 28, 3:39 pm, Sumit Somani wrote: > I am an engineering intern and want to write a test for a class which > makes a Async Request to the server How do I juct mock it up or use > some pre-built library. Please provide advise on resources -- You received 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: Newbie question: How does one write a Unit test for MyClass extends RemoteServiceServlet ???
You can use SyncProxy to test the GWT RPC services See http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/ for details On May 5, 9:28 pm, Eric wrote: > On May 5, 12:33 am, Mike wrote: > > > Hello > > > Am trying to write tests for my code, and want to ensure that any > > class I write which extends RemoteServiceServlet; > > however, I'm not quite catching on to what I need to do in order to > > get a test to be runnable in that context... > > Have the servlet do all its work in another class, and test that > class, > I guess. One project I was later assigned to had made a suboptimal > decision to do all the serious work of the application in Struts > Action > classes directly. Then, they tried to add web services, and now the > services had to create Struts beans and actions. Don't go that way. > > If you use a library like gwt-dispatcher, this is done for you > naturally. > > Respectfully, > Eric Jablow > > -- > You received 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 > athttp://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.
New blog post: Invoke GWT RPC services deployed on Google App Engine
A new post http://www.gdevelop.com/w/blog/2010/03/13/invoke-gwt-rpc-services-deployed-on-google-app-engine/ shows how to invoke GWT RPC services deployed on Google App Engine from Java client. Shorten url http://goo.gl/fb/n99D Any feedback can be left on my blog, thanks. Trung -- You received 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.
New blog post: Data Binding in GWT
I've written a new blog post regarding Data Binding in GWT. http://www.gdevelop.com/w/blog/2010/03/06/data-binding-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: Calling a Service from other Service (server-server)
Hi, You can use GWT SyncProxy to call the GWT RPC Service from Java (whether client-server or server-server). See http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/ On Mar 4, 7:36 am, Badawi wrote: > Hi, > > It is possible to call a Service from ther Service? > > I've made a SessionService that controls my HttpSession. > And I'd like to call the SessionService from other Services... > > 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: EasyMock async methods?
Hi Dalla, SyncProxy is a pure Java (no JSNI) RPC client-side library, which allow to access/invoke GWT remote services from Java client. You can use SyncProxy to test Async methods. See http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/ for source-code download. Hope this help, Trung On Feb 4, 3:24 am, Dalla wrote: > Hi all > > I´m currently testing EasyMock for my GWT non widget unit tests. > Was wondering if there are any good approaches to testing async > methods? > Foundhttp://googletesting.blogspot.com/2009/08/tott-testing-gwt-without-gw..., > but that´s about 6 months old. Is this still the best way to 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-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: Anything better than the current gwt-dispatch...
Hi Henry, You can implement it using child injector: Below code is from http://stuffthathappens.com/blog/2009/09/14/guice-with-gwt/ with modifications @Singleton public class GuiceRemoteServiceServlet extends RemoteServiceServlet { ... @SuppressWarnings({"unchecked"}) private RemoteService getServiceInstance(final Class serviceClass) { // OLD return (RemoteService) injector.getInstance(serviceClass); // determine the Impl class from serviceClass using naming convention final Class implClass = ... ; Injector dynamicInjector = injector.createChildInjector(new AbstractModule(){ protected void configure() { bind(serviceClass).to(implClass); } }); return dynamicInjector.getInstance(serviceClass); } } For every RPC request, it bind the serviceClass to the implClass dynamically. But you will pay for the performance (I did not measure it yet :( ) Hope this help, Trung http://www.gdevelop.com/ On Jan 28, 10:42 am, Henry wrote: > I use the Eclipse-plugin to help me write the async, > but that's got nothing to with my proposed dispatcher ... unless > there's something you forgot to mention > > Cheers, > Henry > > On Jan 27, 6:31 am, Alexander wrote: > > > You write async version of interface manualy? > > > 2010/1/25 jarrod > > > > Have you looked at the GWT-SL library? This is the project I use to > > > export my RPC services with Spring. It is blisteringly easy. > > >http://gwt-widget.sourceforge.net/gwt-sl/reference-1.0/index.html#RPC > > > > The great thing about this library is that (except for one line in > > > your servlet context) configuration is completely annotation-driven! > > > > I just place this line in my-servlet.xml: > > > > > > > The GWTHandler works as a HandlerMapping, so it can be ordered among > > > other HandlerMappings as you see fit. > > > > Next, I can wire-up RPC services like so: > > > > First, the RPC Interface > > > > @RemoteServiceRelativePath("UserService.rpc") // service path for > > > client side, relative to module path > > > @GWTRequestMapping("/foo.bar.users.Users/UserService.rpc") // service > > > path for server side, relative to context > > > public interface RpcUserService extends RemoteService { > > > > void deleteUser(String uid); > > > > User getUser(String uid); > > > > List listUsers(); > > > > void updateUser(User user); > > > > } > > > > And the accompanying Async version: > > > > public interface RpcUserServiceAsync { > > > > void deleteUser(String uid, AsyncCallback callback); > > > > void getUser(String uid, AsyncCallback callback); > > > > void listUsers(AsyncCallback> callback); > > > > void updateUser(User user, AsyncCallback callback); > > > > } > > > > I won't go into the client side usage, but on the server side, it > > > works just like this: > > > > @Component // Spring auto-detects and wires up this POJO > > > // because this is an RpcUserService, the GWTHandler will export it > > > automatically! > > > public class UserServiceImpl implements RpcUserService { > > > > private UserService service; // some backing bean > > > > �...@autowired > > > UserServiceImpl(UserService service) { > > > this.service = service; > > > } > > > > �...@override > > > public void deleteUser(String uid) { > > > this.service.deleteUser(uid); > > > } > > > > �...@override > > > public User getUser(String uid) { > > > return this.service.loadUser(uid); > > > } > > > > �...@override > > > public List listUsers() { > > > return this.service.listUsers(0, 1000); > > > } > > > > �...@override > > > public void updateUser(User user) { > > > this.service.updateUser(user); > > > } > > > > } > > > > In this case, my application already had a server side component > > > (UserService) to handle my requests. My POJO here is just a stupid- > > > simple wrapper around that backend service object. Your mileage may > > > vary, though. > > > > That's it! There are no additional "configurations" to do, regardless > > > of how many RPC services you want to make available. If all of your > > > service's dependencies are made known to the container through the > > >
Re: "Front Controller Servlet" in GWT possible?
Hi Alex, Take a look at http://code.google.com/p/gwt-dispatch Cheers, On Jan 24, 5:40 pm, opn wrote: > Hello everybody, > I just started playing around with GWT in Netbeans 6.8 and was > wondering if it is possible somehow to build something like a "Front > Controller Servlet" that receives all the requests and dispatches them > to different "actions" and returns different results from those > actions. > > I did a course at university last semester where we learned a bit > about Java Server Faces and there i heard about the front controller > thing for the first time. > > From my state of knowledge i have to write one RPC to a Servlet for > every action i do, right? > > For example I have one Servlet for getting all my users (to show them > or sth.) and one Servlet to add a user to the database. Hope I > understand this correctly so far. > > best regards and thanks (tried using the search function first, didn't > find anything :] ) > Alex -- You received 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: Testing GWT RPC services
Hi, Sure, we must use async communications when running GWT application in browser. However, it is slow when testing our apps using GWTTestcase, and normally we want to extends JUnit's Testcase instead. Let see the ExampleJRETest in http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html public class ExampleJRETest extends TestCase { // OLD: mockRpcService = createStrictMock (ContactsServiceAsync.class); // NEW mockRpcService = SyncProxy.newProxyInstance (ContactsServiceAsync.class, "http://localhost/contactApp";, "contact"); ... } And we can test our RPC service directly from JRE. Hope this clarify. On Jan 11, 3:01 am, Open eSignForms wrote: > Don't know anything about that library, but there's something odd about a > synchronous GWT RPC library that can "simulate async" when GWT RPC is async > to begin with, and very few would recommend using synchronous RPC in a > browser since it would appear to hang while the RPC took place. > > We've found GWT RPC to be reliable and easy to program using the natural > async nature of javascript communications that browsers support. -- You received 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: Access javascript content from another iframe
See the Showcase sample, especially CwDictionaryExample.java. To access staticIframe from mainIframe: It is up how these frame are organized. If these two frames is in the main html page, you can use Javascript: $wnd.top.frames['staticIframe'] However, in your case, you want to access Dictionary instead of JS object. So I think there are two options: 1. javascript dictionary is in mainIframe too: Make life simple :) 2. Write JSNI to set dictionary to mainIframe, for example: private native void setDictionay()/*-{ $wnd['myDict'] = $wnd.top.frames['staticIframe']['myDict']; }-*/; Put a method call in your onModuleLoad(), and you can use your Dictionary as normal: Dictionary myDict = Dictionary.getDictionary ("myDict"); I haven't test it, but I believe it works. Trung, http://www.gdevelop.com/ On Jan 10, 7:45 pm, zimzalabim wrote: > Hi everyone! I have put my GWT application in an iframe called > mainIframe. When the application-server starts I want to load the > contents of some database tables into a javascript dictionary which I > have put in a dedicated iframe, called staticIframe. My question is; > How can I access the javascript contents of the staticIframe from the > mainIframe using Java? I typically need this to get the appropriate > text-constants for my widgets. > > All feedback is greatly 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.
Testing GWT RPC services
Hi friends, Want to test RPC services (in both Sync and Async mode)? See the post at http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/ Cheers -- You received 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: ANN: Kauthara project
The source is included in distribution file e.g the kauthara-0.1.jar file. See the COPYING file in kauthara-0.1.zip for details. On Jun 2, 10:09 pm, Alex Rudnick wrote: > Looks pretty cool! :) > > Can we see how you did it? Where's the source hosted? > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
ANN: Kauthara project
Hello, Would like to announce a new project at http://code.google.com/p/kauthara/ Kauthara allows you to develop GWT User Interface faster and easier by mean of JSP page: - Translate JSP to GWT UI code - Supports data binding - Supports method binding Appreciated for your feedback, suggestions and/or contribution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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 project creator
can I create a gwt project without command line? how should I do later for it working? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---