FAQ Database Discussion Community


Get user’s IP address, and other client-side info in Vaadin 7 web app

vaadin,vaadin7
In Vaadin 7, how does one get the IP address of the user’s computer/device? Can I get other information about the client?...

Vaadin Content Management System

java,liferay,vaadin7
I want to ask if in Vaadin is something similar to Liferay web content management? Is there a way to dynamically change content of a web page/application?...

VaadIn Visual Designer - panel issue

java,eclipse,vaadin,vaadin7
I created an VaadIn Design with the Visual Designerfrom Vaadin Labs Its basic an login panel <!DOCTYPE html> <html> <head> <meta charset="UTF-8" name="design-properties"...

Vaadin Web app with Computation heavy back-end

java,akka,vaadin7
I've developed a java application that analyses huge chunks of data from a database which results in a fairly long computation time and generates cvs files that i visualise with a charting library. So in order to avoid switching between a java-swing interface for user input and the visualisation in...

How display several Vaadin properties in a single table cell?

vaadin,vaadin7
I have 3 properties of a java class which I require to display below each other in a table cell. The 3 properties are added to a container which is bound to a table - however, this leads to each property occupying a different cell in the same row. e.g....

Session Expired on tomcat8 behind apache2 ProxyPass

apache,session,tomcat,vaadin7,tomcat8
For a web application named whys written with VAADIN 7.3.8, i deployed a tomcat8 server behind an apache one (and redirected app.whys.fr to whys.fr:8080/Whys wich is my app location). When i go on http://whys.fr:8080/Whys, everything looks good, but when i go on http://app.whys.fr, i get a session expired message immediatly,...

I cannot instantiate my bean using @Inject and Vaadin CDI

java-ee,vaadin,cdi,vaadin7
I am trying to inject my components and beans using Vaadin-cdi. Note the code below is simplified a bit. @Theme("valo") @CDIUI("") public class MyUI extends UI { @Inject private CDIViewProvider provider; @Override protected void init(VaadinRequest request) { Navigator navigator = new Navigator(); navigator.addProvider(provider); navigator.navigateTo("mypanel"); } } And here goes MyPanel:...

Deploy vaadin 7 war file in EC2

amazon-ec2,tomcat7,vaadin,war,vaadin7
I'm trying to deploy a Vaadin 7 example.war file in tomcat 7, using an EC2 server. I upload the file to /var/lib/tomcat7/webapps but then when I go to myIp:8080/example it doesn't find the resource. Any idea why? Thanks!...

Vaadin: Force CSS-containers to fit full width after animation

html,css,responsive-design,vaadin,vaadin7
I am developing with Vaadin 7 and wanted to create a sidebar, which can be toggled visible via button click. The sidebar-container appears / disappears with a CSS rotation animation and folds to the right. All the components are placed in CSSLayouts and organized like this (Every container represents one...

Problems with Injection (Using vaadin)

java,dependency-injection,ejb,vaadin7
I am newbie with EJB and Injections... I am currently using Vaadin framework with CDI I have been trying to using injection but i have not could do it... In my Vaadin UI class MyVaadinUI i have tried... CDIUI("") @SuppressWarnings("serial") public class MyVaadinUI extends UI { @EJB UserController userController; @Override...

Disabling Vaadin table tooltip while loading

vaadin,vaadin7
I am using a Vaadin TreeTable to show a bunch of items. When clicking on a node I close all other nodes and open the clicked one. Is there any way to avoid the tooltip displaying current range and total number of items? I found out that this is a...

Vaadin - How to have two columns of data (Gridlayout with field and Label data with wrapping text)

java,java-ee,vaadin,vaadin7
I'm trying to create a CustomComponent where I have two columns (possibly four) where the two columns are rows of Labels. The first column is the identifier such as "Firstname: ", "Lastname: ", etc. and the second column is the actual value for the identifier such as "John", "Smith", etc....

Remove element-ID's from Vaadin components in production mode

html,vaadin,production-environment,vaadin7,test-environments
I use setId a lot for automated UI tests within my Vaadin application. For performance reasons, I would like to remove this ID's in production mode. Is there any good way to do so?

Injection not working with imported beans in vaadin

vaadin7
I am new to vaadin I came from GWT based project where we have persistence and business logic as Java EE modules and web client as Java Web app. Now I have my modules ready with my app logic intact the only problem I am having now is how to...

Vaadin and JPARepository: transaction errors

java,spring-boot,vaadin,spring-data-jpa,vaadin7
I'm having troubles in integrating Vaadin and spring-data (JPARepositories in particular). After following the guidance of Vaadin's team with their last webinar I managed to configure my application using Spring starter (spring boot), adding Vaadin, JPA and a Postgresql database. Using this method was really straightforward and loading entities to...

Updating ProgressBar using custom listener (interfaces)

interface,progress-bar,listener,vaadin,vaadin7
Within my application, what I have is a long-lasting process which processes some calculus in the server (best routes of some vehicles and so on). I want to show to the user a progress bar indicating the current status of the process. In theory, everything seem easy. I have a...

Parallel AJAX calls in Vaadin javascript extension

javascript,ajax,multithreading,vaadin,vaadin7
I'm trying to write a simple Vaadin Extension in javascript (meaning I subclass AbstractJavaScriptExtension) that triggers a method call on the server side. This method call will e.g. load some data and update the UI of the component. Basically the idea is to have single-shot asynchronous requests for each component...

java.lang.VerifyError when using vaadin and vaddin-server

java,vaadin,vaadin7,verifyerror
For a project I am working on, which depends on vaadin-6.8.12, I would like to use the Page/JavaScript classes included in the vaadin-server-7.0.6 JAR. However, when I include vaadin-server, I get a java.lang.VerifyError when attempting to use the Page.getCurrent() method. To illustrate this, I wrote a small test program which...

VAADIN: Why I can't set a converter to a ComboBox?

combobox,type-conversion,converter,vaadin7
I've made a converter: public class BooleanToDateConverter implements Converter<Boolean, Date> { private static final long serialVersionUID = 1L; @Override public Date convertToModel(Boolean value, Class<? extends Date> targetType, Locale locale) throws com.vaadin.data.util.converter.Converter.ConversionException { if (value == true) { return new Date(); } else { return null; } } @Override public Boolean...

Vaadin demo animation : How to create similar animation

jquery,animation,vaadin,vaadin7
I am trying to build a client side application using Vaadin 7, and I found on their website this cool animation. Does anybody knows how to do such animation, or is there a code sample which I could refere to. I imagine JQuery is used too. Thank you in advance....

Change the state in a Vaadin custom widget in the connector through a GWT button click and get it server side

java,gwt,vaadin7,custom-widgets
I am trying to set the state in a Vaadin custom widget from a click generated by the user. In the component connector after instantiating the server rpc I get the GWT button and add an onclick method. In the method I set the state (getState.text = "new text";) but...

Vaadin notification in UI with Akka actor

java,akka,actor,vaadin7
I'm working on integrating an akka actors based backend within a vaadin application. the problem i'm facing is i dare say simple (bear with me i'm a vaadin first timer :P). Project structure (simplified) 2 modules front and backend. my backEnd has an actor system that manages all the backend...

How to horizontally align component with CSSLayout in Vaadin7?

css,vaadin,vaadin7
I need to use CssLayout. I have several components. I can't find a way to align these components to the right regardless what I do. In my theme I used this: align-content: flex-end; or this justify-content: flex-end; among many others.No result. Is there a way to align components in Vaadin7...

How can I localize the text used as tool tips of vaadin richtext area?

gwt,vaadin,vaadin7
In the official documentation they suggested to use css for localizing the tool tips of vaadin richtext area and it says: Localizing RichTextArea Toolbars The rich text area is one of the few components in Vaadin that contain textual labels. The selection boxes in the toolbar are in English and...

Is there a ui-component for vaadin that I can use for text highlighting?

javascript,vaadin,vaadin7
I am new to Javascript and Vaadin. I am looking for a text component that allows highlighting and annotation. This is what I have in mind. I want to display a couple of paragraphs on my web-page and then the user should be able to select certain sections of text...

NPE in Vaadin7 Navigation with my own ViewProvider implementation.

java,exception,vaadin,vaadin7
I tried to create a vaadin7 application with the use of Navigator. I have my own ViewProvider implementation. here is the relevant part of the UI class: @Override protected void init(VaadinRequest request) { layout = new VerticalLayout(); layout.setSizeFull(); setContent(layout); navigator = new Navigator(this, layout); mainView = new MainView(navigator); navigator.addView("", mainView);...

Disable the web browser’s spell check feature on specific Vaadin fields

vaadin,vaadin7
Many modern web browsers have a spell-check auto-correction feature that changes a field’s text value. For some fields, such as "User Name" or "Product Code", this is not good. Is there a way to disable the web browser’s spell-check feature on individual fields in a Vaadin web app?...