TROIKA.ASP - the MVC framework

HelloForm.js

Summary

Contains HelloForm class.

This is part of Troika.ASP Framework - web development MVC framework for ASP 3.0. Please visit www.troika-asp.com for more details.



Version: $Revision: 1.3 $

Author: Pavel Chuchev pav@troika-asp.com


Class Summary
HelloForm This is RequestContext HelloForm class.

/**
* @fileoverview Contains <tt>HelloForm</tt> class.
*
* <p>
* This is part of Troika.ASP Framework - web development MVC framework for ASP 3.0.
* Please visit {@link http://www.troika-asp.com www.troika-asp.com} for more details.
* </p>
*
* @author Pavel Chuchev pav@troika-asp.com
* @version $Revision: 1.3 $
*/
HelloForm.prototype =  new RequestContext();
HelloForm.prototype.constructor = HelloForm;

/**
* Constructs a new HelloForm class.
*
* @class This is RequestContext HelloForm class.
* @constructor
* @param {String} action The command name as found in config.xml.
*/
function HelloForm(action) {

    if (arguments.length) {

        this.init(action);
    }
    /**
    * Stores visitor name.
    *
    * @type String
    */
    this.visitorName = null;
}

/**
* Initializes <tt>SecretForm</tt>.
*
* @return <tt>SecretForm</tt> object instance itself.
* @type SecretForm
*/
HelloForm.prototype.init = function (action) {

    RequestContext.prototype.init.call(this, action);

    return this;
};

/**
* Validates <tt>SecretForm</tt> to see if visitor name is supplied.
*
* @return None-empty <tt>ArrayList</tt> of errors or an empty <tt>ArrayList</tt> if there were no errors.
* @type ArrayList
*/
HelloForm.prototype.validate = function () {

    var result =  new ArrayList();

    this.flatten();

    result.addAll(this.checkRequired("Name", this.visitorName));

    return result;
};

TROIKA.ASP - the MVC framework

www.troika-asp.com
Documentation generated on Sun Jun 15 17:59:32 2008