vaadin

Spring Boot, Keycloak and Vaadin integration issue

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

Java EE 7 CDI - Injection doesn't work, sending NullPointerException

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a problem with my injection, it's the first time I try it. I'm working with Wildfly and Java EE 7. I've got a NullPointerException when trying to access Authenticator instance in LoginController . I use maven, my beans.xml is found under src/main/webapp/META-INF but I'v tried to put it in src/main/webapp/WEB-INF/classes without success. Here is my code : The class to inject : @Stateless public class Authenticator { @Inject HashGenerator hashGenerator; @Inject UserPersistance userPersistance; public boolean authenticate(final String

Vaadin vs. Bootstrap

∥☆過路亽.° 提交于 2019-12-03 01:13:32
I am planning to make an application that has views with complex forms and logical validation on the client side. I plan to use AJAX for submits and have some visual appeal. I want a recommendation from those who have experience developing with Bootstrap and/or CoffeeScript and Vaadin. I have two options: Using Bootstrap / CoffeeScript and some framework for the server site, such as Play Framework, Rails or Django Vaadin The criterion that concerns me is related to the complications that may arise in the client side JavaScript and/or HTML5 validation as well as in CSS and HTML code to be

How to migrate from traditional java web application (with web.xml) to spring boot?

无人久伴 提交于 2019-12-03 00:29:35
I wanna switch my projects to spring-based product. My first step is to transform my java web application from a generated WAR file, to a standalone executable jar, powered by spring boot. Let's take a open source web application example from github.: Vaadin-Spring Web Application The web.xml file can be found here. The root-context file can be found here. I hope that there are some guides for me to perform the transformation. I have also submit an issue in the spring-boot project. This application is not a Spring MVC application as far as I can tell - it would probably be a lot easier to

java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream vaadin+gradle+intelliJ

荒凉一梦 提交于 2019-12-02 23:20:35
I have been working fine with Vaadin + Gradle + IntelliJ until yesterday night when I introduced SLF4J(logback) logging to my application. Since then I can't make my project anymore due to classDefFoundError of org/apache/tools/ant/util/ReaderInputStream . I can't link it with any transitive dependency of any contained jar in application, but even if I remove SLF4J libraries I still can't make my application, so I am wondering what changed? I am using vaadin gradle plugin 0.9.5 and gradle 2.2.1 . Has anyone ever encountered this problem? I was reading another post where someone had the same

Differences between GWT and Vaadin

偶尔善良 提交于 2019-12-02 18:42:50
Can anyone suggest whether "GWT" or "Vaadin" are a better choice to design an application? Also: what are the differences in coding style? 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 insensitive to bad network conditions. Network is used only when needed (to read/save new data), which

Wicket vs Vaadin

孤人 提交于 2019-12-02 15:24:33
I am torn between Wicket and Vaadin. I am starting a micro-isv and need to make a choice of web framework. I have narrowed down my choices to Wicket and Vaadin. I have used both frameworks and I love them both. however I need to make a choice. If If I choose Vaadin: I wont have to worry much about the look and feel. It comes with nice themes. I will do all my programming in Java which am very good at and wont have to spend time hacking CSS which am not very good at. And most of the components that I will need for a business applications are there OUT OF THE BOX including, desktop like layout,

Adding columns to grid using Vaadin 8.0.7

旧巷老猫 提交于 2019-12-02 12:13:24
问题 I want add column to grid, when i click to button ("backBtn"). Then i get the value from the textfield ("filterText"), and that will be the name of the new column. Who can help me? The code is from tutorial, but i need add the new feature here. Thanks ! You can find my code in attachment. Grid is in class "MyUI" This is clas Customer package my.vaadin.app; import java.io.Serializable; import java.time.LocalDate; import java.util.Date; /** * A entity object, like in any other Java application.

Vaadin : Widget set is not getting loaded.

ε祈祈猫儿з 提交于 2019-12-02 11:48:21
问题 I was able to integrate a Vaadin module into our Spring based application. After integration I wanted to run a demo of gantt-charts which is an add-on for Vaadin and found it on github here. Inside the folder, there is a demo project. All is fine, except I am having a problem with widgetsets. Screenshot of the problem : Also I get a non-serializable error : Nov 18, 2015 3:16:48 PM org.apache.catalina.session.StandardManager startInternal SEVERE: Exception loading sessions from persistent

Vaadin - GWT error "module xxx may need to be recompiled

心不动则不痛 提交于 2019-12-02 09:43:48
问题 I'm ramping up on Vaadin and I'm getting this javascript alert whenever I try and run the demo apps. GWT module 'com.vaadin.terminal.gwt.DefaultWidgetSet' may need to be recompiled I've tried cleaning the project to no avail. As I said, I'm ramping up so I'm sure there's some simple step I'm missing or a concept I haven't grasped. 回答1: I don't know anything about Vaadin, but there's a more general context in which this error occurs: So long as you're testing in Eclipse, the dynamic coding of