New Employee Data

This page shows <html2> tags working with the Validator plugin + ValidatorJS extension.

Each field is rendered with <html2> tags that extend those provided by the ValidatorJS extension:

    <tr>
        <html2:field property="hireDate">
        <td><html2:label/></td>
        <td><html2:text/></td>
        <td><html2:error styleClass="errorStyle1"/></td>
        </html2:field>
    </tr>

The <html2:field property="hireDate"> tag is used to provide property information to the label, text, and error tags.

The <html2:label/> uses the "[formName].[property].label" key to read the property's label. This can easily be overridden by providing a key attribute value or directly placing text inside the tag.

The <html2:error/> displays a <span> element which is used to display any validation error messages.