gwt-platform

GWT - Error constructing Java AST

眉间皱痕 提交于 2020-01-04 04:30:09
问题 What could possibly be causing this error during compilation? I have generated project from this archetype https://github.com/ArcBees/Arcbees-Archetypes and I have changed only thing - update GWT to 2.8.0 and GWTP to 1.5.3. [INFO] [ERROR] An internal compiler exception occurred [INFO] com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST [INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.translateException(GwtAstBuilder.java:3099) [INFO] at com.google.gwt.dev.jjs.impl

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

吃可爱长大的小学妹 提交于 2019-12-30 02:19:09
问题 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

How to use UiHandlers of GWT Platform?

别说谁变了你拦得住时间么 提交于 2019-12-25 14:29:10
问题 I've been trying to write contacts. example using gwt-platform I've successfully got the contacts view using manual reveal to obtain contacts list, I'm trying to use UiHandlers for add button but it is not calling the method in my ContactsPresenter's onAddButtonClicked(). fallowing is the code snippet of my view public class ContactsView extends ViewWithUiHandlers<ContactsViewUiHandlers> implements ContactsPresenter.MyView { private final Widget widget; @UiField Button addButton; @UiHandler(

How to inject Session/User object after bootstrapping?

拟墨画扇 提交于 2019-12-23 11:54:07
问题 There are examples where different kinds of objects are getting injected into a presenter, but I can't find an explanation how this can be done. In the Bootstrap-Code example they are injecting e.g. a SecurityDelegate object. Also in the Gatekeeper example I see things being injected, e.g. MyGatekeeper , but how is this done? What I want is to first check if the user is logged in and then create a CurrentSession object or something like this. But how can I pass/inject this object around? At

How to use “Scheduler.get().scheduleDeferred” the right way in GWT?

[亡魂溺海] 提交于 2019-12-23 01:37:11
问题 Here is my Pseudocode in my GWT app. -Visible the loading Label -Loading text from properties file (may take long) -Invisible the loading Label & Visible the main HTMLPanel So I want to use Scheduler.get().scheduleDeferred to achive that, here is the code: loadingLabel.setVisible(true); Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { loadingText(); } } loadingLabel.setVisible(false); mainHTMLPanel.setVisible(true); But it doesn't work correctly as

Nested presenters with GWTP

一笑奈何 提交于 2019-12-19 05:22:36
问题 I have content slots in my mainpresenter, how can i put, when app load, put the home presenter in one slot and the menu slot in the another ? or isn't possible? thanks in advance. 回答1: Yes you can ! In the following example code, I assume that your HomePresenter is a place and extends Presenter, and your MenuPresenter extends PresenterWidget. In your MainPresenter : @ContentSlot public static final Type<RevealContentHandler<?>> MAIN_SLOT = new Type<RevealContentHandler<?>>(); @ContentSlot

GWT-Platform login + session management

只愿长相守 提交于 2019-12-17 19:52:52
问题 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

SmartGWT GWT client server architecture

…衆ロ難τιáo~ 提交于 2019-12-12 19:07:30
问题 We plan to use smart GWT, GWT and related frameworks for the client side rich interface and Spring MVC which returns JSON data on the server side. As part of the investigation to see if it fits our requirement, the following questions need some answers : Building a GWT application from scratch without using any frameworks will need considerable amount of effort to follow the standard MVP pattern. But this is more flexible and unit testable, though time consuming. GWT best practise suggests

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

不羁的心 提交于 2019-12-12 07:34:41
问题 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 {

Got UnsupportedActionException with GWT and Maven

笑着哭i 提交于 2019-12-11 02:46:50
问题 I still trying to make my project with GWT and Maven works. Now, i got errors in ActionHandlers. I configured Guice like tutorials in examples and in other project (that isnt working with maven) it works as expected, but, in this project, seems like the guice servlet doesnt bind the Action to ActionHandler in ServerModule: public class ServerModule extends HandlerModule { @Override protected void configureHandlers() { System.out.println("ServerModule.configureHandlers()"); install(new