Show dialog message as success in OAF

Scenario: Display the confirmation message to user when something is done after clicking

Take the exception object

Pass the text information that need to show as confirmation message

Use the putDialogMessage method to display confirmation message

 public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)

{

super.processFormRequest(pageContext, webBean);

if("confirmReview".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))){

Object confirmation;

confirmation = new OAException("Customer information reveiwed successfully",OAException.CONFIRMATION);

pageContext.putDialogMessage((OAException)confirmation);

}     

}

*/

No comments:

Post a Comment