OpenWGA 7.6 - WebTML reference

WebTML tags

<tml:formmessages>

Description :
Displays all error messages generated by the validation of a WebTML form.

If the validation fails this tags displays the error messages defined in the attribute validation or the tag validate.

The default attribute divider can be used to specify a divider to put out in between the individual error messages.

Normally the  <tml:formmessages> tag displays the validation messages of a <tml:form> tag in which it is contained. But it is also possible to explicitly specify the form tag to receive messages from by attribute sourcetag.
Derived from: Attributes:
show inherited attributes ...
Name Value(s) Purpose
scope all | global | fieldname Determines the scope of messages to display
sourcetag tag-id Defines the tml:form per Tag-ID to which the tml:formmessages shoud refer.

Examples:

The following codes defines a validation with error messages which get displayed in the tag <tml:formmessages>:

<tml:form id="theForm" source="none">

    Your Name: <tml:input name="name" validation="$E_VALUE != ''" message="Please enter a name!"/>

    <tml:button clickaction="$store">Store name</tml:button>

    <tml:formmessages/>

</tml:form>