Questions tagged [vaadin7]

1

votes
0

answer
48

Views

How to refresh vaadin table after altering data?

I have this vaadin table which i'm using to display and update records that are being stored in MySQL DB, it all works fine except for updating the table after making a modification or an update, I tried using Table.refreshRowCache() but that wasn't useful try{ Class.forName('com.mysql.jdbc.Driver')...
Bendaoud Achraf
1

votes
1

answer
249

Views

Vaadin combobox separator

I'm currently developing a Vaadin app, and I've arrived to the need of a ComboBox with some separators between items. I've been looking arround and it seems currently there is no way to achieve this. Being more specific: What do I mean with separator? A separator is an item in the ComboBox that, pre...
Shirkam
1

votes
1

answer
76

Views

Vaadin Icons Svg Unicode value is a string literal

I am trying to use Vaadin Icons in our Vaadin application. I have the Vaadin-Icons.svg file. I want to use the angle-right icon but I find that the svg file has a string literal as unicode value. It looks like this while i was expecting something like this How do I use it in the css file?
Vanitha R
1

votes
1

answer
143

Views

Irregularity on Session timeout in Vaadin Framework 7

I am using Vaadin 7.7.9 and Apache Tomcat 9.0. My goal is to expire user session after 12 hours, so if the user log on the system at 8am, the session must expire at around 6pm. But the session is expiring between 3.5pm and 4.5pm. Some times session expires after 15-30 minutes. Why my session is not...
Ramon Lacava
1

votes
1

answer
25

Views

How to add scroller bar in Vaadin 7 table

I am new to Vaadin I have a sub window. Inside the sub window, I added a table as shown in the picture. I added the following property to the table: fileFormatTable = new Table(SalkkuTM.getI18N('VisibleColumnPanel.chosen.caption')); fileFormatTable.setHeight(400, Unit.PIXELS); fileFormatTable.setWi...
masiboo
1

votes
0

answer
91

Views

Vaadin Table.setCurrentPageFirstItemId does not work with Chrome

I'm developing an application in Vaadin 7. I have a table and after refreshing the table content I want to maintain the scroll position. So before updating the table I am getting the current selected item via: Object firstItem = table.getCurrentPageFirstItemId(); After refreshing the table I am tryi...
Mario Murrent
1

votes
0

answer
59

Views

Screen reader support for vaadin 7.1

I am developing an application in vaadin and now needs screen reader for blind people. When I go to our application login page there are text fields like: TextField tf = new TextField('Email'); TextField tf = new TextField('Password'); When I run application and embedded screen reader plugin of Chro...
swayam swayam
1

votes
1

answer
61

Views

How can I deal with an “Failed to construct WebSocket: The URL is invalid” JavaScript exception?

I am trying to configure my Vaadin Application (version 7.7.15) to support IPv6 and somehow the URL is encoded incorrectly. For example: If the ip is: fd71:2d5a:e15a:1ed3::1, on browser you access it like this: http://[fd71:2d5a:e15a:1ed3::1]. The problem is that the character '[' is replaced with '...
george petre
1

votes
1

answer
54

Views

Vaadin can't save design, throws an error

when trying to update a vaadin HTML design, it always showing an error and can not be saved. 'Save Failed org/eclipse/jdt/internal/corext/codemanipulation/StubUtility' I have tried for two days to solve this and I don't know how to fix this, it looks like it could be an Eclipse IDE error. One Soluti...
AlfredoDaAs
1

votes
1

answer
1.1k

Views

Inject beans from other projects into Vaadin view

In one of my Vaadin views I'm trying to get hold of a business object that resides in another project (bll) by injecting it with @Inject. Vaadin view: public class FruitSaladView extends VerticalLayout implements View { @Inject BananaService bananaService; ... } I can't do this, of course, the banan...
Roger
1

votes
1

answer
5.4k

Views

Vaadin table.select(itemId) is not working

I have a table bind to a SQLContainer and a insert button (that insert a row in the table) When the button is clicked it execute the below code of the listener: Object itemId = table.addItem(); container.getContainerProperty(itemId, 'cedula').setValue(cedulaS); try { container.commit(); table.select...
Diego Quirós
1

votes
1

answer
2.2k

Views

programmatically resize / reposition vaadin window

We have a Vaadin 7 application which can have several Vaadin window objects. To aid the user in managing these windows, I want to have a button which will resize/reposition the windows such as tile the windows. The code I have goes something like this: for (Window window : ui.getWindows()) { window....
user2040457
1

votes
2

answer
788

Views

How to @Inject object with generic type

I am working on project in our company and I have a problem with injecting object. Let's consider I have this entity provider : @Stateless @TransactionManagement public class EntityProviderBean extends CachingMutableLocalEntityProvider { public EntityProviderBean(Class entityClass) { super(entityCl...
s0vet
1

votes
1

answer
3.9k

Views

How to add and modify bean in BeanItemContainer

I'm developing a Vaadin application. Now, I have a trouble with a BeanItemContainer. I have a few items inside my container. private void populateTable() { tableContainer.removeAllItems(); for(MyBean myBean : beans){ tableContainer.addItem(myBean); } } When I select the item in the table, I bind th...
Skizzo
1

votes
1

answer
2.2k

Views

Vaadin - TextArea/RichTextArea with real-time text analyzing

I am working on a Vaadin (7) server-side application, and i need to use a TextArea or a RichTextArea that will analyze word-by-word the typed input, and will highlight words of a certain type, for example - dates and times. My problem is that a RichTextArea does not have a TextChangeListener, and a...
sas
1

votes
1

answer
105

Views

Problems trying casting

I've a class that extends TextField. This class transform the text to uppercase and now I'm trying do a casting with this class using BeanFieldGroup but doesn't work. Using TextField works, but with my class that extends TextField doesn't. /** class transfor text to uppercase */ public class TextUpp...
FernandoPaiva
1

votes
1

answer
1.1k

Views

change root context of Vaadin 7 application

I have my vaading application running on /* Here the configuration: @WebServlet(value = '/*', asyncSupported = true) @VaadinServletConfiguration(productionMode = false, ui = ApplicationUI.class, widgetset = 'com.myproject.bo.AppWidgetSet') public static class Servlet extends VaadinServlet { } I want...
Evgeny Makarov
1

votes
3

answer
1.3k

Views

How to handle access denied in Vaadin using Spring Security

I have serious problems getting Vaadin and Spring Security (using auth through AD) working well together. I managed to get the authentication bit working 'good enough' (with my own handlers), but when I'm trying to get the authorization bit to work - I get into more trouble. Let's break it up and ta...
Roger
1

votes
1

answer
2.2k

Views

Vaadin 7 example showing “Cookies Disabled” message when deployed to tomcat 7

I'm struggling with a matter that confuses me and leaves me thinking if the problem comes from the tomcat or vaadin. The application: The application i created is the starting project you can build with eclipse and vaadin 7 plugin, that builds a page with a button. Whenever you click the button, a l...
C-JARP
1

votes
2

answer
664

Views

Check duplicate key before commit?

I'm looking for a solution to check a duplicate key before commit my BeanFieldGroup with JPAContainer. There's some a solution for this without using CriteriaQuery ? For example, when I execute the commit there's some way to check if the key already exists in database and returns a exception ? I'm...
FernandoPaiva
1

votes
2

answer
680

Views

PortletRequest Vaadin 7 and Liferay

In Vaadin 6, you could override onRequestStart to obtain the PortletRequest object like so @Override public void onRequestStart(PortletRequest request, PortletResponse response) In Vaadin 7, due to the portlet class change to com.vaadin.server.VaadinPortlet, there is no more onRequestStart to get t...
user1700945
1

votes
1

answer
1.5k

Views

Vaadin with JQuery FileUpload

I would like to create FileUploader with Vaadin . But I need to get more features over normal Vaadin Upload. beautiful and easy to manage (but optional) fast and never failed while uploading include progress bar show preview multi file upload support upload file size and type restriction drag and...
Cataclysm
1

votes
1

answer
362

Views

How to get clicked component of Layout in Vaadin?

I have one VerticalLayout and I added 5 Image components to it. I would like to know which image component was clicked by user ? Here is my code myVerticalLayout.addLayoutClickListener(new LayoutClickListener() { public void layoutClick(final LayoutClickEvent event) { System.out.println(event.getSou...
Cataclysm
1

votes
1

answer
940

Views

Custom Listeners with detach() method error

I would like to know about Vaadin's detach() method. How can I understand below definition from API ? Called before the UI is removed from the session. I got a problem when creating custom listener such as BroadCaster . MyCustomListener.java public interface MyCustomListener { void fireEvent(MyCusto...
Cataclysm
1

votes
1

answer
1.9k

Views

Vaadin : How to trigger change events by javascript?

I have a TextField component and added ValueChangeListener on it. @Theme('myTheme') @SuppressWarnings('serial') @Title('VaadinTest') @PreserveOnRefresh @JavaScript({ 'vaadin://js/jquery/jquery-1.10.1.min.js', 'vaadin://js/test.js' }) public class HelloWorldUI extends UI { @Override protected void i...
Cataclysm
1

votes
1

answer
914

Views

Multi-Valued Auto-Complete Field

I'm new of vaadin and now I'm developing my first application. Now I need to a component like this Multi-Valued Auto-Complete Field. Is there an add-on or something else that could help me to make this component? I found the following add-on but seems not supported from vaadin7 SuggestionTextField O...
Skizzo
1

votes
1

answer
240

Views

Share one set of read-only Table data across many users/sessions/UIs in Vaadin

I have a a set of read-only data to be displayed as a Table in instances of the same Layout across many user sessions. Rather than replicate the data for each user, I'd like to have only a single instance of the data in memory on my Vaadin server. My data is simple JavaBean objects, in a List, wrapp...
Basil Bourque
1

votes
1

answer
2.9k

Views

Vaadin 7/8 and embedded Jetty

I would like to deploy a vaadin (version 7.2.5) web application using embedded jetty (eclipse luna builtin version). Currently, my code looks like: public class Launcher { private static int httpPort = 8080; public static void main(String[] args) throws Exception { Server server = new Server(); Sock...
Atmocreations
1

votes
1

answer
2.8k

Views

Vaadin FormLayout formatting

Im new at vaadin 7 and have a little issue with formatting. I have spend a few hours but no luck. I have: 2 Form layouts on my vertical Layout. 2 Labels on each form layout. Better check the screenshot I want format label test as on the right part of screenshot. Can you please advice or share though...
Java Dude
1

votes
1

answer
229

Views

implement RPC for a GWT widget inside Vaadin

I am implementing a RPC service inside Vaadin (for a GWT widget). But the problem is when I try to implement it using the normal method we use with GWT. Which is by extending RemoteService. It gives a error after deploying the war file. I am using Maven to build the project and use tomcat as the ser...
MarterJay
1

votes
1

answer
296

Views

Session is not Expired in Vaadin

Im in the Middle of Developing WebApplication Using Vaadin and Spring. I Used AbstractJavaScriptComponent and Using setInterval() im getting data from the backend and display the data Real Time. My Question is The Requests are act as User Request Request and Session is not timeout because Vaadin Rec...
ambarox
1

votes
1

answer
464

Views

How can I Update item on Vaadin's Grid without putting explicitly all fields on it?

I try to create regular CRUD operations on Grid table for User entity - which is like this: public class User { private id; private String name private Role role; } with appropriate getters and setters. The Grid should have 2 fields: name and role.name. I want to create a data IndexedContainerfor t...
Ziemo
1

votes
1

answer
271

Views

Spring boot vaadin static content

I'm using spring boot with vaadin. How should I serve VAADIN folder? I deploy to production using gradle distZip task, which creates a lib and a bin folder. I don't want to include VAADIN folder into the jar because it disables caching and makes a fat jar. Where should I place the folder, what modi...
acsadam0404
1

votes
1

answer
671

Views

I cannot instantiate my bean using @Inject and Vaadin CDI

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(); na...
number_43
1

votes
1

answer
1.3k

Views

error during vaadin widgetset compilation

I have created component based on GWT Component state package com.game.quest.ui.gwt; import com.vaadin.shared.AbstractComponentState; import java.util.ArrayList; import java.util.List; public class LinePlotState extends AbstractComponentState { public List series = new ArrayList(); public static cla...
lapots
1

votes
1

answer
1.7k

Views

How to get the item ID in vaadin

Good day everyone! I have a HierarchicalContainer below: contFinalGrade= new HierarchicalContainer(); contFinalGrade.addContainerProperty('index', Integer.class, 0); contFinalGrade.addContainerProperty('subCode', String.class, ''); contFinalGrade.addContainerProperty('courseId', String.class, '');...
triForce420
1

votes
1

answer
258

Views

Error while running the GWT developer mode

While starting my application in the GWT dev mode from Intellij. I got the following error:- ERROR: Failed to create an instance of 'com.vaadin.client.ApplicationConnection' via deferred binding java.lang.RuntimeException: Deferred binding failed for 'com.vaadin.client.metadata.ConnectorBundleLoade...
Abhishek-M
1

votes
1

answer
751

Views

AngularJS integration with Vaadin

I have used jquery integration with vaadin many times inside custom components. I wanna see an example of angularjs integration with vaadin. Additionally need to know AngularJS is working with IE9.
IsuruK
1

votes
1

answer
3.5k

Views

VAADIN 7: What is the simplest way to refresh a Vaadin View in 5 minute intervals?

I'm trying to implement an automatic refresh on a List of components in a Vaadin view. The list gets its contents from a database. I can refresh the list with a button, that is already implemented. However, I would like to know what is the simplest way to make it so, that this refresh event, that I...
Steve Waters
1

votes
1

answer
276

Views

NoClassDefFoundError Singletonholder

Good day everyone! I have recently deployed a web project and I am getting a NoClassDefFoundError when trying to get an instance of a singleton class. com.vaadin.server.ServerRpcManager$RpcInvocationException: Unable to invoke method click in com.vaadin.shared.ui.button.ButtonServerRpc at com.vaa...
triForce420

View additional questions