Dashboard > WebWork > ... > Validation > required validator
  WebWork Log In View a printable version of the current page.  
  required validator
Added by tm_jee, last edited by tm_jee on Dec 11, 2005  (view change)
Labels: 
(None)

Description

RequiredFieldValidator checks if the specified field is not null.

Parameters

  • fieldName - field name if plain-validator syntax is used, not needed if field-validator syntax is used

Examples

<validators>

        <!-- Plain Validator Syntax -->
        <validator type="required">
            <param name="fieldName">username</param>
            <message>username must not be null</message>
        </validator>


        <!-- Field Validator Syntax -->
        <field name="username">
            <field-validator type="required">
            	   <message>username must not be null</message>
            </field-validator>
        </field>

    </validators>

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators