Display Error Message on page

Display Error Message on page



We can use below logic to display any Error, Warning, Information Messages on OAF screen.


Style 1:

if(pageContext.getParameter("go")!=null) {
         String sd = "warning"+pageContext.getParameter("item22");
          throw new OAException(sd,OAException.INFORMATION);

Style 2:

OAException message1 = new OAException("You cannot create a new change order when a Draft version already exits.",OAException.ERROR);
           pageContext.putDialogMessage(message1);

Post a Comment

0 Comments