O'Reilly logo

Learning PrimeFaces Extensions Development by Sudheer Jonna

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required