vaadin

Vaadin Grid Table : How to disable Sort Function and set the color of one column

╄→гoц情女王★ 提交于 2019-12-03 15:04:54
I'm using Grid table in Vaadin for data representation. For that I'm trying to figure out the following two issues: 1.) How to disable the sort function in the Header of each column 2.) How to set the color of one column in a Grid table Morfic First of all, I find the Vaadin docs a good place to start looking for help. For the rest of the exercise, suppose we have a Grid with 3 simple columns c1, c2 & c3: Grid grid = new Grid(); grid.addColumn("c1", String.class); grid.addColumn("c2", String.class); grid.addColumn("c3", String.class); 1.) How to disable the sort function in the Header of each

How to get Vaadin Push work through Apache HTTP server?

五迷三道 提交于 2019-12-03 14:02:22
问题 I'm trying to get Vaadin 7.1.5 Push to work on Apache Tomcat 7.0.42 + Apache HTTP server (2.2.14 with mod_proxy_wstunnel). The Vaadin application and push with WebSocket works fine when I access Tomcat directly (ie. http://mydomain:8080/myapp ). The problem arises when I try to access it by using the Apache modules mod_proxy & mod_proxy_wstunnel. What happens is that the application hangs, the loading indicator gets red and I get this error in the push request in the browser console: HTTP

Vaadin 7.1 + Spring-Security Integration running in Tomcat Server

二次信任 提交于 2019-12-03 14:02:21
问题 Im new on vaadin and spring security, I want to know if anyone had a complete project example of the vaadin 7.1 + spring-security integration running in a tomcat server (not in jetty). 回答1: Vaadin 7 easy integrate with Spring Security. You should configure only 2 files. First - web.xml and second one spring-security.xml (user credentials and security settings). This is small example how to use base form for authentification. web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi=

vaadin 7 URL parameter

一个人想着一个人 提交于 2019-12-03 13:37:20
I am not too familiar with vaadin 7 and I can not figure out this. I tried to use google but no useful result. My question is very simple. How can I get the request url parameters in my UI class? My url has a parameter: host/myvaadinapp/?code=erefdvdfgftf... The url parameter comes from facebook after user logged in (OAuth) and I need to handle the value of code url parameter in my code. I tried to do these: @PreserveOnRefresh public class AdminUi extends UI { @Override protected void init(VaadinRequest request) { ... System.out.println( request.getPathInfo()); System.out.println( request

How to add d3 (javascript) to a vaadin application?

狂风中的少年 提交于 2019-12-03 12:52:47
Good evening guys, I'm currently trying to add the visualization functionality of d3 to my vaadin application. If you don't know what d3 is, here is a quick link: http://d3js.org/ Yet I am stuck with some problems: How can I add the "d3.v2.js" javascript file/library, that is necessary for developing with d3? I tried adding it to an own theme (WebContent/VAADIN/themes/myOwnTheme/..), but through refreshing in eclipse I'm getting the message: "Errors occurred during the build. Errors running builder 'JavaScript Validator' on project 'VaadinD3Testproject'. 14". I guess that's because the js-file

How to start a file download in vaadin without button?

社会主义新天地 提交于 2019-12-03 09:11:06
问题 I know that it is really easy to create a FileDownloader and call extend with a Button . But how do I start a download without the Button ? In my specific situation right now I have a ComboBox and the file I'd like to send to the user is generated after changing its value, based on the input. The file should be sent immediately without waiting for another click. Is that easily possible? Thanks raffael 回答1: I found a solution myself. Actually two. The first one uses the deprecated method Page

java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream vaadin+gradle+intelliJ

好久不见. 提交于 2019-12-03 08:58:20
问题 I have been working fine with Vaadin + Gradle + IntelliJ until yesterday night when I introduced SLF4J(logback) logging to my application. Since then I can't make my project anymore due to classDefFoundError of org/apache/tools/ant/util/ReaderInputStream . I can't link it with any transitive dependency of any contained jar in application, but even if I remove SLF4J libraries I still can't make my application, so I am wondering what changed? I am using vaadin gradle plugin 0.9.5 and gradle 2.2

Vaadin combobox

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to create Vaadin drop down with 2 separators in it. I couldn't find a way to implement that, can anyone help me to solve this issue? This is the way I want to display my drop down: Option 1 Option 2 ------------; select 1 select 2 -----------; group 1 How can I do that? 回答1: There is no built-in way to add separators to selects. The only way I can think of is to add an item with the desired separator as its caption. For example if you use the default caption (item id) select.addItem("-----"); should be enough. This should work for

How do I fix &#039;com.vaadin.DefaultWidgetSet&#039; does not contain implementation for com.vaadin.addon.charts.Chart

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: By using "Spring Stater Project" in Eclipse/STS, I was able to have a Vaadin project up and running quickly. I want to add charting via Vaadin-Addon to the project. I have Googled trying to find how to properly add and use Vaadin Chart addon to the project. But I am confused because there so many "Guides/Tutorial", but a lot are not for spring boot or they are outdated or partial. So I am looking for a complete Guide/Tutorial for Vaadin-SpringBoot-VaadinChart-AddOn. This is what I have so far: ---- Pom file ---- <?xml version="1.0" encoding=

Vaadin authentication best practice

随声附和 提交于 2019-12-03 08:46:01
问题 I am interested in the best practice in authentication in Vaadin I think there is mainly two option here: ThreadLocal (can cause Out of memory, can have the same thread for different users) Spring Security + Vaadin integration (seems a little too much) Which one do you prefer and why? (Security issues, easy development, other factors) 回答1: There are a lot of different ways for authentication in Vaadin. Vaadin base authentication. For Vaadin 6, try LoginForm. For Vaadin 7, you can use the new