gwt

Wicket vs GWT - Advice needed

风格不统一 提交于 2020-02-24 11:07:27
问题 I am developing a Java EE based web application. We have a very limited time to come up with a alpha version and trying to decide on a web framework to use. It has to be something easy to learn but powerful. Standard JSP/Servlet is not an option here due to the time it takes for the development. Appreciate if anyone could advice. Current options are Wicket and GWT. (JSF is also an option) 回答1: Wicket is component-based and comes with a bunch of standard components (like pagination, auto

Wicket vs GWT - Advice needed

你。 提交于 2020-02-24 11:06:30
问题 I am developing a Java EE based web application. We have a very limited time to come up with a alpha version and trying to decide on a web framework to use. It has to be something easy to learn but powerful. Standard JSP/Servlet is not an option here due to the time it takes for the development. Appreciate if anyone could advice. Current options are Wicket and GWT. (JSF is also an option) 回答1: Wicket is component-based and comes with a bunch of standard components (like pagination, auto

Gwt Request Factory. Generics and Inheritance on client side

时光总嘲笑我的痴心妄想 提交于 2020-02-23 05:49:15
问题 I am trying to write a generic class to avoid code repetition. I would like to have generic methods for: Get Entity/Model from server by id. Get List of all Entities/Models from server. Send to server and save in db Entity/Model. It should work with Generic classes, e.g.: Services<PizzaProxy> factory = GWT.create(Services.class); factory.initialize(new SimpleEventBus()); GenericContext<PizzaProxy> context = factory.genericContext(); context.get().to(new Receiver<List<GenericProxy<PizzaProxy>>

Gwt Request Factory. Generics and Inheritance on client side

六眼飞鱼酱① 提交于 2020-02-23 05:46:48
问题 I am trying to write a generic class to avoid code repetition. I would like to have generic methods for: Get Entity/Model from server by id. Get List of all Entities/Models from server. Send to server and save in db Entity/Model. It should work with Generic classes, e.g.: Services<PizzaProxy> factory = GWT.create(Services.class); factory.initialize(new SimpleEventBus()); GenericContext<PizzaProxy> context = factory.genericContext(); context.get().to(new Receiver<List<GenericProxy<PizzaProxy>>

Set widget to TreeItem on gwt

北城余情 提交于 2020-02-23 04:31:18
问题 I have to implements a tree on gwt. I'm implementing an object that extends Widget to set it on a TreeItem. The problem is that if I set on a TreeItem this object (that have only Strings and Integers fields) I can't see anymore the tree. Where is the problem? I can't see it. private Tree frontEndTree; private void buildTree(HashMap<Long, Categoria> categoriaMap) { for(Categoria categoria : categoriaMap.values()) { if(categoria.getLevel() != 1) continue; TreeItem firstLevel = //this

Firestore web code sample gives invalid argument type

若如初见. 提交于 2020-02-21 06:31:27
问题 I am trying out the new Firestore by Firebase. When I run the code sample from https://firebase.google.com/docs/firestore/manage-data/add-data?authuser=0, I am getting an error. // Add a new document with a generated id. db.collection("cities").add({ name: "Tokyo", country: "Japan" }) .then(function(docRef) { console.log("Document written with ID: ", docRef.id); }) .catch(function(error) { console.error("Error adding document: ", error); }); Exception caught: (FirebaseError) : Function

Firestore web code sample gives invalid argument type

痞子三分冷 提交于 2020-02-21 06:31:26
问题 I am trying out the new Firestore by Firebase. When I run the code sample from https://firebase.google.com/docs/firestore/manage-data/add-data?authuser=0, I am getting an error. // Add a new document with a generated id. db.collection("cities").add({ name: "Tokyo", country: "Japan" }) .then(function(docRef) { console.log("Document written with ID: ", docRef.id); }) .catch(function(error) { console.error("Error adding document: ", error); }); Exception caught: (FirebaseError) : Function

Firestore web code sample gives invalid argument type

不问归期 提交于 2020-02-21 06:31:06
问题 I am trying out the new Firestore by Firebase. When I run the code sample from https://firebase.google.com/docs/firestore/manage-data/add-data?authuser=0, I am getting an error. // Add a new document with a generated id. db.collection("cities").add({ name: "Tokyo", country: "Japan" }) .then(function(docRef) { console.log("Document written with ID: ", docRef.id); }) .catch(function(error) { console.error("Error adding document: ", error); }); Exception caught: (FirebaseError) : Function

How to remove a row from the Cell Table

你说的曾经没有我的故事 提交于 2020-02-11 08:09:06
问题 At first I used the Grid. After creating a new version of the GWT, I want to replace the Grid on the CellTable. 回答1: Check out the javadoc for details. My example is like the one you'll find there (just a little extended): public void onModuleLoad() { final CellTable<Row> table = new CellTable<Row>(); TextColumn<Row> firstColumn = new TextColumn<Starter.Row>() { @Override public String getValue(Row object) { return object.firstColumn; } }; table.addColumn(firstColumn, "header one");

How I deploy my libgdx project to HTML/JS using TeaVM

半世苍凉 提交于 2020-02-08 10:31:10
问题 I recently created a libGDX project using vis-runtime version 0.3.4 . As due to long build times and requirement for separate runtime-gwt project, GWT support was dropped in 0.3.3 version of vis-runtime. Maybe TeaVM can be used as web backend, so I am looking for integration of TeaVM with vis-runtime library ? Take a look of this project (integration of libgdx with teaVM) that uses Maven as build system not Gradle. Any help would be greatly appreciated. 回答1: I created TeaVM backend for libGDX