gwt2

GWT - did you forget to inherit a required module?

折月煮酒 提交于 2019-12-29 07:23:32
问题 In my GWT application , on the client side Java file, I have written a line to print the Locale: System.out.println(Locale.getDefault()); Here Locale is an instance of java.util.Locale. I'm getting an exception: 09:31:53.656 [ERROR] [stockwatcher] Line 167 No source code is available for type java.util.Locale; did you forget to inherit a required module? Surprisingly, in this class I've also used java.util.ArrayList and java.util.Date but I did not get any exception for those classes. What am

Super Dev mode in GWT

北城余情 提交于 2019-12-27 11:39:30
问题 I'm new to gwt. I don't know how to start up Super Dev mode . I need the detailed explanation step by step. I have tried editing gwt.xml file by adding <add-linker name="xsiframe"/> <set-configuration-property name="devModeRedirectEnabled" value="true"/> <set-property name="compiler.useSourceMaps" value="true" /> but i cant get the idea about this. 回答1: Follow these steps, you 'll definitely find the solution. Download the GWT 2.5 RC2, and put it somewhere...I put it in my eclipse/plugins

com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit

喜你入骨 提交于 2019-12-24 04:36:05
问题 I'm getting below error while compiling gwt app with ver 2.6.0, Initially I have compiled it with maven having gwt ver 2.6.1 and then tried to compile it through eclipse having version 2.6.0. Is it related to version compatibility?? com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit. at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:110) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276) at com.google.gwt.dev.jjs.ast

How to Upload a file in GWT

会有一股神秘感。 提交于 2019-12-24 01:25:57
问题 I have to Upload a file which can be of type , Doc, text. The Size of the File is more the 1 MB. I need the name , size , and the data of this file on sever side so that i can process it further. How to do it? What libaries i use for this. Any sample code will be of great help. 回答1: Checkout Basic File upload in GWT Refer this also : An Example 来源: https://stackoverflow.com/questions/9615567/how-to-upload-a-file-in-gwt

GWT - Implementing a DialogBox for Login purposes

给你一囗甜甜゛ 提交于 2019-12-23 12:34:48
问题 For testing purposes, I want to use a DialogBox for logging into my application. Here's the uibinder file: <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui"> <ui:style> </ui:style> <g:HTMLPanel> <g:Label>Username</g:Label> <g:TextBox ui:field="username"></g:TextBox> <g:Label>Password</g:Label> <g:PasswordTextBox ui:field="password"></g:PasswordTextBox> <g:Button ui

gwt beginner- error "could not find any host pages in project'

让人想犯罪 __ 提交于 2019-12-23 07:38:08
问题 I m trying to create a GWT app- it has a single HTML file (main.html) and the java class is main.java. In Eclipse, I did right click-> GWT -> Module and defined the new module correctly. However after adding some code, when I try to run the app in Dev mode, I get the error "Could Not find any host pages in project <project-name> " I have simply added some code to main.java, then saved it and tried to run the app in dev mode... What am I doing wrong here? Is there something I am missing here?

Window Location getParameter is always null in GWT/GXT Project?

孤街醉人 提交于 2019-12-23 05:25:58
问题 I am working GWT/GXT I am trying to practise some sample Examples. This is url of the project http://127.0.0.1:8888/Opera_Star.html?gwt.codesvr=127.0.0.1:9997 public void onModuleLoad() { Map<String, Entry> project = new FastMap<Entry>(); ProjectModel projectModel = new ProjectModel(); for (int i = 0; i < projectModel.getChildren().size(); i++) {// 1 children LoginCategory loginCategory = (LoginCategory) projectModel .getChildren().get(i); for (int j = 0; j < loginCategory.getChildren().size(

Is there a `AcceptsOneWidget` which also `ProvidesResze` (other than `ScrollPanel`)?

女生的网名这么多〃 提交于 2019-12-22 10:57:01
问题 I have a composite which extends ResizeComposite and has a DockLayoutPanel as its root. I can stick it directly into RootLayoutPanel and it works because DockLayoutPanel ProvidesResize . However, I'm wanting to use the MVP facilities in GWT 2.2, and RootLayoutPanel can't be passed to ActivityManager#setDiplay(AcceptsOneWidget) (since it's a multi-widget container). At first glance, ScrollPanel appears to meet the dual requirement of implementing AcceptsOneWidget and both ProvidesResize and

GWT: The response could not be deserialized

孤街醉人 提交于 2019-12-22 05:27:22
问题 I'm using GWT (2.4) with Spring integrated as in this article. I have problem with getting list of User from database (Hibernate) and populate DataGrid with it. When i call greetingService.allUsers() method, I'm getting error ( onFailure() ): com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The response could not be deserialized Anybody helps with that? Below some pieces of code. Full working project is here. public void onModuleLoad() { // ... greetingService.allUsers( new

speeding up refresh for GWT projects

爷,独闯天下 提交于 2019-12-21 12:32:43
问题 I'm developing a project, using GWT.FireFox Browser and Eclipse IDE. when the project is running and i refresh my browser for client package changes, it takes too long. maybe 6 to 10 seconds. maybe cause be project became big. how can i speed-up the refresh process on the browser ? 回答1: This post might help you. EDIT: Link now working again. 回答2: Unfortunately there's not a lot you can do to speed up Development Mode refresh time, 6-10 seconds isn't a terrible amount of time comparatively