gwt

GWT Handler to SplitLayoutPanel drag

大兔子大兔子 提交于 2019-12-20 05:23:31
问题 Is it possible in GWT to had a handler that detects that the knob pf SplitLayoutPanel is been drag or pressed? Thanks for the help. 回答1: I think, you can do it by overriding onResize() inherited method of DockLayoutPanel: SplitLayoutPanel splitLayoutPanel = new SplitLayoutPanel(){ @Override public void onResize() { super.onResize(); Window.alert("resized"); } }; 回答2: You can do this by adding intermediate ResizeLayoutPanels. MyComposite.ui.xml : <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google

Issue with installation of GWT 2.6

故事扮演 提交于 2019-12-20 05:11:06
问题 I have just installed GWT 2.6 and am now getting the error "Description Resource Path Location Type The file war\WEB-INF\lib\gwt-servlet.jar has a different size than GWT SDK library gwt-servlet.jar; perhaps it is a different version? gwt-servlet.jar /AwardTracker/war/WEB-INF/lib Unknown Google Web Toolkit Problem" I downloaded the GWT 2.6 zip and then copied the directory "GWT-2.6.0" into "Eclipse\eclipse-jee-juno-SR1-win32\eclipse\plugins". I then right clicked on the project and selected

Serialization Exception while making an RPC call

痴心易碎 提交于 2019-12-20 04:55:07
问题 I have created a very basic application. I have only one service class and a corresponding Async class which contains only Java types and no custom classes. But still I get the serialization exception. My service class looks like this. public interface MyService extends RemoteService { public String getName(); public Object getAdditionalDetials(ArrayList<String> ids); public Date getJoiningDate(); } My async interface looks like this public interface MyServiceAsync { public void getName

GWT i18n Message Properties does not Display special Character like ß

南楼画角 提交于 2019-12-20 04:52:02
问题 I use GWT i18n Messages to translate messages: @DefaultLocale("en") public interface Messages extends com.google.gwt.i18n.client.Messages { @DefaultMessage("Size") String size(); } For German I have the Messages_de.properties file. size=Größe äüö ÄÖÜ In one of my UIBinder templates I use <ui:text with="{messages.size}"/> When the user's browser is de I get Grösse ÄÖÜ ÄÖÜ instead of Größe äüö ÄÖÜ being displayed. My workspace as well as my .properties file is set to UTF8. How can I get the

Cannot use same cookie for multiple GWT applications

瘦欲@ 提交于 2019-12-20 04:35:07
问题 I am developing an application network where I want to offer multiple applications to my users with them only having to register/login a single time and use all of the applications with the same login. To achieve this, I created a cookie in which I store the Session ID of the user(which he receives when he logs in). Everytime a user opens up an application, the Launch Module tries to find the cookie and sends a request to the server to check if that session is still valid. When I tested this

GAE/J This application does not exist (app_id=u'application-id')

浪尽此生 提交于 2019-12-20 04:22:32
问题 I use maven-gae-plugin to deploy my app, it works find until i decide to deploy it to another app-id under different Google account. i met the "This applciation does not exist" problem. I found there are already some answers in StackOverflow, but was for python, i'm using GAE/J. I think i know the root cause, we should delete the "cache" in local, which stored my previous username/password, but what are these cache? and where are them? Or there are other ways to avoid this, i've tried so many

Read clipboard data with GWT [duplicate]

痞子三分冷 提交于 2019-12-20 03:52:08
问题 This question already has answers here : How to copy to clipboard with GWT? (6 answers) Closed 6 years ago . I have this code that I have made to handle the CTRL + V from the browser, works fine however I need to get the clipboard data like this: Event.addNativePreviewHandler(new Event.NativePreviewHandler() { @Override public void onPreviewNativeEvent(Event.NativePreviewEvent event) { NativeEvent ne = event.getNativeEvent(); // When CTRL + V is pressed if (event.getNativeEvent().getKeyCode()

SQLite DB for GWT?

前提是你 提交于 2019-12-20 03:28:10
问题 I'm trying to create a Packaged App for Chrome using GWT, I need an SQLite DB. I can't seem to find any decent resources on doing this. I've looked at gwt-mobile-webkit, is that the definitive way to use sqlite in gwt? I'm getting errors when I follow their example, it seems it hasn't been updated in awhile. Based on the lack of results I'm thinking I'm not searching for the right thing, any guidance? 回答1: I'd check out gwt-mobile-webkit, or more specifically the Database API. Though the name

Error with Ant build copying files, “Access is denied”

杀马特。学长 韩版系。学妹 提交于 2019-12-20 02:16:41
问题 I have a weird bug that is popping up in my Ant build. The build works as such: build.xml calls a new buildTargets.xml file, and in that file most of the work is being done. buildTargets.xml creates a bunch of new files in gwt-out/htdocs/** and another directory staging/htdocs/**. Basically, files are being created in gwt-out/htdocs and then copied into staging/htdocs. The error is that only one file is not being copied, and I am getting a java.IO.FileNotFoundException (Access is denied)

GWT - DoubleBox with more than 3 decimal places

帅比萌擦擦* 提交于 2019-12-20 01:36:44
问题 I'm creating an user interface using GWT and there're many boxes of double values but when I set some variable which contains more than 3 decimal places my DoubleBox doesn't accept and truncates the number letting just 3 places. Is it normal? What's the best solution? Thank you. 回答1: As the javadoc says DoubleBox is a ValueBox using a DoubleParser and DoubleRenderer . Those rely on NumberFormat.getDecimalFormat() which will trunk at 3 decimals in most (if not all) locales (for the default