C# Class Spring.DataBinding.HttpRequestListBindingContainer

Binds agroup of HTTP request multi-valued items to the data model.
Due to the fact, that browsers don't send the values of unchecked checkboxes, you can't use HttpRequestListBindingContainer for binding to checkboxes.
Inheritance: BaseBindingContainer
Datei anzeigen Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
AddBinding ( string sourceExpression, string targetExpression, BindingDirection direction, IFormatter formatter ) : IBinding

Adds the SimpleExpressionBinding binding.

This is a convinience method for adding SimpleExpressionBinding, one of the most often used binding types, to the bindings list.

BindSourceToTarget ( object source, object target, IValidationErrors validationErrors, object>.IDictionary variables ) : void

Binds source object to target object.

BindTargetToSource ( object source, object target, IValidationErrors validationErrors, object>.IDictionary variables ) : void

Binds target object to source object.

HttpRequestListBindingContainer ( string requestParams, string targetList, Type itemType ) : System

Creates a new instance of HttpRequestListBindingContainer.

Method Details

AddBinding() public method

Adds the SimpleExpressionBinding binding.
This is a convinience method for adding SimpleExpressionBinding, one of the most often used binding types, to the bindings list.
public AddBinding ( string sourceExpression, string targetExpression, BindingDirection direction, IFormatter formatter ) : IBinding
sourceExpression string /// The source expression. ///
targetExpression string /// The target expression. ///
direction BindingDirection /// Binding direction. ///
formatter IFormatter /// to use for value formatting and parsing. ///
return IBinding

BindSourceToTarget() public method

Binds source object to target object.
public BindSourceToTarget ( object source, object target, IValidationErrors validationErrors, object>.IDictionary variables ) : void
source object /// The source object. ///
target object /// The target object. ///
validationErrors IValidationErrors /// Validation errors collection that type conversion errors should be added to. ///
variables object>.IDictionary /// Variables that should be used during expression evaluation. ///
return void

BindTargetToSource() public method

Binds target object to source object.
public BindTargetToSource ( object source, object target, IValidationErrors validationErrors, object>.IDictionary variables ) : void
source object /// The source object. ///
target object /// The target object. ///
validationErrors IValidationErrors /// Validation errors collection that type conversion errors should be added to. ///
variables object>.IDictionary /// Variables that should be used during expression evaluation. ///
return void

HttpRequestListBindingContainer() public method

Creates a new instance of HttpRequestListBindingContainer.
public HttpRequestListBindingContainer ( string requestParams, string targetList, Type itemType ) : System
requestParams string /// Comma separated list of multi-valued request parameters that /// should be used to create a target item. ///
targetList string /// Expression that identifies a target list items should be added to. ///
itemType System.Type /// The type of the target item. ///
return System