rice-framework/krad-web/src/main/webapp/krad/scripts/krad.actions.js
/**
 *
 * @param {Object=} $group optional parameter to target a single group for validation with no bubbling of validation
 * messages
 * @returns {boolean} true if the group contains all valid fields, false otherwise
 */
@param {Object=} $group optional parameter to target a single group for validation with no bubbling of validation
messages
@returns {boolean} true if the group contains all valid fields, false otherwise
@param { Object = } $group optional parameter to target a single group for validation with no bubbling of validation messages @returns { boolean } true if the group contains all valid fields false otherwise
function validate($group) {
    clientErrorStorage = new Object();
    var valid = true;
    jQuery.watermark.hideAll();
    pauseTooltipDisplay = true;
    if (validateClient) {
        pageValidationPhase = true;
        clientErrorExistsCheck = true;
        messageSummariesShown = false;
        if (!$group) {
            valid = _validateForm();
        }
        else {
            valid = _validateGroupOnly($group);
        }
    }
    if (!valid) {
        jQuery(".error:not(:visible)").each(function () {
            cascadeOpen(jQuery(this));
        });
        if (!$group) {
            jumpToTop();
            jQuery(".uif-pageValidationMessages li.uif-errorMessageItem:first > a").focus();
        }
        else {
        }
    }
    jq.watermark.showAll();
    pauseTooltipDisplay = false;
    return valid;
}
function validate ( $group ) { clientErrorStorage = new Object ( ) ; var valid = true ; jQuery . watermark . hideAll ( ) ; pauseTooltipDisplay = true ; if ( validateClient ) { pageValidationPhase = true ; clientErrorExistsCheck = true ; messageSummariesShown = false ; if ( ! $group ) { valid = _validateForm ( ) ; } else { valid = _validateGroupOnly ( $group ) ; } } if ( ! valid ) { jQuery ( ".error:not(:visible)" ) . each ( function ( ) { cascadeOpen ( jQuery ( this ) ) ; } ) ; if ( ! $group ) { jumpToTop ( ) ; jQuery ( ".uif-pageValidationMessages li.uif-errorMessageItem:first > a" ) . focus ( ) ; } else { } } jq . watermark . showAll ( ) ; pauseTooltipDisplay = false ; return valid ; }
@param {Object=} $group optional parameter to target a single group for validation with no bubbling of validation
 messages
 @returns {boolean} true if the group contains all valid fields, false otherwise
@param { Object = } $group optional parameter to target a single group for validation with no bubbling of validation messages @returns { boolean } true if the group contains all valid fields false otherwise
// Turn on this flag to avoid prematurely writing out messages which will cause performance issues if MANY
 // fields have validation errors simultaneously (first we are only checking for errors, not checking and
 // writing simultaneously like normal)
 // Temporarily turn off this flag to avoid traversing unneeded logic (all messages will be shown at the end)
 //ensure all non-visible controls are visible to the user
