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  9

image

Supporting Other Languages

In this chapter, you'll learn how to develop an application that can appear in two or more different languages to suit users in different countries.

Displaying the Current Date and Time

Suppose that you have an application that displays the current date and time, as shown in Figure 9-1.

images

Figure 9-1. Displaying the current date and time

To do that, create a new dynamic web project as usual named MultiLang. Then create a showdate.xhtml file, as shown in Listing 9-1.

Listing 9-1. showdate.xhtml

<!DOCTYPE ...

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