gwt-platform

Instantiate a PresenterWidget (GWTP) manually

眉间皱痕 提交于 2019-12-01 22:06:46
问题 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.

How to use GWT's Editor Framework with gwt-platform?

浪子不回头ぞ 提交于 2019-11-30 07:16:13
I'm using gwt-platform and tried to implement GWT's editor framework. But I don't get it working from within the presenter. There are some answers around the web, that say I have to inject the EditorDriver somehow into the Presenter, but I don't know how to do this... At the moment I tried this without success: public class MyPresenter extends Presenter<MyPresenter.MyView, MyPresenter.MyProxy> implements MyUiHandlers { public interface MyView extends View, HasUiHandlers<MyUiHandlers>, Editor<MyModel> {} @ProxyStandard @NameToken(NameTokens.myPage) @NoGatekeeper public interface MyProxy extends

GWT-Platform login + session management

烂漫一生 提交于 2019-11-28 11:38:01
I am new to gwt and I am creating a login page using gwt and I need help with session managment. All answers already given here, explains how to manage sessions on server side, I need to use session on client side (browser's session) exactly like with JSP files: session.setAttribute("UserName", username); Can any one provide a clear full example of how to implement this (Remember I am new to gwt). I looked at this tutorial: http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ And this doesn't help me because it doesn't explain how to use the browser's session. Thank you.