Multiple choice technology web technology

How do you customize validation messages with JSF?

  1. Create a resource bundle with specific keys and specify its name in faces-config.xml

  2. Create a resource bundle with specific keys

  3. Create a properties file with custom keys and specify its name in web.xml

  4. Specify the custom messages in faces-config.xml

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

JSF allows customization of validation messages through resource bundles (property files) containing message keys for specific validators. To use custom messages, you create a resource bundle with the required keys (like javax.faces.validator.LengthValidator.MINIMUM, etc.) and register the bundle in faces-config.xml using the configuration. Simply creating the bundle (B) or configuring in web.xml (C) are insufficient steps - registration in faces-config is required.