About this ebook
Anghel Leonard
Anghel Leonard is a Chief Technology Strategist and independent consultant with 20+ years of experience in the Java ecosystem. In daily work, he is focused on architecting and developing Java distributed applications that empower robust architectures, clean code, and high-performance. Also passionate about coaching, mentoring and technical leadership. He is the author of several books, videos and dozens of articles related to Java technologies.
Read more from Anghel Leonard
Java Coding Problems: Improve your Java Programming skills by solving real-world coding challenges Rating: 0 out of 5 stars0 ratingsMastering JavaServer Faces 2.2 Rating: 0 out of 5 stars0 ratingsJBoss Tools 3 Developers Guide Rating: 0 out of 5 stars0 ratings
Related to JSF 2.0 Cookbook
Related ebooks
PrimeFaces Beginner's Guide Rating: 0 out of 5 stars0 ratingsInstant Razor View Engine How-to Rating: 0 out of 5 stars0 ratings(Part 2) Java 4 Selenium WebDriver: Come Learn How To Program For Automation Testing Rating: 0 out of 5 stars0 ratingsMastering Vue.js: Building Modern Web Applications Rating: 0 out of 5 stars0 ratingsJava with TDD from the Beginning Rating: 0 out of 5 stars0 ratingsInstant Play Framework Starter Rating: 0 out of 5 stars0 ratingsPHP programming Rating: 0 out of 5 stars0 ratingsBeginning JavaScript Rating: 0 out of 5 stars0 ratingsA Pythonic Adventure: From Python basics to a working web app Rating: 0 out of 5 stars0 ratingsCloud Development and Deployment with CloudBees Rating: 0 out of 5 stars0 ratingsNW.js Essentials Rating: 0 out of 5 stars0 ratingsMastering Java Persistence: From Basics to Expert Proficiency Rating: 0 out of 5 stars0 ratingsSpring Boot 3.0 Crash Course Rating: 0 out of 5 stars0 ratingsNoSQL Essentials: Navigating the World of Non-Relational Databases Rating: 0 out of 5 stars0 ratingsModernizing Legacy Applications in PHP Rating: 0 out of 5 stars0 ratingsJavaFX 1.2 Application Development Cookbook Rating: 0 out of 5 stars0 ratingsApache Solr PHP Integration Rating: 0 out of 5 stars0 ratingsJava Performance Optimization: Expert Strategies for Enhancing JVM Efficiency Rating: 0 out of 5 stars0 ratingsjQuery 2.0 Development Cookbook Rating: 0 out of 5 stars0 ratingsGradle Effective Implementation Guide Rating: 3 out of 5 stars3/5Spring Security: Effectively secure your web apps, RESTful services, cloud apps, and microservice architectures Rating: 0 out of 5 stars0 ratingsDotNetNuke 5.4 Cookbook Rating: 5 out of 5 stars5/5Laravel 5.x Cookbook Rating: 0 out of 5 stars0 ratingsMastering phpMyAdmin 3.4 for Effective MySQL Management Rating: 0 out of 5 stars0 ratingsUltimate Modern jQuery for Web App Development Rating: 0 out of 5 stars0 ratingsPHP Mastery: Crafting Dynamic Web Solutions Rating: 0 out of 5 stars0 ratings
Information Technology For You
Data Analytics for Beginners: Introduction to Data Analytics Rating: 4 out of 5 stars4/5CompTIA Network+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Exam N10-008 Rating: 0 out of 5 stars0 ratingsPersonal Knowledge Graphs: Connected thinking to boost productivity, creativity and discovery Rating: 5 out of 5 stars5/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5How to Write Effective Emails at Work Rating: 4 out of 5 stars4/5Learning Microsoft Endpoint Manager: Unified Endpoint Management with Intune and the Enterprise Mobility + Security Suite Rating: 0 out of 5 stars0 ratingsCompTIA A+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Core 1 Exam 220-1101 Rating: 0 out of 5 stars0 ratingsChatGPT: The Future of Intelligent Conversation Rating: 4 out of 5 stars4/5Cybersecurity for Beginners : Learn the Fundamentals of Cybersecurity in an Easy, Step-by-Step Guide: 1 Rating: 0 out of 5 stars0 ratingsAWS Certified Cloud Practitioner: Study Guide with Practice Questions and Labs Rating: 5 out of 5 stars5/5CompTia Security 701: Fundamentals of Security Rating: 0 out of 5 stars0 ratingsCyber Security Consultants Playbook Rating: 0 out of 5 stars0 ratingsExcel VBA: A Step-By-Step Tutorial For Beginners To Learn Excel VBA Programming From Scratch: 1 Rating: 4 out of 5 stars4/5Practical Ethical Hacking from Scratch Rating: 5 out of 5 stars5/5Design and Build Modern Datacentres, A to Z practical guide Rating: 3 out of 5 stars3/5The Rise of AI Income: Using Artificial Intelligence for Financial Success Rating: 5 out of 5 stars5/5DevOps Handbook: What is DevOps, Why You Need it and How to Transform Your Business with DevOps Practices Rating: 4 out of 5 stars4/5CompTIA ITF+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Exam FC0-U61 Rating: 5 out of 5 stars5/5An Ultimate Guide to Kali Linux for Beginners Rating: 3 out of 5 stars3/5Data Governance For Dummies Rating: 2 out of 5 stars2/5Unlocking the Power of Agentic AI: Transforming Work and Life Rating: 5 out of 5 stars5/5AWS Certified Cloud Practitioner - Practice Paper 1: AWS Certified Cloud Practitioner, #1 Rating: 5 out of 5 stars5/5A Practical Guide for IoT Solution Architects Rating: 5 out of 5 stars5/5Arch Linux: Fast and Light! Rating: 3 out of 5 stars3/5REMOTE ACCESS VPN- SSL VPN: A deep dive into SSL VPN from basic Rating: 5 out of 5 stars5/5Sage Beginner's Guide Rating: 4 out of 5 stars4/5Health Informatics: Practical Guide Rating: 0 out of 5 stars0 ratings
Reviews for JSF 2.0 Cookbook
0 ratings0 reviews
Book preview
JSF 2.0 Cookbook - Anghel Leonard
Table of Contents
JSF 2.0 Cookbook: LITE
Credits
About the Author
About the Reviewer
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code for the book
Errata
Piracy
Questions
1. Using Standard and Custom Converters in JSF
Introduction
Working with implicit and explicit conversions
Getting ready
How to do it...
How it works...
There's more...
See also
Standard converters for numbers
Getting ready
How to do it...
How it works...
There's more...
See also
Standard converters for date and time
Getting ready
How to do it...
See also
Converters and NULL values
Getting ready
How to do it...
How it works...
See also
Creating and using a custom converter
Getting ready
How to do it...
How it works...
There's more...
See also
Using custom converters for h:selectOneMenu
Getting ready
How to do it...
How it works...
There's more...
See also
Binding converters to backing bean properties
Getting ready
How to do it...
How it works...
See also
RichFaces and standard converters
Getting ready
How to do it...
How it works...
See also
RichFaces and custom converters
Getting ready
How to do it...
How it works...
See also
Instance variables in converters
Getting ready
How to do it...
How it works...
See also
Client-side converters with MyFaces Trinidad
Getting ready
How to do it...
How it works...
There's more...
See also
2. Using Standard and Custom Validators in JSF
Introduction
Using a standard validator
Getting ready
How to do it...
How it works...
See also
Customizing error messages for validators
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a custom validator
Getting ready
How to do it...
How it works...
There's more...
See also
Binding validators to backing bean properties
Getting ready
How to do it...
How it works...
See also
Validating forms with RichFaces rich:beanValidator
Getting ready
How to do it...
How it works...
There's more...
See also
Validating forms with RichFaces rich:ajaxValidator
Getting ready
How to do it...
How it works...
See also
Apache MyFaces Commons validators
Getting ready
How to do it...
How it works...
See also
Bean validation with f:validateBean
Getting ready
How to do it...
There's more...
How it works...
See also
Enforcing a value's presence with f:validateRequired
Getting ready
How to do it...
How it works...
See also
Using regular expressions with f:validateRegex
Getting ready
How to do it...
How it works...
See also
3. Security
Introduction
Working with the JSF Security project
Getting ready
How to do it...
How it works...
See also
Using the JSF Security project without JAAS Roles
Getting ready
How to do it...
How it works...
Using secured managed beans with JSF Security
Getting ready
How to do it...
See also
Using Acegi/Spring security in JSF applications
Getting ready
How to do it...
How it works...
See also
Index
JSF 2.0 Cookbook: LITE
JSF 2.0 Cookbook: LITE
Copyright © 2011 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, Packt Publishing, nor its dealers or distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2011
Production Reference: 1190411
Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK.
ISBN 978-1-849691-62-8
www.packtpub.com
Cover Image by Prasad Hamine (<[email protected]>)
Credits
Author
Anghel Leonard
Reviewer
Edem Morny
Acquisition Editor
Sarah Cullington
Technical Editor
Azharuddin Sheikh
Indexer
Monica Ajmera Mehta
Production Coordinator
Shantanu Zagade
Cover Work
Shantanu Zagade
About the Author
Anghel Leonard is a senior Java developer with more than 12 years of experience in Java SE, Java EE, and the related frameworks. He has written and published more than 20 articles and 100 tips and tricks about Java technology. Also, he has written two books about XML and Java (one for beginners and one for advanced users) and another book for Packt Publishing, named JBoss Tools 3 Developer Guide. In this time, he has developed web applications using the latest technologies out in the market. In the past two years, he has focused on developing RIA projects for GIS fields. He is interested in bringing as much desktop to the Web as possible; as a result GIS applications present a real challenge to him.
I would like to thank my family, especially, my wife!
About the Reviewer
Edem Morny has been involved in enterprise Java technologies since he got introduced to Java in 2005, using tools and technologies encompassing both the standard JavaEE stack and non-standard ones such as JBoss Seam, Hibernate, and Spring. His experience with JSF includes working with plain JSF, RichFaces, JBoss Seam, and Spring Web Flow's SpringFaces.
He has been an active promoter of Java EE, speaking at workshops and seminars of a national scale in Ghana.
He is a Senior Developer at the Application Development Center in Accra, Ghana, for an international biometric security solutions company, which is leading the development of Biocryptic Identity Management Systems for the global market.
Edem was a technical reviewer for JBoss Tools 3 Developer Guide and JBoss AS 5 Development both published by