Total Pageviews

Saturday 12 December 2020

Displaying Exception Messages in OAF

 public void processFormRequest(OAPageContext pageContext
                               ,OAWebBean webBean)
 {
   super.processFormRequest(pageContext, webBean);

   if(pageContext.getParameter("item1")!=null)
   {
    String name=pageContext.getParameter("item6");
    throw new OAException(name,OAException.ERROR);
   }
   if(pageContext.getParameter("item1")!=null)
   {
    String name=pageContext.getParameter("item6");
    throw new OAException(name,OAException.CONFIRMATION);
   }
   if(pageContext.getParameter("item1")!=null)
   {
    String name=pageContext.getParameter("item6");
    throw new OAException(name,OAException.WARNING);
   }
}

No comments:

Post a Comment