Display Errors

Displays error messages that were generated by the server when the page was submitted. This component is typically bound to other input components.

 

Component at design time

Drag and drop an

Display Errors component onto the page:

The

Display Errors component looks like this on the page:

 

Component at runtime

The

Display Errors component varies at runtime depending upon the component for which it is displaying errors.

 

Properties and All Attributes views

The Properties view for a component shows the most common set of attributes you can set on a component, and, depending on the component, you might also see options for adding controls, actions, or other components. To open the Properties view, click

Window | Show View | Properties.

These common attributes for the Display Errors component display on the h:messages tab in the Properties view. See the All Display Errors attributes table for a complete list of attributes.

The All Attributes view shows a table of all the attributes you can set on a component, which includes those attributes you can access from the Properties view. To switch to the All Attributes view, click the

All Attributes icon in the upper right corner of the Properties view.

Table 1. All Display Errors attributes

Attribute name

Represented in Properties view by

Description

binding

Not represented

An expression that binds the component's instance (usually a user interface component) to a bean property (usually in the backing file).

errorClass

Not represented

Alternative CSS class names associated with the component. The situation in which these are used can be determined from their names.

errorStyle

Not represented

Style modifiers for the CSS classes.

fatalClass

Not represented

Alternative CSS class names associated with the component. The situation in which these are used can be determined from the names.

fatalStyle

Not represented

Style modifiers for the CSS classes.

globalOnly

Show all error messages generated by this page

Show only error messages not associated with a specific component.

Specifies what error messages the component should display, either all error messages generated by the page (False) or only error messages of components not already associated (True).

id

ID

Assigns a name to a component. Should be a unique name within a JSP.

infoClass

Not represented

Alternative CSS class names associated with the component. The situation in which these are used can be determined from the names.

infoStyle

Not represented

Style modifiers for the CSS classes.

layout

Not represented

Specifies the formatting of the output from the component as either paragraph or list style:

  • Display as paragraph

  • Display as list

rendered

Not represented

Can be set to true or false:

  • false - Component will not be rendered to the browser at runtime.

  • true - Component will get rendered. This is the default value.

showSummary

Not represented

Specifies whether the summary of the message is shown.

showDetail

Not represented

Specifies whether the detail part of the error is shown.

style

Style: Props

Specifies CSS style information for the component (for example, style="font-size : 8pt ; color : red"). Defines the properties (such as font and color) of the selected component. This may be done manually, or by clicking the button and selecting the desired properties from within the window.

styleClass

Style: Classes

Space-separated list of CSS style classes to be applied when this element is rendered. This value must be passed through as the class attribute on generated markup. Defines the classes (such as style sheets) of the selected component. This may be done manually, or by clicking the button and selecting the desired Classes from within the window.

title

Not represented

Specifies the title text, shown in browser as a tooltip at runtime. Used by a browser as the alternative text of a component if the alternative text is not specified.

tooltip

Not represented

Specifies whether detail part of message should be shown as tooltip.

warnClass

Not represented

Alternative CSS class names associated with the component. The situation in which these are used can be determined from the names.

warnStyle

Not represented

Style modifiers for the CSS classes.