How to use ADF Faces Messages component on the Java Developer???
Like when we create a login page. When user click the Login button to login, there will appear information for user if there is invalid user’s id and/or password.
This code will be placed in the “loginButton_action()” method of the backing class :
FacesMessage msg = null;
msg = new FacesMessage(”Sorry, invalid username and password.”);
FacesContext fc = FacesContext.getCurrentInstance();
fc.addMessage(null,msg);
Then, open your “login.jsp/jspx” file. Drag and drop the Messages component from the “ADF Faces Core” pallete onto the header part of the page.
