Displaying a Conversion or Validation Error Message

To display a message next to the component that caused the conversion or validation error:

  1. Open the page of your choice in the Visual Editor.
  2. If you haven't assigned a unique ID to the component for which you wish to show a message, do so now.
  3. In the Component Palette, select JSF HTML from the dropdown list, then drag and drop Message to the page and position it next to the component for which the message is to be shown.

    A dialog appears for you to enter the component's unique ID.

  4. Enter the ID and click OK.
  5. In the Property Inspector, set the attributes for the message tag. For information about the tag attributes, right-click the tag in the Palette and choose Help from the context menu.

About Conversion and Validation Errors
Using Converters and Validators in JSF