O'Reilly logo

Seam Framework: Experience the Evolution of Java™ EE, Second Edition by Thomas Heute, Jacob Orshalick, Michael Juntao Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

14 Decoupling Components Using Events

UI frameworks commonly use events to decouple web and data components. Events allow components to react to changes in the model or in other components without creating a direct dependency between the two. Seam is no different; it provides a simple approach to using events in your application through an implementation of the observer pattern.

This chapter will discuss the Seam approach to the observer pattern. As you will see, Seam makes it simple to use this powerful pattern to decouple your components by communicating events across contexts. First, let’s take a look at some background on the observer pattern.

14.1 The Observer Pattern

The observer pattern is a commonly used ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required