gwt

Easiest way to enable Google authentication for GWT application? (non-GAE-hosted)

谁都会走 提交于 2020-01-02 06:19:16
问题 What is the easiest way to enable existent GWT application authenticate users using Google account? I tried googling (lol) it but have found no solutions that could work out of the box. Is there a library to solve this problem in like 10 lines of code? P.S. The application I've mentioned isn't hosted at Google Apps if it matters. 回答1: I have been looking at gwt-oauth2 for this purpose recently. It looks pretty decent, and the docs are straightforward. Perhaps it could be of interest. 来源:

How to make GWT find source in linked folders?

烈酒焚心 提交于 2020-01-02 05:59:29
问题 I'd like to create a GWT (2.0.4) project but with my source in a common java directory that's not kept under the GWT project directory. I did the following: 1) Created new project 'game' in package com.mycomp.project.game . This worked fine, with its source under C:\java\Projects\game\src\com\mycomp\project\game. 2) Copied the code into C:\java\com\mycomp\project\game 3) Deleted the directories under C:\Projects\game\src\ 4) File, New Folder, Advanced/Link to folder in filesystem to make a

GWT getting path of the application

假如想象 提交于 2020-01-02 05:56:59
问题 I have a GWT application which when I deploy locally homepage after running the application is localhost:8888/myapp.html but when we deploy it to the server, after the application running its homepage is 107.20.239.198:8080/myapp/myapp.html. Now all the relating paths my application fail. Places where I require the exact path, I cant get that. As now the path is different. For example when I click in a particular widget in my application -> It redirects to the path '/# + "place no.1" + "place

GWT : fileUpload.getFileName() & fakepath

拥有回忆 提交于 2020-01-02 05:13:12
问题 I am working on a GWT project (web application) : at some point, users can upload a file through the application via a FormPanel. As I need the filename, I thought I could use : FileUpload upload = new FileUpload(); // ... String name = upload.getFileName(); And name turns out to be something like this : C:\fakepath\whatever.txt . Is this cross-platform ? What happens on other OS (I am using Windows) ? 回答1: The name returned by a upload form is dependent on the browser's security settings. On

GWT : fileUpload.getFileName() & fakepath

六月ゝ 毕业季﹏ 提交于 2020-01-02 05:12:05
问题 I am working on a GWT project (web application) : at some point, users can upload a file through the application via a FormPanel. As I need the filename, I thought I could use : FileUpload upload = new FileUpload(); // ... String name = upload.getFileName(); And name turns out to be something like this : C:\fakepath\whatever.txt . Is this cross-platform ? What happens on other OS (I am using Windows) ? 回答1: The name returned by a upload form is dependent on the browser's security settings. On

Problems using JSONParser with GWT

一笑奈何 提交于 2020-01-02 04:58:06
问题 I have a simple GWT app that needs to get some JSON data from another server. I've followed a couple of tutorials to get to this point. When I try to compile it, I get errors [ERROR] Line 44: No source code is available for type com.google.gwt.json.client.JSONValue; did you forget to inherit a required module? [ERROR] Line 44: No source code is available for type com.google.gwt.json.client.JSONParser; did you forget to inherit a required module? [ERROR] Line 46: No source code is available

Access web service from GWT

自作多情 提交于 2020-01-02 04:47:11
问题 Is there any way how I can access a web service from GWT using its WSDL? Previously I was trying to use the generated classes from ws-import.... but then someone pointed out to me that GWT cannot handle all Java, just a subset of it, hence it won't understand the ws-import classes. Thanks and regards, Krt_Malta 回答1: GWT can access web services using a RequestBuilder, which makes HTTP calls to a service and then gets access to its response. Since your web service is using SOAP, the response

Question on the MVP within GWT. (General Overview)

我与影子孤独终老i 提交于 2020-01-02 04:26:30
问题 Could any of you guys give a good explanation of the MVP pattern with regards to use in a GWT application. any example i have viewed, i found it hard to understand the concept of implementing the pattern. Questions such as what is it? what does it achieve, how is it implemented and how can it be extended for future modifications? 回答1: http://code.google.com/webtoolkit/articles/mvp-architecture.html and http://code.google.com/webtoolkit/articles/mvp-architecture-2.html 回答2: The primary goal of

Which doctype should I use for GWT 2.0?

∥☆過路亽.° 提交于 2020-01-02 03:37:11
问题 I think I should use <!DOCTYPE html> for my new GWT application; I understand that doing so will put my application into standards-compliant mode. Am I correct? Are there any disadvantages to using this doctype? Does GWT work properly in standards-compliant mode? I'm wary because the GWT tutorial still uses the HTML 4.01 transitional doctype. 回答1: The new layout panel functionality in GWT 2.0 requires standards mode and does not work in quirks mode. 回答2: Using <!DOCTYPE html> will put the web

SMARTGWT DataSource (GWT-RPC-DATASource) LISTGRID

大城市里の小女人 提交于 2020-01-02 03:13:50
问题 I have a problem with datasource binding in ListGrid with smartGWT. I have GWT-RPC-DataSource and i have set it as my datasource grid.setDataSource(ds); On one button click I have some changes in my datasource and I am generating new datasource and rebinding with smartgwt's grid. but it fails. I have tried grid.redraw() function to redraw the grid. Below is my class for GWTRPCDATASOURCE public abstract class GwtRpcDataSource extends DataSource { /** * Creates new data source which