NetUI Tag Library Documentation (Version 1.0.2)

netui
netui:bindingUpdateErrors Tag

Renders the set of error messages found during the process of resolving data binding expressions (pageFlow.firstname, requestScope.firstname, etc.).

Syntax

<netui:bindingUpdateErrors
    [alwaysReport="boolean_alwaysReport"]
    [expression="string_databinding_expression"] />

Description

Renders the set of error messages found during the process of resolving data binding expressions (pageFlow.firstname, requestScope.firstname, etc.). The tag is intended for development use and not for error reporting in deployed applications. When the NetUI framework is not in development mode, this tag will do nothing.

Attributes
alwaysReport
Required: No  |   Type: boolean  |   Supports runtime evaluation / JSP Expression Language: Yes

Boolean. If isAlwaysReport is set to true, then the errors will be displayed in Production mode as well as in Development mode. Otherwise, the errors will be displayed only in Development mode.
expression
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

String. The data binding expression to match for binding errors. If a data binding expression is specified, only binding errors for that expression will be displayed. Otherwise, all errors will be displayed.

Example

In this first sample, because the <netui:bindingUpdateErrors/> tag is unqualified, messages will be displayed if any data binding errors occurred when a form was posted. The messages are displayed on the page and the command window.

<netui:bindingUpdateErrors />

In this next sample, only binding errors for the expression {actionForm.firstName} will be displayed on the page and the command window.

<netui:bindingUpdateErrors expression="actionForm.firstName"/>

Note, the expression used in this tag needs to match the expressions used to POST form data. This tag's expression attribute must resolve to a valid NetUI expression.


Tag Information
Tag Classorg.apache.beehive.netui.tags.html.BindingUpdateErrors
TagExtraInfo ClassNone
Body Contentempty
Display NameNone