IBM WebSphere Multichannel Bank Transformation Toolkit, Version 7.1

ValidationErrorsTag

A ValidationErrorsTag accesses the context's validation error messages and writes them on the HTML page. Depending on the value of the mode attribute, this tag may only access the cross-validation errors or it may access all of them.

Mandatory attributes: renderMode (list | combo)

Table 1. ValidationErrorsTag attributes
Attribute Description Default value
renderMode Whether the error messages are shown as an HTML list (list) or combo box (combo)  
fontColor Color of the text null
fontSize Size of the text null
fontFace Typeface of the text null
style Style for the field description null
mode Whether the tag displays only cross-validation errors or all errors X (cross-validation)
bundleFile Resource bundle to use for localized messages. This resource prevails over the resource specified by an AddBundleTag. null

The following is an example of using FieldDescriptionTag, FieldErrorTag, and ValidationErrorsTag:

<H3>Using the FieldLabel, FieldError and ValidationErrors Tag</H3>
<dse:form name="f1" nextEventName="ok" errorPage="otherPage.jsp">
<table>
<tr><td colspan="3" align="center"><dse:valErrors fontColor="blue" 
    fontSize="+1"/></td></tr>
<tr>
<td align="right"><dse:desc dataName="fromAccount"/></td>
<td align="center"><dse:text dataName="fromAccount" error="yes"/></td>
<td align="left"><dse:error dataName="fromAccount" fontColor="red"/></td>
</tr>
<tr>
<td align="right"><dse:desc dataName="toAccount"/></td>
<td align="center"><dse:text dataName="toAccount" error="yes"/></td>
<td align="left"><dse:error dataName="toAccount" fontColor="red"/></td>
</tr>
<tr>
<td align="right"><dse:desc dataName="amount"/></td>
<td align="center"><dse:text dataName="amount" error="yes"/></td>
<td align="left"><dse:error dataName="amount" fontColor="red"/></td>
</tr>
<tr><td colspan="3" align="center"><dse:button type="submit" value=" ok "/>
</td></tr>
</table>
</dse:form>


Feedback