Home » Author Archives: Oleg Varaksin

Author Archives: Oleg Varaksin

A way to read properties with variable interpolation

java-logo

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

spring-interview-questions-answers

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 »

Extending PrimeFaces CSV with Bean Validation

jsf-logo

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

jsf-logo

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 »

Don’t repeat expressions in facelets

jsf-logo

Have you ever seen repeated EL expressions in JSF like this one?                     <h:inputText value="#{oneBean.name}" rendered="#{anotherBean.showPerson}"/> <h:inputText value="#{oneBean.birthday}" rendered="#{anotherBean.showPerson}"/> <h:selectOneMenu value="#{oneBean.children}" style="#{anotherBean.showPerson ? 'display:block' : 'display:none'}"/> usw. Another example: <ui:include src="/include/somesnippet.xhtml"> <ui:param name="age" value="#{someBean.isMan(person) ? 63 : 60}"/> <ui:param name="money" value="#{someBean.isMan(person) and someBean.getCountry(person) eq 'de' ? 1000 : 900}"/> <ui:param name="big" ...

Read More »

WAI-ARIA support for AutoComplete widget

jsf-logo

In this post I would like to discuss the accessibility for an AutoComplete widget. A typically AutoComplete widget provides suggestions while you type into the field. On my current work I implemented an JSF component on basis of Twitter’s Typeahead – a flexible JavaScript library that provides a strong foundation for building robust typeaheads. The Typeahead widget has a solid ...

Read More »

Brand new JSF components in PrimeFaces Extensions

jsf-logo

The PrimeFaces Extensions team is glad to announce several new components for the upcoming 3.0.0 main release. Our new committer Francesco Strazzullo gave a “Turbo Boost” for the project and brought at least 6 JSF components which have been successfully intergrated! The current development state is deployet on OpenShift – please look the showcase Below is a short overview about ...

Read More »

How to get JSON response from JSF?

jsf-logo

Many JavaScript widgets expect data and options in JSON format. Nowadays, it is really easy to choose a cool widget and wrap it in a composite component. But the first question is how to send an AJAX request and to recieve a response in a proper JSON format. This question is often raised by JSF users. All that you need ...

Read More »

How to implement a custom password strength indicator in JSF

jsf-logo

Verifying password strength using JavaScript is a common task. In this post, I will show how to add a password strength indicator to an JSF based web application. The password component in PrimeFaces already has a feedback indicator of the password strength, but it has two major shortcomings: Feedback indicator is not responsive (fix width, not mobile friendly, etc.) Rules ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.