How to use Vaadin add-ons in spring-boot?

In a Spring boot project i want to add a vaadin add-ons.i copied that add-ons dependency in my project.My question is now, how can i use that add-on?
I am working with vaadin 8 and i am a newbie.Thanks in advance

Hi,

A couple of questions:

  1. Which add-on are you interested in using?
  2. Do you have a Vaadin UI in your application?

Regards,

Olli

Your widgetset does not contain the addon.

<inherits name="org.vaadin.hene.popupbutton.widgetset.PopupbuttonWidgetset" />
Once added, recompile the widgetset, restart your application.

Usually the gradle plugin can handle this for you, but that feature can be disabled and or some other configuration error could prevent it. Hard to tell without the build.gradle…

edit
The gradle vaadin plugin seems not to be able to handle this addon properly. As a workaround disable the automatic management for widgetset, which prevents regeneration of the gwt.xml.
E.g. add vaadinCompile.manageWidgetset = false in your vaadin{}-block.

I think this may help you.

Thanks&Regards

[Katherine]
(https://tekslate.com)

source:stackoverflow

Olli Tietäväinen:
Hi,

A couple of questions:

  1. Which add-on are you interested in using?
  2. Do you have a Vaadin UI in your application?

Regards,

Olli

Answer:
1.Anything, as like as confirmation dialogue.
2.Yes , i have one

Then it really depends on the add-on. Each add-on has its own API and not all are visual components - some might be, for example, server-side data providers. There’s a confirmation dialog add-on here: https://vaadin.com/directory/component/confirmdialog and the Code Samples page in the directory has some examples of how to use it: https://vaadin.com/directory/component/confirmdialog/samples

-Olli

well, i have had a look to my POM and i copy/past these lines:

<properties>
   ...
   <vaadin.version>8.4.4</vaadin.version>	
 </properties>
<dependency>
   	<groupId>com.vaadin</groupId>
   	<artifactId>vaadin-spring-boot-starter</artifactId>
 </dependency>
<dependencyManagement>
  	<dependencies>
  	   <dependency>
          <groupId>com.vaadin</groupId>
          <artifactId>vaadin-bom</artifactId>
          <version>${vaadin.version}</version>
          <type>pom</type>
          <scope>import</scope>
      </dependency>
  	</dependencies>
  </dependencyManagement>
 <plugin>
		<groupId>com.vaadin</groupId>
		<artifactId>vaadin-maven-plugin</artifactId>
		<version>8.4.4</version>
		<executions>
			<execution>
				<goals>
					<goal>update-theme</goal>
					<!-- <goal>update-widgetset</goal> -->
					<goal>compile</goal>
					<!-- Comment out compile-theme goal to use on-the-fly theme compilation -->
					<goal>compile-theme</goal>
				</goals>
			</execution>
		</executions>
	</plugin>

I hope i could help :slight_smile:

Mostapha Kanoune:
well, i have had a look to my POM and i copy/past these lines:

<properties>
 ...
 <vaadin.version>8.4.4</vaadin.version>	
 </properties>
<dependency>
 	<groupId>com.vaadin</groupId>
 	<artifactId>vaadin-spring-boot-starter</artifactId>
 </dependency>
<dependencyManagement>
	<dependencies>
	   <dependency>
          <groupId>com.vaadin</groupId>
          <artifactId>vaadin-bom</artifactId>
          <version>${vaadin.version}</version>
          <type>pom</type>
          <scope>import</scope>
      </dependency>
	</dependencies>
</dependencyManagement>
 <plugin>
		<groupId>com.vaadin</groupId>
		<artifactId>vaadin-maven-plugin</artifactId>
		<version>8.4.4</version>
		<executions>
			<execution>
				<goals>
					<goal>update-theme</goal>
					<!-- <goal>update-widgetset</goal> -->
					<goal>compile</goal>
					<!-- Comment out compile-theme goal to use on-the-fly theme compilation -->
					<goal>compile-theme</goal>
				</goals>
			</execution>
		</executions>
	</plugin>

I hope i could help :slight_smile:

how to call it back into java code?

sorry, i think i misread your problem, and hence i answered incorrectly.
Going back to you question “how to call it back into java code?”, i think Olli Tietäväinen provided you with a good link:

<dependency>
   <groupId>org.vaadin.addon</groupId>
   <artifactId>confirmdialog</artifactId>
   <version>3.2.0</version>
</dependency>
COPY
<repository>
   <id>vaadin-addons</id>
   <url>http://maven.vaadin.com/vaadin-addons</url>
</repository>

So you could access the object, its properties and its attributes through the name specified in the … in this case confirmdialog (ConfirmDialog).