gwt

Replace GWT DockLayoutPanel Contents

孤人 提交于 2019-12-24 10:04:35
问题 I'm trying to replace the contents of the CENTER portion of a DockLayoutPanel from a MenuBar. The MenuBar will sit at the North, but "content" (forms, reports, etc) will reside in Center. I thought I could do it by grabbing the entire DockLayoutPanel from the RootPanel (index 0, since that's the only widget directly attached to it), then somehow remove the current contents of center and insert the new. Unfortunately, getWidget(int index) is non-static, so it's not working. Can anyone how me

GWT/GAE Spring IoC powered

99封情书 提交于 2019-12-24 10:01:24
问题 I'm trying to put together Google App Engine and Google Web Toolkit for one of my projects. I think I'm going to use Objectify for data persistence, too. The guys of Springsource says that integrate those technology with Spring is possible. Do you know where can I find some sort of tutorial about that? 回答1: There is no any extra stuff required, no special configurations, tricks, etc. If you know both Spring and GAE - just use it, it's pretty standard. I've few project based on Spring+GAE

How to handle a session timeout exception (with MVP Places and Activities)?

廉价感情. 提交于 2019-12-24 09:55:54
问题 how do you handle a time out request in a GWT app ? Here is a snipped of my web.xml file : <session-config> <session-timeout>30</session-timeout> </session-config> My GWT project is based on MVP Activities and Places. Whenever the user waits more than 30mn, i want to display a popup and redirect the user to the login page. Here is what i do for all RPC services : public void onFailure(Throwable caught) { ... if (caught instanceof InvocationException) { { Window.alert("Time out de session.

read key from LocalizedResource.properties programmatically

这一生的挚爱 提交于 2019-12-24 09:39:06
问题 I able to use LocalizedResource.properties with uibinder. let say i have widget that created programmatically in java file. how to read in key from LocalizedResource.properties depending on language "en,fr..etc" selected by users? 回答1: It's difficult to say something definitely. If your LocalizedResource.properties is generated as described by "Internationalization - UiBinder" so I don't understand why you want to read in key from it If .properties made for Message or Constant interface so

How to add a close button to the caption bar of a GWT DialogBox [duplicate]

拈花ヽ惹草 提交于 2019-12-24 09:17:42
问题 This question already has answers here : GWT Close button in title bar of DialogBox (14 answers) Closed 6 years ago . I need to add a close button to the caption bar of my dialog box . I'm able to place a widget in the caption bar , but not been able to get the events for it . 回答1: http://zone817.blogspot.com/2010/08/close-button-in-caption-bar-of-gwt.html seems like exactly what you want. 回答2: Here is a modification of the example given by amal. This code retains gwt-DialogBox caption style.

Compilation error: No source code is available for type com.google.gson.Gson

梦想的初衷 提交于 2019-12-24 08:47:32
问题 I'm trying to parse a json string on client side using Gson but while installing project getting an error: No source code is available for type com.google.gson.Gson; did you forget to inherit a required module? I have added <inherits name='com.google.gson.Gson' /> on my gwt.xml. I'm using GWT 2.8.1 can we use Gson on client side ? [this][1] using Gson library in GWT client code used older version of GWT and my question is also related to error of Gson module . 回答1: Gson is not GWT compatible.

GWT_HOME variable setup problems

☆樱花仙子☆ 提交于 2019-12-24 08:35:42
问题 i installed GWT using Eclipse wizard to be more precise, i followed this tutorial: https://developers.google.com/web-toolkit/usingeclipse?hl=pt-PT I now have GWT working in my eclipse indigo release. But now i need to define the GWT_HOME variable (ambient variable) so i can run a project using a build file. Because i installed the gwt plugin with the eclipse wizard, i don't know how to setup the ambient variable, because i can't seem to find the folder where gwt got installed. I'm using

SmartGWT modal window

自作多情 提交于 2019-12-24 08:30:24
问题 I have problem with modal window. I call this two methods setIsModal(true) and setShowModalMask(true) but why my window isn't modal ? Here is the Code : Window summaryWindow = new Window(); summaryWindow.setWidth(950); summaryWindow.setHeight(620); summaryWindow.centerInPage(); summaryWindow.setCanDragReposition(false); summaryWindow.setIsModal(true); summaryWindow.setShowModalMask(true); summaryWindow.setShowMinimizeButton(false); summaryWindow.setTitle("Example"); summaryWindow.addItem(new

SMARTGWT - delete DynamicForm from SectionStackSection

家住魔仙堡 提交于 2019-12-24 08:26:46
问题 I have the same problem, that is mentioned here. The problem got missunderstood and I don't have the privileg to comment so I created this question. He wants to delete a DynamicForm out of an SectionStackSection object. my situation is the following: I added some DynamicForm objects to the SectionStackSection by using the setFields(FormItem... fields) method and I also added a Button to delete this FormItem out of the SectionStackSection. The problem's the same. Also Tried DynamicForm

GWT and Hibernate - NoClassDefFoundError when using Hibernate

大憨熊 提交于 2019-12-24 08:20:46
问题 In my GWT service on server side I use Hibernate. When creating a SessionFactory I get following error: "java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details." What could be the reason? 回答1: It seems to be that you are trying to use Hibernate on Google App Engine, but Hibernate is incompatible with Google App Engine 回答2: This is a common GWT issue in debug mode - eg if you're looking to get postgres data