gwt

GWT Chrome Extension with manifest_version: 2

半腔热情 提交于 2019-12-22 14:15:44
问题 Has any one been able to make a Chrome extension using GWT and manifest_version 2? I have sandboxed all the GWT generated files also (as suggested here) but it still does not work. manifest.json { "name": "Hello World!", "description": "My first packaged app.", "manifest_version": 2, "version": "0.1", "app": { "background": { "scripts": ["background.js"] } }, "permissions": ["experimental", "appWindow"], "icons": { "16": "calculator-16.png", "128": "calculator-128.png" } } background.js

Mouse Over listener for FlexTable in GWT 1.7?

帅比萌擦擦* 提交于 2019-12-22 14:08:38
问题 How do you add an event listener or handler to widgets in GWT 1.7? I know there are some questions alreayd about this on SO but it seems they are outdated. For example (ignoring the fact that there is a :hover in CSS) how do I add a Hover listener to a FlexTable for example? 回答1: If you want to add a MouseOverHandler to a FlexTable try this: public class MyFlexTable extends FlexTable implements MouseOverHandler, HasMouseOverHandler { public MyFlexTable() { this.addMouseOverHandler(this); }

Google App Engine Security Constraint is not working

99封情书 提交于 2019-12-22 13:34:30
问题 I'm using the following security constraint in the deployment descriptor of my GWT app, which is deployed on Google App Engine (GAE) for Java: <security-constraint> <web-resource-collection> <url-pattern>ds/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>admin</role-name> </auth-constraint> </security-constraint> My app is using Google Accounts for authentication. It works perfectly fine in the hosted mode (Eclipse), but when I deploy the app to GAE, the constraint

GWT client side cropping

爱⌒轻易说出口 提交于 2019-12-22 12:56:16
问题 I'm stuck on integrating gwt with JCrop or imgareaselect javascript libraries I have an image, which url is changing each time the client change the file choosen from its filesystem (using an upload widget). I want the user select the area in its image, this way i will be able to have images with aspect ratio respected respect to the client wishes. Problem is i can't succed in making imgareaselect or jcrop called on load event, each time i have null, if i try jquery ("imagepreview") jquery is

How does the GWT client java is converted to a HTML?

余生颓废 提交于 2019-12-22 12:53:13
问题 I'm developing a GWT web app. I write the code in java in client side. But, when I run the app, it appears as a plain HTML page. What is happening when I compile and run a GWT application. i.e. How does the java class gets converted to HTML? and where does this HTML code reside? I could see a lot of html in /war/. But, none were clear enough for me to understand. Could someone help me understand how GWT compilation works? I have read some online articles: http://code.google.com/webtoolkit/doc

GWT Timer cancel not working

旧街凉风 提交于 2019-12-22 12:46:30
问题 I am trying to write a code to differentiate between simgle and double clicks using GWT and GWTQuery. I got the idea here. So I translated it into GWT like this: (my app can't have global variables, so I am doing that part with element attributes instead): $("img").live("click", new Function() { public boolean f(Event event) { String clicksString = $(event).attr("clicks"); int clicks = Integer.parseInt(clicksString); clicks++; $(event).attr("clicks",String.valueOf(clicks)); Timer t = new

GWT + entities + JPA + DTO + Dozer

谁都会走 提交于 2019-12-22 12:39:54
问题 I am wondering what is the best way to handle mapping of entity beans (JPA 2) to DTOs. Since you cannot use entity beans "directly" with GWT, you need to handle DTOs instead. I have several entities with various relationships (OneToOne, OneToMany, ManyToMany with a join table etc). Initially i started converting all entities to DTOs by hand with the help of a class MyEntityTransform.java with methods like : static final public CarBean persistant2Bean(CarPersist) { return new CarBean

Can GWT Properties be used from the server?

女生的网名这么多〃 提交于 2019-12-22 12:38:54
问题 I have a GWT app that uses GWT RPC to talk to App Engine servlets. I would like to use constants defined in a .properties file on the server. Is that possible? 回答1: To enable .properties in client you use GWT.create(file_name.properties); But this combination don't work on server-side, cause it's only availible on client-side, you'll get this error: GWT.create() is only usable in client code! It cannot be called, for example, from server code. But, I suppose, you can use standard approach of

Calling Native(C++) Code in GWT

一曲冷凌霜 提交于 2019-12-22 11:29:19
问题 I am developing an application in GWT which needs to call a native C++ code in Directshow to do some multimedia processing.I am guessing that I cant use JNI because GWT converts code to javascript.I did have a look at similar posts on the forum(and on GWT site about JSNI) but cant find a example that specifically talks about calling C++ code from GWT(its mostly about calling Java code from Javascript).Can anyone throw some light on this or direct me to a tutorial? 回答1: First of all, have a

CellList GWT CSS Style

Deadly 提交于 2019-12-22 11:18:44
问题 I created a CellList in my entry point. Now I want to style it.( Changing the color of selected cell from blue to dark black ) In my knowledge, I only need to override the style of cellList, choose the selected one and change the background color (and then save inside the module.css) So this is what I came with. @sprite .cellListSelectedItem { /*gwt-image: 'cellListSelectedBackground';*/ /*BEFORE : background-color: #628cd5;*/ background-color: #2D2D2D; color: white; height: auto; overflow: