vaadin7

Vaadin : How to change favicon?

匆匆过客 提交于 2019-12-19 14:05:22
问题 How can I change favicon of my pages in Vaadin ? I would like to change favicon of my pages but I have no idea where is the place to change it ? Has somebody experience on it ? 回答1: First, create a theme directory: /WebContent/VAADIN/themes/mynewtheme Then, put your custom favicon.ico in this directory. You also need to set theme property in your application : public class MyNewApplication extends Application { @Override public void init() { ... ... setTheme("mynewtheme"); } } 回答2: Here is a

Vaadin : How to change favicon?

家住魔仙堡 提交于 2019-12-19 14:05:13
问题 How can I change favicon of my pages in Vaadin ? I would like to change favicon of my pages but I have no idea where is the place to change it ? Has somebody experience on it ? 回答1: First, create a theme directory: /WebContent/VAADIN/themes/mynewtheme Then, put your custom favicon.ico in this directory. You also need to set theme property in your application : public class MyNewApplication extends Application { @Override public void init() { ... ... setTheme("mynewtheme"); } } 回答2: Here is a

Update Grid with a fresh set of data, in Vaadin 7.4 app

依然范特西╮ 提交于 2019-12-18 08:39:34
问题 In the new Vaadin 7.4 release, the new Grid widget debuted as an alternative to the venerable Table. After getting a Grid displayed, I later want to replace the entire set of data with fresh data. Rather than update the individual rows, I want to simply replace them. I happen to be using a BeanItemContainer for easy read-only display of some objects with JavaBeans-style getter methods. 回答1: I considered two approaches: Two step process of replacing bean items. (1) First remove all BeanItem

VAADIN cannot find themes when in productionMode

半腔热情 提交于 2019-12-17 16:30:51
问题 I have custom theme for my VAADIN application in src/main/webapp/VAADIN/themes/mytheme/ with files mytheme.scss and styles.scss. Everything works fine when the vaadin productionMode deployment parameter is set to false in web.xml. When I set the parameter to true, suddenly Vaadin cannot find the resources for my theme and keeps complaining with: Requested resource [/VAADIN/themes/mytheme/styles.css] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your

VAADIN cannot find themes when in productionMode

醉酒当歌 提交于 2019-12-17 16:28:53
问题 I have custom theme for my VAADIN application in src/main/webapp/VAADIN/themes/mytheme/ with files mytheme.scss and styles.scss. Everything works fine when the vaadin productionMode deployment parameter is set to false in web.xml. When I set the parameter to true, suddenly Vaadin cannot find the resources for my theme and keeps complaining with: Requested resource [/VAADIN/themes/mytheme/styles.css] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your

How to update Vaadin Grid after push?

痞子三分冷 提交于 2019-12-14 03:04:37
问题 I'm trying to update a grid in Vaadin after a change has been made to the grid from a different UI instance. To elaborate, I have two different UI instances, UI1 and UI2 (tabs from two different browsers). These UI instances contain a view which contains a grid consisted of Contact objects that have various properties such as name, age, gender... I add a Contact to the grid from UI1 and I want UI2 to see the updated grid instantly without having to refresh. To accomplish that, I know I have

Integrate spring-boot-starter-security with Vaadin 7

≡放荡痞女 提交于 2019-12-14 02:32:48
问题 I'm trying to integrating Spring Security with Vaadin Spring (https://vaadin.com/wiki/-/wiki/Main/Vaadin+Spring). My application class just starts up the Spring Application https://gist.github.com/anonymous/c047030c61b90c02d1ef I created a class that extends WebSecurityConfigurerAdapter https://gist.github.com/anonymous/0e905d0627adf5e2dc39 pom.xml includes the dependency spring-boot-starter-security When I type in localhost:8080 it redirects me to the login url (http://localhost:8080/login)

Vaadin Table Collapse Column Listener

被刻印的时光 ゝ 提交于 2019-12-13 04:24:33
问题 I want to know which columns are collapsed & uncollapsed, in vaadin. Is there a listener for this, I could not found? 回答1: It's not supported out the box. However you could extends Table to support it. Something like public class ColumnCollapsedObservableTable extends Table { private List<ColumCollapsedListener> collapseListeners = new ArrayList<ColumCollapsedListener>(); @Override public void setColumnCollapsed(Object propertyId, boolean collapsed) throws IllegalStateException { super

Vaadin filters in Grid

感情迁移 提交于 2019-12-13 02:06:41
问题 i have problem with filters in Vaadin. Its easy to make filters for each column in Grid. But now i need to do one filter for all cells in Grid. I don't know how to do this. I was trying to do this like in this example, but it doesn't worked Filter f = new Or(new SimpleStringFilter(Columns.SEARCH.id(), "rpm-diastolic", true, false), new Or(new SimpleStringFilter(Columns.SEARCH.id(), "rpm-systolic", true, false)), new Or(new SimpleStringFilter(Columns.SEARCH.id(), "rpm-weight", true, false))) ;

How to recalculate column widths on scroll down(not programmatic) to a previously hidden row of a Vaadin Grid when its HeightMode is CSS

Deadly 提交于 2019-12-12 23:02:32
问题 My application is similar to Vaadin Dashboard Demo (please click login after you visit this link). So all my mini dashboard items are wrapped around an abstract component that is of height 300px. One of those items is a Grid wrapped around this 300px height abstract component. My customer hates it when he sees a large column and .v-grid-cell cuts his cell off: text-overflow: ellipsis; So in the @PostConstruct of my Vaadin Grid(and everywhere I mess with the container) i have this