vaadin

Change themes in Vaadin 7 via code

半城伤御伤魂 提交于 2019-12-03 06:36:26
I am doing a project in Vaadin 7. In that I need to change the theme of a page. In Vaadin 6, there is a function called 'setTheme()'. so that I can change the theme using that function wherever I want in my code. But, In Vaadin 7, I couldn't find any like that. I know there will be a way to do it. And also how to apply changes on the UI when I change a theme? Will it be changed automatically? (or) ICEPush gonna help me? In Vaadin 7 the method 'setTheme()' has been replaced with the new Annotation @Theme. The "on the fly theme change" is not possible in Vaadin 7. There is a disucssion in this

Differences between GWT and Vaadin

天大地大妈咪最大 提交于 2019-12-03 06:13:26
问题 Can anyone suggest whether "GWT" or "Vaadin" are a better choice to design an application? Also: what are the differences in coding style? 回答1: In GWT application logic is normally run on client side. It only calls server when it needs to read/save some data. In Vaadin application logic is on server side. Client side must normally call server after every user interaction. GWT advantage: App logic (replies to user interaction) is faster as it is run locally in the browser. It's also relatively

Vaadin and Spring MVC Integration

不羁的心 提交于 2019-12-03 03:41:39
问题 I'm thinking about the possibility of using Spring MVC with Vaadin Framework. Are there any documented ways of making them play nicely together ? Also is it a good idea to use them together ? relating to performance; I'm going to run the app on a dedicated server. To make my question a bit more clear, how can i return a modelandview from a Spring MVC Controller that wll render using Vaadin and can access all the model data. 回答1: Spring support for Vaadin is quite new, but there has recently

How to get Vaadin Push work through Apache HTTP server?

泪湿孤枕 提交于 2019-12-03 03:24:43
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 Status 501 - Websocket protocol not supported type Status report message Websocket protocol not supported

vaadin 7 URL parameter

匿名 (未验证) 提交于 2019-12-03 02:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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(

Minimal example of Push in Vaadin 7 app (“@Push”)

匿名 (未验证) 提交于 2019-12-03 02:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to see the most minimal example of using the new Push technology in Vaadin 7, such as the new @Push annotation. I am having problems getting server-push to work in my app. I would like to try a simple example app before trying to fix my own app. 回答1: Simplification Of Example In The Book Of Vaadin The Book Of Vaadin includes a chapter on Push, including an example using Vaadin Charts . Below is my code. While based on that Vaadin Charts example mentioned above, I simplified it by replacing the use of a Chart object with a simple Label

Run Vaadin 8.1 app under Java 9 prerelease in IntelliJ 2017.2.2

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 选择语言 中文(简体) 日语 英语 中文(繁体) 由 翻译 强力驱动 问题: In IntelliJ 2017.2.2 I am able to run a Vaadin 8.1.2 app (brand-new vaadin-archetype-application archetype) with Tomcat 8.5.20 under Java 9+181 if the Project Structure > Project SDK is set to Java 1.8. If Project Structure > Project SDK is set to Java 9 I get this compiler error around FillIn with assertion error about filling something to do with Vaadin MouseEvents. I have tried googling but found no clues. Information : java : An exception has occurred in the compiler ( 9 ). Please file a bug against the

VAADIN cannot find themes when in productionMode

匿名 (未验证) 提交于 2019-12-03 01:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 classpath or add files to WebContent/VAADIN folder I

Vaadin 7.1.0 - DefaultWidgetSet can't be found

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am new to Vaadin and I am trying to do some Tests with this technology. I Set up my project as a Maven Project under Eclipse with a Tomcat 7 Server. At first I started with Vaadin 7.0.0 and everything works fine. Now I change the Version from 7.0.0 to 7.1.0 because I like to test the push functionality. With Vaadin 7.0.0 everything works fine, but since I changed the Version I get the error: Requested resource [ /VAADIN/ widgetsets / com . vaadin . DefaultWidgetSet / com . vaadin . DefaultWidgetSet . nocache . js ] not found from

Vaadin Upload File Path from Testing using Selenium

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Any reason why this wont set the file path for the Vaadin Upload Component in selenium. The file path remains unset and when the click happens it trys to upload null. The file does exist in my local directory. $(UploadElement.class).first().findElement(By.className("gwt-FileUpload")).sendKeys("/tmp/test.xlsx"); $(UploadElement.class).first().findElement(By.className("v-button")).click(); 回答1: This got it working getDriver().findElement(By.xpath("//input[@type='file']")).sendKeys("/tmp/test.xlsx"); $(UploadElement.class).first().findElement