gwt2

IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser

与世无争的帅哥 提交于 2019-12-07 04:44:20
问题 My GWT Project was working fine but today, after some changes and adding new fetures one async call is not executed. The exception is "This application is out of date, please click the refresh button on your browser." all other async calls are executed. An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Blocked attempt

GWT 2.1 Place/Activity technique glitch: URL changes before navigation is confirmed

≯℡__Kan透↙ 提交于 2019-12-06 10:23:45
问题 I'm reading this google guide and using this sample code provided by google, but there's a glitch: using the back/forth buttons makes the URL change before the confirmation dialog has returned. This means that if the user decides not to navigate away, the URL no longer represents the current Place. Anyone have a solution or workaround? Ideally, the URL would not change until the confirmation is given, but even just switching the URL back in a hurry after a denial would be better. 回答1: There's

How can I overcome Element id exception in Selenium?

我的未来我决定 提交于 2019-12-06 08:09:36
问题 T set 'id' for GWT widgets in UiBinder itself. For eg. Also added in *.gwt.xml Then I try this in Selenium test case WebElement element = driver.findElement(By.id("gwt-debug-loginButton")); Sometimes it works correctly. But some times it throws the following exception, Unable to locate element: {"method":"id","selector":"gwt-debug-loginButton"} Command duration or timeout: 62 milliseconds What i need to update? Can anyone help me? 回答1: Use WebDriverWait, to search for element after a certain

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

只谈情不闲聊 提交于 2019-12-06 02:29:51
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 RequiresResize . But I am finding that when I put my widget into a ScrollPanel , that it has a 'zero size

Modal window with progressbar for long tasks

我怕爱的太早我们不能终老 提交于 2019-12-05 17:24:52
In some cases, I want show to user a modal window with a progress bar when the long running query. (For individual UI items, I use the method setEnabled (true/ false) but I want more elegant solution.) For example, in the entry point, until all elements not initialized - public void onModuleLoad() { // initialization of the interface here } And also, for example, when completing the dependent list box (relationship one to many) @UiHandler("listBox") public void onListBoxChange(ChangeEvent event) { someService.findDependencies(id, new AsyncCallback<List<DependencyDTO>>() { public void onFailure

GWT 2.1 Place/Activity technique glitch: URL changes before navigation is confirmed

亡梦爱人 提交于 2019-12-04 16:54:05
I'm reading this google guide and using this sample code provided by google , but there's a glitch: using the back/forth buttons makes the URL change before the confirmation dialog has returned. This means that if the user decides not to navigate away, the URL no longer represents the current Place. Anyone have a solution or workaround? Ideally, the URL would not change until the confirmation is given, but even just switching the URL back in a hurry after a denial would be better. There's no workaround. Your app somehow detects that the URL has changed, which triggers the place change (thus

How can I overcome Element id exception in Selenium?

和自甴很熟 提交于 2019-12-04 14:50:42
T set 'id' for GWT widgets in UiBinder itself. For eg. Also added in *.gwt.xml Then I try this in Selenium test case WebElement element = driver.findElement(By.id("gwt-debug-loginButton")); Sometimes it works correctly. But some times it throws the following exception, Unable to locate element: {"method":"id","selector":"gwt-debug-loginButton"} Command duration or timeout: 62 milliseconds What i need to update? Can anyone help me? Use WebDriverWait, to search for element after a certain period of time. Something like this. try { (new WebDriverWait(driver, seconds, delay)).until(new

Revert (Undo) implementation in GWT

空扰寡人 提交于 2019-12-04 13:03:29
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 against the model which gets updated as and when user changes something. But this is adding lot of

How to do single row expansion with CellTable?

巧了我就是萌 提交于 2019-12-04 12:14:12
问题 I'm trying to use the new GWT CellTable widget but my table needs to support one row expansion, i.e. there is a zippy on the left of a row and when it's clicked, the row should expand to provide more detail information and this row should span across all columns. Is it possible to achieve this with the CellTable? How do I add a row that spans all columns between other rows dynamically? Any help will be appreciated! 回答1: GWT 2.5 will add a CellTableBuilder with the exact goal of allowing this

GWT Requestfactory performance suggestions

核能气质少年 提交于 2019-12-04 10:36:30
问题 I am observing really bad performance when using GWT requestfactory. For example, a request that takes my service layer 2 seconds to fullfil is taking GWT 20 seconds to serialize. My service is returning ~100 what will be EntityProxies. Each of these objects has what will become 4 ValueProxies and 2 more EntityProxies (100 root level EntityProxies, 400 ValueProxies and 200 additional EntityProxies). However, I see the same 10x performance degradation on much smaller datasets. Example of log