vaadin7

How can I make a VerticalLayout scrollable using vaadin?

穿精又带淫゛_ 提交于 2019-11-30 19:32:57
I have a Components which exists as a common layout for all my pages. The layout of this component is as follows (made using paint so please sorry :p): Right arrows mean that this layout is a HorizontalLayout and down arrows VerticalLayout. I'm really interested in making bodyContent layout SCROLLABLE. Within this layout I usually introduce lots of UI components (more layouts, text fields, forms, grids...) and sometimes components aren't shown due to the lack of vertical space and the absence of vertical scroll. So is there any way to make bodyContent scrollable (using SCSS/CSS or any other

Vaadin 7: Usage of UI vs. Navigator+Views

人走茶凉 提交于 2019-11-30 10:29:52
问题 In Vaadin 7, a web application can have multiple entry points; the UIs. Each UI can only have a single Navigator containing Views. We are working on an application which requires multi-level navigation, and for some screens we don't know if we should have a single UI with a navigator or multiple UIs with a shared menu component. What are the advantages and inconveniences of UI and Navigator? Are there any guidelines about this choice? 回答1: I recommend using one UI with Navigator as in my

Vaadin Grid vs Table

回眸只為那壹抹淺笑 提交于 2019-11-30 07:51:45
问题 What is the difference between the Grid and Table components in Vaadin 7? Which should I use, and when? 回答1: Grid is a new more powerful component which is supposed to be the successor of Table (see The Table is dead, long live the Grid). So there should not be any need to favor Table over Grid. Here is a first in the series of articles by Vaadin aboout migrating from Table to Grid: https://vaadin.com/blog/-/blogs/mission-rip-table-migrate-to-grid-basic 回答2: Summary Grid → New & Amazing Table

How can I make a VerticalLayout scrollable using vaadin?

强颜欢笑 提交于 2019-11-30 04:22:08
问题 I have a Components which exists as a common layout for all my pages. The layout of this component is as follows (made using paint so please sorry :p): Right arrows mean that this layout is a HorizontalLayout and down arrows VerticalLayout. I'm really interested in making bodyContent layout SCROLLABLE. Within this layout I usually introduce lots of UI components (more layouts, text fields, forms, grids...) and sometimes components aren't shown due to the lack of vertical space and the absence

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

情到浓时终转凉″ 提交于 2019-11-29 22:36:08
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 make it to only compile components that I am using and not the whole set. I created the project by using

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

一曲冷凌霜 提交于 2019-11-29 22:13:43
问题 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 convertToPresentation(Date value, Class<? extends Boolean> targetType, Locale locale)

Vaadin: get reference of UI to change data

家住魔仙堡 提交于 2019-11-29 18:05:53
I want to change data inside a Vaadin UI. The change is invoked by a a rest call. There, i somehow need a reference to the UI class to call its method´, e.g. changeValue(string value). I'm using vaadin-spring-boot-starter 1.0.0 Is that somehow possible? EDIT : Another question now: I was trying to do that Server Push, mentioned by @Eric, inside of a View, so that the view will get updated on a Broadcast message. However, this is not working (no exceptions, nothing to debug, just no updates in the view). This is what i do in my View: @UIScope @SpringView(name = LoadWebsiteView.VIEW_NAME) @Push

Update Grid with a fresh set of data, in Vaadin 7.4 app

霸气de小男生 提交于 2019-11-29 15:17:38
In the new Vaadin 7.4 release , the new Grid widget debuted as an alternative to the venerable Table . After getting a Grid displayed, I later want to replace the entire set of data with fresh data. Rather than update the individual rows, I want to simply replace them. I happen to be using a BeanItemContainer for easy read-only display of some objects with JavaBeans-style getter methods. I considered two approaches: Two step process of replacing bean items. (1) First remove all BeanItem objects with Container::removeAllItems method. (2) Then add replacement BeanItem objects with the

Vaadin - Refresh grid after row modification

两盒软妹~` 提交于 2019-11-29 13:51:27
I create simple grid with data from database: BeanItemContainer<Customer> container = new BeanItemContainer<>(Customer.class, customerRepository.findAll()); Grid grid = new Grid(container); To edit each row the button was created: Button edit = new Button("Edit", clickEvent -> openWindow((Customer) grid.getSelectedRows().iterator().next())); This open new window with edit form. After all changes accepted, I must manually refresh whole page to see modification on Grid. My question is: How refresh only Grid after modification of any row entry? And how save those modifications to database (maybe

Vaadin with JQuery FileUpload

左心房为你撑大大i 提交于 2019-11-29 12:41:16
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 drop client-side image resizable (it is main feature for me because all of my uploaded files were images) There has an addon MultiFileUpload . Yes , it is perfect for most of my requirements but not for client-size image resizing . So I decided to use JQuery FileUpload because it is support for