RequestFactory strange issue with embedded proxy
Hi, I have a very strange problem with RequestFactory. I have a hierarchy of embedded proxies : QuoteRequestProxy |_ PropertyInfoProxy |_ LocationProxy Everything was working fine, until I tried to create a new proxy from the client : QuoteRequestContext ctx = requestFactory.quoteRequest(); QuoteRequestProxy quoteRequest = ctx.create(QuoteRequestProxy.class); And here's the error message I get : [DEBUG] [getratedaily] - Validating newly compiled units [INFO] [getratedaily] - Module getratedaily has been loaded [DEBUG] [getratedaily] - Rebinding com.getratedaily.shared.request.QuoteRequestContextImpl.Factory [ERROR] [getratedaily] - Errors in 'generated://EA53ADC7ED90F3570088A545B0266839/com/getratedaily/shared/proxy/QuoteRequestProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory.java' [ERROR] [getratedaily] - Line 155: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, CreditScore) [ERROR] [getratedaily] - Line 158: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, String) [ERROR] [getratedaily] - Line 161: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, Double) [ERROR] [getratedaily] - Line 164: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, LoanType) [ERROR] [getratedaily] - Line 167: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, Boolean) [ERROR] [getratedaily] - Line 170: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, Double) [ERROR] [getratedaily] - Line 173: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, LoanType) [ERROR] [getratedaily] - Line 176: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, PropertyInfoProxy) [ERROR] [getratedaily] - Line 179: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, String) [INFO] [getratedaily] - Unable to dump source to disk The main reason I find this strange is that I've made a unit test, and it works perfectly : QuoteRequestContext ctx = requestFactory.quoteRequest(); QuoteRequestProxy quoteRequest = ctx.create(QuoteRequestProxy.class); PropertyInfoProxy property = ctx.create(PropertyInfoProxy.class); LocationProxy location = ctx.create(LocationProxy.class); quoteRequest.setProperty(property); property.setLocation(location); location.setCity(NY); ctx.save(quoteRequest).fire(new ReceiverLong() { @Override public void onSuccess(Long response) { QuoteRequest quoteRequest = dao.get(response); assertThat(quoteRequest.getProperty().getLocation().getCity(), is(NY)); } }); -- 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/-/iu8iLmBzZC4J. 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: RequestFactory strange issue with embedded proxy
OK, I got it, explaining the problem gave me the insight I needed. My QuoteRequestProxy.setProperty() method got mixed with the method generated by RequestFactory. I changed the method name, and it worked. Le vendredi 2 mars 2012 00:46:15 UTC+1, Mikael Couzic a écrit : Hi, I have a very strange problem with RequestFactory. I have a hierarchy of embedded proxies : QuoteRequestProxy |_ PropertyInfoProxy |_ LocationProxy Everything was working fine, until I tried to create a new proxy from the client : QuoteRequestContext ctx = requestFactory.quoteRequest(); QuoteRequestProxy quoteRequest = ctx.create(QuoteRequestProxy.class); And here's the error message I get : [DEBUG] [getratedaily] - Validating newly compiled units [INFO] [getratedaily] - Module getratedaily has been loaded [DEBUG] [getratedaily] - Rebinding com.getratedaily.shared.request.QuoteRequestContextImpl.Factory [ERROR] [getratedaily] - Errors in 'generated://EA53ADC7ED90F3570088A545B0266839/com/getratedaily/shared/proxy/QuoteRequestProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory.java' [ERROR] [getratedaily] - Line 155: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, CreditScore) [ERROR] [getratedaily] - Line 158: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, String) [ERROR] [getratedaily] - Line 161: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, Double) [ERROR] [getratedaily] - Line 164: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, LoanType) [ERROR] [getratedaily] - Line 167: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, Boolean) [ERROR] [getratedaily] - Line 170: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, Double) [ERROR] [getratedaily] - Line 173: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, LoanType) [ERROR] [getratedaily] - Line 176: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, PropertyInfoProxy) [ERROR] [getratedaily] - Line 179: The method setProperty(PropertyInfoProxy) in the type new QuoteRequestProxy(){} is not applicable for the arguments (String, String) [INFO] [getratedaily] - Unable to dump source to disk The main reason I find this strange is that I've made a unit test, and it works perfectly : QuoteRequestContext ctx = requestFactory.quoteRequest(); QuoteRequestProxy quoteRequest = ctx.create(QuoteRequestProxy.class); PropertyInfoProxy property = ctx.create(PropertyInfoProxy.class); LocationProxy location = ctx.create(LocationProxy.class); quoteRequest.setProperty(property); property.setLocation(location); location.setCity(NY); ctx.save(quoteRequest).fire(new ReceiverLong() { @Override public void onSuccess(Long response) { QuoteRequest quoteRequest = dao.get(response); assertThat(quoteRequest.getProperty().getLocation().getCity(), is(NY)); } }); -- 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/-/Qxsfrj6DyG0J. 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.
RequestFactory, Multi-threading and GAE pricing
Hi, I have read quite a lot about the new pricing of GAE, and it kind of got me confused. I understood that in order to save money, we should optimize instance time and the best way to do that is to use Java's multi-threaded capabilities. However, for the GWT application I am working on, I feel like I am currently working at higher level of abstraction and that I have no idea of what's happening under the hood. Using RequestFactory or GWT RPC, when I launch a request from the client, does it mean that my GAE instance will be unavailable until the request has been processed ? 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.
Refactored 2.3 RequestFactory creates frozen proxies
I ran into a problem with the new com.google.web.bindery.requestfactory in dev mode, when going back to the deprecated package everything works fine. I got this code : CarRequestFactory requestFactory = GWT.create(CarRequestFactory.class); requestFactory.initialize(eventBus); CarRequestFactory.CarRequestContext ctx = requestFactory.carRequest(); CarProxy car = ctx.create(CarProxy.class); car.setName(name); Surprisingly, this last line of code triggers an exception : java.lang.IllegalStateException: The AutoBean has been frozen at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.checkFrozen(AbstractAutoBean.java:195) at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.setProperty(AbstractAutoBean.java:270) And I couldn't unfreeze the proxy with a call to RequestContext.edit() For the moment, I guess I'll stick with the old version of RF, keep us updated on when we should migrate. -- You received 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: MVP - model question
A Curse ! ^^ Do you mean you want to share a model between multiple presenters ? That's the not the MVP described by Ray Ryan way of doing things. A presenter shoul d be able to get a model object in two ways only : - RPC call - being passed an event by the EventBus Maybe your models are too big, or your presenters too small. Anyway, if I wanted to do something like this (god preserve me), I'd go with a Ginjected @Singleton model object. Or else, a model object that listens to the Presenters via the EventBus to know when it needs to update or send itself to the server. On 22 sep, 16:44, mike b mbaker.t...@gmail.com wrote: The Google's Contacts example is nice for showing events, history, and the MVP pattern, but too simplistic to really show complex models. I have a situation where I would like to use the same model object between several presenters. Also note that this model object is created on the client side and passed to the server later. It will never be retrieved from the server. What is the best way to accomplish this? I was thinking that I could use the AppController event framework (onChangeValue) to handle creation/passing the model to the different presenters. Something like this... public void onValueChange(ValueChangeEventString event) { MyExampleObject eo = new MyExampleObject(); if (token.equals(list)) { presenter = new ContactsPresenter(rpcService, eventBus, new ContactsView(),eo ); } else if (token.equals(add)) { presenter = new EditContactPresenter(rpcService, eventBus, new EditContactView(), eo); } Thoughts? Ideas? Curses? Regards, Mike -- You received 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 could we know if GWT project will continue to be maintained by Google?
Stefan said it all. You can't have guarantee that an open source project will be maintained for an indeterminate time. Sometimes you just have to live with the (small) uncertainty. On 14 sep, 18:45, marius.andreiana marius.andrei...@gmail.com wrote: On Sep 14, 7:31 pm, Ed post2edb...@gmail.com wrote: Not again this question ptt... :) Please put some effort in searching this forum and the web for gwt projects... etc... And decide yourself... I did, here are the results:https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWB... This is a valid concern which I thought it's worth addressing. I even thought of arguments like Google makes money from appspot.com hosting, and GWT make it easy to develop apps on top of App Engine = more apps. It's ok if the answer on my question would be Besides what we're doing publicly (e.g. I/O sessions, Spring partnership) and using it in AdWords, no guarantee. Much better than pt ;) -- You received 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 and Bing integration
You mean you put an OpenLayers Map in an ExtJS ContentPanel ? Sounds scary. Have you tried with a simple DIV ? On 15 sep, 13:13, Giuseppe La Scaleia giuseppe.lascal...@geosdi.org wrote: Hi all, i have a great problem in my application. I have integrated a map with google layer as base layer. I'm trying to integrate Bing as base layer with great difficulties. I use Openlayers . I think that the problem is caused by gwt components rendering. I also use extjs and put a map in a ContentPanel. Any ideas??? Regards Giuseppe -- Giuseppe La Scaleia CNR - IMAA geoSDI - NSDI Sviluppo Software C.da S. Loja 85050 Tito Scalo - POTENZA (PZ) Italia phone: +39 0971427305 fax: +39 0971 427271 mob: +39 3804697436 mail: giuseppe.lascal...@geosdi.org skype: glascaleia web: http://www.geosdi.org -- You received 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: Custom map
I heard some guys did pretty crazy stuff with OpenLayers, like Tetris- style games. So I guess displaying an image in background and some clickable geometries and/or icons on top should be pretty easy. BTW, OpenLayers is a web mapping JS library. Check out its GWT wrapper (GWT-OpenLayers) if you plan on using it in a GWT project. On 14 sep, 22:49, A2Person1978 amarzumkhaw...@gmail.com wrote: If you can turn your custom map on your file system into a KML file, you could then create a google map on your application that utilizes the KML file. On Sep 12, 5:36 am, chinese daniela.ie...@gmail.com wrote: Hello everyone! I have a question about custom map in GWT. In fact, I've to create an application within an interactive map like google maps, but the map is uploaded from my file system. For example, I have an apartment map and I want to upload it in my application to use it for create clickable object on it. Is it possible? Thank you Bye! -- You received 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: Instantiate composite on the server side
By accident I ran into this, thought you'd be interested : http://code.google.com/p/gwt-greflect/ But still, if you're not writing some kind of mystic framework, you better stick with Gin. On 7 août, 15:53, Gal Dolber gal.dol...@gmail.com wrote: why don't you try to explain your situation.. I cannot imagine what you are trying to do. 2010/8/6 Fernando Barbat fbar...@gmail.com Correction... If you want to know the type of the created object, It's almost type safe. :P If you are alright by knowing it's a Widget, it's type-safe. Here's a tidier version of the code: Almost type-safe: public class Reflector { �...@suppresswarnings(unchecked) public static T T createInstance(ClassT theClass) { if (theClass == TextBox.class) return (T)new TextBox(); else if (theClass == Button.class) return (T)new Button(); else throw new RuntimeException(); } } Type-safe: public class Reflector { public static T extends Widget Widget createInstance(ClassT theClass) { if (theClass == TextBox.class) return new TextBox(); else if (theClass == Button.class) return new Button(); else throw new RuntimeException(); } } On 6 ago, 12:58, Fernando Barbat fbar...@gmail.com wrote: I was't so clear so I want to put it with an example. Let's suppose your helper class is named Reflector. This class could be something like this: class Reflector { public static T getInstance(ClassT extend Widget class){ if (class == MyClass1.class) return new MyClass1(); else if (class == MyClass2.class) return new MyClass2(); else throw new CouldntInstanceClassException(); }} It is type safe, although you can have a CouldntInstanceClassException() if you forget to add the corresponding comparison. On 6 ago, 08:19, Fernando Barbat fbar...@gmail.com wrote: You can do that on the client side. Although you don't have reflections, you can have a helper class which can do that work for you. That helper class could have a big if, else if, else if clause and compare classes using instance.getClass(). Every time you add a new class you want to use reflections with, you can add a new else if (instance.getClass() == MyClass.class){ return new MyClass(); } That was what I did when I needed to use reflections on the client side. On 6 ago, 05:07, Stephan T stephan.tern...@gmail.com wrote: The reason why I try to do this is that GWT doesn't support reflections. I'm trying to use a helper method on the server side which receivs the class name, the server side then instatiates the class and returns it to the client. Any other suggestions how to solve this problem? On 5 Aug, 15:47, Mikael Couzic mikaelcou...@gmail.com wrote: Sounds like you violated the SRP principle... If I got it right, Composite depends on the DOM, which doesn't exist server-side, so I don't think it is possible. A solution would be to encapsulate the functionnality you want to use server-side in a POJO. Your composite would then delegate to the POJO, which could be reused server-side. And if you wish to push further towards great design, embrace MVP ! On 5 août, 14:42, Stephan T stephan.tern...@gmail.com wrote: For several reasons I need to instansiate a Composite on the server side that is in the client package. Is it possible? Now I think I'm getting class not found exception when trying... -- You received 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%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. --http://ajax-development.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: introducing a marketplace for GWT components associated projects
I'd like to register a project I've contributed to : GWT-OpenLayers It's a JSNI wrapper for OpenLayers, which is a web mapping JS library. I was wondering if a JS Wrappers category would be a good idea. On 27 juil, 13:46, Christian Goudreau goudreau.christ...@gmail.com wrote: I registered Gwt-Platform and our next project, our consultant firm. You should add a category more specific for team of individuals that want to offer support or consulting services for Gwt. Great app ! Did you use Gwt-Platform ? :) Cheers, On Mon, Jul 26, 2010 at 10:00 PM, Joe Hudson joe...@gmail.com wrote: Thanks for the feedback Peter. I've made changes to the categories that you suggested. That definitely seems to make more sense. Joe On Jul 26, 8:19 am, Peter Simun si...@seges.sk wrote: Great idea Joe, I was missing something like this for a long time. But the categorization is little bit confusing me. What is the difference between Libraries and Frameworks, or Tools. Wouldn't it be better to cover some specific domains in the categories? Like UI widgets, RPC, security, MVP, etc ? Thank you again. Peter On 26. Júl, 10:08 h., maks makspaniza...@gmail.com wrote: Wow this is nice! keep it up! On Jul 26, 11:57 am, Joe Hudson joe...@gmail.com wrote: Hi, I'm a huge fan of GWT and the only problem I have with it is not really a problem with GWT but with the fact that there isn't a centralized place for registering component and associated tools AFAIK. I have created an application to do this which is available athttp://gwtmarketplace.appspot.com This project is open-source and the project and source code is available at:http://code.google.com/p/gwtmarketplace/. I encourage everyone who has a product related to GWT to register it so it easier for folks like myself to see what is available and be able to comment on and rate these products. I would certainly appreciate if the GWT folks would link tohttp://gwtmarketplace.appspot.comtomakeiteasier for people to see. Also, any feedback would certainly be appreciated. Thanks, Joe http://gwtmarketplace.appspot.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%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Christian Goudreau -- You received 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 integrate GWT app into an Existing Project ? (Details Inside)
To get a grasp on GWT-RPC, start with a tutorial. This one looks good : http://developerlife.com/tutorials/?p=125 Think of RPC as a communication channel between your client and your server. Your client handles UI logic, the server handles business logic. Your client will need to display business data, but it has no connection with the database. So it has to call the server side to get the data it needs to display. The objects that will be passed between the client and the server will be in the shared package and they need to implement java.io.Serializable. You define the RPC services signatures, so it's up to you to decide what objects your client and server will use to communicate. It can be anything from a simple String to a complicated transfer object. On the server side, you're just like in any Servlet container, so your old java code should work just the way it used to. The only difference is that it will implement the RPC services the client needs. I guess the reason no one else bothers to answer is that it is all pretty basic GWT stuff, and they consider you should be able to find the answers yourself with the first tool any developer : Google Search. On 6 août, 20:24, Chirayu chirayu.diwa...@gmail.com wrote: Firstly, thanks a lot Mikael for replying. I had been waiting for long and even mailed 3 people who discussed something similar previously but got no response till now. Now, I understood the compilation into JS logic. The thing is that there are no huge examples on RPC so I'm confused as I'm new in this technology. Answer few things at this point: -- The old project has a lot of .java classes, do you mean that I should keep them in the server(package) ?, if so, then they have their own set of server calls and stuff(as this old project has been running for years with updates from time-to-time), then how am I supposed to take care of all that ?? -- Can you stress a little more on the kind of classes which should be put in shared(package) ?? I'm again very thankful, and will be more...I wonder why no-one else is answering this Question...have I asked it wrong or is it too vague ? Regards, Chirayu On Aug 6, 1:11 pm, Mikael Couzic mikaelcou...@gmail.com wrote: Hi, First, consider you developed the client side of the application, which means your code will be compiled in JavaScript and provide the UI. The GWT compiler needs to know which classes need to be compiled in JS. You'll find in your Module.gwt.xml file the following line : source path='client' / This line tells the compiler to translate in JS all the classes in the client package. Most probably the old project's code is not in this package. However, compiling all the project in JS is definitely not the way to go. You need to think about what part of the application should be in the client and which part should be in the server. The client calls the server via RPC. You'll find many tutorials on the subject with a Google search. So your project should look like this : - client (package) - server (package) - shared (package) - Module.gwt.xml (file) The shared package stores the classes that will be used to communicate between client and server (those classes must be serializable). Don't forget to add in your Module.gwt.xml : source path='shared' / In your case, it would be best to put all the old code you want to reuse in the server package. You'll then need to define and implement the RPC services your client side will call. Consider applying the RPC- Oriented Command Pattern and its implementation, GWT-Dispatch. Good luck ! On 5 août, 19:41, Chirayu Diwan chirayu.diwa...@gmail.com wrote: Hi Everyone, I'm a novice at GWT, started working on it in internship and its now coming to an end. I was asked as my internship assignment to make with GWT, the client- side of this huge project they have for internal usage. This project's client-side had been in 'HTML+JSP' till now. Now, I have successfully made the client-side, but face a bad-bad problem in integrating my app with the project. I had no knowledge and included the old project's code through SVN in my GWT app project, imported the packages and made calls to methods their and was able to write the client-side code without any errors. But on final compilation, it says 'No Source Code found' for the imports I made from the old project. I learnt that my approach is wrong, and a possible solution is to maybe use the concept of GWT-RPC, but can somebody explain it to me step-wise and in clarity. I'll be happy to provide more details if asked. Please help me, I'm like in a sad situation, and success of my work at the start of my career is very imporant. Regards, Chirayu P.S. : Sorry for the long description. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post
Re: Instantiate composite on the server side
Have you considered the type-safe approach, using Gin ? On 6 août, 10:07, Stephan T stephan.tern...@gmail.com wrote: The reason why I try to do this is that GWT doesn't support reflections. I'm trying to use a helper method on the server side which receivs the class name, the server side then instatiates the class and returns it to the client. Any other suggestions how to solve this problem? On 5 Aug, 15:47, Mikael Couzic mikaelcou...@gmail.com wrote: Sounds like you violated the SRP principle... If I got it right, Composite depends on the DOM, which doesn't exist server-side, so I don't think it is possible. A solution would be to encapsulate the functionnality you want to use server-side in a POJO. Your composite would then delegate to the POJO, which could be reused server-side. And if you wish to push further towards great design, embrace MVP ! On 5 août, 14:42, Stephan T stephan.tern...@gmail.com wrote: For several reasons I need to instansiate a Composite on the server side that is in the client package. Is it possible? Now I think I'm getting class not found exception when trying... -- You received 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: Problems with adding additional Java projects in the buildpath for the GWT project
In Eclipse you specified the dependency on another project, which is enough for Dev mode, but is not sufficient for compilation. If you use Ant or Maven, you need to specify the dependencies in your build scripts. On 5 août, 03:15, avepa arvind.v...@gmail.com wrote: I'm using Eclipse and attempting to import a project from another location. I adjusted the source path in the .gwt.xml file so that it reflected this and added the additional build path location. However, when I attempt to run it on a server, these problems come up from the debugger: No source code is available for type.com.sample.blah; did you forget to inherit a required module. Could someone please help me on this? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 integrate GWT app into an Existing Project ? (Details Inside)
Hi, First, consider you developed the client side of the application, which means your code will be compiled in JavaScript and provide the UI. The GWT compiler needs to know which classes need to be compiled in JS. You'll find in your Module.gwt.xml file the following line : source path='client' / This line tells the compiler to translate in JS all the classes in the client package. Most probably the old project's code is not in this package. However, compiling all the project in JS is definitely not the way to go. You need to think about what part of the application should be in the client and which part should be in the server. The client calls the server via RPC. You'll find many tutorials on the subject with a Google search. So your project should look like this : - client (package) - server (package) - shared (package) - Module.gwt.xml (file) The shared package stores the classes that will be used to communicate between client and server (those classes must be serializable). Don't forget to add in your Module.gwt.xml : source path='shared' / In your case, it would be best to put all the old code you want to reuse in the server package. You'll then need to define and implement the RPC services your client side will call. Consider applying the RPC- Oriented Command Pattern and its implementation, GWT-Dispatch. Good luck ! On 5 août, 19:41, Chirayu Diwan chirayu.diwa...@gmail.com wrote: Hi Everyone, I'm a novice at GWT, started working on it in internship and its now coming to an end. I was asked as my internship assignment to make with GWT, the client- side of this huge project they have for internal usage. This project's client-side had been in 'HTML+JSP' till now. Now, I have successfully made the client-side, but face a bad-bad problem in integrating my app with the project. I had no knowledge and included the old project's code through SVN in my GWT app project, imported the packages and made calls to methods their and was able to write the client-side code without any errors. But on final compilation, it says 'No Source Code found' for the imports I made from the old project. I learnt that my approach is wrong, and a possible solution is to maybe use the concept of GWT-RPC, but can somebody explain it to me step-wise and in clarity. I'll be happy to provide more details if asked. Please help me, I'm like in a sad situation, and success of my work at the start of my career is very imporant. Regards, Chirayu P.S. : Sorry for the long description. -- You received 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: Instantiate composite on the server side
Sounds like you violated the SRP principle... If I got it right, Composite depends on the DOM, which doesn't exist server-side, so I don't think it is possible. A solution would be to encapsulate the functionnality you want to use server-side in a POJO. Your composite would then delegate to the POJO, which could be reused server-side. And if you wish to push further towards great design, embrace MVP ! On 5 août, 14:42, Stephan T stephan.tern...@gmail.com wrote: For several reasons I need to instansiate a Composite on the server side that is in the client package. Is it possible? Now I think I'm getting class not found exception when trying... -- You received 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: Share user input data within MVP + Lady_Gaga
Well, I pretty much agree with Eric. I believe the event should'nt depend on the listeners, rather it should be defined in consideration of the presenter that fires it. The attributes stored in the event are the ones that make sense in its own context (that helps a lot I know ^^). In your registration example, I'd fire a RegistrationSubmittedEvent that holds all the details of the registration. No need to create a data object, your event is your data object. However, you can instantiate model objects in the presenter and hold these objects in the event instead of duplicating instantiation code all over the listeners. But in that case, be careful, your model objects are shared and shouldn't be edited (consider making them immutable). I hope that helps ! On 20 juil, 18:07, mk munna.kaka.ch...@gmail.com wrote: In case future presenter 3q requires a specific information which is not sent in the old event thrown by presenter 1. Than in future, we have to add that specific information in the event thrown by presenter 1 .. right ? I mean information passed in the event is limited by what is required by listening presenters?. For eg a registration view may have different textboxes for first name, address etc and the intial event may only be thrown with the information that submit button is clicked. And later on for future presenter 3q we may have to add first name in the event thrown by presenter 1. Do you create event in the first place with all the information available to accomodate all future presenters? Do you create a Value object to pass this heavy weight information from one presenter to another? Thanks in advPlz respond On Jul 20, 8:21 am, Eric erjab...@gmail.com wrote: On Jul 19, 9:04 pm, mk munna.kaka.ch...@gmail.com wrote: Thanks a lot. Now if there are three DIFFERENT presenters (say 2a,2b,2c) listening event from 1st presenter. Than do 1st presenter has to create event with all the appro. values required by 2a,2b,2c presenters? In fact, you shouldn't be thinking about presenters 2a, 2b, or 2c when writing presenter 1. Presenter 1 should just fire change events when its data changes. Presenters 2a, 2b, 2c, and future presenters 3q and 7f should simply add event handlers to presenter 1 and pick out the information they need. Eric -- You received 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: GeoMap alternative?
Well, I know exactly how to do that with GWT-OpenLayers, but except GeoMap I'm not familiar with the alternatives so I can't compare. Anyway if you want to implement these features in a GWT application, I highly recommend using a GWT-integrated API if you want to avoid the overhead and maintenance issues. On 17 juil, 20:47, Akshay Kumar kumar.aks...@gmail.com wrote: Thanks Mikael, Looks pretty neat, in fact much more than I need. As my requirement is pretty simple: world_map to start with, be able to zoom to (and back to world_map) some regions - asia/pacific, africa, south_america, north-america, europe, middle east. gviz-IntensityMap fits in well until this point. However I need a bit more of functionality. Which is, to be able to highlight certain cities (hollow circle) on region maps and then be able to select/de-select them ( selected city = filled circle ). and a tooltip for city markers with some info. Which is kind of like markers on GeoMap, however, even in GeoMap the Markers do not throw any event and GeoMap is flash-based :( For others' reference, closest I have found till yet is:http://www.gethifi.com/blog/a-jquery-plugin-for-zoomable-interactive-... Especially - this implementation of above:http://www.sici.org/about/members/ -akshay On 17 July 2010 19:34, Mikael Couzic mikaelcou...@gmail.com wrote: Hi, I'm not a flash expert but It's pretty obvious that the GeoMap visualization involves some flash. If you're looking for a non-flash and GWT compatible solution, take a look at GWT-OpenLayers : http://sourceforge.net/projects/gwt-openlayers/ OpenLayers is a JavaScript library for displaying maps, and GWT- OpenLayers provides the wrapping with JSNI. I currently work on a similar project, you can contact me if you need guidance. Mikael Couzic On 14 juil, 17:59, Akshay Kumar kumar.aks...@gmail.com wrote: perhaps I am wrong in my interpretation that geomap is a flash based widget. When I view this document, I get a 'block' prompt from firefox's flash blocker. http://code.google.com/apis/visualization/documentation/gallery/geoma... Can someone confirm whether Geomap is plugin free or not? -akshay On 14 July 2010 21:11, Akshay Kumar kumar.aks...@gmail.com wrote: Hi, I am planning to use GeoMap (google visualization widget) as a widget to select regions in my GWT based application. However, I realized that GeoMap is a flash based widget. I want my web-app to be completely free of plugins. Which was one of the reasons to choose GWT. So, any pure HTML (or Javascript) alternative to GeoMap? Thanks, Akshay -- You received 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%2Bunsubs cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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%2Bunsubs cr...@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: GeoMap alternative?
Hi, I'm not a flash expert but It's pretty obvious that the GeoMap visualization involves some flash. If you're looking for a non-flash and GWT compatible solution, take a look at GWT-OpenLayers : http://sourceforge.net/projects/gwt-openlayers/ OpenLayers is a JavaScript library for displaying maps, and GWT- OpenLayers provides the wrapping with JSNI. I currently work on a similar project, you can contact me if you need guidance. Mikael Couzic On 14 juil, 17:59, Akshay Kumar kumar.aks...@gmail.com wrote: perhaps I am wrong in my interpretation that geomap is a flash based widget. When I view this document, I get a 'block' prompt from firefox's flash blocker.http://code.google.com/apis/visualization/documentation/gallery/geoma... Can someone confirm whether Geomap is plugin free or not? -akshay On 14 July 2010 21:11, Akshay Kumar kumar.aks...@gmail.com wrote: Hi, I am planning to use GeoMap (google visualization widget) as a widget to select regions in my GWT based application. However, I realized that GeoMap is a flash based widget. I want my web-app to be completely free of plugins. Which was one of the reasons to choose GWT. So, any pure HTML (or Javascript) alternative to GeoMap? Thanks, Akshay -- You received 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%2Bunsubs cr...@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 adoption
The majority of what GWT can do can be done by a good web developer/designer... Of course, but is it done as fast ? And is it easily maintainable ? For guys like me, who are not so good at HTML and JS but master Java and OOD, it's not a crutch, it's a high-powered exo-skeleton packed with a light saber. On 12 juil, 16:06, DaveC david.andrew.chap...@googlemail.com wrote: The majority of what GWT can do can be done by a good web developer/ designer... but what GWT is good at is all the compile time optimisations - when you're trying to squeeze every last bit of performance out of of your app... and if you only/have to write Java. It is a crutch IMHO, probably quite a good one though ;o) - but a crutch no less. On Jul 12, 2:57 pm, nino ekambi jazzmatad...@googlemail.com wrote: For me i think GWT is the future. It s just a genius way to write desktop type web application. 2010/7/9 mk munna.kaka.ch...@gmail.com Do you guys think that GWT will the most widely used framework in future ( or there will be mix of other frameworks in future. If yes than which frameworks). I am little worried that why GWT is not adopted at a rate I would have thought for last 4 yrs. why why... -- You received 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%2Bunsubs cr...@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 2.0.4 is now available
I'm pretty sure the GWT group is not providing them because very few, if any, projects internally utilize maven. I do not agree. I use Maven, I believe many GWT projects use Maven, and the GWT group should make the effort to manage GWT releases on the Maven central repository. On 1 juil, 18:32, jhulford jhulf...@gmail.com wrote: Has anyone at Google/GWT ever indicated they'd support maven? I know they've asked for feedback on how they could help make releases more maven friendly in the past, but, I believe, it's always been entirely up to the maven community at large to provide maven resources for GWT. I'm pretty sure the GWT group is not providing them because very few, if any, projects internally utilize maven. I don't use maven currently, but if there has been stated support for doing so in GWT that might help tip me towards using it. On Jul 1, 9:47 am, Andrew Hughes ahhug...@gmail.com wrote: Dear GWT Steering Commitee, This is feedback, please take it objectively! Your maven support to date can only be described as careless. There is a *large* community need you as much as you need them. Cheers :) On Thu, Jul 1, 2010 at 3:49 PM, Frederic Conrotte frederic.conro...@gmail.com wrote: Hello Chris Any idea if/when it will be available for Maven users ? http://repo2.maven.org/maven2/com/google/gwt/gwt-dev/ Thanks Fred On Jun 30, 11:25 pm, Chris Ramsdale cramsdale+perso...@google.comcramsdale%2bperso...@google.com wrote: This time without the mangled HTML. Recently Apple released Safari 5, which included a bug where non- integral right-shifts were not being evaluated properly. There were several reports, both internally and externally, of GWT-based applications unexpectedly crashing when running in Safari 5 (including Google Wave). Upon further inspection of the crash, we determined that the bug is triggered when calling several of GWT's array sorting methods, which in turn perform non-integral right-shifts as part of the compiled code. That's the bad news. The good news is that we have a fix for this issue, plus several other house keeping items/a that we've rolled into a 2.0.4 release, which can be downloaded from GWT’s main download site. If you’re experiencing the Safari crash, you’ll need to recompile and deploy your GWT app. The changes in 2.0.4 are completely compatible with your existing 2.0 app, and should have no negative impact. To that extent we’ve already dogfooded 2.0.4, verifying that it fixes the Wave crash that was originally reported. On Jun 30, 5:20 pm, Chris Ramsdale cramsdale+perso...@google.comcramsdale%2bperso...@google.com wrote: Recently Apple released Safari 5, which included a a href=https:// bugs.webkit.org/show_bug.cgi?id=40367bug/a where non-integral right-shifts were not being evaluated properly. There were several reports, both internally and a href=http://code.google.com/p/google- web-toolkit/issues/detail?id=5056externally/a, of GWT-based applications unexpectedly crashing when running in Safari 5 (including Google Wave). Upon further inspection of the crash, we determined that the bug is triggered when calling several of GWT's array sorting methods, which in turn perform non-integral right-shifts as part of the compiled code. That's the bad news. The good news is that we have a fix for this issue, plus several other a href= http://code.google.com/p/google-web- toolkit/issues/list?can=2q=milestone%3D2_0_4house keeping items/a that we've rolled into a 2.0.4 release, which can be downloaded from GWT’s main a href=http://code.google.com/p/google-web-toolkit/ downloads/detail?name=gwt-2.0.4.zipdownload site/a. If you’re experiencing the Safari crash, you’ll need to recompile and deploy your GWT app. The changes in 2.0.4 are completely compatible with your existing 2.0 app, and should have no negative impact. To that extent we’ve already dogfooded 2.0.4, verifying that it fixes the Wave crash that was originally reported. -- You received 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%2Bunsubs cr...@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