Error messages can be displayed using "message" and
"messages" tag. "message" tag is used to
display single error message for a particular component. The ID of the
component for which the message is to be displayed is specified is
specified in "for" attribute of the message tag.
Error messages for all the components can be displayed at a place using
"messages" tag. It supports two layouts "table"
and "list". List layout shows all the messages in a
line and table layout places all the messages in a tabular format.