gwt-rpc

GWT question on RPC

杀马特。学长 韩版系。学妹 提交于 2020-01-04 06:05:08
问题 I'm trying to understand the RPC functionality which GWT uses, and have followed this guide. It works perfectly OK if I follow the guide and has the call to the server in a separate class file. However when I try to have the call where the entryPoints creates it will not work. I wonder why it is like that and how to fix it? package com.async.me.client; import com.async.me.client.widgets.HelloWidget; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import

GWT question on RPC

孤人 提交于 2020-01-04 06:04:08
问题 I'm trying to understand the RPC functionality which GWT uses, and have followed this guide. It works perfectly OK if I follow the guide and has the call to the server in a separate class file. However when I try to have the call where the entryPoints creates it will not work. I wonder why it is like that and how to fix it? package com.async.me.client; import com.async.me.client.widgets.HelloWidget; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import

How to Implement progressbar with GWT?

眉间皱痕 提交于 2020-01-02 07:20:37
问题 In a GWT application, I have a long process that runs server side and invoked using rpc(GWT dispatcher) and I want to have a feedback to the Client as a progress bar showing messages and the total progress. My question is how to recover messages and the progress dynamically from the server? I'm interested in any solution thank you in advance for your help. 回答1: Have a look at the get progress bar in the incubator. Here is another example of someone using it. UPDATE If you want to display the

Invoke a GWT RPC service from Java directly

筅森魡賤 提交于 2019-12-30 02:16:39
问题 Is there an easy way to invoke a GWT RPC service endpoint directly from Java code? I mean real Java code, not Java code compiled down into javascript. I ask because we want to run performance benchmarks/stress tests against a GWT RPC interface. I would like to write the test harness in Java and run it in a JVM (as opposed to javascript running in a browser). I figure there must be a way to do this because I assume GWT Hosted mode requires such functionality. However, I can't really find any

Super Dev mode in GWT

北城余情 提交于 2019-12-27 11:39:30
问题 I'm new to gwt. I don't know how to start up Super Dev mode . I need the detailed explanation step by step. I have tried editing gwt.xml file by adding <add-linker name="xsiframe"/> <set-configuration-property name="devModeRedirectEnabled" value="true"/> <set-property name="compiler.useSourceMaps" value="true" /> but i cant get the idea about this. 回答1: Follow these steps, you 'll definitely find the solution. Download the GWT 2.5 RC2, and put it somewhere...I put it in my eclipse/plugins

GWT 2.5 breaks RPC method - fine on 2.4, but not working after upgrade

自作多情 提交于 2019-12-25 06:25:57
问题 After upgrade from GWT 2.4.0 to 2.5.0 only one of many (many!) RPC methods is broken and I have no idea why. Here is what happens (and what does not): The program gets to async service object and calls its method. Underyling, generated by GWT proxy object exists and is called (I don't know its internals, though). The browser doesn't send any request to server (at least developer tools built into Google Chrome doesn't show anything like that happening. On the other hand... see 5.). The

GWT Google Visualization - subsequent redraws change number of Y axis steps?

人走茶凉 提交于 2019-12-24 12:36:18
问题 I am having a weird bug with GWT google visualization library wrapper, specifically AnnotatedTimeLine. Namely, I draw my chart on the initial ajax call to google visualization tools, and then I redraw it every 5 seconds using a timer. Each time it redraws, the "steps" on Y axis change their values and frequency (sometimes you will have them in more frequent intervals). Note values of graph stay exactly the same. I've included 2 screenshots to show you 2 stances it goes from. On every

com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit

喜你入骨 提交于 2019-12-24 04:36:05
问题 I'm getting below error while compiling gwt app with ver 2.6.0, Initially I have compiled it with maven having gwt ver 2.6.1 and then tried to compile it through eclipse having version 2.6.0. Is it related to version compatibility?? com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit. at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:110) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276) at com.google.gwt.dev.jjs.ast

GWT and SSL not working?

纵然是瞬间 提交于 2019-12-24 03:29:30
问题 I have a GWT app, I'm using the MVP4G framework. I'm able to pull up my app just fine if I use HTTP. However, when I try to open it using HTTPS it does not work. My entire site works fine with the SSL certificate I have. Is there a particular configuration that I need to enable when I compile GWT? Or is there something I need to do in my apache configuration? Any help would be greatly appreciated, thank you. 回答1: SSL should not affect your application, because SSL runs on an other Layer. To

How to Upload a file in GWT

会有一股神秘感。 提交于 2019-12-24 01:25:57
问题 I have to Upload a file which can be of type , Doc, text. The Size of the File is more the 1 MB. I need the name , size , and the data of this file on sever side so that i can process it further. How to do it? What libaries i use for this. Any sample code will be of great help. 回答1: Checkout Basic File upload in GWT Refer this also : An Example 来源: https://stackoverflow.com/questions/9615567/how-to-upload-a-file-in-gwt