Category Archives: Java EE

Using JPA and JTA with Spring

When building a web application, we will sooner or later need to somehow store data entered by users and retrieve it later. In most cases the best place to keep this data is a database because it additionally provides many … Continue reading

Posted in Java, Java EE, JPA, JTA, Spring | Tagged , , , , , , | 15 Comments

JSF Facelets: templates

Facelets were introduced in JSF 2.0 to resolve common inefficiencies in JSF when creating large-scale sites. Two most useful additions provided by facelets were the ability to reuse the code through templating and to create custom composite components conveniently. In … Continue reading

Posted in Java, Java EE, JSF | Tagged , , , | Leave a comment

Monitoring AJAX request lifecycle in JSF

Sometimes when working with AJAX in JSF you may find it useful to able to perform some actions before the request is sent to server, after the response is received and when some error occurs. The common case is to … Continue reading

Posted in AJAX, Java, Java EE, JSF | Tagged , , , , | 1 Comment

Basic AJAX in JSF

In this article I would like to describe how to send AJAX request to server, receive the response and update the page accordingly. As an example I will use a simple application which allows choosing country from a list. Once … Continue reading

Posted in AJAX, Java, Java EE, JSF | Tagged , , , , , , , | 2 Comments