gwt

ImageResource in ClientBundle as real <img> element

蓝咒 提交于 2020-01-16 04:50:13
问题 The IE9 does not print background images per default. Is there an option to tell ClientBundle, that all images should be real elements not fake css-background images? 回答1: It depends how the ClientBundle is generated, and how the image is constructed from the ImageResource . By default, ClientBundle s' ImageResource s are generated as data: URLs for all browsers but IE6 and IE7, which will use sprited images just like an ImageBundle . In IE8 and IE9 though, you have to make sure the

GXT 3.x : Dynamic freeze/lock columns. Autosize the grids

狂风中的少年 提交于 2020-01-16 02:22:11
问题 I took the sample code from here How to implement freeze column in GXT 3.x? and I came up with the code below. I've managed to make the columns dynamically move from locked grid to unlocked grid and vice versa. My problem is with the sizing of the grids. The original code used a fixed width. I can't have that. I need the grids (locked and unlocked) to fill as much space as the children columns need. The columns have a fixed width (let's say 50px;). The part that interests me is here

Disable Selection for GWT CellList

烂漫一生 提交于 2020-01-16 01:06:26
问题 I'm trying to build a website similar to kayak.com, at least with respect to how it displays and filters results. I'm using GWT and have built a Composite widget which uses a CellList to display the results. I'm not happy with how the cells are selectable. I've tried setting the SelectionModel of the CellList to an instance of NoSelectionModel, but that doesn't seem to work. Really, I just want to display some text and a few hyperlinks in each cell and only give the user visual feedback

GWT Sending type OBJECT Via RPC

♀尐吖头ヾ 提交于 2020-01-15 12:47:27
问题 I am trying to do this Service Interface: Boolean SaveObjectIntoDatabase(Object Entity); ServiceAsync: void SaveObjectIntoDatabase(Object Entity,AsyncCallback <Boolean> Callback); then implementing it on the serviceimpl with no success. Is it that we cannot send a variable of type object via GWT RPC?? stack trace: onModuleLoad() threw an exception Exception while loading module com.BiddingSystem.client.BiddingSystem. See Development Mode for details. java.lang.reflect

Visualizing networks in GWT [closed]

与世无争的帅哥 提交于 2020-01-15 12:35:10
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I'd like to integrate network visualization into my GWT app. I was thinking of using JUNG (check out this question) or neato to do the layout work and GWT-Graphics to do the drawing. It's also possible to combine GWT-Graphics with Processing and use a Processing library for

GWT validation framework internationalization for messages in annotations

僤鯓⒐⒋嵵緔 提交于 2020-01-15 12:12:40
问题 After having read this page I found a way of internationalizing validation messages. It is done by placing translations of each error type into ValidationMessages.properties files. javax.validation.constraints.Size.message=The property must be between {min} and {max} javax.validation.constraints.NotNull.message=The property must not be null It is error type-specific and it's not what I need in my app. I need a unique message for each of my fields in validated beans. With no

Unexpected character when downloading file client side from a servlet

北城以北 提交于 2020-01-15 10:57:28
问题 I create a servlet to download a specific text which the client post with a form before (in a textarea)... The form in the client side is nothing speciel: form = new FormPanel(); form.setMethod(FormPanel.METHOD_POST); form.setAction(GWT.getModuleBaseURL() + "services/export"); exportButton = new Button(resource.SUBMENU_Export(), new ClickHandler() { public void onClick(ClickEvent event) { form.submit(); } }); And this is the code at the server side (serlvet): package com.server.servlet;

GXT Combobox : type a value that is not in the list and keep it

谁说胖子不能爱 提交于 2020-01-15 09:16:11
问题 I try to have a GXT combobox (3.0.1) accepting text I type in it but it keeps deleting it on blur. Isn't it possible to tell the combobox to accept a value that's not a part of its liststore ? PS: setForceSelection(false) doesn't do what I want :) 回答1: The bug mentioned in the comments is focused on ComboBox<String> , since there is a natural mapping from the data the user typed in (aka a String) to the data in the combo (also a String). If you don't have such a natural mapping, the latest

Including Guava GWT in GWT app

 ̄綄美尐妖づ 提交于 2020-01-15 09:06:44
问题 I'm trying to add guava to my GWT 2.6.1 application. I included guava-19.0.jar and guava-gwt-19.0.jar. I added <inherits name="com.google.common.collect.Collect" /> <inherits name="com.google.common.base.Base" /> to my "MyApp.gwt.xml" file. When I go to run the app via Super Dev mode, I get this error, and I'm not sure what to do. Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors. [ERROR] Errors in 'jar:file:/C:/Projects/my_proj/code/my_gwt_app/main_app/libs/guava

Can't Run html libgdx with libgdx-utils

五迷三道 提交于 2020-01-15 09:04:07
问题 Im trying to compile my libgdx game, its working for android and desktop, but not HTML GWT. Im using Intellij / Gradle for the project. I just added the libgdx-utils extension lib found here which seems to be causing the error: https://bitbucket.org/dermetfan/libgdx-utils/wiki/Dependency%20Instructions The error i get when attempting this gradle command ./gradlew html:dist is: :html:compileGwt Compiling module com.xx.xx.GdxDefinition Validating units: [ERROR] Errors in 'file:/xx/xx/xx/screens