gwt

Can't Run html libgdx with libgdx-utils

假如想象 提交于 2020-01-15 09:03:32
问题 Im trying to compile my libgdx game, its working for android and desktop, but not HTML GWT. Im using Intellij / Gradle for the project. I just added the libgdx-utils extension lib found here which seems to be causing the error: https://bitbucket.org/dermetfan/libgdx-utils/wiki/Dependency%20Instructions The error i get when attempting this gradle command ./gradlew html:dist is: :html:compileGwt Compiling module com.xx.xx.GdxDefinition Validating units: [ERROR] Errors in 'file:/xx/xx/xx/screens

GWT 2.7 Logging Is Not Working

白昼怎懂夜的黑 提交于 2020-01-15 07:37:06
问题 I created the sample GWT app in IntelliJ 14 using GWT 2.7 and Java 7. I started Super Dev Mode, but the log statment at the start of onModuleLoad is not printing to the Javascript console. I create a similar example project using GWT 2.5.1 and I was able to get the logging to print using the same logging configuration as described below. CodeServer Startup Message Runing CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.7, -bindAddress, 127.0.0.1, -launcherDir, /Users

RequestFactory: error.getExceptionType() returns null in Receiver#onFailure

99封情书 提交于 2020-01-15 07:37:02
问题 In the server side i have: public void throwException() throws Exception { throw new NullPointerException("fslkdjflks"); } in the client side i have: _requestFactory.myService().throwException().fire(new Receiver<Void>() { @Override public void onSuccess(Void response) { // TODO Auto-generated method stub } @Override public void onFailure(ServerFailure error) { // TODO Auto-generated method stub Window.alert(error.getExceptionType() + " " + error.getMessage()); } }); error.getExceptionType()

RequestFactory: error.getExceptionType() returns null in Receiver#onFailure

可紊 提交于 2020-01-15 07:34:51
问题 In the server side i have: public void throwException() throws Exception { throw new NullPointerException("fslkdjflks"); } in the client side i have: _requestFactory.myService().throwException().fire(new Receiver<Void>() { @Override public void onSuccess(Void response) { // TODO Auto-generated method stub } @Override public void onFailure(ServerFailure error) { // TODO Auto-generated method stub Window.alert(error.getExceptionType() + " " + error.getMessage()); } }); error.getExceptionType()

How Do I Prevent Users From Modifying Resources They Do Not Own?

故事扮演 提交于 2020-01-15 07:08:27
问题 I am writing a server where I have an entity StoreOwner that "owns" or has a @OneToMany relationship to a Store entity (one store owner has 1 to N stores). Each Store has Offer and Item , each also have a @OneToMany relationship with the store (one store has 1 to N offers and 1 to N items). I am already using GWT Xsrf protection and a session ID that gets associated with the logged in user after each log-in (cookie). One thing regarding the session ID: The session ID gets placed in my

GWT - onClick not triggered

陌路散爱 提交于 2020-01-15 06:52:30
问题 I'm having a really weird behaviour on a form. There is a number of text fields with in-line validation, showing an error message below the field if the content is invalid. The validation is triggered on blur. At the bottom of the page there is a "Next" button. On click, a validation is performed and, if everything is ok, the form is submitted. Now, if a mandatory, empty field has focus when I click the button the following happens: onBlur is triggered and in-line validation is performed the

ListEditor with polymorphic types

五迷三道 提交于 2020-01-15 06:30:08
问题 I have searched around and been trying to figure out if I can use the editor framework with polymorphic types. I found this post at Using GWT Editors with a complex usecase which is close to what I am trying to do. I am fairly new to the editor framework, so any help would be much appreciated. For example, here is some of the code, Data Transfer Objects: public class Employee{ public List<Contact> contacts } public class Contact { public class ContactEmail extends Contact {} public class

No persistence providers available for “transactions-optional” after trying the following discovered implementations:

为君一笑 提交于 2020-01-15 06:15:44
问题 I am trying to create a Google App Engine - GAE with JPA 2.0, I have followed all I need to, putting the correct jars in classpath and making sure my Entities are enhanced. But I am having problems creating my EntityManager. My persistence.xml looks like this: <?xml version="1.0" encoding="UTF-8" ?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml

No persistence providers available for “transactions-optional” after trying the following discovered implementations:

喜夏-厌秋 提交于 2020-01-15 06:12:05
问题 I am trying to create a Google App Engine - GAE with JPA 2.0, I have followed all I need to, putting the correct jars in classpath and making sure my Entities are enhanced. But I am having problems creating my EntityManager. My persistence.xml looks like this: <?xml version="1.0" encoding="UTF-8" ?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml

No persistence providers available for “transactions-optional” after trying the following discovered implementations:

喜你入骨 提交于 2020-01-15 06:11:28
问题 I am trying to create a Google App Engine - GAE with JPA 2.0, I have followed all I need to, putting the correct jars in classpath and making sure my Entities are enhanced. But I am having problems creating my EntityManager. My persistence.xml looks like this: <?xml version="1.0" encoding="UTF-8" ?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml