JamesBranam's Blog
Converting and Validating Data in Visual Web JSF Applications
Hi all,
Today I'd like to continue a blog series in which I highlight Web application tutorials for NetBeans 6.5. A few changes have been made to tutorials, so be sure to check them out again.
This eleventh entry in the series will cover the tutorial, "Converting and Validating Data in Visual Web JSF Applications".
In this tutorial you learn about JSF 1.2 (Woodstock) Converters and Validators. Converters are used to convert string input into data Java data types for various purposes such as calculation. Validators are used to verify that user input falls within specified ranges. You use the Visual Web JSF framework to create an application that converts temperatures from Celsius to Fahrenheit. The application uses a converter to convert user input from a string value to a numerical Java data type on which the application can perform calculations. The application uses a validator to check that the data falls within a specified range and reports validation errors via a message component. You then build a web applicatation that calculates currency values and displays a formatted date value.
You also learn how to add your own validation handler to an application and how to override the built-in error messages provided by the IDE for when a standard validation fails.
This tutorial contains a lot of valuable information. Have fun with it.
Cheers!
--James
Posted at 09:00AM Dec 05, 2008 by branajam in NetBeans |