vaadin

Maven build error: Failed to execute goal, missing a class

a 夏天 提交于 2019-12-04 02:47:17
问题 I'm trying to package the sample application from vaadin 7.0.0 with the maven plugin for eclipse, but every time a run the goal "package", building fails with the following error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project essai: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile failed: A required class was missing while executing org.apache.maven.plugins:maven-compiler

How to specify a button to open an URL?

南楼画角 提交于 2019-12-04 01:40:22
I want to write a web application that triggers the default email client of the user to send an email. Thus, I created a Link, that leads to an URL conforming to the mailto URI scheme ( http://en.wikipedia.org/wiki/Mailto ): Link emailLink = new Link("Send Email", new ExternalResource("mailto:someone@example.com")); However, instead of using a Link, I want to provide a Button that allows to trigger the respective functionality. But, for buttons I cannot set an ExternalResource to be opened. Does anybody know to solve this problem for Buttons, or how to create a Link that looks and behaves

How to add Validators in Vaadin 8?

时光怂恿深爱的人放手 提交于 2019-12-04 00:38:04
问题 In Vaadin 7 there was an addValidator function, but in Vaadin 8 it does not exist. Vaadin 7 Example: TextField user = new TextField("User:"); user.setRequired(true); user.setInputPrompt("Your username"); user.addValidator(new NullValidator("Username can't be empty", false)); user.setInvalidAllowed(false); 回答1: I found the answer here: Whats New Example: new Binder<Person>().forField(tf) .withValidator(str -> str.length() == 4, "Must be 4 chars") .withConverter(new StringToIntegerConverter(

Vaadin Grid cell not showing multiline rows

依然范特西╮ 提交于 2019-12-03 23:17:24
With Vaadin Grid, I want to generate multiline cells for every cell that have more content in cell that overlaps its width. I have allready tried: java \n new line character and CSS stylings like white-space: pre; but it does not seem to work. (This solution worked for Table) custom renderer setRenderer(HtmlRenderer) with </br> tags and different CSS display settings Desired result: Vaadin Grid still doesn't have native support for multiline columns but you can try some improvisation, on example I suggest to see the Vaadin forum discussion on the link: Grid - How to display multiple lines in

Using Clojure with Vaadin

对着背影说爱祢 提交于 2019-12-03 22:49:57
Has anyone tried implementing a web application with Clojure ( using Compojure ) and Vaadin ? I had seen an article on using Clojure with JWT for creating web apps. Vaadin is based on GWT so you get a lot of the advantages of GWT ( though Vaadin is completely Server-centric). And Clojure gives the advantage that you can use any Java Based Framework, so what thoughts on the Clojure + Vaadin based web application ? I've created an article in Vaadin Trac wiki describing such integration: http://dev.vaadin.com/wiki/Articles/ClojureScripting Yes, created youcaneatat.com entirely in Clojure and

How can I compile only necessary widgets in Vaadin 7 with Maven?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 18:30:30
问题 I am new to the Vaadin framework which I looks very interesting, using eclipse and maven to develop and build my application I find pretty annoying that every time I do a mvn clean install it will take so long time to build the app, I found that this is because it compiles the whole set of widgets. Even if I am only using a Button in my layout it will take so much on building the app. I have researched for some time in the Internet and 2 books but cannot find enough information about how to

How to add grid filters in Vaadin 8?

醉酒当歌 提交于 2019-12-03 16:06:53
问题 Vaadin 8 just came out. the adding of filters in Grid was never in their documentation, i only found one working solution here in stackoverflow. HeaderCell cell = filterRow.getCell(pid); // Have an input field to use for filter TextField filterField = new TextField(); filterField.setColumns(0); filterField.setHeight("23"); // Update filter When the filter input is changed filterField.addTextChangeListener(change -> { // Can't modify filters so need to replace b.removeContainerFilters(pid); //

Creating a library jar using Spring boot

冷暖自知 提交于 2019-12-03 15:58:17
I created a spring boot application having REST web services and jpa dependencies. The application runs on its own as a standalone application. I'm trying to add UI layer using vaadin as a separate project that uses the services from the sring boot project. Is there an easy way to make the spring boot application as a library jar that can be included in other projects. I searched the forum and found some threads that advised not using spring boot but instead using the spring framework to create the library. Just wanted to check if there are any examples how this can be done in Spring boot.

Deploy vaadin to JBoss 7.0 gives me a ClassNotFoundException

谁说胖子不能爱 提交于 2019-12-03 15:57:30
I've created a new Vaadin (6.6.5) project in eclipse and I've tried to deploy it on JBoss 7.0 but it gives me a GWT ClassNotFoundException Caused by: java.lang.ClassNotFoundException: com.google.gwt.user.client.ui.HasWidgets from [Module "deployment.test.war:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330) at org.jboss.modules

Architecture Question: GWT or Vaadin to create Desktop Application?

霸气de小男生 提交于 2019-12-03 15:56:45
We're planning on creating a feedreader as a windows desktop- and iPad application . As we want to be able to show Websites AND to run (our own) JavaScript in this application, we thought about delivering the application as HTML/CSS/JavaScript, just wrapped by some .NET control or a Cocoa Touch webbrowser component. So the task at hand is to find out which framework to use to create the HTML/CSS/JS files to embed in the application. For the development of the HTML/CSS/JavaScript we would be happy to use Vaadin, GWT, or some other framework, as we're a lot better with Java than with JS. We