gwt

Can not make GWT application work as Chrome packaged app, probably due to CSP

妖精的绣舞 提交于 2019-12-30 03:18:27
问题 Keep getting CSP errors: "Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'" The problem is probably due to HTML files generated by GWT which contain inline JS. UPD : Changing to manifest version 1 helped, but this is a temporary workaroud, as Chrome 21 complains that it will no longer be supported. UPD2: <add-linker name="xsiframe" /> does not help either 回答1: GWT 2.5.1 has finally fixed this problem. The release notes

How to resolve a memory leak in GWT?

落爺英雄遲暮 提交于 2019-12-30 02:31:54
问题 What's the best way to resolve a GWT memory leak due to the fact that GWT is compiled in javascript and code is written in JAVA ? 回答1: I can recommend 2 things: Read this article Nullify all references when you done with them. Good luck! 回答2: In GWT development mode you can use a Java profiler such as VisualVM or JProfiler (disclaimer: JProfiler is developed by my company) to analyze the heap. The GWT development mode should show the same leak as well, except for the less likely case that the

GWT multi modules for separate HTML pages?

时光总嘲笑我的痴心妄想 提交于 2019-12-30 02:27:05
问题 I am quite new to GWT and going to develop the UI for user-management application using GWT. I am planning to use existing module which created using Spring/Hibernate. I figured out how to integrate GWT with Spring but I am not sure how to design the layout. I want two pages: User registration page (want to embedd GWT widget in HTML) Administration page (seperate HTML as above with GWT widget embedded) I am planing to use Spring Security,shall I use simple JSP login page or can I use RIA GWT

How to use GWT's Editor Framework with gwt-platform?

吃可爱长大的小学妹 提交于 2019-12-30 02:19:09
问题 I'm using gwt-platform and tried to implement GWT's editor framework. But I don't get it working from within the presenter. There are some answers around the web, that say I have to inject the EditorDriver somehow into the Presenter, but I don't know how to do this... At the moment I tried this without success: public class MyPresenter extends Presenter<MyPresenter.MyView, MyPresenter.MyProxy> implements MyUiHandlers { public interface MyView extends View, HasUiHandlers<MyUiHandlers>, Editor

Invoke a GWT RPC service from Java directly

筅森魡賤 提交于 2019-12-30 02:16:39
问题 Is there an easy way to invoke a GWT RPC service endpoint directly from Java code? I mean real Java code, not Java code compiled down into javascript. I ask because we want to run performance benchmarks/stress tests against a GWT RPC interface. I would like to write the test harness in Java and run it in a JVM (as opposed to javascript running in a browser). I figure there must be a way to do this because I assume GWT Hosted mode requires such functionality. However, I can't really find any

Trying to get UIBinder to give me a span not a div

痞子三分冷 提交于 2019-12-30 01:53:04
问题 I am building a widget with UiBinder, and I need to have it enclosed in a <span /> but UiBinder only gives me <div /> . E.g. <g:HTMLPanel /> => <div /> . HorizonPanel, FlowPanel, VerticalPanel also give out only <div /> . Does any one know a solution? 回答1: Try this: <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui'> <g:HTMLPanel tag="span"> <!-- your stuff --> </g:HTMLPanel> </ui:UiBinder> 回答2: You can keep using a <div> but just add

Stand-alone charts in GWT

老子叫甜甜 提交于 2019-12-30 01:40:33
问题 I've been trying to get pretty charts to work in GWT on our internal network. Playing around with GWT-Ext's charts is nice, but it requires flash and is really messy to control (it seems buggy, in general). I'd like to hear about something that works with the least amount of dependencies and it also must work without a connection to the web (so, Google' charts API isn't a solution). Edit: Indeed, I would rather a library that is all client-side. 回答1: I'm building a GWT chart library based on

Can Scala be used to write GWT applications?

不问归期 提交于 2019-12-30 00:50:09
问题 Can Scala be used to write GWT applications? (NOTE: Java/Scala novice here...) 回答1: Short answer is GWT can call into a program written using Scala. The most popular web framework written in Scala is Lift - http://liftweb.net/ and would be an alternative to GWT if you wanted a pure Scala solution. GWT is a web framework written using Java. The client side is written in the Java Language and compiles into JavaScript and the server side is written in Java and can use any resources available in

How to properly include Java sources in Maven?

不问归期 提交于 2019-12-30 00:31:27
问题 I'm working on a very simple blog engine in Java in order to learn multiple technologies. Tech: Spring IoC, Hibernate, jUnit, GWT, and Maven. I created two Maven projects: a core project and a GWT project (which has a reference on the core one) Code is accessible at https://github.com/LaurentT/BlogEngineCore My goal is the following: I want to include Java sources and XML since my GWT project is going to need the Java sources to compile it into JavaScript. I tried to use the following code in

Best data binding solution for GWT

北城以北 提交于 2019-12-29 11:36:32
问题 Have you ever used one of the many half-baked data binding solutions for GWT? If so, how well did it work? I'd like to stop rolling my own bindings for GWT but there's no clear winner in the data binding space. I'd prefer to use something with a future e.g. GWT Incubator but there's nothing there yet. I use GWTDesigner and love it but it doesn't seem to have a solution for this either. Its a pretty fundamental missing feature. Do you know if the GWT team plans to add support for this? In that