Java Reference
In-Depth Information
Figure 12-25.
In AllEmps Facelet, the value attribute ( value= "#{pc_AllEmps.allEmpsRRL}" ) of the dataTable tag tells the server
to invoke the bean's (i.e., the pagecode subclass') getAllEmpsRRL() method. (In JSF, EL statements can begin with a
$, as with JSPs, or a # as above.) getAllEmpsRRL() returns the employee information from the database as a list. The
power/magic of the dataTable tag is that it will iterate through the list and generate HTML for multiple rows. The
HTML and data is passed back to the server and the server sends it to the browser (see Figure 12-26 ).
Figure 12-26.
That's enough for now.
Are you asking, “Why do I have to know all this?” Well, to enhance the application you are going to have to get
your hands dirty and do some coding. (Sorry, Page Designer can't do it all for you!) In addition, to modify the code,
you need to understand which classes and methods to modify, which files hold the source code, and where the files
are located.
 
Search WWH ::




Custom Search