Blogs

Blogs

Lots of new Vaadin + Liferay material available

The Liferay portal has always been a popular basis for Vaadin applications. To serve better this active Vaadin users group we have recently created a lot of new material for both new and existing Vaadin developers. We created a full-stack example portlet, published a couple of smaller tricks for Liferay developers and created a whole new web page to act as a hub for essential and up to date Liferay + Vaadin information.

Liferay + Spring Data + Vaadin

Instead of just small code examples and “hello world” style getting started apps, we wanted to show a new inspiring full stack recipe to create Vaadin portlets. Full stack examples are often a bit opinionated, but we believe this is one of the best ways to build modern portlets for your business. And if it doesn’t suit your requirements as such, it can be a source of inspiration for your perfect stack.

On the persistency layer we rely on JPA entities, repository pattern and an awesome tool called Spring Data JPA that helps us create the data access code in a snap.

The example project and a related article also show how you can use the recently introduced Vaadin Spring to make your Vaadin UI objects Spring managed beans. This naturally helps you to integrate with things like Spring Data repositories, but it may also greatly improve your UI code quality, if you master all IoC tricks that Spring core allows you to apply.

In the example, we are using the User object provided by Liferay’s sign-in functionality and show how you can do loose coupling with the user data provided by Liferay and the separate Spring Data managed database.

Boost your productivity with Vaadin Designer

If you have visited vaadin.com lately, you must have seen the latest addition to Pro Tools called Vaadin Designer. With Vaadin Designer you’ll be able to create stunning user interfaces - faster. Vaadin Designer works out of the box with your Vaadin Liferay portlets, as long as you are using a modern 7.5 series version of Vaadin.

From the Spring Data based “Vaadin reference portlet” we also created a version that uses Vaadin Designer to create its most complex view. For Liferay developers, checking out this project and trying out Vaadin Designer is a new entry to the top of your todo list!

Liferay compatible Valo parameters

To complement our full-stack portlet example, we wanted to brag a bit with our Valo theme engine. With just a couple of parameters you can configure it to perfectly match with the latest Liferay 6.2 default theme. Even if you have customized your portal theme to fit into your company’s brand, the tutorial will help you to easily adapt your Vaadin apps to it, as well.

Enter vaadin.com/liferay

 
Matti,
I recently walked through the Vaadin and Spring Boot tutorial over on vaadin.com . It certainly removed a lot of ceremony and complexity in starting a Vaadin project. I'm wondering if this will be extended to Vaadin portlets, or if the extra bit needed is just a few deployment descriptors.
Hi Joseph,

The Spring Data JPA example linked above actually uses Spring Boot, but to bad it cannot use all features of it. So you'll still need e.g. portlet.xml etc., but it simplifies the code you need to configure Spring Data a LOT. I don't know Portlet spec and Liferay internals well enough to say if there is something we could do to simplify project setup, but I can ask from our portal expert Henri Sara who is actually part of the portlet 3 JSR expert group.

cheers,
matti