vaadin

Vaadin alternative for heavily loaded UI

廉价感情. 提交于 2019-12-21 14:01:46
问题 Currently I am programming the Web Application based on Vaadin. I am quite happy with the learning cycle and the way how easy UI can be designed. In general pluses of Vaadin are: "Native" UI programming for Java users (component hierarchy / event listeners / drag & drop / validation). Out-of-box nice collection of components (tree / table / list / ...). The minuses are: Big and complex HTML output. That slows down the browser response time (also mentioned here and there) and leads to some

Slow HTML generation with Vaadin

孤街浪徒 提交于 2019-12-21 09:22:16
问题 I'm a developer with a problem ;) Currently we're close to an end on our project (using Vaadin) however... we're getting some trouble with displaying simple data in one of our views. (over 500 KB of data to display, and over 15K DOM elements after Vaadin is done with generating it... + lots, and lots and LOTS seconds before it's done). My task is to find out how i can make this as small and as fast as possible, so my first guess was to use some other layouts than those avaliable in standar

How to specify a button to open an URL?

左心房为你撑大大i 提交于 2019-12-21 08:23:47
问题 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.

How to specify a button to open an URL?

余生颓废 提交于 2019-12-21 08:23:14
问题 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.

Vaadin Grid Table : How to disable Sort Function and set the color of one column

China☆狼群 提交于 2019-12-21 04:50:07
问题 I'm using Grid table in Vaadin for data representation. For that I'm trying to figure out the following two issues: 1.) How to disable the sort function in the Header of each column 2.) How to set the color of one column in a Grid table 回答1: First of all, I find the Vaadin docs a good place to start looking for help. For the rest of the exercise, suppose we have a Grid with 3 simple columns c1, c2 & c3: Grid grid = new Grid(); grid.addColumn("c1", String.class); grid.addColumn("c2", String

Java Config for Spring Security with Vaadin

天涯浪子 提交于 2019-12-21 02:23:07
问题 Im new to these frameworks (Vaadin:7.6.1, Spring Security:4.0.3) and I'm asking myself how to configure the authorized requests if I want to build a Vaadin application. I looked up a few examples where something like this is written: @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { [...] @Override protected void configure(HttpSecurity http) throws Exception { http .authorizeRequests() .antMatchers("/login**").permitAll() .antMatchers("/UIDL/**").permitAll(

Wicket vs Vaadin

妖精的绣舞 提交于 2019-12-20 08:24:24
问题 I am torn between Wicket and Vaadin. I am starting a micro-isv and need to make a choice of web framework. I have narrowed down my choices to Wicket and Vaadin. I have used both frameworks and I love them both. however I need to make a choice. If If I choose Vaadin: I wont have to worry much about the look and feel. It comes with nice themes. I will do all my programming in Java which am very good at and wont have to spend time hacking CSS which am not very good at. And most of the components

Save changes to database vaadin

我与影子孤独终老i 提交于 2019-12-20 06:32:59
问题 I have an application which has a table and when you click on an item in the table it fills in a group of textfields with its data (FieldGroup), and then you have the option of saving the changes I was wondering how would I save the changes the user makes to my postgres database . I am using vaadin and hibernate for this application. So far I have tried to do editorField.commit() // after the user clicks the save button I have tried editorField.commit() hbsession.persist(editorField) /

Dynamically changing font, font-size, font-color, and so on in Vaadin Flow web apps

五迷三道 提交于 2019-12-20 05:35:09
问题 In Vaadin Flow (versions 10 and later), is there some way to dynamically change the font, font size, font color and such of the widgets in a Vaadin layout? I do know the basics of CSS, but don’t know much about SASS or other supersets of CSS though I am willing to learn. And I do not know what supersets of CSS are being used by Vaadin Flow. I know I can dynamically assign or remove CSS style names to a widget at runtime. But that means the CSS style must already be defined. ➥Is there some way

Want to have a layout which arrange in a tabular form

假装没事ソ 提交于 2019-12-20 04:31:31
问题 I am very new to Vaadin. My requirement is like in my page I need to have 4 input component per row. There would be 4 rows like this. I need a layout which will allow me to define number of columns and keep align it. There should not be any border like we have in table. Please suggest me any suitable layout and how can I customize that. Thanks 回答1: You are probably looking for a GridLayout, it provides enough flexibility to size your grid 'cells', maintain consistency and set expand ratios