gwt

how can i get a prompt on url change

百般思念 提交于 2019-12-31 04:35:32
问题 i am new in gwt . I want when a user press back button he get a alert that page will we refresh .mostly we see during typing on loose focus if user press back button his page get refresh and all value goes wash. how can we achieve this.. 回答1: Try Window#ClosingEvent Window.addWindowClosingHandler(new ClosingHandler() { @Override public void onWindowClosing(ClosingEvent event) { event.setMessage("Message"); } }); Please have a look at promt user on backspace and browser backbutton in gwt where

gwt java.lang.ExceptionInInitializerError

╄→гoц情女王★ 提交于 2019-12-31 04:30:10
问题 I'm working on a GWT app, and keep getting the error shown below. I followed the GWT tutorial regarding naming conventions for servlet classes, and followed the Service / Async / ServiceImpl structure. I also tried adding the -XX:-UseSplitVerifier VM argument to fix a previous problem. any ideas on what's going on? SEVERE: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl

Focus is not coming out from the TextField on mouse click in GXT EditorGrid in Chrome Browser

╄→гoц情女王★ 提交于 2019-12-31 03:06:28
问题 I created an EditorGrid using GXT 2.2.3.In that grid,one column is with the TextField as Editor.My code is as below: ColumnConfig checkinTimecolumn=new ColumnConfig(); checkinTimecolumn.setId("checkinTime"); checkinTimecolumn.setHeader("Check In Time"); checkinTimecolumn.setWidth(80); checkinTimecolumn.setMenuDisabled(true); checkinTimecolumn.setSortable(false); checkinTimecolumn.setStyle("width:100%;"); checkinTimecolumn.setStyle("padding-right:3px;"); final TextField<String> checkintime =

Some subtlety of GWT compilation - “gwt module may need to be (re)compiled.”

邮差的信 提交于 2019-12-31 01:44:25
问题 I'm deploying an app to GAE. I have a single project setup in Eclipse, with three separate GWT modules, each with its own HTML page, entry point, etc. They share a lot of code. When I deploy the app to appengine, TWO of the modules work fine. I can access their HTML pages perfectly. The third gives me the error that "gwt module 'xyz' may need to be (re)compiled." I have tried recompiling and redeploying twice, to no avail, and have no ideas about moving forward. Other threads about this

Some subtlety of GWT compilation - “gwt module may need to be (re)compiled.”

不打扰是莪最后的温柔 提交于 2019-12-31 01:44:04
问题 I'm deploying an app to GAE. I have a single project setup in Eclipse, with three separate GWT modules, each with its own HTML page, entry point, etc. They share a lot of code. When I deploy the app to appengine, TWO of the modules work fine. I can access their HTML pages perfectly. The third gives me the error that "gwt module 'xyz' may need to be (re)compiled." I have tried recompiling and redeploying twice, to no avail, and have no ideas about moving forward. Other threads about this

Is it possible to create dynamically pluggable GWT widgets/portlets in separate war files?

浪尽此生 提交于 2019-12-30 18:54:31
问题 Is it possible to create widgets / portlets in GWT that can be dynamically loaded and added to a GWT web application, and where the GWT widgets can reside in a separate war files? To clarify my question: JSR168/JSR286 compliant portals make it possible to create portlets in separate projects (war files) and to dynamically load these into a portal page. Suppose you want to do something similar in a GWT application. So suppose we made a portal using only GWT for the GUI (no JSP or alike) and we

GWT. Set url without submit

吃可爱长大的小学妹 提交于 2019-12-30 18:43:51
问题 Can i change url(set parameter) without submit? I found this method http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/Window.Location.html#replace%28java.lang.String%29 but it submit page. All GWT state will be lost. 回答1: Why are you trying to do this? Generally speaking, GWT apps don't change pages - thus they are normally SPAs (single page applications) When you load a new page from a server, you will lose the state on that page. You can change the hash

Creating a GWT SuggestOracle with custom object suggestions

只谈情不闲聊 提交于 2019-12-30 14:46:06
问题 I'm trying to convert a drop down box widget into a SuggestionBox because the current drop down menu has 100+ choices. It seems like you can only add String suggestions to a SuggestOracle though. I need to be able to add a custom object that contains both a description and an ID that matches the record to the database though. Would I have to extend the SuggestOracle class? 回答1: Yes as i know you can not use pair of values i.e Id and Value. You have to add your strings in suggestion box

Deploy GWT maven project with eclipse deploys webapp directory instead of target/project directory

雨燕双飞 提交于 2019-12-30 12:05:08
问题 When I choose to run my gwt project in eclipse it is deploying the src/main/webapp directory but I want it to publish the target/myproject directory. I have verified that it is copying the contents of src/main/webapp to wtpwebapps/myproject. How can I configure Eclipse Kepler to deploy the contents of my target/myproject directory instead. I really don't want to have to redirect my build to output to the src/main/webapp directory as this would pollute my src directory. In the past I have

Deploy GWT maven project with eclipse deploys webapp directory instead of target/project directory

安稳与你 提交于 2019-12-30 12:04:10
问题 When I choose to run my gwt project in eclipse it is deploying the src/main/webapp directory but I want it to publish the target/myproject directory. I have verified that it is copying the contents of src/main/webapp to wtpwebapps/myproject. How can I configure Eclipse Kepler to deploy the contents of my target/myproject directory instead. I really don't want to have to redirect my build to output to the src/main/webapp directory as this would pollute my src directory. In the past I have