<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>TOOLS on Flowing Code</title><link>https://www.flowingcode.com/en/category/tools/</link><description>Recent content in TOOLS on Flowing Code</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 11 Jul 2022 12:55:27 +0000</lastBuildDate><atom:link href="https://www.flowingcode.com/en/category/tools/index.xml" rel="self" type="application/rss+xml"/><item><title>Installing Vembu BDRSuite with Docker Compose</title><link>https://www.flowingcode.com/en/installing-vembu-bdr-with-docker-compose/</link><pubDate>Mon, 11 Jul 2022 12:55:25 +0000</pubDate><guid>https://www.flowingcode.com/en/installing-vembu-bdr-with-docker-compose/</guid><description>&lt;div class="wp-block-image">&lt;figure class="aligncenter size-full">&lt;img alt="" class="wp-image-1254" height="340" loading="lazy" src="https://www.flowingcode.com/images/uploads/2022/07/image832.png" width="760"/>&lt;/figure>&lt;/div>
&lt;p class="wp-block-paragraph">In these days we tend to think that just by having our services and data on the cloud everything related to backups is solved and is someone else problem. But for most of the companies this is not enough, and if we’re in charge of defining the infrastructure of an organization we should consider implementing several layers of backups no matter where the data is actually hosted.&lt;/p></description></item><item><title>Vaadin Widgetset compiling: Tips &amp; Hints</title><link>https://www.flowingcode.com/en/vaadin-widgetset-compiling-tips-hints/</link><pubDate>Fri, 09 Feb 2018 19:36:00 +0000</pubDate><guid>https://www.flowingcode.com/en/vaadin-widgetset-compiling-tips-hints/</guid><description>&lt;div>&lt;img alt="" class="alignnone size-full wp-image-436" height="340" loading="lazy" src="https://www.flowingcode.com/images/uploads/2018/02/Vaadin-Widgetset-compiling_-Tips-Hints.jpg" width="760"/>&lt;/div>
&lt;div style="text-align: justify;">Hi everyone!&lt;/div>
&lt;div style="clear: both; text-align: center;">&lt;/div>
&lt;div style="text-align: justify;">The purpose of this post is enumerating the most common issues when trying to compile the widgetset in Vaadin. But before digging into this, let’s explain a little bit what this compiling thing is about.&lt;/div>
&lt;div style="text-align: justify;">In Vaadin version 6, 7 &amp;amp; 8, the visual components have two important parts.&lt;/div>
&lt;div style="text-align: justify;">The first one is server side, and it’s implemented in classic Java classes that are compiled to JVM bytecode.&lt;/div>
&lt;div style="text-align: justify;">The second part, on the other hand, is the client side code, written mostly in Java and then compiled in Javascript using &lt;a href="http://www.gwtproject.org/" rel="nofollow noopener noreferrer" target="_blank">GWT project&lt;/a>. GWT is basically a Java to Javascript compiler. All of these components (widgets) belong to a set known as widgetset.&lt;/div>
&lt;div style="text-align: justify;">The widgetset compilation process is done by executing the GWT compiler to produce the Javascript code associated to all of the Vaadin components that have server and client side code.&lt;/div>
&lt;div style="text-align: justify;">That being said, let’s go on with those tips!&lt;/div>
&lt;h3>Verify that everything is correctly configured&lt;/h3>
&lt;div style="text-align: justify;">There are a lot of ways to compile the widgetset, in this case we will focus in projects that use maven as the build tool, because is the most commonly tool used for this purpose.&lt;/div>
&lt;div style="text-align: justify;">The &lt;a href="https://github.com/vaadin/maven-plugin" rel="noopener noreferrer" target="_blank">vaadin-maven-plugin&lt;/a> will help you on this process, which is a derivation of the &lt;a href="https://gwt-maven-plugin.github.io/gwt-maven-plugin/" rel="noopener noreferrer" target="_blank">gwt-maven-plugin&lt;/a>.&lt;/div>
&lt;div style="text-align: justify;">Depending on the Vaadin version used, there a are a lot of different configurations, the best thing to do, is to create a small maven project, based on the simplest vaadin maven archetype (com.vaadin:&lt;a href="https://github.com/vaadin/archetypes/tree/master/vaadin-archetype-application" rel="nofollow noopener noreferrer" target="_blank">vaadin-archetype-application&lt;/a>)&lt;/div>
&lt;div style="text-align: justify;">These are the steps for doing this:&lt;/div>
&lt;ol>
&lt;li style="text-align: justify;">Run the command “&lt;span style="font-family: 'courier new' , 'courier' , monospace;">mvn archetype:generate&lt;/span>” from a terminal or command line window&lt;/li>
&lt;li style="text-align: justify;">Enter “&lt;span style="font-family: 'courier new' , 'courier' , monospace;">vaadin&lt;/span>” to filter the list of the available archetypes&lt;/li>
&lt;li style="text-align: justify;">Choose 5 (currently that’s the number of the &lt;span style="font-family: 'courier new' , 'courier' , monospace;">com.vaadin:vaadin-archetype-application&lt;/span> archetype, it could change in the future)&lt;/li>
&lt;li style="text-align: justify;">Choose the number before the Vaadin version that you’re using (ie: 127 -&amp;gt; 7.7.13, etc.)&lt;/li>
&lt;li style="text-align: justify;">Complete the parameters that maven will prompt&lt;/li>
&lt;/ol>
&lt;div>
&lt;div style="text-align: justify;">After that, maven will generate a small project, and if you take a look to the pom.xml file that was generated, you are going to find something like this:&lt;/div>
&lt;/div>
&lt;p>&lt;/p></description></item><item><title>Debugging GWT client side code in Vaadin with Eclipse</title><link>https://www.flowingcode.com/en/debugging-gwt-client-side-code-in-vaadin-with-eclipse/</link><pubDate>Tue, 12 Dec 2017 14:17:00 +0000</pubDate><guid>https://www.flowingcode.com/en/debugging-gwt-client-side-code-in-vaadin-with-eclipse/</guid><description>&lt;div style="clear: both; text-align: center;">&lt;/div>
&lt;div>&lt;img alt="" class="alignnone size-full wp-image-438" height="340" loading="lazy" src="https://www.flowingcode.com/images/uploads/2017/12/Debugging-GWT-client-side-code-in-Vaadin-with-Eclipse.jpg" width="760"/>&lt;/div>
&lt;div style="text-align: justify;">You know, if you’re developing a Vaadin application, it is not necessary to understand how to code client side using GWT, unless you’re building your own custom component, and you need to add some special client-side code. In that case, you are going to realize that whenever you want to test your component, debugging it can be tricky.&lt;/div>
&lt;div style="text-align: justify;">The problem is that client side code is not executed by the JVM, instead that code is going to be executed by the browser, and because of this all of the debugging facilities provided by the Java platform are useless.&lt;/div>
&lt;div style="text-align: justify;">Let me tell you what you need to take into account for being able to successfully debug your code.&lt;/div>
&lt;h3>1 – Modify your .gwt.xml file&lt;/h3>
&lt;p>The first thing you need to do is to modify the &lt;a href="https://vaadin.com/docs/framework/clientside/clientside-module.html" rel="nofollow noopener noreferrer" target="_blank">file that contains all of your widgetset information&lt;/a>, by adding this line inside the tag &lt;span style="font-family: 'courier new' , 'courier' , monospace;">&amp;lt;module/&amp;gt;&lt;/span>:&lt;br/>
&lt;/p></description></item></channel></rss>