j2ee_-_jsf_-_mastering_java_server_faces_-_wiley_-_2004

Page 466

Index for inbound request values, 277–278 JSF facility, 49 methods for getting and setting Converters, 72 between model properties and UI strings, 198–200 not required to be threadsafe, 71–72 for outbound response values, 278–279 overview, 69–73 registering Converters, 72, 201, 289–290, 293–296 registering custom Converters, 294–296 request-processing life cycle and, 309–312 setting the converter attribute in input tags, 280–283 standard Converter class registration, 294 standard Converters, 72–73, 283 validation and, 276 ConversionException, 276 convertDateTime tag attributes, 282–283 Converter components. See also conversion adding messages to FacesContext queue, 91 Apply Request Values phase and, 276 Car Demo application, 70–72 ConversionException, 276 credit card custom Converter, 70–72 custom Converters for validation, 285–296 defined, 177 failed conversions and, 201 identifier, 72 interface for, 69–70 methods for getting and setting, 72 methods required for, 69 not required to be threadsafe, 71–72 overview, 69 Process Validations phase and, 276 registering Converters, 72, 201, 289–290, 293–296 standard components, 72–73 standard Converter class registration, 294 validating custom value types using, 290–293 <converter> element (facesconfig.xml file), 128, 136–137

Converter interface, 69–70, 71 converter tag, 290 ConverterException, 198, 201, 286 Converters. See conversion; Converter components converting Struts application to JSF. See also SimpleBlogger application adding action handlers, 421–428 application.properties file, 414–415 blogEditForm.properties file, 416 building the navigation model, 420–421 build.xml file, 403, 404 converting JSP pages, 408–419 converting Struts ActionForm classes to managed beans, 405–408 copying business model objects, 405 creating JSF application from blankjsf template, 402–404 directory structure for typical JSF application, 403 JSF similarities to Struts, 384 logon.properties file, 415 need for, 383 setting up the environment, 402–404 steps in, 402 Web.xml file, 404 convertNumber tag, 199, 280, 281–282 core tag library. See also JSF tag libraries; specific tags declaring, 69, 157 described, 156 importing, 157, 163 prefix for, 157 createValidator() method, 306 curly braces ({ }) for value binding mechanism (#{ and }), 190 CurrencyConverter class, 290–293, 294–296 custom components. See also aggregate components; UIScroller component Apply Request Values phase and, 353–354 client user interface, 349 Converters for validation, 285–296 customizing existing components, 346 determining need for, 350 event listeners, 224 for HTML elements, 350 HTML generator, 348, 349–350

439


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.