vaadin

grails: scss compiler required for production env

淺唱寂寞╮ 提交于 2019-12-12 01:07:14
问题 Using Vaadin7 with grails, i'm facing an issue to get the production mode working: Dec 25, 2013 11:56:28 PM com.vaadin.server.VaadinServlet serveOnTheFlyCompiledScss INFO: Request for /VAADIN/themes/app/styles.css not handled by sass compiler while in production mode Which is normal since no scss compiler to css is set by default for prod unlike to dev mode. I'm looking for a grails hack in order to get the equivalent of the maven tool for prod war generation: <plugin> <groupId>org.codehaus

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

Vaadin: Maven: Not start on production mode. Failed to find the bundle manifest file 'frontend://vaadin-flow-bundle-manifest.json'

雨燕双飞 提交于 2019-12-11 23:48:48
问题 Vaadin 12.0.4 Maven 3+ I download simple project from Vaadin's official site https://vaadin.com/start/latest/simple-ui In my Vaadin Maven and Jetty project. In my pom.xml <profiles> <profile> <!-- Production mode can be activated with either property or profile --> <id>production-mode</id> <activation> <property> <name>vaadin.productionMode</name> </property> </activation> <properties> <vaadin.productionMode>true</vaadin.productionMode> </properties> <dependencies> <dependency> <groupId>com

Is there a max file size when uploading as a Multipart File

前提是你 提交于 2019-12-11 23:31:58
问题 HttpPost post = new HttpPost(properties.getPropert("system.api.url")); post.setHeader("Accept", "application/json"); MultipartEntity entity = new MultipartEntity( HttpMultipartMode.BROWSER_COMPATIBLE); entity.addPart("file", new FileBody(file, event.getMIMEType())); post.setEntity(entity); This is how I upload the file as a Multipart file to my rest controller. Is there a max file size that can be uploaded or is there any way that I can define a max file size foe this kind of uploading. I use

CSS: Positioning components using margins

可紊 提交于 2019-12-11 23:07:29
问题 In the image below, you can see i have two tabs help and Instructions , i want to place these two tabs next to each other where the Help tab currently is. When i use the margin-left: property, only the help button moves to the left and the instructions button stays in the same place. The css i am using to configure this: .v-csslayout-topbarapplicant .v-button, .v-csslayout-topbarapplicant .v-nativebutton, .v-csslayout-topbarapplicant-invert .v-button, .v-csslayout-topbarapplicant-invert .v

Vaadin get the table contents into a Map

烂漫一生 提交于 2019-12-11 23:07:23
问题 I am kinda new to Vaadin, and already went through their book. My question is about an editable table and how to get the values out of it when it is changed. So basically what I have is a simple table and I fill this with a HashMap. So edit buttons make the fields editable, and add line button adds a line. The implementation is straightforward. But what I did not manage is the update button, because when I add a line or edit some field I want to get all the changed keys and values as pairs

Use filtered dataProvider contents when FileDownloader is called in Vaadin

帅比萌擦擦* 提交于 2019-12-11 18:34:25
问题 I'm trying to download a csv file after applying filters to the DataProvider. For some reason the filtered results are shown in the Grid, but the downloaded csv file still contains all data. @AutoView class FinancialTransactionsView : VerticalLayout(), View { private val grid: Grid<FinancialTransaction> private val yearField: ComboBox<Int> private val dataProvider = DataProvider.ofCollection(FinancialTransaction.findAll()) private val fileDownloader: FileDownloader init { label("Financial

Converting value of DateField in vaadin

一个人想着一个人 提交于 2019-12-11 17:48:14
问题 I'm working with the Vaadin Framework at the moment. I want to convert the string in my DateField to Date . So I have two classes, one is the view and the other should contain the values which I save with data binding. This is the DateField in the view: timestart = new DateField(""); timestart.setId("timestart"); timestart.setDateFormat("yyyy-MM-dd HH:mm"); timestart.setValue(new Date()); timestart.setResolution(Resolution.MINUTE); timestart.setConverter( XXX ); // Here i don't know what to

Vaadin: MouseDown/MouseUp and KeyDown/KeyUp evens

六眼飞鱼酱① 提交于 2019-12-11 17:18:58
问题 Is it possible to handle MouseDown/MouseUp and KeyDown/KeyUp evens with Vaadin? I've found forum thread with the same question and looks like the answer is no, but it was 5 years ago - I hope something changed with later releases. Still I can't find anything in API. Maybe there's some workaround for intercepting such evens? 回答1: Well, after couple of days I came up with the acceptable (for me) solution. Required component has to be wrapped with extension-interceptor (credits to @petey for an

VAADIN - Button | implement in HTML Layout-Script

你说的曾经没有我的故事 提交于 2019-12-11 17:12:00
问题 is there any oportnunity to use a Vaadin Button in a HTML script? Id like to use the following button Button button_login = ew Button(); button_login.setID("buttonlogin"); and this button should be implement in the following script <div data-location="buttonlogin"></div> (Only an idea) Have so. an idea to bind the button in the html script? Thank! 回答1: I am quite unsure what you mean by html script . If it is something you can achieve using JavaScript then here is my try. Generally to execute