gwt

GWT ,Vaadin,SmartGwt,ExtGwt ?---from Swing [closed]

寵の児 提交于 2019-12-22 01:42:45
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I start to migrate an old Swing app to web interface: Alternatives I want : Gwt, Vaadin,Smart Gwt, Ext Gwt The profile of the app is a

Injecting jQuery through ScriptInjector

泪湿孤枕 提交于 2019-12-22 01:28:28
问题 When trying to inject jQuery through ScriptInjector, this is the error thrown when $wnd.$ is called through JSNI: Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): Object [object global] has no method '$' at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt

Why does UmbrellaException have that name?

时光怂恿深爱的人放手 提交于 2019-12-22 01:15:30
问题 I'm working with GWT and sometimes I'm getting exception called UmbrellaException I was always wondering why is it called like that? It is because there is a lot of error (rain) that you have to protect the application (use umbrella not to get wet). 回答1: According to the first link when i googled the term "gwt umbrellaexception": A RuntimeException that collects a Set of child Throwable together. Typically thrown after loop, with all of the exceptions thrown during that loop, but delayed so

Editing CSS in Gwt WindowBuilder

半城伤御伤魂 提交于 2019-12-22 00:34:39
问题 I am using GWT in a project and recently started using the WindowBuilder in Eclipse. I created a new class and in the WindowBuilder and added some widgets. All that works and everything. However, when I try to edit the CSS for some of the panels and I click to edit the "styleName" field I get an error message which says: "There are no CSS files referenced from modules HTML." I've tried adding a link to a style sheet in my base html file and in the Web.gwt.xml file, but that does not seem to

Return different GWT imlementation to Mobile and Desktop clients on GAE

此生再无相见时 提交于 2019-12-22 00:28:38
问题 I'm using different implementations for Desktop and Mobile clients in my GWT application (which runs from GAE). One solution is the user-agent detection in GWT. This solutions loads both the Desktop and Mobile implementation into the client. A cleaner solution would be an user-agent detection on the server servlet. This solution only returns the correct implementation for the client. How do I return this different implementations from GAE? 回答1: I've actually done that. You declare your

GWT and AppEngine User Service

笑着哭i 提交于 2019-12-22 00:24:41
问题 I am using GAE User Service to Authrnicate my GWT Application. Depending on whether the User is logged in the User is presented with LoginPage/Dashboard. The GWT Application calls a Auth Servlet (Window.Location.assign("/googleauth"); causing application to unload which then transfers control to Google Authentication Page, after authentication we are redirected to CallBack servlet. I can check whether user is loggedin successfully in Callback Servlet. However if I simply redirect back to my

Referring to a non-final variable data inside an inner class

风流意气都作罢 提交于 2019-12-21 23:41:04
问题 Im doing a program in GWT. Here is the snippet where Im having problem private String[] populateRSSData() { 1==>> String[] data = null; try { new RequestBuilder(RequestBuilder.GET, "../database.php?action=populaterss").sendRequest(null, new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { 2==>> data=response.getText().split("~"); } @Override public void onError(Request request, Throwable exception) { Window.alert(exception.getMessage()); } });

How do I get the server-side exception message with GWT?

℡╲_俬逩灬. 提交于 2019-12-21 22:42:24
问题 I tried public void onFailure(Throwable caught) { Throwable cause = caught.getCause(); String causeStr = (cause==null) ? "" : ", "+cause.getMessage(); errorLabel.setText(SERVER_ERROR + ": " + caught.getMessage() + causeStr); But cause is always null and caught.getMessage() always equals the very generic 500 The call failed on the server; see server log for details . I want to throw IllegalArgumentExceptions from the server and be able to show it on the client: throw new

gwt-dev.jar too big to upload to appengine. Can I split a jar file, or… what?

…衆ロ難τιáo~ 提交于 2019-12-21 22:07:45
问题 I recently had to add gwt-dev.jar to my /war/WEB-INF/lib directory, and now when I try to deploy to appengine I get: java.lang.IllegalStateException: Found a jar file too large to upload: "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg997121487626565419.tmp\WEB-INF\lib\gwt-dev.jar". Consider using --enable_jar_splitting. I'm using the google eclipse plugin, and according to this issue report I can't use --enable_jar_splitting. Ack! Can I manually split a jar file apart somehow? I only need a tiny

Pass Java Callback Function to JSNI Method?

怎甘沉沦 提交于 2019-12-21 21:15:53
问题 I want to pass a success and a failure callback Java function to a JSNI method. This is what I get so far but it does not work. How can I fix it? package c; public class A { test(new Callback<String, String>() { @Override public void onFailure(String reason) { Window.alert("fail"); } @Override public void onSuccess(String result) { Window.alert("suc"); } }); native void test(Callback<String, String> callback) /*-{ var callback = $entry(function(event) { callback.@c.A.Callback::onSuccess(Ljava