FAQ Database Discussion Community
java,gwt,vaadin
We have an enterprise web application built in Vaadin. It would be useful to be able to provide remote training on a number of devices by shadowing the users browser. Would it possible to build this sort of functionality in to the application itself? Maybe there are tools out there...
maven,jetty,vaadin
I am started to read the Vaadin 7 CookBook and I got stuck at this point: We are done and we can run our new web application. Go to the root of the project where pom.xml file is located and run the following command. mvn jetty:start I experienced some problems...
java,gwt,vaadin
I am learning Vaadin 7, I am reading the Vaadin 7 CookBook. Actually I am at chapter 4. I would like to ask if someone has ever encountered such a problem: I get the following error in the browser console: SEVERE: Server sent Vaadin 6 style updates for ChromaHashPasswordFieldConnector (3)...
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:...
layout,label,line,vaadin,break
I know it is possible for labels to automatically break lines when in a panel. Is there a way to have labels break lines when the text would be over a layouts width? UPDATE OK i tried it with "800px" width now instead of "100%" and now the labels are...
vaadin
I have the main UI class with a button that shows a subwindow when clicked. That subwindow has a textField and a button. When you press the subwindow's button, another sub window opens. You could call it the sub-sub window. This sub-sub window has a textfield and a button that...
java,table,vaadin
How can I send selected row data in table to next page and write each column in TextField there?
java,testing,mockito,vaadin
How can I mock 'Page' and set the class's page to my mock? (Is that even possible?) public class Example extends CssLayout(){ public void notification(){ Notification notif = new Notification("Title", "Message", Notification.Type.HUMANIZED_MESSAGE); notif.setStyleName("Warning"); notif.setPosition(Position.TOP_CENTER); notif.setDelayMsec(10000); notif.show(Page.getCurrent()); } } What I want to do : Example example = new Example(); Page...
java,vaadin
I using an BeanItemContainer to fill a combobox, like this : //filling the combobox with UserDTO's by BeanContainer BeanItemContainer<SubCategoryDTO> beanContainer = new BeanItemContainer<SubCategoryDTO>( SubCategoryDTO.class); ArrayList<SubCategoryDTO> subcategorys = qpc.getSubcategorys(); beanContainer.addAll(subcategorys); cmbCategory.setContainerDataSource(beanContainer); cmbCategory.setItemCaptionMode(ItemCaptionMode.ID); cmbCategory.setImmediate(true); cmbCategory.setNewItemsAllowed(false);...
javascript,vaadin
I've read the other posts regarding this topic already. I just want to clarify, is there really no way in vaadin to: Create a custom layout html file, like custom.html; Import a java script file to it, then...; Call the js functions from within the html file, like one would...
events,recursion,field,vaadin,onchange
I have several fields in a screen, that are partially dependent each on other by validating rules. If user changes one field then I can affect another fields using setValue(). But I am fighting with the problem, valueChange event is fired from setValue() just as from user activity. My example:...
vaadin
I am Using Vaadin Framework in my application. I want to open a popup screen using Vaadin Link. I know to open popup thrugh button but I need to open popup through Link. Can anybody help, this is my code: Link link1 = new Link(String.valueOf(rs.getInt(1)), new ExternalResource("#")); _reportTable.getItem(dashboardDataRowId) .getItemProperty("todo").setValue(link1); ...
java,eclipse,jetty,vaadin
Prior to the actual version of Vaadin (7.3.9) it was possible to create and run Vaadin 7 projects in a fancy way just using the RunJettyRun -> https://code.google.com/p/run-jetty-run/ plugin. Now that Vaadin has migrated its configuration from web.xml to annotations (Java Servlet API 3.0), I noticed that if I deploy...
vaadin
Could someone write me how to make a new line in error message in RegexpValidator in Vaadin? I have method: public TextField addPhoneNumberField(String value, String location, boolean readOnly) { final String PATTERN = "^[0][0-9\\s]*$"; final RegexpValidator validator = new RegexpValidator(PATTERN, "Phone number is not valid. Only numbers are allowed. Phone...
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"...
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...
javascript,html5,canvas,vaadin
I'm using Vaadin and attempting to have a Canvas portion for some simple doodles. I'm using the CanvasPlus library for Vaadin in order to accomplish this, and it's working well but I cannot figure out how to make it erase what I've drawn. When the user clicks down I get...
vaadin,richtextarea
I have been trying to add custom fonts and custom sizes in select boxes provided with the RichTextArea of Vaadin. How do I do this?...
upload,vaadin
I know how upload and save file. But how to upload the file without saving on disk and display text-data in TextArea or TextField.
vaadin,vaadin-valo-theme
I'm working on a Vaadin theme based on Valo. Valo adds a border around focused elements by default. What's the easiest / preferred way to disable this behaviour in my theme?
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...
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....
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...
java,keyboard-shortcuts,vaadin,textfield,shorthand
reading this page of the Book of Vaadin: https://vaadin.com/book/vaadin7/-/page/advanced.shortcuts.html You can also specify the shortcut by a shorthand notation, where the shortcut key is indicated with an ampersand (&). // A field with Alt+A bound to it, using shorthand notation TextField address = new TextField("Address (Alt+A)"); address.addShortcutListener( new AbstractField.FocusShortcut(address, "&Address"));...
java,vaadin
Good day everyone! How do I get the number of items that a column contains? I want to hide the "Workgroup" column if it's empty, I just don't know how. Table tblTeachings = new Table(); tblTeachings.addContainerProperty("#", Integer.class,0); tblTeachings.addContainerProperty("Course",String.class,""); tblTeachings.addContainerProperty("Teaching name",String.class,""); tblTeachings.addContainerProperty("Start date",String.class,""); tblTeachings.addContainerProperty("End Date",String.class,""); tblTeachings.addContainerProperty("Activity...
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!...
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...
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...
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....
spring,vaadin,vaadin4spring
The Vaadin team has currently released an addon which is as I understood based on the unofficial Vaadin4Spring addon: Vaadin Spring Boot: https://vaadin.com/directory#addon/vaadin-spring-boot Vaadin4Spring: https://github.com/peholmst/vaadin4spring Please note! As of February 2015, Vaadin is working on an official Spring add-on which will be a small subset of Vaadin4Spring. Once the official...
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?
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,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?...
hibernate,user-interface,push,vaadin,jpacontainer
I have model which represents an Employee. It has a field(let's say salary) which is also a model. So basically it is a nested property. I use Hibernate, JPAcontainer and MasterDetailEditor to visualize the data. So I extended the FieldFactory to be able to add a value change listener to...
maven,jetty,vaadin
I have maven installed on an os x machine: $ mvn --version Apache Maven 3.2.3 Java version: 1.8.0_25, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.10.1", arch: "x86_64", family: "mac" I have tried several tutorials, looked around in SO:...
css3,liferay,vaadin,portlet
I have a Portlet, where is used Valo theme. Most graphical components are displayed properly, but TextField not. It should have rounded border radius and height should be about 35px. It has normally about 15px and the field is angular. When I narrow width of browser window to about 200px...
java,vaadin
I'm using an beanContainer to fill an combobox en to show the "loginName" as the selection field. DTO public class UserDTO extends Observable implements Serializable { private static final long serialVersionUID = 1L; private int userId; private String loginName; private String password; private String firstName; private String lastName; private AddressDTO...
java,vaadin
I use a Vaadin table object and it works well (no Exeptions and it looks allright in the Browser). But when I check for != null or simply print it to console it actually returns null instead of an ID/hashCode, though it is initialized and working. in test.java: Table table...
java,vaadin
I try to run FileDownLoader by this way: FileDownLoader fd = new FileDownLoader { // ... code } Button exportButton = new Button(); fd.extend(exportButton); // code... When I click on button in application file downloads well. But when I click it programmatically nothing happens: exportButton.click(); Please, help!...
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
I am trying to display simple button on the page My code looks like this @org.springframework.stereotype.Component("vaadinbasic.VaadinBasicUi") @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE) public class VaadinBasicUi extends UI { @Override protected void init(VaadinRequest request) { Button button = new Button("Click me!"); button.setWidth("100"); button.setHeight("50"); button.addClickListener(new ClickListener() { @Override public void buttonClick(ClickEvent event) { Notification.show("You clicked me!"); }...
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....
eclipse,grails,vaadin
I am experiencing some troubles with the Vaadin integration into a Grails project in Eclipse. I am using the Eclipse (version 4.4 Luna) provided by Spring Tool Suite (version 3.6.3) and Grails (version 2.4.4). I create a Grails project: File -> New -> Grails Project I am reading the Vaadin...
java,maven,vaadin
I am using Maven to handle build and dependency management. I recently bugged by very weird issue related to css. I noticed whenever I run mvn clean install on my project, all my changes inside style.css lost ! however changes inside style.scss retained. How can I maintain the changes inside...
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...
arrays,grid,vaadin
I want to get data from an array into a vaadin grid. Here are some relevant parts of my code: From the Grid's builder-class Grid grid = new Grid(); for(int i = 0; i<numberColumns; i++){ String propertyId = "deliveryList[" + i + "]"; grid.addColumn(propertyId); } In the base class: public...
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);...
vaadin
If I use following code to create a UI using Vaadin, @Override protected void init(VaadinRequest request) { HorizontalLayout horizontalLayout = new HorizontalLayout(); horizontalLayout.addComponent(new Label("Why am I not shown?")); Button button = new Button("expanding button"); horizontalLayout.addComponent(button); horizontalLayout.setExpandRatio(button, 1); horizontalLayout.setWidth(100, Unit.PERCENTAGE); setContent(horizontalLayout); } The label I added to horizontalLayout is not shown...
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...
gwt,vaadin
I am getting the below error when i am running my project which will drag a text and drop on an image. SEVERE: Servlet.service() for servlet Vaadin threw exception java.lang.ClassNotFoundException: com.google.gwt.user.client.ui.Widget at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2446) at...
vaadin
I am new to vaadin, I want to make the vaadin table columns from database as hyperlinks. I tried with this code.Here I am using PagedTable in my code instead of normal vaadin table. I tried the all the possible ways but I am not getting the result.After making that...
java,java-8,vaadin
I am trying to use java 8 to return me a list of key values(Integers) in which the value (Checkbox) is checked. The map I am trying to process is of the following form. Map<Integer, CheckBox> The aim is to return the key set for all values where the check...
forms,vaadin
In my current project I have to deal with more complex forms. Fields (i'll name them 'A' and 'B') are automatically filled if a specific field (i'll name that one 'C') received user input. But also if the user inputs data into field A, the fields B and C are...
spring,spring-security,vaadin
In my web application the security context is with a value of ([email protected]ffffff: Null authentication) and on doing some search I found something like : "Look to see if you have any references to SecurityContextHolder in your code. If you do, ensure that you have the SecurityContextPersistenceFilter place on any...
java,spring,jetty,vaadin
I am experiencing the following issue on a Spring application with Vaadin when I run it with Jetty: I have Jetty configured in a way that it scans the project working directory and if it sees changes made in the code, it restarts the server automatically (like Tomcat does too)....
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...
java,upload,vaadin
I have the following class that implements the single Upload example @Override public void init() { Window mainWindow = new Window("Singleuploadclick Application"); Label label = new Label("Hello Vaadin user"); mainWindow.addComponent(label); status = new Label("Please select a file to upload"); upload = new Upload(null, receiver); upload.setImmediate(true); upload.setButtonCaption("Select file"); upload.addListener(new Upload.StartedListener() {...