gwt

GWT auto refresh

假如想象 提交于 2019-12-25 05:22:08
问题 I am working in GWT project. As per the requirement, i have to provide auto-refresh to one of my screen. My senior told me to use <meta http-equiv="refresh" content="300"> in that screen page. But as GWT code is written in java only, so i wonder how can I use it in java file. Can somebody help? 回答1: Depending on how you are managing history and if you are not using places. You can use the location reload event inside a timer. If you are using places, you can use your place controller to re

Error while deploying a project to google app engine

喜夏-厌秋 提交于 2019-12-25 05:18:20
问题 I have a problem trying to deploy my project: «Found a jar file too large to upload». The problem occurs when the script tries to upload appengine-api-1.0-sdk-1.5.3.jar (15.8 MB although only 10MB files are allowed). The problem is well-known since 2009. There are a lot of tickets in google issue tracker and here as well. There are a lot of messages of this kind all over the web. But all of them are referring to the two solutions: 1) Using the --enable_jar_splitting. Surely I've tried to use

GWT RPC GWTTestCase + GUICE 2.0

五迷三道 提交于 2019-12-25 05:18:13
问题 Im trying to create an app with the GWT on the front end and GUICE on the backend served on the Google App Engine. I have created a very simple app using the example setup http://stuffthathappens.com/blog/2009/09/14/guice-with-gwt/#comment-49355 The app works fine, however I wanted to add some unit tests for the GWT RPC calls. I am trying to use the GWTTestCase as below: `public void testContactMessageService() { ContactMessage message = new ContactMessage(); message.setName("Jeff"); message

In PlayN, how can I build the HTML version of my project from the command line?

荒凉一梦 提交于 2019-12-25 05:14:43
问题 Currently I'm building it in Eclipse using the GWT plugin. I'd like to automate deployment to my development webserver using a script that does the GWT compilation from the command line. I've followed the directions in the Running Via Maven section of the Getting Started page: mvn -Phtml integration-test But it tries to build all the versions, erring out on the Android build (which I'd prefer to skip at the moment) and throws a warning stating the html profile doesn't exist: [INFO] ----------

List all the widgets of a page/panel in GWT

早过忘川 提交于 2019-12-25 05:06:19
问题 Is there a programmatic way to read all the widget a GWT page or Panel contains? I have several error labels in my form, all suffixed by "ErrorLabel" and I'd like to find them and clear them. I can do a list of them, but I figured out I can actually automate that if I had some... I am using UiBinder. 回答1: Use recursion method to get all the children of any component. Steps to follow: (How to read the UiField names?) Add below entry in you gwt.xml <inherits name="com.google.gwt.user.Debug"/>

Weird Exception when placing a marker with LatLng

旧街凉风 提交于 2019-12-25 05:05:18
问题 I have this code that should place a marker on a map using LatLng ... geocoder = Geocoder.create(); myOptions = MapOptions.create(); myOptions.setZoom(18); myOptions.setMapTypeId(MapTypeId.HYBRID); myOptions.setMapMaker(true); map = GoogleMap.create( Document.get().getElementById("map_canvas"),myOptions); location = LatLng.create(45.48592686713835,-73.49009937672122); map.setCenter(location.getGeometry().getLocation()); marker = Marker.create(); marker.setMap(map); marker.setPosition(location

Checkboxes to select an entry in a grid (GWT)

不羁的心 提交于 2019-12-25 04:54:08
问题 Basically, I want to create a table like this: I created a grid, and added the text values, and the checkboxes. Exactly like in your email box, where you select some mails, and delete them or mark spam. This is what I have done till now: Grid grid = new Grid(4, 3); for (int i = 0; i < jsonArray.size(); i++) { JSONObject jsonValue = jsonArray.get(i).isObject(); String lid = jsonValue.get("id").isString().toString() .replace("\"", " ").trim(); String email = jsonValue.get("email-id").isString()

GWT Designer not working with Eclipse 4.2 service release 2?

前提是你 提交于 2019-12-25 04:54:04
问题 I'm trying to do this tutorial after having installed Eclipse Juno 4.2 service release 2 (Java EE distribution) und following exactly the GWT installation instructions over here. However, I neither get the WindowBuilder entry under Preferences, nor is there a WindowBuilder entry in the new projects dialog appearing. What am I doing wrong? I'm running Ubuntu 12.04.02 LTS on amd64, and I have tried oracle jdk 7u17 and Ubuntu's own jdk6 distribution, but to no avail... Just tried the same in

How do I manage sessions in a hybrid Ruby/GWT system?

橙三吉。 提交于 2019-12-25 04:51:48
问题 I currently have a Ruby on Rails system, and there are plans to port it to GWT. Before we do this, the powers that be want to have a proof of concept with part of the site being written in GWT to show that GWT can use and display the current content. The flow of data in the GWT portion of the system is as follows: Client sends an RPC call to the GWT server Server receives RPC call, then makes an equivalent Ajax request to the Rails system Server generates a Java object from the result of the

How to return an iText PDF document to the client side

余生颓废 提交于 2019-12-25 04:50:23
问题 I am trying to return an iText generated PDF from the server side to the client side to enable the user to store it. I am following How to convert iTextPDF Document to Byte Array (AceFunk) private static ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); public static byte[] main(java.util.List<Transcript> listymAwards, String scoutName, String groupName) { Document document = new Document(PageSize.A4, 0f, 0f, 0f, 0f); try { //PdfWriter.getInstance(document, new