Sunday, September 3, 2017

How To: Throw an exception in ADF

To show an exception on ADF UI, implement the following in your managed bean:

String message = "This is a test!";
JboException ex = new JboException (message);
BindingContext bctx = BindingContext.getCurrent();
((DCBindingContainer)bctx.getCurrentBindingsEntry()).reportException(ex);



Hope you find this helpful! Please share your feedback below.

CaptiveCode


No comments:

Post a Comment