gwt

How Can I generate a file in RemoteServiceServlet and send it to a user?

那年仲夏 提交于 2020-01-16 19:19:46
问题 Maybe I can disable RemoteServiceServlet response serialization or define RemoteService interface with method that returns ServletOutputStram? I would like not to save request in any database to file to process it in another request. 回答1: If you want to provide a download to the user, you can do it like this: Write another servlet which simply writes out the file content through the ServletResponse Make sure you have a binary header and provide the filename in there, too. In your client, make

Why Date is not Serializing in GWT 2.6?

前提是你 提交于 2020-01-16 19:16:33
问题 GWT 2.6 is not serializing Java Date properly.When i Enter the Date 17.10.1983 it shows 16.10.1983 and if I enter 16.10.1983 it shows 15.10.1983.How can i solve it? 回答1: It may be the locale/timezone issue. You can solve it by passing value as long (time in milliseconds) or string (date as string). Just form the date object back at the server side. My another post might help you Setting locales in gwt.xml do not work How you can form the the date object back at server side based on client

Socket API will be enabled once billing is enabled

て烟熏妆下的殇ゞ 提交于 2020-01-16 19:13:39
问题 Can anyone let me know why I am getting this message in my login screen. "The socket API will be enabled for this application once billing has been enabled in the admin console". I am building a GWT app and using Parse.com's REST API. I cannot make out why I am getting this error. 回答1: To use sockets in GAE, you need to enable billing. You have two options: Find where you use sockets and don't use them Enable billing. You need a credit card, but the default daily limit is $0.00. You will

Native Events error trying to double-click element using watir-webdriver

a 夏天 提交于 2020-01-16 19:08:07
问题 I am writting automatic test for GWT application. And I try to double click on table element. I am using this code fo click: browser.element(:xpath, '/html/body/div[5]/div[2]/div/div/div/div[2]/div/div/div/div/div/div/div/div[2]/div/div[2]/div/div/table/tbody[2]/tr[1]/td[1]/div').double_click When this command is executed I get error like: test_search(TC_article_example):Selenium::WebDriver::Error::InvalidElementStateError: Cannot perform native interaction: Could not load native events

How to migrate a a custom sublass of GWT DevMode to GWT 2.7.0 Super dev mode

我怕爱的太早我们不能终老 提交于 2020-01-16 18:35:48
问题 For a long while we were running our GWT-based application in Eclipse using custom subclasses of com.google.gwt.core.ext.ServletContainerLauncher and com.google.gwt.dev.DevMode. This was to allow us to run our custom (newest) Jetty and, over time, it gave us some other control, i.e. launching the server just a bit differently in Eclipse so as to allow files to be spread around Eclipse projects instead of being where they end up in production. These were effectively displacing/reimplementing

How to migrate a a custom sublass of GWT DevMode to GWT 2.7.0 Super dev mode

谁都会走 提交于 2020-01-16 18:35:32
问题 For a long while we were running our GWT-based application in Eclipse using custom subclasses of com.google.gwt.core.ext.ServletContainerLauncher and com.google.gwt.dev.DevMode. This was to allow us to run our custom (newest) Jetty and, over time, it gave us some other control, i.e. launching the server just a bit differently in Eclipse so as to allow files to be spread around Eclipse projects instead of being where they end up in production. These were effectively displacing/reimplementing

GWT, passing an ArrayList to JSNI

非 Y 不嫁゛ 提交于 2020-01-16 18:20:09
问题 In my GWT application I have a javascript function wich require an array of array as argument. I get the data using RPC, so I get a List< List > from my database. I need this because I have to fill a kind of tree view. For example, I get this from my RPC call: {"A", "A1", "A2"}, {"B", "B1"}, and I have to pass this to my javascript function: [["A", "A1", "A2"], ["B", "B1"]]. In my interface I want to show: A+ A1 A2 B+ B1 How can I pass it to my javascript function using JSNI? 回答1: If you can

GWT, passing an ArrayList to JSNI

做~自己de王妃 提交于 2020-01-16 18:19:30
问题 In my GWT application I have a javascript function wich require an array of array as argument. I get the data using RPC, so I get a List< List > from my database. I need this because I have to fill a kind of tree view. For example, I get this from my RPC call: {"A", "A1", "A2"}, {"B", "B1"}, and I have to pass this to my javascript function: [["A", "A1", "A2"], ["B", "B1"]]. In my interface I want to show: A+ A1 A2 B+ B1 How can I pass it to my javascript function using JSNI? 回答1: If you can

Trying to deploy GWT project in Tomcat ends with offending class error

≡放荡痞女 提交于 2020-01-16 18:05:29
问题 I'm trying to deploy my GWT project in Tomcat but i'm always getting this error: Jul 16, 2013 9:16:52 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Users\Dennis\Documents\workspaceMA\xampp\tomcat\webapps\rfds\WEB-INF\lib\gwt-dev.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class When i'm trying to open the webpage i get following error: HTTP Status 404 - /rfds/ type Status report message /rfds/

TabLayoutPanel at the bottom of the page in GWT

夙愿已清 提交于 2020-01-16 14:31:09
问题 I would like to know if It is possible to have a TabLayoutPanel at the very bottom of a page in GWT, unfortunately there is a so little documentation online. 回答1: Yes it is possible. The easiest way is to use a DockLayoutPanel region. You should wrap the TabLayoutPanel in another LayoutPanel to make sure your content will display correctly otherwise you must add a height to your TabLayoutPanel. I typed this from memory but the syntax should be correct. <DockLayoutPanel unit="PX"> <g:south