gwt

From javascript to java (A GWT story)

大兔子大兔子 提交于 2020-01-24 05:15:28
问题 So, I'm designing an app in GWT for an embedded web browser (Sketchup). I can control Sketchup by changing the window.location value to "skp::myFunciton@myParams". Sketchup can execute javascript in the browser. What I want to do is ask sketchup to give me the contents of its model. public static native void getModel() /*-{ $wnd.location = "skp:getModel@"; }-*/; After a second sketchup has a result. But how do we get it back to gwt? The problem is the entrypoint instance launched the request

Deferred binding failed GWT using uibinder

懵懂的女人 提交于 2020-01-23 18:13:24
问题 Below are the total files used in project. It is giving these errors [ERROR] [cricketscore] - Deferred binding failed for 'test.client.UserDashboard.MyUiBinder'; expect subsequent failures and [ERROR] [cricketscore] - Unable to load module entry point class test.client.DashBoard (see associated exception for details). Please help me resolve the problem in it. Cricketscore.gwt.xml <?xml version="1.0" encoding="UTF-8"?> <!-- When updating your version of GWT, you should also update this DTD

Deferred binding failed GWT using uibinder

泄露秘密 提交于 2020-01-23 18:12:05
问题 Below are the total files used in project. It is giving these errors [ERROR] [cricketscore] - Deferred binding failed for 'test.client.UserDashboard.MyUiBinder'; expect subsequent failures and [ERROR] [cricketscore] - Unable to load module entry point class test.client.DashBoard (see associated exception for details). Please help me resolve the problem in it. Cricketscore.gwt.xml <?xml version="1.0" encoding="UTF-8"?> <!-- When updating your version of GWT, you should also update this DTD

Relative z-index?

北城余情 提交于 2020-01-23 15:34:14
问题 I've got a "Dialog" widget that pops up with a z-index of 100. When I create another popup (a floating div), it appears underneath the dialog widget, because I haven't explicitly set the z-index on the new popup. The structure ends up looking something like <div id="dialogbox" style="z-index: 100"> <div> <div id="widgetThatCausesThePopup" /> </div> </div> <div id="popupHiddenBehindTheDialog" /> I'm using GWT to generate this HTML. There can be arbitrary levels of nesting between dialogbox and

Relative z-index?

不问归期 提交于 2020-01-23 15:31:59
问题 I've got a "Dialog" widget that pops up with a z-index of 100. When I create another popup (a floating div), it appears underneath the dialog widget, because I haven't explicitly set the z-index on the new popup. The structure ends up looking something like <div id="dialogbox" style="z-index: 100"> <div> <div id="widgetThatCausesThePopup" /> </div> </div> <div id="popupHiddenBehindTheDialog" /> I'm using GWT to generate this HTML. There can be arbitrary levels of nesting between dialogbox and

An example of a Google Web Toolkit (GWT) Create Read Update and Delete (CRUD) Application

微笑、不失礼 提交于 2020-01-23 10:59:27
问题 Hello Does anybody know of any examples of a Google Web Took (GWT) - based Create Read Update and Delete application. That is, an application which uses the GWT to manipulate and display the contents of a database. Thanks 回答1: GWT is a client side technology, so basically gives you only the UI. Any CRUD process would happen in the server side, which could be any J2EE code. Anyway you can take a look to the StockWatcher Example which gives you a good approach to your question (you need to

How to @Inject a HttpSession object in a service layer (DAO) class in GWT using Guice?

烂漫一生 提交于 2020-01-23 03:50:46
问题 I have such a dirty code in my GWT app, some of the classes of my service layer depend on an HttpSession object. So for example, in one of my DAO (which was a GWT-RPC endpoint) I have something like this : public class MyExampleDAO extends RemoteServiceServlet { public findItems() { // here I need to get the object session to retrieve the currently logged in user in order to query for all its items... } } The problem is that, I am currently migrating the code to use RequestFactory. My DAO

GWT is slow in Development Mode

∥☆過路亽.° 提交于 2020-01-22 17:17:27
问题 I'm using Eclipse Galileo with latest GWT 2.0 version in development mode, but it runs really slow (I need to wait about a minute to open one page, but after compilation, my application works very well when I run it using Tomcat 5.5). My code is not too heavy and I guess there is an OS-related or software inconsistency problem, because I'd this problem before, but when I reinstalled Windows Vista SP2 (I formatted my Windows drive and reinstalled it), my problem was resolved for a few days and

GWT is slow in Development Mode

爱⌒轻易说出口 提交于 2020-01-22 17:17:06
问题 I'm using Eclipse Galileo with latest GWT 2.0 version in development mode, but it runs really slow (I need to wait about a minute to open one page, but after compilation, my application works very well when I run it using Tomcat 5.5). My code is not too heavy and I guess there is an OS-related or software inconsistency problem, because I'd this problem before, but when I reinstalled Windows Vista SP2 (I formatted my Windows drive and reinstalled it), my problem was resolved for a few days and

How to build GWT standalone offline application?

亡梦爱人 提交于 2020-01-22 16:31:27
问题 I need to design SPA with GWT technology, but I do not understand clearly how to make (compile) only one page with all JavaScript code in it. So, for example my task is to make simple page with button and div. You click on button and div appears on page. Simple. When I did this on GWT, I can not find a way to compile this page in simple index.html with all JS code inside (or in one .js file). Page should work in offline mode. 回答1: GWT do it for you. compile it to one .js file? Here is simple