gwt

Read and Edit Excel in GWT Client Code

本小妞迷上赌 提交于 2019-12-25 02:58:22
问题 I have a GWT application with server and client code. I want to read and display an Excel (.xslx) file from the user in the GUI without passing it to the server. Is it possible to do this with the Apache POI or can't GWT compile all needed code from POI? 回答1: On the client side you will only be able to use this packages: http://www.gwtproject.org/doc/latest/RefJreEmulation.html You have to pass the excel to the server 来源: https://stackoverflow.com/questions/29649868/read-and-edit-excel-in-gwt

Real time web tracking app

此生再无相见时 提交于 2019-12-25 02:34:48
问题 There is a fleet management system. In a simplified form, it consists of: Service (Java, JDBC), which communicates with all devices on the car by socket (receives new data, parses and puts to the database (Mysql)). Web interface (Server side: Tomcat, Java, Spring, JDBC, Mysql. Client side: GWT, GWTP, GoogleMaps). It requests data from the server every 10 seconds using a GWT-RPC and makes the appropriate changes on the client. Objective: to make real time applications. All data on the page are

Pass a handler to filter button property

别等时光非礼了梦想. 提交于 2019-12-25 02:33:02
问题 So I have a handler for when I right click it , it will clear the criteria. How do I set this in setFilterButtonProperties? I want to be able to right click the filter button, it should clear all the characters I typed into the filter fields. addFilterEditorSubmitHandler(new FilterEditorSubmitHandler() { @Override public void onFilterEditorSubmit(FilterEditorSubmitEvent event) { if (event.isRightButtonDown()) { SC.warn("right clicked"); clearCriteria(); } } }); setFilterButtonProperties();

Entry points after migrating from GWT 2.3 to 2.6

落爺英雄遲暮 提交于 2019-12-25 02:28:30
问题 I have 2 projects with the following structure Project 1 com/MyCompany/MyApp/UI/MyAppUI.gwt.xml com/MyCompany/MyApp/UI/client/MyApp.java (Entry Point class) Project 2 com/MyCompany/MyApp/UI/MyAppUI.gwt.xml The first project contains all server and client side code and compiles to a jar, and the second one only contains a basic html page, css and images and compiles to a war. Before upgrading, the second project's gwt.xml file simply declared the entry point class of the first one, and since

Why is scroll processed via handler while resize is processed via overriden method in ScrollPanel?

主宰稳场 提交于 2019-12-25 02:24:45
问题 Why is GWT designed in such a way? What is the principal difference between resize and scroll events? 回答1: Because there's no event for resizing in browsers (there's resizing at the window-level, but not element-level), contrary to scroll events. Thus, resizing "notification" is "emulated" in GWT: if you use a RootLayoutPanel or ResizeLayoutPanel , it'll listen for window resize events and propagates them downwards to its RequiresResize children (which will propagate downwards too, if they

full screen contentPanel ext gwt

只谈情不闲聊 提交于 2019-12-25 02:23:11
问题 I need to implement full screen ContentPanel in ext gwt. I use setSize method, but as params I can specify only resolution. public class HomePage extends ContentPanel { public HomePage() { setSize(1024,768); I want to have panel that will fill all window in each browser with different monitor resolution. So how can I use setsize method to solve this problem? Thanks! 回答1: Instead of setting the size, maybe try setting a layout that will expand. Maybe something like this (hasn't been tested):

How to launch gwt-project on external server, e.g. tomcat?

做~自己de王妃 提交于 2019-12-25 02:06:23
问题 I deployed my gwt project on localhost with gwt-plugin on eclipse. Everything works fine. But when I try to launch application outside (from tomcat) it doesn't work normally. I put war content into webaaps folder. The client side of gwt works well but there is a problem with connection to server side. Probable error from logs: 127.0.0.1 - - [07/Mar/2014:17:31:36 +0400] "GET /BugGitGwt/ HTTP/1.1" 200 2954 127.0.0.1 - - [07/Mar/2014:17:31:36 +0400] "GET /BugGitGwt/buggitgwt/buggitgwt.nocache.js

My GWT RPC AsyncCallback doesn’t work: InvocationException

雨燕双飞 提交于 2019-12-25 01:58:58
问题 I developed a GWT application and make a AsyncCallback a jfreechart generated in server side. But there is an error returning a InvocationException. The detailed error message is here 404 html com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:209) callback.onResponseReceived(this, response); I used GWT 2.5.1 and jre7 and eclipse juno 4.2 My Service Interface, Asynchronous Interface and Implementing Service codes are the same as this

SmartGWT: Getting custom widget from VLStack

痴心易碎 提交于 2019-12-25 01:54:17
问题 Hi I have defined a custom widget: public class BookingArea extends Composite { ... } which contains some smartgwt widgets. From my entrypoint class I add x amount of this widgets inside a VStack. I now want to remove some of the widgets from VStack as something like this: Canvas members[] = vStack.getMembers(); for (int i = 0; i < members.length; i++) { //Here I want to check for example, a member of the BookingArea widget, //how do I convert one canvas to BookingArea? } Please help me I

UmbrellaException when button is clicked

我的未来我决定 提交于 2019-12-25 01:48:36
问题 guys I am working with GWT and when I click a button which creates a class I receive an UmbrellaException. Here is the problematic code: private void addPerson(){ final HashSet<Date> dates = new HashSet(); HorizontalPanel horizontalPanel = new HorizontalPanel(); HorizontalPanel buttonsPanel = new HorizontalPanel(); final TextItem textBox = new TextItem(); textBox.setTitle("Name"); DynamicForm form = new DynamicForm(); final ListBox listBox = new ListBox(); listBox.addItem("DiplomaManager");