vaadin4spring

How to use PollListener in vaadin?

為{幸葍}努か 提交于 2020-01-05 05:09:48
问题 I'm trying to use PollListener in vaadin with following code: @VaadinUI @PreserveOnRefresh public class ApplicationUI extends UI { @Override protected void init(VaadinRequest request) { setPollInterval(1000); access(new Runnable() { @Override public void run() { System.out.println("TEST POLL: " + counter++); //is only printed a single time } }); } } The output "TEST POLL 0" is printed a single time when I open my application. But that's it. What might I have missed? 回答1: You don't have to do

Spring Boot, Keycloak and Vaadin integration issue

守給你的承諾、 提交于 2019-12-22 12:16:07
问题 I have been been playing with spring boot and been successful in using Keycloak and Vaadin separately in different projects. Now, I wanted to combine both to avoid having to implement my own security using Vaadin. The result I have so far can be found here: github project. I started from the shared security example given by vaadin4spring. I then added the Keycloak configuration as given by the keycloak-spring-security-adapter and the keycloak-spring-boot-adapter. I have now hit a wall in

use spring in vaadin

ε祈祈猫儿з 提交于 2019-12-12 05:04:22
问题 i want to use spring in vaadin it's my config: web.xml <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <listener> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> </listener> <servlet> <servlet-name>VaadinApplicationServlet</servlet-name> <servlet

How to run hazelcast session replication using vaadin4spring?

感情迁移 提交于 2019-12-11 12:52:40
问题 I am writing a simple demo application using hazelcast session replication based on the shared security example mentioned in here https://github.com/peholmst/vaadin4spring. The problem is that if i am starting the application it stays on the login site with "communication error". With vaadin debug on, it shows me "Response didn't contain a server id. Please verify that the server is up-to-date and that the response data has not been modified in transmission." In the IDE no stack trace is

vaadin4spring security sample: failed to load widgetset

一个人想着一个人 提交于 2019-12-11 11:47:30
问题 I am desperately trying to build a little Vaadin project with login secured pages/views. I have found vaadin4spring and thought I could start based on the security sample. However, after importing the project and running it, I am receiving the message (without any changes at the project): Failed to load the widgetset: ./VAADIN/widgetsets/org.vaadin.spring.samples.security.Widgetset/org.vaadin.spring.samples.security.Widgetset.nocache.js?1424243461387 I have also tried to compile the widgetset

Spring boot with vaadin run jetty even though I use tomcat

ぐ巨炮叔叔 提交于 2019-12-11 05:09:24
问题 I try to use Spring boot with Vaadin 7.7.0. By default, spring boot use tomcat if I don not specify. However, I found there is a log as below: 2016-08-26 12:08:49.897 INFO 3240 --- [ main] e.j.JettyEmbeddedServletContainerFactory : Server initialized with port: 8080 2016-08-26 12:08:49.900 INFO 3240 --- [ main] org.eclipse.jetty.server.Server : jetty-8.y.z-SNAPSHOT I check the dependency through eclipse and there is no jetty. Here is the dependency for the problem How could a such strong