19.09.2015 Views

Prentice.Hall.Introduction.to.Java.Programming,.Brief.Version.9th.(2014).[sharethefiles.com]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

}<br />

font-size:1em;<br />

padding:3px 7px 2px 7px;<br />

color:#000000;<br />

background-color:#EAF2D3;<br />

.table {<br />

border:1px solid green;<br />

}<br />

The style sheet file defines the style classes tableHeader (line 2) for<br />

table header style, oddTableRow for odd table rows (line 14),<br />

evenTableRow for even table rows (line 18), and table for all other<br />

table elements (line 28).<br />

41.9 Opening New JSF Pages<br />

All the examples you have seen so far use only one JSF page in a<br />

project. Suppose you want <strong>to</strong> register student information <strong>to</strong> the<br />

database. The application first displays the page as shown in Figure<br />

44.21 <strong>to</strong> collection student information. After the user enters the<br />

information and clicks the Submit but<strong>to</strong>n, a new page is displayed <strong>to</strong> ask<br />

the user <strong>to</strong> confirm the input, as shown in Figure 44.22. If the user<br />

clicks the Confirm but<strong>to</strong>n, the data is s<strong>to</strong>red in<strong>to</strong> the database and the<br />

status page is displayed, as shown in Figure 44.23. If the user clicks<br />

the Go Back but<strong>to</strong>n, it goes back <strong>to</strong> the first page.<br />

Figure 44.21<br />

This page lets the user enter input.<br />

36

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!