From d7083b0bd745ed2e610394efc1063dd07512190d Mon Sep 17 00:00:00 2001 From: eeichinger Date: Sat, 17 Jan 2009 14:19:03 +0000 Subject: [PATCH] minor doc polishing --- doc/reference/src/web.xml | 32 ++++++++++++++++---------------- doc/reference/src/xml-custom.xml | 25 ++++++++++++------------- 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/doc/reference/src/web.xml b/doc/reference/src/web.xml index 4c1255a4..36337b7c 100644 --- a/doc/reference/src/web.xml +++ b/doc/reference/src/web.xml @@ -696,9 +696,9 @@ <system.web> <httpHandlers> - <!-- + <!-- the lines below map *any* request ending with *.ashx or *.whatever - to the global(!) MappingHandlerFactory. Further "specialication" + to the global(!) MappingHandlerFactory. Further "specialication" of which handler to map to is done within MappingHandlerFactory's configuration - use MappingHandlerFactoryConfigurer for this (see below) --> @@ -737,10 +737,10 @@ <object name="myCustomHandler" type="MyCustomHttpHandler, App_Code"> <property name="MessageText" value="This text is injected via Spring" /> </object> - - <!-- + + <!-- used for configuring ~/DemoHandler.ashx custom handler - note, that this is an abstract definition because 'type' is not specified + note, that this is an abstract definition because 'type' is not specified --> <object name="DemoHandler.ashx"> <property name="OutputText"> @@ -880,7 +880,7 @@ class MyControl : Control, ISupportsWebDependencyInjection is shown below <spring:Panel runat="server" - suppressDependencyInjection="true" + suppressDependencyInjection="true" renderContainerTag="false"> .. put your heavy controls here - they won't be touched by DI @@ -1398,12 +1398,12 @@ class MyControl : Control, ISupportsWebDependencyInjection { void BindSourceToTarget(object source, object target, ValidationErrors validationErrors); - void BindSourceToTarget(object source, object target, ValidationErrors validationErrors, + void BindSourceToTarget(object source, object target, ValidationErrors validationErrors, IDictionary variables); void BindTargetToSource(object source, object target, ValidationErrors validationErrors); - void BindTargetToSource(object source, object target, ValidationErrors validationErrors, + void BindTargetToSource(object source, object target, ValidationErrors validationErrors, IDictionary variables); void SetErrorMessage(string messageId, params string[] errorProviders); @@ -1448,7 +1448,7 @@ class MyControl : Control, ISupportsWebDependencyInjection IBinding AddBinding(string sourceExpression, string targetExpression); IBinding AddBinding(string sourceExpression, string targetExpression, BindingDirection direction); IBinding AddBinding(string sourceExpression, string targetExpression, IFormatter formatter); - IBinding AddBinding(string sourceExpression, string targetExpression, BindingDirection direction, + IBinding AddBinding(string sourceExpression, string targetExpression, BindingDirection direction, IFormatter formatter); }As you can see, this interface has a number of overloaded AddBinding methods. The first one, @@ -1712,7 +1712,7 @@ protected override void InitializeDataBindings() } - Due to the fact, that browsers don't send the values of unchecked checkboxes, you can't use HttpRequestListBindingContainer with <input type="checkbox" > html controls. + Due to the fact, that browsers don't send the values of unchecked checkboxes, you can't use HttpRequestListBindingContainer with <input type="checkbox" > html controls. @@ -1796,7 +1796,7 @@ protected override void InitializeDataBindings() - The Visual Studio Web Form Editor will of course complain about binding attributes because it doesn't know them. You can safely ignore those warnings. + The Visual Studio Web Form Editor will of course complain about binding attributes because it doesn't know them. You can safely ignore those warnings. @@ -2481,7 +2481,7 @@ private void SetLanguage(object sender, CommandEventArgs e) <property name="UserManager"> <ref object="userManager"/> </property> - + <property name="Results"> <dictionary> <entry key="userSaved" value="redirect:UserRegistered.aspx?status=Registration Successful,user=${UserInfo}"/> @@ -2572,15 +2572,15 @@ protected override void OnInit(EventArgs e) given resultmode string with an IResultFactory implementation. Here is an example - class MySpecialResultLogic : IResult + class MySpecialResultLogic : IResult { ... } class MySpecialResultLogicFactory : IResultFactory { - IResult Create( string mode, string expression ) { - /* ... convert 'expression' into MySpecialResultLogic */ + IResult Create( string mode, string expression ) { + /* ... convert 'expression' into MySpecialResultLogic */ } } @@ -2591,7 +2591,7 @@ ResultFactoryRegistry.RegisterResultFactory( "mySpecialMode", new MySpecialResul You would then use the custom 'continue' mode in your page as shown below - // configure your Results + <-- configure your Results --> <object type="mypage.aspx"> <property name="Results"> <dictionary> diff --git a/doc/reference/src/xml-custom.xml b/doc/reference/src/xml-custom.xml index e9262e44..a81d1434 100644 --- a/doc/reference/src/xml-custom.xml +++ b/doc/reference/src/xml-custom.xml @@ -1,4 +1,4 @@ - +