gwt

Serializable Hibernate data object for GWT RPC

你离开我真会死。 提交于 2020-01-25 04:51:10
问题 I have a simple POJO mapped to a table using Hibernate. Which works just fine. public class Patient implements Serializable { private int patientId; private String firstName; private String lastName; private Set<Prescription> patientPrescriptions; public Patient() {} ... } My problem is I want to be able to serialize the object so I can get it trough the wire for my GWT-RPC calls. If my async service return this object I get an error: com.google.gwt.user.client.rpc.SerializationException:

Eclipse GWT sample greeting project RPC failure

爱⌒轻易说出口 提交于 2020-01-25 03:48:06
问题 I have been working with Eclipse for a little while now but all of a sudden my GWT projects don't run anymore when I (after compiling) copy the the content of the 'war' folder to my 'Sites' folder on the mac. This was working absolutely fine but now I keep getting an RPC Failure - An error occurred while attempting to contact the server. Please check your network connection and try again. I am simply creating new Google Web Application projects now (they have the greeting sample build in) and

create temp files in tomcat webapps folder

筅森魡賤 提交于 2020-01-25 03:42:44
问题 I have a Google Web Project which works perfect on Development mode. Somewhere inside this project, I create some .xml files which I delete after parsing. When I deploy the .war file of my project in Tomcat7 (var/lib/tomcat7/webapps) (I use the tomcat manage to deploy it) the project fails to create any file. I've tried all possible paths inside the webapps folder. I even tried context.getRealPath("/")+"/ROOT/tmp/" but nothing happens 回答1: You should be using the temp folder instead of

how to replace the deprecated constructor Date(int, int, int) in JAVA GWT?

蹲街弑〆低调 提交于 2020-01-25 02:21:06
问题 I'm working on an existing GWT app . I'm seeing this warning the constructor Date(int, int, int) is deprecated Since java.util.Calendar is not supported in GWT client side , I'm looking for how to replace this methode . 回答1: There's no replacement for GWT (for now at least, java.time support/emulation should come some time in the future). Just put @SuppressWarnings("deprecation") if you want to get rid of the warning. 回答2: Use always Calendar (GregorianCalendar would suit what you need). And

GWT Editor Framework: Drop Down List

↘锁芯ラ 提交于 2020-01-24 22:34:16
问题 I'm looking for someone to point me in the right direction (link) or provide a code example for implementing a drop down list for a many-to-one relationship using RequestFactory and the Editor framework in GWT . One of the models for my project has a many to one relationship: @Entity public class Book { @ManyToOne private Author author; } When I build the view to add/edit a book, I want to show a drop down list that can be used to choose which author wrote the book. How can this be done with

How to create Eclipse GWT Designer Project, something is off?

荒凉一梦 提交于 2020-01-24 20:47:05
问题 After downloading the latest Eclipse (Luna 4.4.1), I installed the GWT / GWT designer plugin. I concluded I that I am missing WindowsBuilderPro, and so I installed it via Eclipse Help->Install New Software. Now I want to create a new GTW Designer project, and get the following choices, which I think are wrong: Tutorials, perhaps older, show the following project choice: Is my installation messed up? I reversed the installation order, and nothing changed. Is GWT Designer out of date, should I

Non Relational Database , Key Value or flat table

大城市里の小女人 提交于 2020-01-24 19:35:49
问题 My application needs configurable columns , and titles of these columns get configured in the begining, If relation database I would have created generic columns in table like CodeA, CodeB etc for this need because it helps queering on these columns (Code A = 11 ) it also helps in displaying the values (if that columns stores code and value) but now I am using Non Relational database Datastore (and I am new to it), should I follow the same old approach or I should use collection (Key Value

Non Relational Database , Key Value or flat table

情到浓时终转凉″ 提交于 2020-01-24 19:35:41
问题 My application needs configurable columns , and titles of these columns get configured in the begining, If relation database I would have created generic columns in table like CodeA, CodeB etc for this need because it helps queering on these columns (Code A = 11 ) it also helps in displaying the values (if that columns stores code and value) but now I am using Non Relational database Datastore (and I am new to it), should I follow the same old approach or I should use collection (Key Value

gradle providedCompile for gwt-user/dev causes other jars to disappear from WAR

旧时模样 提交于 2020-01-24 18:40:11
问题 I assemble WAR for GWT application through gradle. When GWT is included like dependencies { compile "com.google.gwt:gwt-user:2.5.1" compile "com.google.gwt:gwt-dev:2.5.1" ... } then I have gwt-user.jar and gwt-dev.jar in resulting WAR file. They are not really needed and are big. If I delete these jars from WAR - application works well. But when I try to assemble WAR without these jars inside using dependencies { providedCompile "com.google.gwt:gwt-user:2.5.1" providedCompile "com.google.gwt

gwt click event document

心不动则不痛 提交于 2020-01-24 10:41:25
问题 i need to register a cross platform and version independent click event to the document. that means i have a two text box and submit button but when i click outside of the two text box and submit button then alert will be displayed .how can i achive this by gwt document.get().addMouseClick ??? 回答1: The easiest way that comes to mind is to wrap everything in a FocusPanel: ClickHandler clickHandler = new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.alert("TextBox