C# 클래스 Spring.Web.UI.Controls.AbstractValidationControl

Provides common functionality to all validation renderer controls.
상속: System.Web.UI.Control
파일 보기 프로젝트 열기: spring-projects/spring-net

보호된 메소드들

메소드 설명
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