gwt

How to share code between multiple GWT eclipse projects?

陌路散爱 提交于 2020-01-22 15:25:49
问题 I would like to have multiple GWT projects that share common code. Is this possible? AFAICT my GWT projects need to each have their own directory, with source directly underneath, which seems to preclude code-sharing. I tried using linked folders, but GWT didn't seem to like that (described here). If I want to do this, is my only choice to turn the code I want to share into a .jar file, and then inherit that in each of my projects' XML files? Is there a way to make eclipse automatically do

Converting GWT Click Events to Touch Events

三世轮回 提交于 2020-01-22 05:50:08
问题 I am working on a Big Project and i have a lot of GWT code written. Now i am working on making the project fully compatible with Tablets like iPad and Android Tablets. As a part of this, i have noticed that touch devices takes 300ms delay to handle click events. In this project, writing touch events again is a very tedious task. I have done a lot of researches in this and found the Google Fast Buttons API used in Google Voice Application. I tried that and its working good but requires a lot

Best way to hide/disable GUI elements based on user's privilege?

南笙酒味 提交于 2020-01-22 05:06:09
问题 I am starting a web application with client side implemented in pure ExtJS and middle tier in Grails. The application has role-based authorization, where a user can have many fine grained roles like SOME_FORM_READ, SOME_FORM_UPDATE, SOME_DATA_DELETE, SOME_DATA_READ, etc. Based on the roles of the user, certain GUI elements need to be disabled or hidden, while others need to be in a read-only mode. I did some search on the web, but didn't find any design pattern that specifically addresses

GWT + ProcessBuilder

廉价感情. 提交于 2020-01-22 02:41:06
问题 Is it possible to use ProcessBuilder with GWT? When I declare an instance of a new ProcessBuilder, I get: java.lang.ProcessBuilder is not supported by Google App Engine's Java runtime environment 回答1: Your question is about GWT supporting ProcessBuilder, but the error you get is from Google App Engine and not GWT related. If you are using ProcessBuilder from a GWT RPC method you shouldn't have any problems. However, you are using Google App Engine as your application server. Google App Engine

Deferred binding failed

谁都会走 提交于 2020-01-21 09:10:22
问题 My application is throwing: java.lang.RuntimeException: Deferred binding failed for 'com.mygwtapp.client.gin.ClientAppGinjector' (did you forget to inherit a required module?) on this code inside the EntryPoint: private final ClientAppGinjector injector = GWT.create(ClientAppGinjector.class); What could be the problem? Here's the full error Log: java.lang.RuntimeException: Deferred binding failed for 'com.mygwtapp.client.gin.ClientAppGinjector' (did you forget to inherit a required module?)

gwt - how can i trigger clickEvent on FileUpload widget?

萝らか妹 提交于 2020-01-21 07:51:08
问题 I' m trying to create a simple Button and when it's clicked I want to trigger a hidden FileUpload widget which is inside a FormPanel. What I have done until now is two things: I have created a native javascript function that clicks the FileUpload widget's element when simple button is clicked. This works fine in Firefox but it doesn't work in Chrome. Also, I have created this: NativeEvent nevent = Document.get().createFocusEvent();//I have tried and createclickEvent() too. DomEvent

GWT how can I reduce the size of code serializers for RPC calls

徘徊边缘 提交于 2020-01-21 03:12:08
问题 I found that the more than 60% of the javaScript code generated by GWT on my application is for RPC serializers. Also I found that serializers are not shared between service interfaces, I mean if I have for example AccountDTO type referenced on 2 rpc service interfaces, I will get 2 serializer classes instead of 1 for the same type. In Order to reduce the size of the compiled code I was thinking that maybe I could use Deferred Binding in order to do a replacement of all the services

Django + GWT or Jquery

為{幸葍}努か 提交于 2020-01-21 03:10:27
问题 I have made a complex models structure in django. I had planned to render this structure using GWT, but with python the option to communicate whit it are: - using JSON and in this case I have to duplicate the models structure in javascript objects (see gwt tutorial). - python-gwt-rpc is a remote procedure call library compatible with gwt, but it seems to me that it's not easy to integrate with django models, and the outdated documentation doesn't help me. The alternative I considering is

GWT Gilead (JPA configuration)

六眼飞鱼酱① 提交于 2020-01-20 09:14:24
问题 From the Gilead official site: Note that you still have to properly initialize PersistentBeanManager with associated PersistenceUtil, proxy store and possibly class mapper. This must be done before any remote call, in Remote Service constructor or in inherited "init" method (do not forget to call super.init() !): public UserRemoteImpl() { HibernateUtil hibernateUtil = new HibernateUtil(MyApplicationHibernateUtil.getSessionFactory()); PersistentBeanManager persistentBeanManager =

Google adt/gwt support for eclipse 4.4 (Luna)

回眸只為那壹抹淺笑 提交于 2020-01-20 04:12:06
问题 Have anyone gotten the release version of eclipse 4.4 to work with adt(Android development) and/or google web toolkit(gwt). It seems like the gwt/adt plugins don't works with eclipse 4.4, so is there a secret place to download new versions or should I keep using 4.3 -( Edit: The reason I thought adt was not working was that the documentation(http://developer.android.com/sdk/installing/installing-adt.html) says that the plugin is called "ADT Plugin" which it is not. 回答1: Google just released