On this tab, you can see how messages are displayed if no attribute are set for the
<tc:messages/>
tag.
A limit for the number of messages can be set with the maxNumber
attribute.
<tc:messages maxNumber="2"/>
The range, which severities are displayed, can be set with minSeverity
and
maxSeverity
. In this example, only warnings and error should be displayed.
<tc:messages minSeverity="WARN" maxSeverity="ERROR"/>
A message can also contain 'details', you can show it with showDetail
.
<tc:messages showDetail="true"/>
In this example, only the details are shown. To hide the summary, use showSummary
.
<tc:messages showSummary="false" showDetail="true"/>
By default, messages are sorted by severity.
Therefor, the orderBy
attribute is not needed in this case.
<tc:messages orderBy="severity"/>
Messages displayed in the order they occurred.
<tc:messages orderBy="occurrence"/>