gwt

How to deserialize BigDecimal by using GWT AutoBean?

我是研究僧i 提交于 2020-01-04 13:05:23
问题 I have json coming from server and representing pojos. When i deserialize to json using AutoBean some works some dont! I figure out that those which cant be deserialize has BigDecimal getters/setters. Error: TypeError: Cannot read property 'length' of undefined at java_math_BigDecimal_$initFrom__Ljava_math_BigDecimal_2Ljava_lang_String_2 How to handle BigDecimal into GWT while deserializing with AutoBean? ps: the nested question is this one 回答1: AutoBean expects BigDecimal as strings in the

GWT project external mode Main/Main.nocache.js not found

送分小仙女□ 提交于 2020-01-04 12:48:31
问题 i'm working with GWT and runnin on apache tomcat 7.0.16, when today i tried to start application and i got an error when browser opened. in browser console 404 Main/Main.nocache.js. what can i fix it. when i looked at org.eclipse.wsr.server.core/temp0/wtpwebapps directory cant see Main directory and their content such as nocache.js and other static content. and i checked eclipse war directory Main directory is exist. i think some configurations has changed and tomcat cant publish. my gwt

GWT question on RPC

杀马特。学长 韩版系。学妹 提交于 2020-01-04 06:05:08
问题 I'm trying to understand the RPC functionality which GWT uses, and have followed this guide. It works perfectly OK if I follow the guide and has the call to the server in a separate class file. However when I try to have the call where the entryPoints creates it will not work. I wonder why it is like that and how to fix it? package com.async.me.client; import com.async.me.client.widgets.HelloWidget; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import

GWT question on RPC

孤人 提交于 2020-01-04 06:04:08
问题 I'm trying to understand the RPC functionality which GWT uses, and have followed this guide. It works perfectly OK if I follow the guide and has the call to the server in a separate class file. However when I try to have the call where the entryPoints creates it will not work. I wonder why it is like that and how to fix it? package com.async.me.client; import com.async.me.client.widgets.HelloWidget; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import

Set style to GWT ListBox items

匆匆过客 提交于 2020-01-04 05:52:05
问题 Is there a way to apply css style to GWT ListBox drop-down menu (ex: change color of some items) I can't do it by setting a style to whole ListBox because i wanna different style for each item! Result will be like that: <select class="style1" id="test"> <option class="style2" value=""> </option> <option class="style2" value="AL">Alabama</option> <option class="style6" value="AK">Alaska</option> <option class="style6" value="AZ" class="red">Arizona</option> <option class="style6" value="AR"

Trying to get the char code of ENTER key

北慕城南 提交于 2020-01-04 05:13:28
问题 I have this this code: newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() { public void onKeyPress(KeyPressEvent event) { System.out.println("foo =" + KeyCodes.KEY_ENTER); System.out.println("bar =" + event.getCharCode()); } }); When I press ENTER I get this output: foo =13 bar = I expected a value after bar = . Any idea? 回答1: The value is, in fact, there. The reason you don't see anything is because the character is a carriage return. The carriage return, I believe, just moves the

GWT - Error constructing Java AST

眉间皱痕 提交于 2020-01-04 04:30:09
问题 What could possibly be causing this error during compilation? I have generated project from this archetype https://github.com/ArcBees/Arcbees-Archetypes and I have changed only thing - update GWT to 2.8.0 and GWTP to 1.5.3. [INFO] [ERROR] An internal compiler exception occurred [INFO] com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST [INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.translateException(GwtAstBuilder.java:3099) [INFO] at com.google.gwt.dev.jjs.impl

vertical centering in gwt

痞子三分冷 提交于 2020-01-04 04:08:59
问题 how to vertical centering in gwt by using vertical panel.. or pls sugest me is there any way for doing vertical cetering 回答1: If you want to directly use the VerticalPanel from code, you need to use the setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE) You can also use the UiBinder approach <g:VerticalPanel verticalAlignment='ALIGN_MIDDLE' horizontalAlignment='ALIGN_CENTER' width="100%" height="500px"> <g:cell></g:cell> </g:VerticalPanel> Take a look to DevGuideUiPanels for examples and

Cross-Domain Ajax Calls and maintaining session on Google App Engine

纵然是瞬间 提交于 2020-01-04 02:44:11
问题 I have recently worked through a bunch of kinks making cross-domain ajax calls to a GAE app and it is working beautifully, however, I am trying to set an http session id when making said service call and it is working fine, except that every time I perform the request, the session is null again. I'm assuming that this is because an ajax call and not making the request over http? How can I go about this? 回答1: Session tracking is usually done with cookies. If you are using Cross-Origin Resource

Gwt doesn't run in IE and Chrome in local file system

不想你离开。 提交于 2020-01-03 21:01:18
问题 Gwt application is client side only and it doesn't use any server side functionality.Application will be run from user's local file system. Builded application runs only in FireFox and doesn't work in IE and Chrome. Can anyone says what is the reason? 回答1: GWT by default loads your compiled code in an iframe, and different files on the filesystem have different "origins", so the iframes cannot communicate with each others (they hit the Same Origin Policy). This is a security measure. You can