JSF validation function
public void validateName(FacesContext fc, UIComponent c, Object value) {
if ( ((String)value).contains("_") )
throw new ValidatorException(
new FacesMessage("Name cannot contain underscores"));
sharing some tech problems and soln
public void validateName(FacesContext fc, UIComponent c, Object value) {
if ( ((String)value).contains("_") )
throw new ValidatorException(
new FacesMessage("Name cannot contain underscores"));
No comments:
Post a Comment