Open squaregoldfish opened 7 years ago
See also #123
Use the internalError
method for main actions. Work out what to do with ajax calls.
There is a global exception handler in JSF, and apparently OmniFaces has a good exception handler for AJAX calls, so it's likely that PrimeFaces does too. (See page 224 of the Mastering JSF book)
Another hint for handling ajax calls - registered error listener
An example is being made in the new QC/Plot pages. Perhaps it should be extended to all beans that do ajaxy things...
Most bean methods simply throw their exceptions. These are either completely unhandled, or will fail silently because the ajax doesn't handle error conditions.