gwtp

GWT (2.7) Compile fails when declaring a GwtQuery (1.0.6) Widget in UiBinder in GWTP (1.5.1) project

[亡魂溺海] 提交于 2020-01-06 19:33:29
问题 When I simply just declare a GwtQuery DragAndDropCellTree in my MyView.ui.xml UiBinder in my GWTP project, I cannot GWT Compile it: [3] xmlns:gq="urn:import:gwtquery.plugins.droppable.client.gwt" ... [59] <gq:DragAndDropCellTree></gq:DragAndDropCellTree> [ERROR] No class matching "DragAndDropCellTree" in urn:import:gwtquery.plugins.droppable.client.gwt: < gq:DragAndDropCellTree > (:59) [ERROR] Errors in 'gen/my/package/com_gwtplatform_mvp_client_DesktopGinjector_DesktopGinjectorGinjector

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 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(

GWTP: onUnbind() never called after closing a presenter

只谈情不闲聊 提交于 2019-12-25 03:29:32
问题 I have a GWTP MyPresenter that registers a handler at onBind(), and it works perfectly. The problem is when I leave the presenter using the BACK arrow on the browser. The onUnbind() is never called (I tried with an breakpoint overriding the method, but is never executed). So that this handler is never unregistered. What is wrong? Thanks. public class MyPresenter extends PresenterWidget<ViewDiagramPresenter.MyView> { [...] @Override protected void onBind() { super.onBind(); registerHandler

JSNI (GWT-GWTP): jQuery does not select node in 'document ready' function after ready event fires

落爺英雄遲暮 提交于 2019-12-24 18:54:27
问题 I am trying to select a div node based on its CSS ID, and change the div's text, all with jQuery (2.2.0). My problem is that jQuery selection never seems to happen normally? That jQuery selection code (below, where I'm using the '$' shorthand for 'jquery' fucntion) is within a standard 'document ready' callback function so that the div with CSS ID is "supposedly" ensured to be in the DOM by the time the callback is called. That js code, and its standard JSNI $wnd syntax, resemble the Answers

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

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

why can't i hide DialogBox in UiBinder in GWT?

强颜欢笑 提交于 2019-12-13 02:41:08
问题 in Test.ui.xml <g:DialogBox ui:field="wishlistDialogBox" autoHide="true"> <g:caption>Test</g:caption> <g:HTMLPanel> some widgets..</g:HTMLPanel> </g:DialogBox> After running, the application still show the DialogBox , so I tried to set hide for "wishlistDialogBox" in TestView.java but it didn't work. @UiField DialogBox wishlistDialogBox; @Inject public TestView(final Binder binder) { widget = binder.createAndBindUi(this); wishlistDialogBox.hide(); } Then i set hide for it in TestPresenter

How to use GWTP for a ListView (Widget)?

给你一囗甜甜゛ 提交于 2019-12-12 02:59:14
问题 I started to use GWTP for my project and I'm currently re-writing all my code to let it work with this library. However, I struggle to understand how I use GWTP if I want e.g. a ListView with ListItemView items. @Inject public ToolsPresenter(PlaceManager placeManager, EventBus eventBus, MyView view, MyProxy proxy) { super(eventBus, view, proxy, AdminToolPresenter.SLOT_AdminToolMainContent); this.placeManager = placeManager; ToolListView toolListView = new ToolListView(...) ToolListPresenter