gwt

No source code available for Scribe in GWT

霸气de小男生 提交于 2020-01-05 13:44:10
问题 I'm getting this error trying to Compile my GWT Project: No source code is available for type org.scribe.oauth.OAuthService; did you forget to inherit a required module? I have included the scribe .jar file in my "war/WEB-INF/lib", and imported it. Maybe I have to add it to the app_name.gwt.xml? I have tried to do it, but Scribe does not contains any .gwt.xml file. 回答1: I use Scribe with no problems. But it's a server-side library. You should have no references to it in your GWT code. 回答2: In

GWT Drag and Drop File Upload not working

元气小坏坏 提交于 2020-01-05 13:43:30
问题 So I have implemented a very simple drag and drop file upload widget. Basically my widget is a vertical panel with a couple of labels and a button inside. The user can either drag file into vertical panel or click button and browse for file. My problem is that when I drag a file into the vertical panel it fires the DragLeaveEvent every time I drag the item over the space that the labels or button occupies. I want it to know that the item is in the vertical panel even when it is on top of the

GWT DataGrid multi row header

那年仲夏 提交于 2020-01-05 09:04:07
问题 I am migrating some GWT content from CellTable to DataGrid , mainly for the DataGrid's feature of locking the header row in place as you scroll. With CellTable, the column header text would wrap to the next line if the text phrase was too long. The CellTable's header would dynamically grow in height. This was the default behavior, and I never edited any css files. Can I get this behavior in DataGrid? Do I need a change to my main project css file, or do I make a change to clean.css? Is there

GWT DataGrid multi row header

柔情痞子 提交于 2020-01-05 09:04:05
问题 I am migrating some GWT content from CellTable to DataGrid , mainly for the DataGrid's feature of locking the header row in place as you scroll. With CellTable, the column header text would wrap to the next line if the text phrase was too long. The CellTable's header would dynamically grow in height. This was the default behavior, and I never edited any css files. Can I get this behavior in DataGrid? Do I need a change to my main project css file, or do I make a change to clean.css? Is there

App Engine Login Redirect Fails

不羁岁月 提交于 2020-01-05 09:03:59
问题 On March 1, 2011 App Engine changed its login flow, breaking my app (see the Google Groups message). This issue also came up in this Stack Overflow question. The suggested answers are "have the app perform the redirect. That is, createLoginUrl only works when the continue url is a url for the app. If you need the user to be sent to another app/host after login, then your app needs to do that redirect" and "set up a redirect handler on your own app. Make that the target of the continue

App Engine Login Redirect Fails

限于喜欢 提交于 2020-01-05 09:03:03
问题 On March 1, 2011 App Engine changed its login flow, breaking my app (see the Google Groups message). This issue also came up in this Stack Overflow question. The suggested answers are "have the app perform the redirect. That is, createLoginUrl only works when the continue url is a url for the app. If you need the user to be sent to another app/host after login, then your app needs to do that redirect" and "set up a redirect handler on your own app. Make that the target of the continue

GXT 3 grid scrolling issue

痞子三分冷 提交于 2020-01-05 08:42:35
问题 I'm using GXT 3.0.0b. I have a Grid on ContentPanel. When I set ContentPanel width explicitly there is no problem with scrolling. But when I put grid in VerticalLayoutContainer the vertical scrollbar of the grid disappears and scrolling is possible only with mouse wheel. Does anybody know how to solve this problem? 回答1: Finally I've managed to solved this problem. The answer was rather elegant: when I added grid to VerticalLayoutContainer I should specify VerticalLayoutData parameter. Example

customize window closing event message in IE?

大憨熊 提交于 2020-01-05 08:12:18
问题 i am using GWT. on window close we get browser provided message" Are you sure you want to navigate away from this page?". i want to replace the message with my own message. please help me. below is my code. Window.addWindowClosingHandler(new Window.ClosingHandler() { @Override public void onWindowClosing(final Window.ClosingEvent closingEvent) { closingEvent.setMessage("some message."); } }); 回答1: you can not modify the dialog that is opened if you provide a string in the closing event. The

GWT database-access without RPC

北城以北 提交于 2020-01-05 08:09:00
问题 I'm using GWT for a web-app and I need to access to a mySql-database. There will be only one client (The app is used on a iPad localy). Is there any way to access the database without RPC? I'm looking for a possibility to direkty query a database. Thanks! 回答1: There are 2.5 reasons you cannot use gwt to directly access MySQL. Reason #1. GWT is compiled into Javascript. You need to open a socket to the database server. GWT does not allow you to open a socket. In fact, no unaugmented browser

GWT database-access without RPC

一曲冷凌霜 提交于 2020-01-05 08:08:46
问题 I'm using GWT for a web-app and I need to access to a mySql-database. There will be only one client (The app is used on a iPad localy). Is there any way to access the database without RPC? I'm looking for a possibility to direkty query a database. Thanks! 回答1: There are 2.5 reasons you cannot use gwt to directly access MySQL. Reason #1. GWT is compiled into Javascript. You need to open a socket to the database server. GWT does not allow you to open a socket. In fact, no unaugmented browser