Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning PrimeFaces Extensions Development

You're reading from   Learning PrimeFaces Extensions Development This book covers all the knowledge you need to start developing extended or advanced PrimeFaces applications. With lots of screenshots and a clear step-by-step approach, it makes learning an enjoyable process.

Arrow left icon
Product type Paperback
Published in Mar 2014
Publisher
ISBN-13 9781783983247
Length 192 pages
Edition Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sudheer Jonna Sudheer Jonna
Author Profile Icon Sudheer Jonna
Sudheer Jonna
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Learning PrimeFaces Extensions Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Introducing PrimeFaces Extensions FREE CHAPTER 2. Enhanced Form and Editor Components 3. Layout and Screen Blocking Components 4. The Enriched Data Container and QR Code Components 5. Time Tracking and Scheduling Components 6. Extended Data Reporting and Image Components 7. Common Utility Solutions, Error Handling, and Plugins Index

The Ajax error handling component and its usage


If a partial Ajax throws an error, PrimeFaces web applications won't respond to the error. The developer won't be aware where the root cause for this issue is and how to overcome the issue to proceed further. The Ajax errors occur frequently when the action listener throws an exception during the DB save operation or when the session expires the use cases. After the session expires, the user action has no effect on the web page.

To overcome these use cases, the Extensions library introduced pe:ajaxErrorHandler to display the messages in case of an Ajax error detection. You can customize the messages based on the type of error as well.

This component supports both the simple and extended modes. You can activate the extended mode by setting exception-handler-factory in the faces-config.xml file. The extended mode resolves the session expired issues when you set STATE-SAVING_METHOD=server and PARTIAL_STATE_SAVING=false.

Configure exception-handler...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime