0 Replies Latest reply on Jul 15, 2019 2:36 AM by user5108636

    remove dialog message in OAF

    user5108636

      I want to remove the dialog message rendered in the processRequest to be removed when the go button is pressed. See code below in the processFormRequest method.

      However, the pageContext

       

      public void processRequest(OAPageContext pageContext, OAWebBean webBean)

            {

               super.processRequest(pageContext, webBean);

               String status = ((OAMessageStyledTextBean)webBean.findChildRecursive("Status")).getText(pageContext);

               

                //Warning render rules

                 if ("New".equals(status) ){

                     pageContext.putDialogMessage("please refresh and try again");

                 }

             

            }  

           

       

            public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)

            {

              super.processFormRequest(pageContext, webBean);

                if (pageContext.getParameter("goBN") != null) {

                    //removes the dialog messages from processRequest

                    pageContext.removeDialogMessages(); 

                    ......