Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning PrimeFaces Extensions Development
  • Table Of Contents Toc
Learning PrimeFaces Extensions Development

Learning PrimeFaces Extensions Development

By : Sudheer Jonna
4.5 (2)
close
close
Learning PrimeFaces Extensions Development

Learning PrimeFaces Extensions Development

4.5 (2)
By: Sudheer Jonna

Overview of this book

Table of Contents (14 chapters)
close
close
Learning PrimeFaces Extensions Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
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...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning PrimeFaces Extensions Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon