gwt

Specify Library Target of Maven

时光总嘲笑我的痴心妄想 提交于 2020-02-07 07:23:10
问题 How can I tell Maven to copy the dependencies into a specific location? Side story: I am having a GWT project in Eclipse that is also a Maven Module for a larger project. This GWT project has dependencies to some libraries and I need them to be copied into <project-dir>/war/WEB-INF/lib . How can I tell Maven to do that? Edit : I have found a way to copy a single dependency - but is there a way to copy all of them with a simple instruction? <plugins> <plugin> <groupId>org.apache.maven.plugins<

GXT : How to customize TabPanel close context menu

感情迁移 提交于 2020-02-06 18:49:24
问题 I have a GXT(3.0.1) TabPanel with many tabs. This TabPanel has an out-of-the-box CloseContextMenu with 2 options : Close this tab Close all other tabs In order to react to "close tab" events and be able to eventually cancel them, I use some BeforeCloseHandler. What I need : When the user closes one tab, be able to display a confirmation dialog for this tab. When the user chooses to close all other tabs, display one unique confirmation for all tabs. The problem : The BeforeCloseHandler is

Communication client-server-client

我是研究僧i 提交于 2020-02-05 13:50:18
问题 I have a question about the Communication between a client and a server. I would like to create a GWT application that can do the following: The client A fires an event to the server and the server in his turn fire an event to the client B. Here the client B has to be able to listen to the event all the time. I wanted to send some event with few data in real time to a connected client B. is that possible? and if yes how can I do that? Thanks 回答1: Here the client B has to be able to listen to

Sort FlexTable Inquiry

佐手、 提交于 2020-02-04 22:17:11
问题 i use Flex Table to display the data . now i need ti support that when the user click on the table header the table be sorted according to the column selected . but i need the sorting not to be slow. is flex table can support this property ....if yes how can i do it .... if not is there is another way to do it ..? and how can i do it ? best regards, Ahmed Shoeib 回答1: FlexTable is not the good widget to display data, since the 2.1 version you should consider using CellTable Moreove, since the

How to run GWT in production mode

℡╲_俬逩灬. 提交于 2020-02-04 04:53:04
问题 I am trying to run GWT project in production mode, as per the instructions at https://developers.google.com/web-toolkit/usingeclipse. So my project foo is located as a folder foo in my desktop under th workspace folder. When I right click on the foo project in the Project Explorer, click Google - GWT Compile , I see some message like permutations 1, 2.. etc in the debugging console, after which it says that compilation is complete. However, contrary to what the Google page says, no additional

adding the same object twice

爷,独闯天下 提交于 2020-02-04 04:47:10
问题 i have an label and two panels. i want to add the label into each panel, but after rendering is shown only one label. i can create second label, but i think, it must be possible to add the same label twice. Here my code: // Create labels Label sectorLabel = new Label("Bereich"); // Create panels/rows HorizontalPanel row1 = new HorizontalPanel(); HorizontalPanel row2 = new HorizontalPanel(); // Add content to row1 row1.add(sectorLabel); // Add content to row2 row2.add(sectorLabel); 回答1: You

GWT Multiselect Dropdown Listbox

我的未来我决定 提交于 2020-02-02 15:24:08
问题 I'm looking to create a multi-select dropdown listbox in GWT, but I'm not sure how to go about doing so. I'd like it to be similar to this: Any suggestions? Should I take gwt ListBox code and adapt it to accept objects? Or should I forget their Listbox and try to make my own from scratch? Or should I go in a different direction completely? I'd really prefer not to include external libraries (like SmartGWT) if possible - I'm trying to stick with straight-up GWT. Please advise. Thanks! 回答1: For

ListGrid.setEditorCustomizer in SmartGWT [duplicate]

孤者浪人 提交于 2020-02-01 07:57:25
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Smartgwt selectitem key value issue I'm using setEditorCustomizer to set custom editors for some fields in a ListGrid, my specific problem is on a SelectItem Something like this: grid.setEditorCustomizer(new ListGridEditorCustomizer() { public FormItem getEditor(ListGridEditorContext context) { SelectItem selectItem = new SelectItem(); LinkedHashMap<String, String> valuesMap = new LinkedHashMap<String, String>()

Parsing a “rgb (x, x, x)” String Into a Color Object

早过忘川 提交于 2020-01-31 06:45:29
问题 Is there an effecient way/existing solution for parsing the string "rgb (x, x, x)" [where x in this case is 0-255] into a color object? [I'm planning to use the color values to convert them into the hex color equivilience. I would prefer there to be a GWT option for this. I also realize that it would be easy to use something like Scanner.nextInt. However I was looking for a more reliable manner to get this information. 回答1: As far as I know there's nothing like this built-in to Java or GWT.

Run gwt with https enabled?

一世执手 提交于 2020-01-30 02:38:11
问题 I'm currently running a GWT site with no security, but need to make the switch over to HTTPS. The working non-secure version runs with these arguments: -port 8888 -startupUrl ui/index.jsp com.example.EntryPoint I have read that simply adding -server :ssl will cause the site to be served with HTTPS enabled: -port 8888 -startupUrl ui/index.jsp -server :ssl com.example.EntryPoint However, with this I simply get [ERROR] Unable to load server class '' [ERROR] java.lang.ClassNotFoundException: