vaadin7

Vaadin 7 : TableFieldFactory

独自空忆成欢 提交于 2019-12-12 01:05:37
问题 Is there a way to implent TableFactory interface with specific fields related to propertyId ? I only get one type of field since i'm using a generic class for all my tables, and the i'm missing CheckBox boolean value (groovy code): class DefaultTableFieldFactory implements TableFieldFactory { @Override public Field<?> createField(Container container, Object itemId, Object propertyId, Component component) { TextField t = new TextField() switch(propertyId) { case "firstname": t

Session Expired on tomcat8 behind apache2 ProxyPass

为君一笑 提交于 2019-12-11 20:24:25
问题 For a web application named whys written with VAADIN 7.3.8, i deployed a tomcat8 server behind an apache one (and redirected app.whys.fr to whys.fr:8080/Whys wich is my app location). When i go on http://whys.fr:8080/Whys, everything looks good, but when i go on http://app.whys.fr, i get a session expired message immediatly, and no logs to tell me why (nothing in catalina.out). You can test it by your own to see the difference ;). Here is my proxy configuration : <VirtualHost *:80> ServerName

Updating data in Vaadin's grid

烈酒焚心 提交于 2019-12-11 16:49:54
问题 Hello everyone my problem is that my grid doesn't update data. I've a Thread that get new values from a database but when I assign the new DataProvider from the collection that get new values, the grid doesn't change anything. For example, the Grid contains the orders from clients, every 30 seconds a Thread search if there are new orders available, then y get all the orders in an ArrayList and set the new ArrayList in the grid’s DataProvider but the Grid continues having the same values as

Vaadin 7 : How to update Cookie value?

偶尔善良 提交于 2019-12-11 14:37:00
问题 Methods for cookie management these I use as below public static Cookie getCookieByName(final String name) { // Fetch all cookies from the request Cookie[] cookies = VaadinService.getCurrentRequest().getCookies(); // Iterate to find cookie by its name for (Cookie cookie : cookies) { if (name.equals(cookie.getName())) { return cookie; } } return null; } public static Cookie createCookie(final String name, final String value, final int maxAge) { // Create a new cookie Cookie cookie = new Cookie

How to merge cells in Vaadin grid

孤街醉人 提交于 2019-12-11 13:38:36
问题 I wonder how I can merge in Vaadin 7.6 a group of cells for the same column name, where values in the cells would be replaced by a unique cell. Right now, I only found how to merge headers and footers. Tks, 回答1: Unfortunately Vaadin Grid doesn't support that. As you noticed it's possible to merge cells on headers and footers but it's not supported on the actual content cells. 来源: https://stackoverflow.com/questions/34884375/how-to-merge-cells-in-vaadin-grid

error during vaadin widgetset compilation

时光怂恿深爱的人放手 提交于 2019-12-11 11:29:09
问题 I have created component based on GWT Component state package com.game.quest.ui.gwt; import com.vaadin.shared.AbstractComponentState; import java.util.ArrayList; import java.util.List; public class LinePlotState extends AbstractComponentState { public List<DataSeries> series = new ArrayList<>(); public static class DataSeries { public String label; public String color; public List<Float> data; } } Component connector package com.game.quest.ui.gwt; import ca.nanometrics.gflot.client.DataPoint;

Open Browser Popup in Liferay via Vaadin

匆匆过客 提交于 2019-12-11 11:05:47
问题 using Vaadin 7.1 and Liferay 6.1 I try to open a new UI (in the same session) in a new browser window using com.vaadin.server.BrowserWindowOpener: Button button = new Button("button"); BrowserWindowOpener windowOpener = new BrowserWindowOpener(OverviewWindow.class); windowOpener.extend(button); Where OverviewWindow extends UI is a trivial custom UI. In standalone use (i.e. without Liferay) this works fine, but in Liferay the popup opens and displays "Request was not handled by any registered

Vaadin Client Side Application Understanding

旧街凉风 提交于 2019-12-11 09:56:01
问题 I'm new to vaadin framework and was going through the Vaadin Book but was not to able understand the flow of client side Vaadin application. Would be very thankful if anyone explains the working of the Vaadin Client side application. As vaadin offers two development models i.e. Client side and Server Side. 回答1: The client-side application is nothing but a JavaScript application that the browser downloads & executes. This JavaScript application is written in Java and compiled to JavaScript by

Select-all shortcut (Ctrl-A) in Vaadin Table?

北城余情 提交于 2019-12-11 07:54:25
问题 I have the following snippet in my UI Builder code: table.addShortcutListener(new ShortcutListener("Select all", null, KeyCode.A, ModifierKey.CTRL) { @Override public void handleAction(Object sender, Object target) { AbstractSelect t = (AbstractSelect) target; if (t.isMultiSelect()) { t.setValue(t.getItemIds()); } } }); return table; This allows to press Ctrl + A to select all items in a table. This usually works the first time I load a view until I make one of the tables invisible (

how can I wait for options with a messagebox in vaadin?

对着背影说爱祢 提交于 2019-12-11 06:18:39
问题 I'm little new to Vaadin and web applications. I'm having problems getting the selected option (a simple yes or no) from a MessageBox with Vaadin add-on Steinwedel. I need to wait for the client to say "yes" or "no", then run my code for that option, as in java JOption . I have a class for MessageBox that returns the option: int option = MessageBox.showDialog (message, title, QUESTION_YES_NO_OPTION); But my code always runs through, even though I have my MessageBox opened. 回答1: Unlike in a