官术网_书友最值得收藏!

Chapter 4. JSF Tools

JSF Tools is a set of tools designed for improving the development process of JSF projects. In this chapter, we will see that these tools offer amazing skills for creating different kinds of JSF projects and JSF components, such as converters, validators, managed beans, referenced beans, and so on. Also, we will talk about integrating JSF and the Facelets framework, and how to add/remove JSF support for an existing project.

Throughout this chapter, we will follow the "learning by example" technique, and we will develop a completely functional JSF application that will represent a JSF registration form as you can see in the following screenshot. These kinds of forms can be seen on many sites, so it will be very useful to know how to develop them with JSF Tools.

JSF Tools

The example consists of a simple JSP page, named register.jsp, containing a JSF form with four fields (these fields will be mapped into a managed bean), as follows:

  • personName—this is a text field for the user's name
  • personAge—this is a text field for the user's age
  • personPhone—this is a text field for the user's phone number
  • personBirthDate—this is a text field for the user's birth date

The information provided by the user will be properly converted and validated using JSF capabilities. Afterwards, the information will be displayed on a second JSP page, named success.jsp.

主站蜘蛛池模板: 苍山县| 五原县| 翁牛特旗| 祁门县| 兴海县| 镇雄县| 瓦房店市| 淳化县| 土默特右旗| 潼关县| 新河县| 和静县| 广南县| 清水河县| 乌拉特中旗| 云和县| 邯郸县| 西充县| 松江区| 建阳市| 兰州市| 京山县| 成武县| 临澧县| 龙海市| 额尔古纳市| 永和县| 蒙城县| 浦县| 宜川县| 黄陵县| 莱西市| 汾阳市| 崇左市| 湘潭县| 旌德县| 南江县| 双鸭山市| 新乡市| 繁昌县| 孟州市|