vaadin

How to close a Vaadin subwindow on mouseclick outside of the window?

左心房为你撑大大i 提交于 2019-12-04 07:56:25
I'm using vaadin 7 and in my application I use subwindows sometimes. In one case I have a modal window with several components in it. It opens another window when clicked on some of the components inside the modal window. I'd like this window to close automatically when the user clicks outside of it (e.g. on the modal window again). In the Vaadin Sampler this behaviour seems implemented when showing the source (click on the source button in the right upper corner). Also the behaviour should be the same if not opened from a modal window, but from the UI or any other subwindow. I tried several

How to disable browser caching in Vaadin

一个人想着一个人 提交于 2019-12-04 07:39:26
My question is short (and hopefully simple to solve!): How can I completely disable browser-caching in my webservice realized with vaadin ? I want to completely disable caching since I'm getting problems when I try to do some PDF streaming and displaying them in my browers. I have read about a solution for my problem for example here: Using <meta> tags to turn off caching in all browsers? They talk about adding some headers to the web application that disable browser caching. But how do I add them to my Vaadin application? A short code snippet would be very welcome (and helpful!) Thanks once

How to create different Themes on top of Valo in Vaadin?

老子叫甜甜 提交于 2019-12-04 07:07:20
Now vaadin 7.3 has came out and it has the very nice Valo Theme . But I don't know how to import it to my project? Now I am using a default theme with my custom scss files. I would like to taste Valo . Please somebody help me how to import valo theme to my project. More over, how can I choose theme styles? Valo Theme Demo has different theme styles such as Default, Blueprint, Dark, Metro, Flat . How to choose this categories as I wish? read the fine manual: https://vaadin.com/book/vaadin7/-/page/themes.valo.html#themes.valo.use there is a whole section dedicated to Valo the different themes on

Replacement for `AbsoluteLayout` from Vaadin 8 Framework in Vaadin 10 Flow?

你离开我真会死。 提交于 2019-12-04 06:30:49
The AbsoluteLayout in Vaadin 8 ( Framework ) enables pixel-position-oriented placement of widgets within a layout. While not my first layout of choice, the AbsoluteLayout is suited to porting code from other UI-building platforms that use pixel-position-oriented layout. Example code from the manual : // A 400x250 pixels size layout AbsoluteLayout layout = new AbsoluteLayout(); layout.setWidth("400px"); layout.setHeight("250px"); // A component with coordinates for its top-left corner TextField text = new TextField("Somewhere someplace"); layout.addComponent(text, "left: 50px; top: 50px;"); I

ZetCode 杂项教程

。_饼干妹妹 提交于 2019-12-04 06:23:49
来源: ApacheCN ZetCode 翻译项目 译者: 飞龙 协议: CC BY-NC-SA 4.0 贡献指南 本项目需要校对,欢迎大家提交 Pull Request。 请您勇敢地去翻译和改进翻译。虽然我们追求卓越,但我们并不要求您做到十全十美,因此请不要担心因为翻译上犯错——在大部分情况下,我们的服务器已经记录所有的翻译,因此您不必担心会因为您的失误遭到无法挽回的破坏。(改编自维基百科) 目录 TCL 教程 Tcl Tcl 语法结构 Tcl 中的基本命令 Tcl 中的表达式 Tcl 中的控制流 Tcl 中的字符串 Tcl 列表 Tcl 中的数组 Tcl 中的过程 输入&输出 AWK 教程 Vaadin 教程 Vaadin 框架介绍 Vaadin Grid 教程 Vaadin TextArea 教程 Vaadin ComboBox 教程 Vaadin Slider 教程 Vaadin CheckBox 教程 Vaadin Button 教程 Vaadin DateField 教程 Vaadin Link 教程 另见 数据库 图形 C#/vb.net GUI Java JavaScript Kotlin 杂项 PHP Python Ruby Servlet Spring Spring Boot Symfony Vaadin 来源: https://my.oschina.net

ZetCode Servlet 教程

别等时光非礼了梦想. 提交于 2019-12-04 06:21:19
来源: ApacheCN ZetCode 翻译项目 译者: 飞龙 协议: CC BY-NC-SA 4.0 贡献指南 本项目需要校对,欢迎大家提交 Pull Request。 请您勇敢地去翻译和改进翻译。虽然我们追求卓越,但我们并不要求您做到十全十美,因此请不要担心因为翻译上犯错——在大部分情况下,我们的服务器已经记录所有的翻译,因此您不必担心会因为您的失误遭到无法挽回的破坏。(改编自维基百科) 目录 从 Java Servlet 提供纯文本 Java Servlet JSON 教程 Java Servlet HTTP 标头 Java Servlet 复选框教程 Java servlet 发送图像教程 Java Servlet JQuery 列表教程 Servlet FreeMarker JdbcTemplate 教程-CRUD 操作 jQuery 自动补全教程 Java servlet PDF 教程 servlet 从 WAR 内读取 CSV 文件 Java HttpServletMapping EasyUI datagrid Java Servlet RESTFul 客户端 Java Servlet Log4j 教程 Java Servlet 图表教程 Java ServletConfig 教程 Java Servlet 读取网页 嵌入式 Tomcat Java Servlet

save file on server, java web application [duplicate]

ぐ巨炮叔叔 提交于 2019-12-04 06:11:23
This question already has an answer here: Recommended way to save uploaded files in a servlet application 2 answers from my web application (vaadin) I generate XML files and want to store these files on the server. I did: context.getHttpSession().getServletContext().getRealPath("/"); I run the web app on tomcat and managed to save the file to the app folder under .metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/my_app_folder/ on the same level with META-INF, WEB-INF and VAADIN folder. If I want to save the file on server storage and save the path of the file on the database,

Vaadin ServletException: Failed to load application class

半城伤御伤魂 提交于 2019-12-04 05:10:59
问题 I have a vaadin and servlet error when i try to load the servlet in the browser by localhost/testVaadin/ I want to execute this sample to see how vaadin works, because I have to implemnt an BPMN with activity explorer, which is using vaadin as a UI framework. I attached the code, and web.xml plus the thrown exception. package com.example.testvaadin; import com.vaadin.Application; import com.vaadin.data.Property; import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.data.util

ZetCode Spring 教程

此生再无相见时 提交于 2019-12-04 03:58:01
来源: ApacheCN ZetCode 翻译项目 译者: 飞龙 协议: CC BY-NC-SA 4.0 贡献指南 本项目需要校对,欢迎大家提交 Pull Request。 请您勇敢地去翻译和改进翻译。虽然我们追求卓越,但我们并不要求您做到十全十美,因此请不要担心因为翻译上犯错——在大部分情况下,我们的服务器已经记录所有的翻译,因此您不必担心会因为您的失误遭到无法挽回的破坏。(改编自维基百科) 目录 Spring @Bean 注释教程 Spring @Autowired 教程 Spring @GetMapping 教程 Spring @PostMapping 教程 Spring @DeleteMapping 教程 Spring @RequestMapping 教程 Spring @PathVariable 教程 Spring @RequestBody 教程 Spring @RequestHeader 教程 Spring Cookies 教程 Spring 资源教程 Spring 重定向教程 Spring 转发教程 Spring ModelAndView 教程 Spring MessageSource 教程 Spring AnnotationConfigApplicationContext Spring BeanFactoryPostProcessor 教程 Spring

Slow HTML generation with Vaadin

时光总嘲笑我的痴心妄想 提交于 2019-12-04 03:21:30
I'm a developer with a problem ;) Currently we're close to an end on our project (using Vaadin) however... we're getting some trouble with displaying simple data in one of our views. (over 500 KB of data to display, and over 15K DOM elements after Vaadin is done with generating it... + lots, and lots and LOTS seconds before it's done). My task is to find out how i can make this as small and as fast as possible, so my first guess was to use some other layouts than those avaliable in standar Vaadin. I used WeeLayout, DashLayout and CssLayout(default), compare is below: weeLayout - page size: 990