gwt-2.5

Revert (Undo) implementation in GWT

≡放荡痞女 提交于 2020-01-13 05:38:09
问题 We are trying to build a GUI framework using GWT. We are finding it hard to implement the cancel functionality in the framework. Required feature is this: We have CRUD screens which have pop-ups, grids and so on. When the user changes anything in the GUI and then clicks on cancel() he should be given a notification message saying that something has changed. Approach that we have tried: Currently we are trying to keep a hashmap of key vs value of the entire pojo object and trying to compare it

Revert (Undo) implementation in GWT

好久不见. 提交于 2020-01-13 05:38:07
问题 We are trying to build a GUI framework using GWT. We are finding it hard to implement the cancel functionality in the framework. Required feature is this: We have CRUD screens which have pop-ups, grids and so on. When the user changes anything in the GUI and then clicks on cancel() he should be given a notification message saying that something has changed. Approach that we have tried: Currently we are trying to keep a hashmap of key vs value of the entire pojo object and trying to compare it

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

Serialization Exception while making an RPC call

痴心易碎 提交于 2019-12-20 04:55:07
问题 I have created a very basic application. I have only one service class and a corresponding Async class which contains only Java types and no custom classes. But still I get the serialization exception. My service class looks like this. public interface MyService extends RemoteService { public String getName(); public Object getAdditionalDetials(ArrayList<String> ids); public Date getJoiningDate(); } My async interface looks like this public interface MyServiceAsync { public void getName

Migrating a GWT 2.5 web app to Java 10

∥☆過路亽.° 提交于 2019-12-12 09:39:26
问题 I have a substantial web-app that is built using GWT-2.5.1 and Java 8. With the deprecation of Java 8, I need to migrate this to Java 10 / 11. I've managed to get past a few issues, but I've hit one I cannot get past. When building the app, I get the following error: [INFO] Compiling module com.<xxx> [INFO] [ERROR] Unable to find type 'java.lang.Object' [INFO] [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core' either directly or indirectly (most often by inheriting

Upgrading from gwt2.4.0 to gwt2.5.0 giving exceptions

若如初见. 提交于 2019-12-11 08:34:57
问题 I have a application for that i have updated from gwt2.4.0 to gwt2.5.0. When i am running the application then seeing the following exception. 18:34:25.338 [ERROR] [OneViewUI] Errors in 'jar:file:/C:/Users/srapolu/.m2/repository/com/google/gwt/gwt-user/2.5.0/gwt-user-2.5.0.jar!/com/google/gwt/core/client/GWT.java' 18:34:25.391 [ERROR] [OneViewUI] Line 276: The method setBridge(GWTBridge) in the type GWT is not applicable for the arguments (GWTBridge) can you please help. 回答1: I experienced

Serialization in GWT 2.5.1

感情迁移 提交于 2019-12-11 06:40:09
问题 I've updated my project from GWT 2.4.0 to GWT 2.5.1 and suddenly a specific RPC serialization has stopped work (all other are still working). I have this class: public class StatusChangeMapEntity extends RecordStamp implements Serializable { private HashMap<WFStatus, Pair<WFPhase, ArrayList<Pair<AppUser, Date>>>> map; ... ... } The exception message is: Attempt to deserialize an object of type class Pair when an object of type class Slide is expected The class Slide extends

Javascript generic clone() method used in GWT application

妖精的绣舞 提交于 2019-12-09 17:56:08
问题 I was trying to write a generic clone function which should be able to do true deep cloning. I have come across this link, How to Deep clone in javascript and took the function from there. That code workds pretty well when I try using direct Javascript. I did minor modifications in the code and tried to put in the JSNI code in GWT. clone function: deepCopy = function(item) { if (!item) { return item; } // null, undefined values check var types = [ Number, String, Boolean ], result; //

GWT 2.5 causes server (GF 2.1.1) to hang - multiple RPC connections left with CLOSE_WAIT status

前提是你 提交于 2019-12-08 10:07:09
问题 A library upgrade (GWT 2.4.0 -> GWT 2.5.0) was necessary. Unfortunately newer version seems to cause more problems, than it actually solves. A lot of "dead" connections (hundreds of them) are cumulating on server until it stops to respond. netstat -na gives the following result: ... tcp 121 0 10.0.0.5:8181 XXX.XXX.XXX.XXX:4609 CLOSE_WAIT ... It occurs only on GWT 2.5.0 and did NOT happen on GWT 2.4.0. No other changes in code. Unfortunately I'm unable to reproduce the problem locally. Both on

How to write(enable) Java code in HTML while using GWT 2.5?

点点圈 提交于 2019-12-04 16:29:32
问题 I've started taking advantage of GWT 2.5. The coolest feature of GWT 2.5 was the ability to write Java code directly in our HTML pages like so: <script type="text/java"> String helloWorld = "Hello world"; Window.alert(helloWorld); </script> The trick is to use a ServletFilter on the server side. This ServletFilter uses the GWT compiler to compile this java code into Javascript and inject it into the HTML returned to the client. I am unable to figure out how to filter this in web.xml or how to