Some time ago I blogged about language features in TypeScript and Dart which I miss in Java. In this blog post, due to my new expertise in Kotlin, I would like to consider Kotlin too. Every programming language has a main focus where it is used. Java is primarily used in backend, Kotlin in backend + frontend (Android) and Dart, ...
Read More »Home »
Clever cache for Reactor’s Mono objects
Data caching is a widespread technique in the programming. It allows to quickly retrieve data without making long-running operations. But there is a problem with caching of data retrieved as result of some long-running operation. If a cache value is missed, it will be requested. If it is requested by a long-running HTTP request or SQL command, the next request ...
Read More »NPM module Browser-Sync in Java / Web projects
Browser-Sync is a handy Node.js based NPM module which can be used for a faster web development. Browser-Sync synchronizes file changes and interactions across many devices. The most important feature is the live reloading. We can use the Browser-Sync in Java / Web projects too. Cagatay Civici created a great video tutorial how to use this module with the PrimeFaces showcase. ...
Read More »Clean architecture of Selenium tests
In this blog post, I would like to introduce a clean architecture for Selenium tests with best design patterns: page object, page element (often called HTML wrapper) and self-developed, very small but smart framework. The architecture is not restricted to Java which is used in the examples and can be applied to Selenium tests in any other language as well. ...
Read More »A way to read properties with variable interpolation
Recently, I tried to define and read a global properties in an application server. The benefit of such property configured in the application server – it can be shared across all web applications that are deployed on this server. Every deployed application can read the same property which is configured just once at one place. What I tried to do ...
Read More »Caching of web content with Spring’s cache manager
I this post, I would like to show basics how to cache and manage the caching of web content with Spring’s CacheManager, @Cacheable and JMX annotations. Imagine a web shop which fetches some content, such as header, footer, teasers, main navigation, from a remote WCMS (Web Content Management System). The fetching may e.g. happen via a REST service. Some content ...
Read More »PrimeFaces: Opening external pages in dynamically generated dialog
I already blogged about one recipe in the upcomming 2. edition of the PrimeFaces Cookbook. In this post, I would like to post the second recipe about a small framework called Dialog Framework. I personally like it because I remember my costly effort to do the same thing with the Struts Framework. When you wanted to load an external page ...
Read More »Extending PrimeFaces CSV with Bean Validation
Some of you already know that me and my co-author Mert Çalışkan are working on the 2. edition of the PrimeFaces Cookbook. The Packt Publishing allowed me to publish a small excerpt from one recipe of the new chapter “Client Side Validation”. It would help in letting the readers know about the book’s content. In this blog post, I would ...
Read More »Building dynamic responsive multi-level menus with plain HTML and OmniFaces
Recently, I had to create a responsive multi-level menu with JSF 2.2. Requirements: the menu should: be created with dynamic structure from backend be responsive, i.e. desktop- and mobile-friendly have submenu items with navigation links support touch events support keyboard accessibility PrimeFaces’ menus were not a choice. They can indeed be ...
Read More »