gwt

GWT Linechart options

给你一囗甜甜゛ 提交于 2020-01-11 10:14:13
问题 I need to set different line width to different series in a chart. This can be done using the series option here http://code.google.com/intl/sv-SE/apis/chart/interactive/docs/gallery/linechart.html#Configuration_Options . However this option is not available in GWT which leads to my question. I could: Write a wrapper for GWT. http://code.google.com/p/gwt-google-apis/wiki/VisualizationNewWrapper Use the Options.set(...) method. http://gwt-google-apis.googlecode.com/svn/javadoc/visualization/1

How to parse ASP.NET JSON Date format with GWT

醉酒当歌 提交于 2020-01-11 09:14:05
问题 ASP.NET JSON serialize DateTime to the following format "/Date(1251877601000)/". Pls, help parse this string into the java(GWT) Date object. At this time the solution I came with is parsing with regex, extract long.. but then I cannot push long through JSNI. 回答1: function FixJsonDates(data) { //microsoft script service perform the following to fix the dates. //json date:\/Date(1317307437667-0400)\/" //javasccript format required: new Date(1317307437667-0400) //copied from micrsoft generated

GWT, Google App Engine, TimerTask or Thread in ServiceImpl throw exception

百般思念 提交于 2020-01-11 08:33:31
问题 I am using GWT and Google App Engine. I have array of records and I want to update them every 30 mins. In the ServiceImpl I have the fallowing code : new Timer().schedule(new TimerTask(){ @Override public void run() { try { Thread.sleep(30000); } catch (InterruptedException e) { e.printStackTrace(); } result = updateFeeds(); } }, 30000,Long.MAX_VALUE); When I run the application and when I get : com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.List

GWT Compiled Application cannot interact with php backend

两盒软妹~` 提交于 2020-01-11 07:46:10
问题 I was developing a GWT application with a PHP backend. During development, everything was OK. I was developing my GWT app from my webroot and everything was working correctly and was properly interacting with php. However, when I compiled the GWT app and place it the same place where my original GWT app was and try to run it, the interface shows up but every place where to i need to interact with the server, it fails outputting application error messages which i set whenever my web app cannot

jQuery / HTML5 / gwt app for WP8 (Lumia 920) device: vertical css scroll fix

二次信任 提交于 2020-01-11 07:41:29
问题 Problem: I try to fix this phenomenom about scrolling out of app boundaries: (Picture source: Prevent scrolling out of CordovaView in Cordova for Windows Phone 8 ) Approach #1 body { overflow: hidden; -ms-content-zooming: none; } this css snippet should fix scroll so that application is stabile when scrolling the content, which it does perfectly, but it leaves application unstable. Application hands now and then without any visible reason. Showing three different views in row freezes app.

working with Query String in GWT

我的梦境 提交于 2020-01-11 05:36:10
问题 I have to created a dynamic URLcontaining the user id and email parameters, which will direct to sign up form in my GWT application. I want to set and get the parameters in the query string. I have referred tp http://code.google.com/p/gwt-examples/source/browse/trunk/System/src/com/gawkat/gwt/system/client/global/QueryString.java?r=1241 but here QueryStringData is inaccessible to my project.Please tell me how I can do it? Any alternative could also help me. 回答1: Don't think there's a simple

Debugging in GWT Super Dev Mode?

本小妞迷上赌 提交于 2020-01-11 02:31:46
问题 So far, debugging in GWT super dev mode seems to be a real pain. If there are any errors, there is no stack trace, just a cryptic message given in the chrome console. Is there a way to get all errors to print a stack trace, like in the dev mode? I already have source maps on I believe, since if I go to Sources in Chrome's dev tools, I can see the source code of my java classes. 回答1: GWT.setUncaughtExceptionHandler lets you set an exception handler, which will handle all exceptions. You can

五分钟让你彻底了解TDD、ATDD、BDD&RBE

家住魔仙堡 提交于 2020-01-10 14:44:19
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 实践测试驱动开发(TDD) 在 目前比较流行的敏捷开发模式(如极限编程、Scrum方法等)中,推崇“ 测试驱动开发 (Test Driven Development,TDD)”——测试在先、编码在后的开发实践。TDD有别于以往的“先编码、后测试”的开发过程,而是在编程之前,先写测试脚本或设计测试用例。TDD在敏捷开发模式中被称之为“ 测试优先的编程 (test-first programming)”,而在IBM Rational统一过程(Rational Unified Process,RUP)中被称为“ 测试优先的设计 (test-first design)”。所有这些,都在强调“ 测试先行 ”,使得开发人员对所做的设计或所写的代码有足够的信心,同时也有勇气进行设计或代码的快速重构,有利于快速迭代、持续交付。 重构的前提就是测试就绪(testing is ready),在这样的前提下,重构的风险就很低,否则就有比较高的风险。 TDD具体实施过程,可以看作两个层次,如图1所示: 在代码层次,在编码之前写测试脚本,可以称为单元测试驱动开发(Unit Test Driven Development,UTDD) 在业务层次,在需求分析时就确定需求(如用户故事)的验收标准,即验收测试驱动开发(Acceptance

GWT-RPC vs HTTP Call - which is better?

痴心易碎 提交于 2020-01-10 14:32:12
问题 I am evaluating if there is a performance variation between calls made using GWT-RPC and HTTP Call. My appln services are hosted as Java servlets and I am currently using HTTPProxy connections to fetch data from them. I am looking to convert them to GWT-RPC calls if that brings in performance improvement. I would like to know about pros/cons of each... Also any suggestions on tools to measure performance of Async calls... [A good article on various Server communication strategies which can be

Parse json with gwt 2.0

有些话、适合烂在心里 提交于 2020-01-10 07:07:19
问题 i'm trying to parse JSON coming from a flow in my gwt 2.0 application. What is the best way ? Should I use javascriptobject ? JSonParser ? I'm lost with what I'm founding on the web because there's never the gwt version. String text = "{\"item\":[{\"Id\":\"1\",\"Name\":\"Bob\"},{\"Id\":\"2\",\"Name\":\"John\"},{\"Id\":\"3\",\"Name\":\"Bill\"}]}"; How can I play with my list of items ? Thanks in advance for any help 回答1: The answer depends on how much you trust that JSON :) Sure, it might be