gwt

GWT URL Parameters

微笑、不失礼 提交于 2020-01-10 04:52:07
问题 What is the proper way to use URL parameters? My URL is this: http://localhost:8080/#pg5?testing=abc In my code I try to get the value of testing using this line of code: String value = com.google.gwt.user.client.Window.Location.getParameter("testing"); Unfortunately all this does is set my string to "undefined". I thought perhaps it wasn't getting the correct URL but this code returns the proper URL: String value = com.google.gwt.user.client.Window.Location.getHref(); I know I can parse the

GWT Blobstore error calling createUploadUrl()

走远了吗. 提交于 2020-01-10 03:52:05
问题 I am attempt to use the Blobstore api for appengine using GWT... I promise you! I had it working for months and suddenly I started get the following errors.. arfter executing the following line from a servelet. public class ImageServiceImpl extends RemoteServiceServlet implements ImageService { /** * */ private static final long serialVersionUID = 1L; // init the blog store service private BlobstoreService blobService = BlobstoreServiceFactory.getBlobstoreService(); //private static final

How to use JSTL in a GWT project?

∥☆過路亽.° 提交于 2020-01-09 11:12:19
问题 i am building a GWT project, with GWT-2.0.3 and eclipse plugin. well, first i tried, JSTL1.2 and servlet 2.5, i do add jstl-1.2.jar to war/WEB-INF/lib in web.xml, i use: <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> in the jsp page, i use: <

Error “No GWT module found” for Maven project imported into Eclipse

你。 提交于 2020-01-07 07:56:39
问题 I've imported a Maven project into Eclipse and tried to open a subclass of com.google.gwt.core.client.EntryPoint using the WindowBuilder Editor. The WindowBuilder Editor gave me this error: No GWT module found GWT widgets can be used only in client package of GWT module. My environment: Eclipse version: Luna (from Eclipse => About Eclipse) WindowBuilder: 1.7.0r44 (from Help => Installation Details) GWT Designer: 3.1.3r44 (from Help => Installation Details) Now, I'm not sure how the

GWT GAE app engine modules using appengine-skeleton-archetype

落爺英雄遲暮 提交于 2020-01-07 06:31:07
问题 I tried to create a new maven project using com.google.appengine.archetypes:appengine-skeleton-archetype and it generate appname, appname-ear, appname-war. Based on what I read to convert backends to module, I need to have at least default module. How do I change appname-war to default or add a new module name default, because every time I did that, the default module doesn't seems to be appeared on the outside of appname project (the parent project). Thanks. 回答1: I think I got the answer. I

GWT Super Dev mode and in production

↘锁芯ラ 提交于 2020-01-07 05:53:13
问题 I have a GWT application. My development environement is win7+Eclipes+Google plugin for Eclipse+J2SE8. In Eclipse, when I run in super dev mode, everything works as expected. But when I install tomcat8, and put war file generated in eclipse to webapps in tomcat, the gwt seems does not function. Any hints for GWT production mode, my final aim is to put war file in Ubuntu. Juhani 来源: https://stackoverflow.com/questions/27856686/gwt-super-dev-mode-and-in-production

GWT (Maven plugin): how to enable assert checking for server side code?

一曲冷凌霜 提交于 2020-01-07 05:36:13
问题 Basically I put a lot of 'assert's allover the service code (server side). I just realized that those were ignored as the execution went through upon hitting 'false' resulting expressions. However, to my surprise, assertions on the client side got checked. I tried the following to no success. mvn gwt:debug -Dgwt.extraJvmArgs="-Xmx1536m -Xms1536m -XX:MaxPermSize=512m -ea" Any clue? 回答1: Maven does not pass VM arguments to java executables started from maven (e.g. unit tests). You have to

Google Oauth2 in GWT and AppEngine

梦想与她 提交于 2020-01-07 04:57:30
问题 I'm trying to implement authentication for Google Drive: https://google-developers.appspot.com/drive/auth/web-server 1st, it's not obvious when the user is redirected to the Google login page to authenticate. It doesn't appear they are showing that part. 2nd, it doesn't show the call back code. I think I can figure that out and will need to add a new servlet or service or EntryPoint, but might be tricky with GWT. 3rd, and most important, I keep getting a ClassNotFoundException even though the

How to stop GWTBootstrap3 from refreshing and loosing my input and returning an error code

不羁的心 提交于 2020-01-07 04:38:06
问题 I am trying to use GWTootstrap3 with the following html: <div class="row myheader"> <div class="col-md-4"> <img class="myimg" alt="Bootstrap Image Preview" src="logo.png" /> </div> <div class="col-md-4"> <h2> Welcome to the Award Tracker Login Page. </h2> </div> <div class="col-md-4"> <img class="myimg pull-right" alt="Bootstrap Image Preview" src="1stER_icon_256.png" /> </div> </div> <!-- /row --> <div class="row"> <div class="col-md-12" style="text-align: center;"> <h3> <a href="https://www

Is there a tool that checks GWT JRE emulation library violations?

[亡魂溺海] 提交于 2020-01-07 04:33:29
问题 I'm trying to port a Swing application to GWT. However lots of this application classes use things that are not supported by GWT JRE emulation library such as java.util.Locale, java.text.SimpleDateFormat and much more. Is there a tool that scans a project and spots such problems? 回答1: The Google Plugin for Eclipse shows errors for things that are unsupported by GWT's JRE emulation. http://code.google.com/eclipse/ 回答2: The GWT compiler will complain if you try to access classes in the JRE that