gwt

Migrating GAE project to Java 8 - get XML validation error after adding runtime property to appengine-web.xml

六眼飞鱼酱① 提交于 2019-12-24 22:27:00
问题 I'm migrating a GAE/GWT project to Java 8 and get the following error when deploying: XML error validating <?xml version="1.0" encoding="utf-8"?> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> <runtime>java8</runtime> <application>XXXAppNameXXXX</application> <version>2</version> <!-- Allows App Engine to send multiple requests to one instance in parallel: --> <threadsafe>true</threadsafe> <!-- Configure serving/caching of GWT files --> <static-files> <include path="**" /> <!-

HashBiMap SerializationException or how to serialize classes where IsSerializable is not applicable?

狂风中的少年 提交于 2019-12-24 20:53:48
问题 Problem seems to be that not all Guava classes are serializable out-of-the-box. I found a quite good solution to this and like to share it. (in this case for HashBiMap). (Maybe some Guava developers may apply this one day to ideally all of the classes) If you copy the below class (and maybe adjust it to your to-be-serializable class) you will have further investigation details inside the Javadoc comment already. package com.google.common.collect; import java.util.LinkedHashMap; import java

Cross site scripting(XSS)

十年热恋 提交于 2019-12-24 20:12:57
问题 I am loading content from another page and depending on the content of page, changing content of my page and this is giving me cross site scripting issues. When i use iframe, since the content is from other domain, content of iframe becomes inaccessible. When i use ajax and try to inject the content as plain html code, XmlHttpRequest object throws permission denied exception due to cross site scripting. When i use JSONP, such as getJSON in JQuery, it only supports GET protocol and it is not

GWT Blocked a frame with origin “http://localhost” from accessing a cross-origin frame

梦想与她 提交于 2019-12-24 20:03:00
问题 I would like to allow the user enter their url and browse in the iframe. After they click the confirm button, i will get the url the browse from the iframe. IFrameElement frame = IFrameElement.as(DOM.createIFrame()); frame.setSrc("http://www.example.com"); //set the url of user enter VerticalPanel ver = new VerticalPanel(); ver.getElement().appendChild(frame); // After they click the confirm button, get the url from iframe Window.alert(frame.getContentDocument().getURL()); But i got an error

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

Exception while running GWT application

雨燕双飞 提交于 2019-12-24 18:37:09
问题 I have built my first GWT app. giving no compilation errors neither run-time errors. However, when the application is loaded into the browser (using Interner Explorer) and I enter username and password field to validate the user, it throws exceptions. Using GWT-RPC method, entire code and interfaces are provided. I'm using HSQL for database connection(back end). ------------------CODE (CLIENT) package com.vin.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core

Not able to run Gxt 3.1.1 application after upgrading from 3.0.0

心已入冬 提交于 2019-12-24 17:53:43
问题 I have tried upgrading my projects GWT and Gxt from 2.5.1,3.0.0 to 2.7,3.1.1 . I was able to build the project successfully with some workarounds but am not able to run it. Error I am getting is : Loading inherited module 'com.ApplicationShellModule' Loading inherited module 'com.sencha.gxt.ui.GXT' Loading inherited module 'com.sencha.gxt.data.Data' Loading inherited module 'com.sencha.gxt.core.Core' [ERROR] Line 96: Value 'ie6' in not a valid value for property 'user.agent' I am trying to

Strange error during running GWT 2.7 in DevMode

蹲街弑〆低调 提交于 2019-12-24 17:39:25
问题 What is wrong? I founded some discussion about it but without solution https://plus.googleapis.com/communities/116543000751323604177/stream/1cf77106-8055-472e-abb2-ac58a512b663 09:43:36.128 [ERROR] [MyApplication] Exception initializing module java.lang.IllegalArgumentException: null at org.objectweb.asm.ClassVisitor.<init>(Unknown Source) at org.objectweb.asm.ClassVisitor.<init>(Unknown Source) at com.google.gwt.dev.javac.BytecodeSignatureMaker$CompileDependencyVisitor.<init>

GWT + OSX = SWT issues

天涯浪子 提交于 2019-12-24 17:22:46
问题 I'm new to GWT development and I'm putting myself through the paces with Google's tutorial but I'm getting errors: java[10574:80f] [Java CocoaComponent compatibility mode]: Enabled 2009-11-06 15:27:38.769 java[10574:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000 I checked my Java prefs and I have Java SE6 (64 bit) as the preferred JVM. I'm really not sure how to clear this up. 回答1: I think gwt hosted mode only works in a 32 bit environment, as of gwt

How to add static content to a GWT project in eclipse

怎甘沉沦 提交于 2019-12-24 17:18:54
问题 any quick hint to an article for adding static content to a GWT project (ex:images) Regards 回答1: You have basically two ways of doing this: ImageResource Article 1 Article 2 You can just drag and drop your image into the war-folder of your project. If you want to display that image you would just create an HTML object and use the setContent()-function to display it(using the img-tag you know from HTML) I would use number 1 because it uses css sprites to optimize the loading time of your