vaadin

Coloring button link background area when it's hovered

不打扰是莪最后的温柔 提交于 2019-12-25 02:43:04
问题 I'm developing a web application using the Vaadin framework. I have a Button styled as BaseTheme.BUTTON_LINK and have an icon showing. The button is assigned a CSS class which has a hover state, when the button is hovered i want to change the background of the button to white color. When i expanded the area to be coloured with firebug, it gives this : <div class="v-slot v-slot-link" style="width: 25%; margin-left: 0px;"> <div class="v-button v-widget link v-button-link" tabindex="0" role=

Vaadin 8 alpha/beta prerelease fail with “Non-resolvable import POM: Failure to find” errors

谁说胖子不能爱 提交于 2019-12-25 02:18:59
问题 I have not been able to try the alpha and beta versions of Vaadin 8. ➥ What exactly do I need to do to change a working Vaadin 8.5.2 project to use Vaadin 8.6.0beta1 ? Scenario I am using IntelliJ 2018.3, configured to use external Maven 3.5.4. I followed the instructions seen at: https://vaadin.com/framework/releases/8.6.0.beta1 Actually, my POM already had the pair of <id>vaadin-prereleases</id> entries as shown on that page: <repositories> <!-- ... --> <repository> <id>vaadin-prereleases<

What are the jars necessary to bean validation?

烈酒焚心 提交于 2019-12-25 02:05:52
问题 I'm trying validating my beans using bean validator. The problem is I don't know which libraries(jar) are necessary to validation. I'm using. Vaadin 7, BeanFieldGroup and EclipseLink /** class of MyBean */ public class MyBean{ @Id @GeneratedValue private Long id; @NotNull @NotEmpty @Size(min=5, max=50, message="Min = 5 and Max = 50, this field is not empty") private String name; @Email @NotEmpty private String email; } Any idea ? 回答1: Follow these step-by-step instructions on how to download

new Vaadin on new Netbeans — the basic dependencies

旧街凉风 提交于 2019-12-25 02:03:14
问题 I'm getting the following error when i compile the widgetset. I'm using Vaadin 7.3.8 on Netbeans 8.0.2. : > cd C:\Users\H\Documents\NetBeansProjects\AVaad\AVaad-ui; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_20" cmd /c "\"\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\" -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar\" vaadin:compile\"" Scanning for projects... > ------------------------------------------------------------

Vaadin Flow download code works for Chrome but not for Firefox - How can I support both?

匆匆过客 提交于 2019-12-25 01:13:26
问题 I have the following code to download a file from Vaadin Flow (12.0.7). exportBtn.addClickListener(e -> { toDownload = FileUtil.getLatestExport(); (toDownload != null) { StreamResource resource = new StreamResource(toDownload.getName(), () -> FileUtil.getInputStreamForFile(toDownload)); Element object = new Element("object"); object.setAttribute("download", true); object.setAttribute("data", resource); Input name = new Input(); UI.getCurrent().getElement().appendChild(name.getElement(),

Vaadin: CDI Inject is null after referencing

感情迁移 提交于 2019-12-25 00:59:20
问题 Good day. There is an application (using a CDI add on): @VaadinScoped(VaadinScope.APPLICATION) public class AdminApplication extends AbstractCdiApplication { @Inject private Instance<Lang> lang; @Override public void init() { setMainWindow(new LoginWindow(this)); } public void authenticate(String login, String password) throws Exception { lang.get(). ... } ... And the LoginWindow: public class LoginWindow extends Window { ... public LoginWindow(AdminApplication application) { super(

How to make SQLContainer auto refresher in vaadin [closed]

泄露秘密 提交于 2019-12-24 22:26:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . i have a vaadin application, and i used SQLContainer to display database records. the issue that i want to make the SQLcontainer update itself when any database change occurs. cam anyone help me please? 回答1: AFAIK you can't register a "listener" on changes in any database systems like MySQL, Oracle or MSSQL. Its

vaadin generated page doesnt show any component

[亡魂溺海] 提交于 2019-12-24 21:12:26
问题 I have a problem at vaadin framework in general. I created a class extends vaadin application(MyFirst), after that I created a custom component with vaadin visual designer(MyFormApp). I did instantiate the custom component MyFormApp, and I added it to the main window of the MyFirst. After deploying the app, the page generated by vaadin does not show any component. My code : /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.example

How to set width for Vaadin Label with empty string

自作多情 提交于 2019-12-24 19:55:29
问题 According to the documentation if you have an empty Label (a Label with an empty string) the width will collapse to 0. That being said the documentation also says: "If you want a gap that has adjustable width or height, you can use an empty label if you specify a height or width for it" However when I do this the width still collapses to 0. I need the width to keep it's size because I use a different color for the background. 回答1: For me adding style to whatEverIsTheStyleName.scss that

How to set different content for Tabs in Vaadin14?

天涯浪子 提交于 2019-12-24 17:50:01
问题 I have a pretty simple class that basically is just an AppLayout with some Tab . Now my issue. I am not able to find a smart way to display different contents for the Tabs -class. Is there any interface or something that can be called to differ the content for the Tab ? class MainAppView extends AppLayout { public MainAppView() { createDrawerAndAddToAppView(); } void createDrawerAndAddToAppView() { Tabs tabs = createTabsForDrawer(); tabs.setOrientation(Tabs.Orientation.VERTICAL); addToDrawer