vaadin

Load test vaadin 7.0.4 return error No UIProvider

我的未来我决定 提交于 2019-12-10 11:13:28
问题 I would like to load test a vaadin app with 5000 users. I found this https://vaadin.com/wiki/-/wiki/Main/JMeter%20Testing and trying to emulate with a single user. With the simplest step of Login and Logout, i encounter this error during playback. No UIProvider returned a UI for the request Any idea what is this error regards or how to troubleshoot it? 回答1: It looks like that jMeter example is for Vaadin 6. Vaadin 7 refactored the servlet class, and the Application class is now the UI class.

Vaadin Table does not update no matter what I try

只愿长相守 提交于 2019-12-10 10:58:45
问题 I use Vaadin (6.7.4) and this table (it is on a modal window) does not update the view. First it was created with generated columns, but I read that it has problems with table update, so I switched back to normal table, but still no refresh. Updatedata is called by button click event on the panel final Table table = new Table(); final IndexedContainer ic=new IndexedContainer(); public createTable(){ table.setImmediate(true); table.setEnabled(true); ic.addContainerProperty("Name", String.class

Vaadin: Downloaded file has whole path as file name

喜你入骨 提交于 2019-12-10 10:56:12
问题 I have a download action implemented on my Vaadin application but for some reason the downloaded file has the original file's full path as the file name. Any idea? You can see the code on this post. Edit: Here's the important part of the code: package com.bluecubs.xinco.core.server.vaadin; import com.bluecubs.xinco.core.server.XincoConfigSingletonServer; import com.vaadin.Application; import com.vaadin.terminal.DownloadStream; import com.vaadin.terminal.FileResource; import java.io.*; import

Vaadin Grid layout borders

半腔热情 提交于 2019-12-10 09:40:10
问题 I have three form with few TextField in my View ( GridLayout ), I need to designate each form with black line borders. How Can I do that. Do I need include css? Thanks in advance! 回答1: Yes, you need to add a style to the GridLayout. final GridLayout gridLayout = new GridLayout(); // Add stuff to it ... gridLayout.addStyleName("your-css-tag"); In your theme css (in my workspace webapp/VAADIN/themes/mytheme/mytheme.scss): .your-css-tag { border-style: solid; border-color: black; border-width:

Getting a NoClassDefFoundError after installing Vaadin

南笙酒味 提交于 2019-12-10 08:58:22
问题 I want to do a project using Vaadin and am facing some issues. Here's what I did. I downloaded Eclipse and installed the Vaadin for Eclipse plugin. Then, I created a new Vaadin 7 project. It downloaded some Ivy dependencies but then, when I pressed Run, I get this error: java.lang.NoClassDefFoundError:com/vaadin/server/VaadinServlet. I searched a bit on the Internet but to no avail. One thing is that in the web-app's WEB-INF/lib folder, there are no jars. I have attached a screenshot of the

How to stop vaadin stealing all url-patterns (and play nicely with spring mvc)

泪湿孤枕 提交于 2019-12-10 08:43:42
问题 I have a vaadin application and I am trying to provide some REST Urls provided by spring MVC alongside - my web.xml is below. I only get 404s at /info - it seems like Vaadin steals all the url patterns. If I remove Vaadin, I can reach /info and get content at that url. How to I get them to play nicely together? <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext.xml </param-value> </context-param> <listener> <listener-class>org

How to make only some columns editable in a Vaadin Grid?

China☆狼群 提交于 2019-12-10 04:13:23
问题 Vaadin Grid allows to be defined as editable with grid.setEditorEnabled(true); This makes all visible columns editable. However I don't want the user to edit an specific column, but seems like the editable is an all or nothing. The next best solution I have found is to define an editor field with a disabled editor, which almost does the trick but the user is still able to select the text and move the cursor (but the field is not editable anymore). Grid.Column nameColumn = grid.getColumn(

How to respond to click on a table row in vaadin

為{幸葍}努か 提交于 2019-12-10 02:52:19
问题 I've got the following code: public Button getBtnSubmit(com.vaadin.ui.Button.ClickListener l) { if (null != l) { btnSubmit.addListener(l); } return btnSubmit; } public Table getTableCompany(HeaderClickListener hl) { if (null != hl) { tableCompany.addListener(hl); } return tableCompany; } I would like to add a listener that fires when I select a (different) row in the table. This so that I can refresh some other controls with the table data, which listener should I use? 回答1: addListener is

Vaadin Grid cell not showing multiline rows

折月煮酒 提交于 2019-12-09 14:47:03
问题 With Vaadin Grid, I want to generate multiline cells for every cell that have more content in cell that overlaps its width. I have allready tried: java \n new line character and CSS stylings like white-space: pre; but it does not seem to work. (This solution worked for Table) custom renderer setRenderer(HtmlRenderer) with </br> tags and different CSS display settings Desired result: 回答1: Vaadin Grid still doesn't have native support for multiline columns but you can try some improvisation, on

vaadin 7 URL parameter

纵然是瞬间 提交于 2019-12-09 11:22:39
问题 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