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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -