Thursday, 18 August 2016

ADF : Component error message



ADF : Component error message

 

 if(startTime == null){
                String errMsg = null;

                errMsg = this.getFndMessage("MKT_IMP_INVALID_FILE_FORMAT");
                errMsg = "You must enter a value.";

                FacesContext fc = FacesContext.getCurrentInstance();
                FacesMessage msg =
                    new FacesMessage(FacesMessage.SEVERITY_ERROR, errMsg, null);
                fc.addMessage(this.startTimeForFuture.getClientId(fc), msg);
                return null;
            }
 

No comments:

Post a Comment