gwt

Debugging a GWT application in a remote environment

偶尔善良 提交于 2020-01-13 15:04:29
问题 I have deployed my GWT application to its target environment (i.e. compiled and copied the war directory contents to the target device's /var/www ) and some parts of it are not working. I understand that I can debug my local instance of the GWT app as if it were running in the target environment, by opening the deployed GWT App URL and adding gwt.codesvr URL parameter to it, like this: http://deployment_host/gwtapp.html?gwt.codesvr=localhost:9997 I get Plugin failed to connect to Development

Rows are not aligned properly under the Column headers in EditorGrid in GXt 2.2.3

大城市里の小女人 提交于 2020-01-13 15:01:22
问题 I Created an EditorGrid using GXT 2.2.3.Now the problem is rows are not aligned properly under the column header,they are slightly move to left side. Please suggest how to resolve this. 回答1: I solved this by setting the padding and width of each column as below: actioncolumn.setStyle("width:100%;"); actioncolumn.setStyle("padding-right:3px;"); 回答2: We've had problems with column header alignment before... If you are re-initializing your grid with reconfiure() calls, make sure the widget is

GWT - should it really only be used for the dynamic parts?

半世苍凉 提交于 2020-01-13 10:14:30
问题 On some StackOverflow question about GWT cons and pros from 2009 someone answered that: [...] Use gwt to only fill in the dynamic parts of your apps. So if you have some complex user interactions with lots of fields. However, don't use the panels that come with it. Take your existing stock designer supplied pages. Carve out the areas that will contain the controls for your app. Attach these controls to the page within onModuleLoad(). This way you can use the standard pages from your designer

Setting the java classpath (for super dev mode)

筅森魡賤 提交于 2020-01-13 09:24:09
问题 I'm trying to run a jar, gwt-codeserver.jar , in OSX.7, with the command java -cp ".:/sdk/gwt-2.5.0.rc1/gwt-dev.jar" -jar /sdk/gwt-2.5.0.rc1/gwt-codeserver.jar com.activegrade.TeacherView The command fails with: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gwt/core/ext/TreeLogger Caused by: java.lang.ClassNotFoundException: com.google.gwt.core.ext.TreeLogger at java.net.URLClassLoader$1.run(URLClassLoader.java:202) ... But gwt-dev.jar contains the definition for com

GWT 2.2 MVP vs. GWT 2.1 Activities-Places

£可爱£侵袭症+ 提交于 2020-01-13 08:10:14
问题 I'm starting to develop a large GWT application, and after reading a lot of articles and blog posts, I'm trying to understand what is the difference between the 2.2 Model-View-Presenter and the 2.1 Activities-Places design patterns? Which pattern do you recommend and why? Should I use MVP simply because it is "newer"? On the other hand Places-Activities seems to be more "intuitive"... Or am i totally missing the point and MVP is just an improved version of Activities-Places? Thanks to all GWT

Load HTML document to populate HTMLPanel a good idea?

感情迁移 提交于 2020-01-13 06:29:11
问题 I want to load "pieces" of HTML to set HTMLPanels which will be dynamically modified by getting the id's as follows: HTMLPanel dynContent = new HTMLPanel("<div id=\"test_id\"/>"); dynContent.add(new Label("This content is dynamically generated."), "test_id"); Can I serve HTML files to my client from a GWT app (It would be cool to just load the html files served at application startup)? Or do I have to create a call to the server to get the HTML (say RPC)? It sounds like JSP is the solution

Revert (Undo) implementation in GWT

≡放荡痞女 提交于 2020-01-13 05:38:09
问题 We are trying to build a GUI framework using GWT. We are finding it hard to implement the cancel functionality in the framework. Required feature is this: We have CRUD screens which have pop-ups, grids and so on. When the user changes anything in the GUI and then clicks on cancel() he should be given a notification message saying that something has changed. Approach that we have tried: Currently we are trying to keep a hashmap of key vs value of the entire pojo object and trying to compare it

Revert (Undo) implementation in GWT

好久不见. 提交于 2020-01-13 05:38:07
问题 We are trying to build a GUI framework using GWT. We are finding it hard to implement the cancel functionality in the framework. Required feature is this: We have CRUD screens which have pop-ups, grids and so on. When the user changes anything in the GUI and then clicks on cancel() he should be given a notification message saying that something has changed. Approach that we have tried: Currently we are trying to keep a hashmap of key vs value of the entire pojo object and trying to compare it

Is it possible to debug GWT anymore?

喜你入骨 提交于 2020-01-13 05:29:33
问题 Is it just me, or is it even possible to run/debug a GWT application anymore? A brand new install of the Google Plugin for Eclipse (Juno), create a new Web Application with GWT + GAE, run/debug. FAIL. This is on a Mac, with Chrome, Firefox and Safari. The browser plugin is incompatible with Safari and Firefox, says it's compatible with Chrome but always asks to reinstall it. Any ideas/tips? -Shane Update : Ok, so I went back to Firefox ESR 24 (https://www.mozilla.org/en-US/firefox

Is it possible to host a GWT-compiled web application in NodeJS?

怎甘沉沦 提交于 2020-01-13 05:11:55
问题 Is it possible to host a GWT-compiled web application in NodeJS? I like NodeJS however there are lots of work already made with GWT for my projects. Cheers. 回答1: On the client side, as @riley-lark said. You can also use GWT code on the server-side on NodeJS; see https://github.com/cretz/gwt-node and http://code.google.com/p/gwt-exporter/ 回答2: Yes. GWT is a client-side technology and does not need to interact with your server at all. It is possible to send arbitrary requests to any server and