The simplest way would be to set the validatorMessage="my custom message"
attribute in the <h:inputText>
tag.
For a more advanced way read this article Customize validation error message in JSF 2.0
And here a complete Reference to all available message that you can override in JSF 2.0.x
More Related Contents:
- JSF doesn’t support cross-field validation, is there a workaround?
- Validation Error: Value is not valid
- How to let validation depend on the pressed button?
- How to perform JSF validation in actionListener or action method?
- How to perform validation in JSF, how to create a custom validator in JSF
- Force JSF to process, validate and update readonly/disabled input components anyway
- Is JSF validation client-side or server-side?
- How to skip validation when a specific button is clicked?
- Change the default message “Validation Error: Value is required” to just “Value is required”
- How to display dialog only on complete of a successful form submit
- How to trigger args.validationFailed in PrimeFaces oncomplete
- Using validator with a variable attribute in ui:repeat
- Why does allow blank spaces?
- Keep open when validation has failed
- Validate order of items inside ui:repeat
- jsf validate two fields in one time [duplicate]
- How to ajax-refresh dynamic include content by navigation menu? (JSF SPA)
- How to invoke a JSF managed bean on a HTML DOM event using native JavaScript?
- What is the best Java email address validation method? [closed]
- Outcommented Facelets code still invokes EL expressions like #{bean.action()} and causes javax.el.PropertyNotFoundException on #{bean.action}
- JavaServer Faces 2.2 and HTML5 support, why is XHTML still being used
- Method must have signature “String method() …[etc]…” but has signature “void method()”
- Found an unexpected Mach-O header code: 0x72613c21 in Xcode 7
- Java EE6> Packaging JSF facelets (xhtml) and ManagedBeans as JAR
- Changing JSF prefix to suffix mapping forces me to reapply the mapping on CSS background images
- What characters should be restricted from a Unix file name?
- Disable validation of HTML form elements
- Why does @PostConstruct callback fire every time even though bean is @ViewScoped? JSF
- Is Facelets page generated to Servlet as JSP generated to Servlet
- How to add form validation pattern in Angular 2?