|
MyEclipse 下开发JSF教程(3)
Java/国外教程下载/LaLiLuna%20-%20Tutorials%20for%20struts,%20ejb,%20myeclipse%20»%20First%20Java%20Server%20Faces%20Tutorial.files/add-jsf-capabilities2.gif" width=527 align=left border=0 name=Graphic4>
The class BookAdd an new package de.laliluna.tutorial.library und create a new class named Book. Java/国外教程下载/LaLiLuna%20-%20Tutorials%20for%20struts,%20ejb,%20myeclipse%20»%20First%20Java%20Server%20Faces%20Tutorial.files/new-class.gif" width=553 align=left border=0 name=Graphic9>
Java/国外教程下载/LaLiLuna%20-%20Tutorials%20for%20struts,%20ejb,%20myeclipse%20»%20First%20Java%20Server%20Faces%20Tutorial.files/new-class-book.gif" width=515 align=left border=0 name=Graphic5>
Open the class and add the following private properties: Generate a getter- and setter-method for each property. Right click on the editor window and choose Source > Generate Getter- and Setter Methods. Java/国外教程下载/LaLiLuna%20-%20Tutorials%20for%20struts,%20ejb,%20myeclipse%20»%20First%20Java%20Server%20Faces%20Tutorial.files/generate-getter-and-setter.gif" width=431 align=left border=0 name=Graphic10>
|