O'Reilly logo

Beginning JSF™ 2 APIs and JBoss® Seam by Kent Ka Iok Tong

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

C H A P T E R  2

image

Using Forms

In this chapter, you'll learn how to use forms to get input from users and store it in a web bean for processing.

Developing a Stock Quote Application

Suppose that you'd like to develop the application shown in Figure 2-1. That is, if the user enters a stock symbol and clicks the button, then the application will display the stock value.

image

Figure 2-1. A stock quote application

Getting the Stock Quote Symbol

Let's create the example application now. In Eclipse, copy the Hello project, and paste it as a new project ...

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