gwt

Selenium test on a GWT app - request not sent to server

你。 提交于 2019-12-22 11:04:34
问题 I'm writing a selenium test for a GWT app. It uses the mouseover/ mousedown/mouseup approach to click pushbuttons. It clicks the Login button of my app, which calls up the div containing userid and password entry fields, and that works just fine. It then enters a userid and password, then clicks the Submit button for the login form. If I run it slowly, I can see the button click, but the request never gets sent to the server (I'm watching the wire). In fact, if, while the selenium IDE is

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

女生的网名这么多〃 提交于 2019-12-22 10:57:01
问题 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

GWT: handling event in composite cell

纵饮孤独 提交于 2019-12-22 10:56:20
问题 CompositeCell let us customize the content of a table cell's in GWT using Java. We can put almost any other group of widget within the table's cell and layout them as we want. Problem is that if we used the html tags to define the layout of the CompositeCell as yet another table (see CompositeCell anonymous class implementation bellow) we loose the event handling for the components of the cell :(. Running the following code, when we click in the buttons of the cell will realize the popup in

GWT Code Server not finding a module in a newly generated project using a maven archetype

岁酱吖の 提交于 2019-12-22 10:55:27
问题 I've worked with GWT and eclipse for a while now and I wanted to play a bit with maven and the GWT plugin (gwt-maven-plugin, enter link description here). I tried to use it out of eclipse (Luna 4.4), but obviously I didn't do it correctly, as it was extremely brittle to the point that it broke on a regular basis as the IDE overwrote it's settings when I changed something small in the pom.xml. So I decided to take a step back and eliminate the black magic that eclipse is and start a new

HttpUrlConnection: how to get the XML response into a String?

那年仲夏 提交于 2019-12-22 10:32:07
问题 I am using HttpURLConnection to post to a REST API. I still have not successfully posted anything, so I'm trying to get back the XML response that should be coming from the API. Here is the segment of the code that I've put together that is giving me the issues: // Process response - need to get XML response back. InputStream stream = connection.getInputStream(); connection.disconnect(); BufferedReader br = new BufferedReader(stream); String result; String line; while ((line = br.readLine())

GWT and Google Docs API

ε祈祈猫儿з 提交于 2019-12-22 10:27:04
问题 I'm using GWT to create a simply app that allows teachers to create easily their own lessons. The App is going to be on Google App Engine but I want to store lessons in user's Google Docs space . Is it possible? As far as I know gwt transforms java into javascript but google docs api is java, do i have to upload the java library to de app engine storage? any place to start? any advice? Thanks... 回答1: You need server side proxy for GWT client. Your GWT client communicates with the servlet. The

how to import java.security.* in my gwt application

自古美人都是妖i 提交于 2019-12-22 09:54:16
问题 i want to develop a plugin using gwt. It has to use java.security.* for the key generation on client side. i have made all requirement But it is showing following error. Loading modules coreservlets.GwtApp1 Loading inherited module 'coreservlets.GwtApp1' Loading inherited module 'java.security.KeyPair' [ERROR] Unable to find 'java/security/KeyPair.gwt.xml' on your classpath; >could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] Line 15: Unexpected exception

For SafeHtml, Do we need to sanitize the “link” in <img src=link> tag, GWT?

蓝咒 提交于 2019-12-22 09:38:48
问题 I got a textbox that allows users to put image link (ex: http://abc.test.gif) & another textbox that allows user to put Alternate text (ex: "This is test.gif"), & a submit button. When a user clicks on submit buton, the program will generate <img src="http://abc.test.gif" alt="This is test.gif"> this string & store it into DB for later use. My question is: do i need to sanitize the imagelink "http://abc.test.gif" & the text in alt tag "This is test.gif" For example, do i need to use UriUtils

GWT Application throws 'JavaScriptException' in IE only, stack trace has no helpful information

被刻印的时光 ゝ 提交于 2019-12-22 09:18:18
问题 My GWT application is throwing a JavaScriptException at a certain point. This issue only occurs in Internet Explorer (both IE 8 and IE 8 running IE7 mode). The stack trace is as follows: com.google.gwt.core.client.JavaScriptException: (Error): Invalid argument. number: -2147024809 description: Invalid argument. com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:195) com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) com.google

Best Practices — Hibernate persistence code inside the Entity itself?

走远了吗. 提交于 2019-12-22 08:26:56
问题 In Google's RequestFactory tutorials, they recommend putting my persistence logic (in my case, Hibernate) inside the Entity classes. Then they pose the question: "What if you don't want to implement persistence code in an entity itself?" and proceed to explain an alternate method. My question: which is better, putting persistence logic inside the Entity class, or keeping all persistence logic in a separate class? Any info is appreciated, thanks. -tjw 回答1: Putting the persistence code in an