gwt-rpc

gwt - Using List<Serializable> in a RPC call?

不问归期 提交于 2019-12-17 07:50:40
问题 I have a RPC service with the following method: public List<Serializable> myMethod(TransactionCall call) {...} But I get a warning when this method is analyzed, and then the rpc call fails Analyzing 'my.project.package.myService' for serializable types Analyzing methods: public abstract java.util.List<java.io.Serializable> myMethod(my.project.package.TransactionCall call) Return type: java.util.List<java.io.Serializable> [...] java.io.Serializable Verifying instantiability (!) Checking all

gwt - Using List<Serializable> in a RPC call?

放肆的年华 提交于 2019-12-17 07:49:08
问题 I have a RPC service with the following method: public List<Serializable> myMethod(TransactionCall call) {...} But I get a warning when this method is analyzed, and then the rpc call fails Analyzing 'my.project.package.myService' for serializable types Analyzing methods: public abstract java.util.List<java.io.Serializable> myMethod(my.project.package.TransactionCall call) Return type: java.util.List<java.io.Serializable> [...] java.io.Serializable Verifying instantiability (!) Checking all

Manually generating x-gwt-rpc from Python

最后都变了- 提交于 2019-12-13 13:40:16
问题 I want to access a GWT service from a Python script, so I want to generate a x-gwt-rpc request manually. Can't seem to find any info on the format of a GWT RPC call, since everybody does it from Java (so the call is generated by the framework). Where can I find some detailed documentation about this format? 回答1: Don't think it is a trivial task to do that, but because gwt is opensource i would say that the source-code is a pretty good documentation for how it works, if you know java that is.

JDO basics: List or array won't retrieve or return with GWT RPC

寵の児 提交于 2019-12-13 10:47:42
问题 I've been using Objectify up till now, but now I have to deal with some code using JDO. I'm having problems with basic stuff that is easy with Objectify, specifically: if an object has either a List or an array as a member, I can't get that to persist. I have a class FileInfoBatch (code indents lost here, don't know why) containing a List of FileInfo: @PersistenceCapable public class FileInfoBatch implements Serializable{ private static final long serialVersionUID = 1L; @PrimaryKey

GWT client-side image upload & preview

为君一笑 提交于 2019-12-13 08:08:30
问题 I am using GWT and I want to upload an image and display its preview without interacting with the server, so the gwtupload lib does not look like a way to go. After the image is uploaded and displayed, user can optionally save it. The idea is to send the image through GWT-RPC as a Base64 encoded String and finally store it in the DB as a CLOB. Is there any easy way to do it either with GWT or using JSNI? 回答1: This document answers your question: Reading files in JavaScript using the File APIs

GWT RPC Call gets return object from another GWT RPC call

北城以北 提交于 2019-12-12 11:53:49
问题 I have a strange issue (hope you can help): I am working on a GWT Web Application that has times when more than 4 - 5 GWT RPC calls are made in the same time - as far as time is concerned. Every once in a while - once every 15 calls maybe? The return Object from one call, gets 'assigned' to another. I have proof of this by using the gwt-log library on the client side. Here the return object of the HistoryChangesCount call, got assigned to the modelingGetTemplates call also. Thus resulting in

Error 404 on GWT RPC

夙愿已清 提交于 2019-12-12 10:19:54
问题 I've written a quick GWT app with the following code: MyTaskService package com.google.gwt.mytasks.client; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath("taskAction") public interface MyTasksService extends RemoteService { public void addTask(String title, String description); } web.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun

GWT RPC cannot compile the project

一世执手 提交于 2019-12-12 03:23:30
问题 This question is an extension of previous question. GWT Cannot compile the project Please have a look and tell me what's wrong with it. Client side. Twitter.java package in.isuru.twitter.client; import java.util.ArrayList; import twitter4j.Tweet; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.FlexTable; import com.google.gwt.user.client.ui.FlexTable.FlexCellFormatter

How to transfer a file From Client to Server in GWT using fileUpload

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 03:17:09
问题 I have code to browse a file . i have to send the file to server side. I dont know how to pass file to Server Using RPC. formPanel.addFormHandler(new FormHandler() { public void onSubmitComplete(final FormSubmitCompleteEvent event) { // TODO Auto-generated method stub Window.alert(event.getResults()); } public void onSubmit(final FormSubmitEvent event) { // TODO Auto-generated method stub event.setCancelled(true); } }); formPanel.setMethod(FormPanel.METHOD_POST); formPanel.setEncoding

How to Upload a file using GWT

末鹿安然 提交于 2019-12-12 03:16:04
问题 I am new to GWT. I am trying to Upload a file. I need the data and the name of the file on the server side. the file is doc type and can be of size more then 1 MB to 5MB. Plz suggest me How to do it. any sample code will be of great help. 回答1: There is a really nice little libary called GwT-UPLOAD: http://code.google.com/p/gwtupload/ There is a quick start guide here: http://code.google.com/p/gwtupload/wiki/GwtUpload_GettingStarted 来源: https://stackoverflow.com/questions/9616117/how-to-upload