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

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.

主站蜘蛛池模板: 洞口县| 行唐县| 凤城市| 榆社县| 台前县| 榆林市| 五莲县| 黎川县| 泗洪县| 沽源县| 左贡县| 静安区| 东乡族自治县| 乌兰察布市| 河津市| 随州市| 莱州市| 吉林省| 凌云县| 徐州市| 沙河市| 鲜城| 西吉县| 永济市| 三原县| 孝感市| 永城市| 全州县| 历史| 柘荣县| 洮南市| 玛沁县| 四会市| 铁岭县| 焦作市| 宁河县| 沁水县| 沙河市| 蒲江县| 米易县| 丰原市|