primefaces - how can I get warn message instead of error message using requiredMessage attribute? -
Do I want to receive a warning message using the required message? If possible, how can I solve my problem?
Can I get it without changing the managed bean? What does FacesMessage I mean without using?
An easy (and safe) way to check on the server side. Check for the field, and if its blank or empty you can create FacesMessage.
string message = "your message here"; FacesMessage facesMessage = new face messages (FacesMessage.SEVERITY_WARN, messages, empty); Face faces face face; FacesContext.addMessage (zero, facesMessage);
Comments
Post a Comment