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

7 Thinking in Components

In Chapter 6, we discussed the benefits of automatic state management in Seam. We mentioned that the stateful context of conversation is probably the most important for most web application developers. However, the conversation context may also be a little difficult to grasp for beginners. To make the learning curve as gentle as possible, let’s start from the stateful context everyone is already familiar with—the HTTP session context. In this chapter, we describe how a Seam stateful component is declared, constructed, and managed.

To illustrate how a stateful component works, we refactor the Hello World example from Chapter 2 into a stateful three-page application. The hello.xhtml page displays the form ...

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