C# Класс Spring.Web.UI.Controls.AbstractValidationControl

Provides common functionality to all validation renderer controls.
Наследование: System.Web.UI.Control
Показать файл Открыть проект

Защищенные методы

Метод Описание
CreateValidationErrorsRenderer ( ) : IValidationErrorsRenderer

Create the default IValidationErrorsRenderer for this ValidationControl if none is configured.

FindValidationContainer ( ) : IValidationContainer

Gets the IValidationContainer, who's IValidationContainer.ValidationErrors shall be rendered by this control.

First, it tries to resolve the specified ValidationContainerName, if any. If no explicit name is set, will probe the control hierarchy for controls implementing IValidationContainer.

Render ( System.Web.UI.HtmlTextWriter writer ) : void

Renders error messages using the specified Renderer.

ResolveErrorMessages ( ) : IList

Resolves the list of validation errors either explicitely specified using ValidationErrors or obtained from the containing IValidationContainer resolved by FindValidationContainer to a list of string elements containing the error messages to be rendered.

The list of validation errors may either be explicitely specified using ValidationErrors or will automatically be obtained from the containing IValidationContainer resolved by FindValidationContainer.

Error Messages are resolved using either an explicitely specified MessageSource or the IMessageSource obtained from the validation container.

ResolveMessageSource ( ) : IMessageSource

Gets the MessageSource to be used for resolve error messages

By default, returns FindValidationContainer's MessageSource.

ResolveValidationErrors ( ) : IValidationErrors

Gets the list of validation errors to render

Описание методов

CreateValidationErrorsRenderer() защищенный абстрактный Метод

Create the default IValidationErrorsRenderer for this ValidationControl if none is configured.
protected abstract CreateValidationErrorsRenderer ( ) : IValidationErrorsRenderer
Результат IValidationErrorsRenderer

FindValidationContainer() защищенный Метод

Gets the IValidationContainer, who's IValidationContainer.ValidationErrors shall be rendered by this control.
First, it tries to resolve the specified ValidationContainerName, if any. If no explicit name is set, will probe the control hierarchy for controls implementing IValidationContainer.
protected FindValidationContainer ( ) : IValidationContainer
Результат IValidationContainer

Render() защищенный Метод

Renders error messages using the specified Renderer.
protected Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
Результат void

ResolveErrorMessages() защищенный Метод

Resolves the list of validation errors either explicitely specified using ValidationErrors or obtained from the containing IValidationContainer resolved by FindValidationContainer to a list of string elements containing the error messages to be rendered.

The list of validation errors may either be explicitely specified using ValidationErrors or will automatically be obtained from the containing IValidationContainer resolved by FindValidationContainer.

Error Messages are resolved using either an explicitely specified MessageSource or the IMessageSource obtained from the validation container.

protected ResolveErrorMessages ( ) : IList
Результат IList

ResolveMessageSource() защищенный Метод

Gets the MessageSource to be used for resolve error messages
By default, returns FindValidationContainer's MessageSource.
protected ResolveMessageSource ( ) : IMessageSource
Результат IMessageSource

ResolveValidationErrors() защищенный Метод

Gets the list of validation errors to render
protected ResolveValidationErrors ( ) : IValidationErrors
Результат IValidationErrors