- Paperback: 396 pages
- Publisher: Packt Publishing (June 8, 2010)
- Language: English
- ISBN-10: 1847199526
- ISBN-13: 978-1847199522
- Product Dimensions: 7.5 x 0.9 x 9.2 inches
- Shipping Weight: 1.9 pounds (View shipping rates and policies)
- Average Customer Review: 5 customer reviews
- Amazon Best Sellers Rank: #3,602,439 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
JSF 2.0 Cookbook
Use the Amazon App to scan ISBNs and compare prices.
Fulfillment by Amazon (FBA) is a service we offer sellers that lets them store their products in Amazon's fulfillment centers, and we directly pack, ship, and provide customer service for these products. Something we hope you'll especially enjoy: FBA items qualify for FREE Shipping and Amazon Prime.
If you're a seller, Fulfillment by Amazon can help you increase your sales. We invite you to learn more about Fulfillment by Amazon .
The Amazon Book Review
Author interviews, book reviews, editors picks, and more. Read it now
Customers who viewed this item also viewed
Customers who bought this item also bought
About the Author
The author 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 about Java technologies and more than 100 tips and tricks. He has also written two books about XML and Java (one for beginners and one for advanced developers). During this time, he has developed web applications using the latest technologies on the market. In the past two years, he has focused on developing RIA projects for GIS fields. He is interested to bring on web as much desktop as possible, therefore GIS applications represents a real challenge for him.
Top customer reviews
There was a problem filtering reviews right now. Please try again later.
That being said, nearly every JSF developer uses a subset of the features available in the framework. For that reason, a cookbook can help fill in the gaps of feature that are rarely (or never) used. From this book, I learned a number of things about unit testing and management of JSF applications in chapter 9 that I didn't know, as well as file upload and management in chapter 3. The chapter on Facelets should be valuable to anyone that hasn't used it in JSF 1.2.
Strengths: "how to" recipes, RichFaces, unit testing and management
Weaknesses: selecting alternative strategies, "best practice", limited to specific JSF addons
The chapters get right to the point with very common problems/requirements in web development and their solutions.
Of course you still need to read more documentation about JSF 2 (such as the complete reference) to be able to completely understand and know the different options.
The main IDE and the server used in the book are NetBeans 6.8 and GlassFish 3, respectively. The IDE Eclipse Ganymede is used in one recipe (Using JSF ID generator).
The first two chapters give a good idea of the custom and standard validators and converters. Apache MyFaces Trinidad and RichFaces are used. Validation is also demonstrated through the built-in integration of JSR-303 (Bean validation) in JSF 2.
Chapter 3 is about file management (uploading, downloading, extraction, export) with the help of Mojarra Scales libraries, RichFaces and PrimeFaces components.
Chapter 4 is another interesting chapter that explores various ways to protect a site. It demonstrates the use of EL expressions part of the JSF Security project which uses a separate scope called securityscope. Roles are based on JAAS, stored in a database or added to the HttpSession. The last recipe makes use of Spring Security to manage a login page.
Chapter 5 provides recipes to demonstrate the creation of various custom components (hello world, image slide viewer with Ajax functionality using the Dynamic Faces project etc) and also composite custom components.
Chapter 6 is about Ajax. It covers the new tag <f:ajax> and again uses several other component libraries to add Ajax features (Dynamic Faces, Tomahawk, ajax4jsf, PrimeFaces ...).
Chapter 7 is about the frequent site requirements that are internationalization and localization. It uses the core tag f:loadBundle, messages properties files, encoding ...
Chapter 9 introduces various applications :
- the Faces Console tool to visually edit JSF configuration files
- JSFUnit (JBoss framework for testing JSF applications)
- JMeter to measure performance
- JSF Chart Creator to diplay charts
Chapter 10 is an important one since it is about Facelets which, starting with JSF 2.0, is a part of the JSF specification and the recommended presentation technology to use in conjunction with JSF. Templating and composition components are the topics most discussed in this chapter.
Chapter 11 is a set of seven recipes about new features in JSF 2.0 that were not seen in the previous chapters.
Finally chapter 12 is another useful chapter since it shows how to integrate JSF with other technologies such as Spring and EJB
The appendix contains listings of the configuration files for JSF-related frameworks.
What i liked most : the recipes are based on frequent requirements and problems encountered when developing. So they are really useful.
What i liked the least : nothing really negative to report. This book of recipes meets the idea and expectations I had of it before reading it.
I would also like to recommend this book to anybody who is interested in what can be achieved server side, very quickly and with little prior knowledge. JSF 2.0 cookbook explains well how JSF can be used in conjunction other technologies.
In summary if your into JSF or want to get into JSF this is well worth it. If your curious, don't know what JSF is but like doing cool stuff on websites while adding options to your technology repertoire then this could be for you as well.