1.Create a Button component
2.In the Button Action proerty bind it to the managed bean
3.In the method type the following code.
FacesContext fc = FacesContext.getCurrentInstance();
FacesMessage message = new FacesMessage("Hi this is your message");
fc.addMessage(null, message);
No comments:
Post a Comment