gwt-platform

Intermitant serialization exception with GWT Dev mode and external server

蹲街弑〆低调 提交于 2019-12-11 02:04:29
问题 I have a GWT app which runs pretty much flawlessly in Dev mode with GWT's embedded jetty server. However, I need to move over to using an external jetty server (For various reasons). I followed the GWT documentation Compile & Debug for external server setup exactly. My app runs, however 2/3 of the time on load I get a serialization exception similar to this (On the server side): com.google.gwt.user.client.rpc.SerializationException: Type 'my.package.impl.ContentTypeImpl' was not assignable to

Using the MVP pattern

女生的网名这么多〃 提交于 2019-12-10 15:28:25
问题 I have this web application which I have made with MVC pattern, however I am trying to adapt the MVP pattern. I am using the GWTPlatform library which I have migrated some of the codes already, mainly to the Presenter and the View . However I have not seen any comprehensive material to explain how to actually deal with the Model part. In my MVC pattern I have the model in the controller (in MVC) and the Views listen to changes in the Model to update the views. The model is updated by the

GWT's Editor Framework and GWTP

社会主义新天地 提交于 2019-12-08 12:06:43
问题 building on this answer, i try to integrate the GWT editors into a popup presenter widget. What is the right way to do that? My view looks like this: public class DeviceEditorDialogView extends PopupViewWithUiHandlers<DeviceEditorDialogUiHandlers> implements DeviceEditorDialogPresenterWidget.MyView { interface Binder extends UiBinder<PopupPanel, DeviceEditorDialogView> { } public interface Driver extends SimpleBeanEditorDriver<DeviceDto, DeviceEditorDialogView> { } @Inject

GWT-Platform Several nested presenters in one global presenter

梦想与她 提交于 2019-12-08 05:06:31
问题 I am building an web application (Java) using GWT-Platform MVP model. I have one Global presenter that has "Header", "Main-content" and "Footer". "Main-content" - is presenting different presenters- login page, sign out page, home page... "Header" - is a widget. I want to convert the Header from widget to View-Presenter how should i do it? In other words how my "Global Presenter" will contain two different presenters? I tried the following answears but nothing seems to work for me: 1. Nested

passing parameters from one presenter to another with GWT-Platform

我的梦境 提交于 2019-12-07 13:57:38
问题 I'm trying to pass a parameter that I have loaded on a presenter to another presenter, a car from some client, for example. What's the best way to do this? Using the gatekeeper? Any example? PS: I using DI with gin and the GWT-Platform framework. 回答1: If the presenter should be loaded when the event is fired you can use a ProxyEvent . Have a look at http://code.google.com/p/gwt-platform/wiki/GettingStarted?tm=6#Attaching_events_to_proxies and http://arcbees.wordpress.com/2010/08/31/using

Prevent method call until Async Call Completes GWT-Platform

[亡魂溺海] 提交于 2019-12-07 08:59:06
问题 In my GWT-Platform application I have implemented method in which one step is to fetch data from server and next step is dependent on it. I want to prevent my method for further execution of the code until the Async call completes. Should be something simple but I am not finding a way. 回答1: I think you are missing the point about the web being asynchronous. It is not considered good practice (it is rather an anti-pattern) to block the execution of your client side code until the async call is

passing parameters from one presenter to another with GWT-Platform

不羁的心 提交于 2019-12-05 20:08:42
I'm trying to pass a parameter that I have loaded on a presenter to another presenter, a car from some client, for example. What's the best way to do this? Using the gatekeeper? Any example? PS: I using DI with gin and the GWT-Platform framework. If the presenter should be loaded when the event is fired you can use a ProxyEvent . Have a look at http://code.google.com/p/gwt-platform/wiki/GettingStarted?tm=6#Attaching_events_to_proxies and http://arcbees.wordpress.com/2010/08/31/using-proxyevent/ . If you want to reduce coupling, you should create a custom event, CarLoadedEvent or something. Use

Prevent method call until Async Call Completes GWT-Platform

老子叫甜甜 提交于 2019-12-05 16:46:58
In my GWT-Platform application I have implemented method in which one step is to fetch data from server and next step is dependent on it. I want to prevent my method for further execution of the code until the Async call completes. Should be something simple but I am not finding a way. I think you are missing the point about the web being asynchronous. It is not considered good practice (it is rather an anti-pattern) to block the execution of your client side code until the async call is finished. So instead of blocking the execution until your async code is finished do following: Create a

why does this code compile with eclipse compiler but not with javac (maven)

江枫思渺然 提交于 2019-12-03 06:50:28
There are a bunch of questions like this. I went through most of them but none actually but I couldn't come up with any answer: I have a weird problem in one of my GWT/GWTP classes. The class compiles fine with the Eclipse compiler but fails with the javac compiler (Maven). //additional imports import com.gwtplatform.mvp.client.PresenterWidget; import com.gwtplatform.mvp.client.View; public class MyPresenter extends PresenterWidget<MyPresenter.MyView> { public interface MyView extends View { } some code } When i try to compile with maven I get following error: cannot find symbol symbol: class

Instantiate a PresenterWidget (GWTP) manually

只谈情不闲聊 提交于 2019-12-02 00:55:36
i am new to GWT, GWTP. I have a PresenterWidget which gets instantiated multiple times and gets added to a slot. I want to define the amount of instances programmatically. I only know that I make a new Instance of the Widget by Injecting it. @Inject MyWidgetPresenter first; @Inject MyWidgetPresenter second; // ... Can I instantiate it with new? how do instantiate the view? I tried to use a composite because it seemed to be the smartest solution, because it doesnt contain much logic anyway. But I cant add a composite to a slot. Thanks in advance André You can get the ClientGinjector reference