springnet-commits Mailing List for Spring Framework .NET (Page 22)
Brought to you by:
aseovic,
markpollack
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(33) |
Aug
(163) |
Sep
(491) |
Oct
(289) |
Nov
(336) |
Dec
(84) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(227) |
Feb
(413) |
Mar
(128) |
Apr
(232) |
May
(92) |
Jun
(299) |
Jul
(386) |
Aug
(228) |
Sep
(237) |
Oct
(426) |
Nov
(325) |
Dec
(405) |
2006 |
Jan
(315) |
Feb
(311) |
Mar
(152) |
Apr
(177) |
May
(443) |
Jun
(92) |
Jul
(88) |
Aug
(80) |
Sep
(288) |
Oct
(515) |
Nov
(1049) |
Dec
(440) |
2007 |
Jan
(179) |
Feb
(406) |
Mar
(294) |
Apr
(80) |
May
(432) |
Jun
(242) |
Jul
(452) |
Aug
(710) |
Sep
(206) |
Oct
(240) |
Nov
(65) |
Dec
(227) |
2008 |
Jan
(80) |
Feb
(90) |
Mar
(98) |
Apr
(136) |
May
(101) |
Jun
(12) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mark P. <mar...@us...> - 2007-12-28 19:37:17
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31486/Core Modified Files: AdoTemplate.cs Log Message: performance improvements in ado.net framework, optimize reflection calls. Index: AdoTemplate.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core/AdoTemplate.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** AdoTemplate.cs 6 Dec 2007 06:21:25 -0000 1.8 --- AdoTemplate.cs 28 Dec 2007 19:37:13 -0000 1.9 *************** *** 31,34 **** --- 31,35 ---- using Spring.Data.Common; using Spring.Data.Support; + using Spring.Reflection.Dynamic; using Spring.Util; *************** *** 59,62 **** --- 60,64 ---- private bool lazyInit = true; protected Type dataReaderWrapperType; + protected IDynamicConstructor newDataReaderWrapper; #endregion *************** *** 159,163 **** { dataReaderWrapperType = value; ! //TODO chec for zero arg ctor... } else --- 161,167 ---- { dataReaderWrapperType = value; ! ConstructorInfo constructor = ObjectUtils.GetZeroArgConstructorInfo(dataReaderWrapperType); ! newDataReaderWrapper = DynamicConstructor.Create(constructor); ! } else *************** *** 3032,3038 **** public override IDataReader CreateDataReaderWrapper(IDataReader readerToWrap) { ! if (dataReaderWrapperType != null) { ! IDataReaderWrapper wrapper = (IDataReaderWrapper)ObjectUtils.InstantiateType(DataReaderWrapperType); wrapper.WrappedReader = readerToWrap; return wrapper; --- 3036,3042 ---- public override IDataReader CreateDataReaderWrapper(IDataReader readerToWrap) { ! if (dataReaderWrapperType != null && newDataReaderWrapper != null) { ! IDataReaderWrapper wrapper = (IDataReaderWrapper) newDataReaderWrapper.Invoke(ObjectUtils.EmptyObjects); wrapper.WrappedReader = readerToWrap; return wrapper; |
From: Mark P. <mar...@us...> - 2007-12-28 18:43:41
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/Config In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10082 Modified Files: ConstructorArgumentValues.cs Log Message: SPRNET-829 - Named constructor argument metadata should be stored/compared using consistent CultureInfo Index: ConstructorArgumentValues.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/Config/ConstructorArgumentValues.cs,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** ConstructorArgumentValues.cs 9 Apr 2006 07:18:47 -0000 1.14 --- ConstructorArgumentValues.cs 28 Dec 2007 18:43:23 -0000 1.15 *************** *** 84,87 **** --- 84,88 ---- #region Fields + private CultureInfo enUSCultureInfo = new CultureInfo("en-US", false); private IDictionary _indexedArgumentValues = new Hashtable(); private IList _genericArgumentValues = new LinkedList(); *************** *** 552,559 **** private string GetCanonicalNamedArgument(string argument) { ! return argument != null ? argument.ToLower(CultureInfo.CurrentCulture) : argument; } ! #endregion #region Inner Class : ValueHolder --- 553,560 ---- private string GetCanonicalNamedArgument(string argument) { ! return argument != null ? argument.ToLower(enUSCultureInfo) : argument; } ! #endregion #region Inner Class : ValueHolder |
From: Bruno B. <bb...@us...> - 2007-12-20 23:28:43
|
Update of /cvsroot/springnet/Spring.Net/doc/reference/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13616 Modified Files: webservices.xml Log Message: removed .asmx in the object id name. Index: webservices.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/webservices.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** webservices.xml 7 Dec 2007 19:17:46 -0000 1.15 --- webservices.xml 20 Dec 2007 23:28:28 -0000 1.16 *************** *** 121,125 **** service.</emphasis></para> ! <programlisting><object name="HelloWorld.asmx" type="MyComany.MyApp.Services.HelloWorldService, MyAssembly" abstract="true"/></programlisting> <para>Note that one is not absolutely required to make the web service --- 121,125 ---- service.</emphasis></para> ! <programlisting><object name="HelloWorld" type="MyComany.MyApp.Services.HelloWorldService, MyAssembly" abstract="true"/></programlisting> <para>Note that one is not absolutely required to make the web service |
From: Mark P. <mar...@us...> - 2007-12-20 16:34:10
|
Update of /cvsroot/springnet/Spring.Net/doc/reference/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14473 Modified Files: ajax.xml index.xml objects.xml vsnet.xml web.xml Log Message: misc improvements. Index: index.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/index.xml,v retrieving revision 1.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** index.xml 6 Dec 2007 08:06:41 -0000 1.77 --- index.xml 20 Dec 2007 16:33:52 -0000 1.78 *************** *** 70,73 **** --- 70,77 ---- </author> <author> + <firstname>Bruno</firstname> + <surname>Baia</surname> + </author> + <author> <firstname>Federico</firstname> <surname>Spinazzi</surname> Index: vsnet.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/vsnet.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** vsnet.xml 1 May 2006 23:10:02 -0000 1.11 --- vsnet.xml 20 Dec 2007 16:33:52 -0000 1.12 *************** *** 1,23 **** <chapter id="vsnet"> <title>Visual Studio.NET Integration</title> <sect1 id="vsnet-config-section"> <title>XML Editing and Validation</title> ! <para><emphasis>(Available in 1.0)</emphasis></para> ! <para>Most of this section is well traveled territory for those ! familiar with editing XML files in their favorite XML editor. ! The XML configuration data that defines the objects that Spring will ! manage for you are validated against the Spring.NET XML Schema ! at runtime. ! The location of the XML configuration data to create an ! <literal>IApplicationContext</literal> can be any of the resource ! locations supported by Spring's ! <classname>IResource</classname> abstraction. (See ! <xref linkend="objects-iresource"/> for more information.) ! To create an <classname>IApplicationContext</classname> ! using a "standalone" XML configuration file the custom configuration ! section in the standard .NET application configuration would ! read: ! </para> ! <programlisting><spring> <context> --- 1,28 ---- + <?xml version="1.0" encoding="UTF-8"?> <chapter id="vsnet"> <title>Visual Studio.NET Integration</title> + <sect1 id="vsnet-config-section"> + + <title>XML Editing and Validation</title> ! ! ! ! <para>Most of this section is well traveled territory for those familiar ! with editing XML files in their favorite XML editor. The XML configuration ! data that defines the objects that Spring will manage for you are ! validated against the Spring.NET XML Schema at runtime. The location of ! the XML configuration data to create an ! <literal>IApplicationContext</literal> can be any of the resource ! locations supported by Spring's <classname>IResource</classname> ! abstraction. (See <xref linkend="objects-iresource" /> for more ! information.) To create an <classname>IApplicationContext</classname> ! using a "standalone" XML configuration file the custom configuration ! section in the standard .NET application configuration would read:</para> ! ! ! ! <programlisting><spring> <context> *************** *** 26,38 **** </spring></programlisting> ! The VS.NET 2005 XML editor can use the attribute <literal>xsi:schemaLocation</literal> ! as a hint to associate the physical location of a schema file with the XML ! document being edited. VS.NET 2002/2003 do not recognize the ! <literal>xsi:schemaLocation</literal> element. If you reference the Spring.NET XML ! schema as shown below, you can get IntelliSense and validation support while editing ! a Spring configuration file in VS.NET 2005. In order to get this functionality ! in VS.NET 2002/2003 you you will need to register the schema with VS.NET or include the ! schema as part of your application project. ! <programlisting><?xml version="1.0" encoding="UTF-8"?> <objects xmlns="http://www.springframework.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" --- 31,46 ---- </spring></programlisting> ! ! The VS.NET 2005 XML editor can use the attribute ! ! <literal>xsi:schemaLocation</literal> ! ! as a hint to associate the physical location of a schema file with the XML document being edited. VS.NET 2002/2003 do not recognize the ! ! <literal>xsi:schemaLocation</literal> ! ! element. If you reference the Spring.NET XML schema as shown below, you can get IntelliSense and validation support while editing a Spring configuration file in VS.NET 2005. In order to get this functionality in VS.NET 2002/2003 you you will need to register the schema with VS.NET or include the schema as part of your application project. ! ! <programlisting><?xml version="1.0" encoding="UTF-8"?> <objects xmlns="http://www.springframework.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" *************** *** 46,81 **** ... </objects></programlisting> ! <para>It is typically more convenient to install the schema in VS.NET, even for ! VS.NET 2005, as it makes the xml a little less verbose and you don't need ! to keep copying the XSD file for each project you create. ! For VS.NET 2003 the schema directory will be either ! </para> ! <para><literal>C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\schemas\xml</literal> for VS.NET 2003 ! </para> <para>or</para> ! <para><literal>C:\Program Files\Microsoft Visual Studio .NET\Common7\Packages\schemas\xml</literal> for VS.NET 2002 ! </para> ! <para> ! The VS.NET 2005 directory for XML schemas is ! </para> ! <para><literal> ! C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas ! </literal> ! </para> ! <para> ! As simple aid in this file copy task, you can use the NAnt build file located in ! the <literal>doc/schema</literal> directory ! that comes with Spring and execute ! </para> ! <para><literal>nant</literal></para> <para> ! The default nant target will copy the file spring-object.xsd ! from the doc/schema directory to the appropriate VS.NET directory. ! </para> ! <para>Once you have registered the schema with VS.NET you can adding ! only the namespace declaration to the objects element, </para> <para> ! <programlisting><?xml version="1.0" encoding="UTF-8"?> <objects xmlns="http://www.springframework.net"> <object id="..." type="..."> --- 54,106 ---- ... </objects></programlisting> ! ! ! ! <para>It is typically more convenient to install the schema in VS.NET, ! even for VS.NET 2005, as it makes the xml a little less verbose and you ! don't need to keep copying the XSD file for each project you create. For ! VS.NET 2003 the schema directory will be either</para> ! ! ! ! <para><literal>C:\Program Files\Microsoft Visual Studio .NET ! 2003\Common7\Packages\schemas\xml</literal> for VS.NET 2003</para> ! ! ! <para>or</para> ! ! ! ! <para><literal>C:\Program Files\Microsoft Visual Studio ! .NET\Common7\Packages\schemas\xml</literal> for VS.NET 2002</para> ! ! ! ! <para>The VS.NET 2005 directory for XML schemas is</para> ! ! ! <para> ! <literal>C:\Program Files\Microsoft Visual Studio ! 8\Xml\Schemas</literal> </para> + + + + <para>Spring's .xsd schemas are located in the directory doc/schema. In + that directory is also a NAnt build file to help copy over the .xsd files + to the appropriate VS.NET locations. To execute this scripte simply type + '<literal>nant</literal>' in the doc/schema directory.</para> + + + + <para>Once you have registered the schema with VS.NET you can adding only + the namespace declaration to the objects element,</para> + + + <para> ! <programlisting><?xml version="1.0" encoding="UTF-8"?> <objects xmlns="http://www.springframework.net"> <object id="..." type="..."> *************** *** 89,103 **** </para> ! <para> ! Once registered, the namespace declaration alone is sufficient to get IntelliSense and validation of the ! configuration file from within VS.NET. Alternatively, you can select xsd file to use ! by setting the targetSchema property in the Property Sheet for the configuration file. ! </para> ! <para> ! As shown in the section <xref linkend="objects-factory-client"/> ! Spring.NET supports using .NET's application configuration file ! as the location to store the object defintions that will be managed by ! the object factory. ! </para> <programlisting> <configuration> --- 114,134 ---- </para> ! ! ! <para>Once registered, the namespace declaration alone is sufficient to ! get IntelliSense and validation of the configuration file from within ! VS.NET. Alternatively, you can select xsd file to use by setting the ! targetSchema property in the Property Sheet for the configuration ! file.</para> ! ! ! ! <para>As shown in the section <xref linkend="objects-factory-client" /> ! Spring.NET supports using .NET's application configuration file as the ! location to store the object defintions that will be managed by the object ! factory.</para> ! ! ! <programlisting> <configuration> *************** *** 124,172 **** </configuration> </programlisting> ! <para> ! In this case VS.NET 2002/2003 will still provide you with IntelliSense help but ! you will not be able to fully validate the document as the entire ! schema for App.config is not known. ! To be able to validate this document one would need to install the ! <ulink url="http://www.radsoftware.com.au/articles/intellisensewebconfig.aspx">.NET Configuration File schema</ulink> and and addition schema that ! incorporates the <literal><spring></literal> ! and <literal><context></literal> section ! in addition to the <literal><objects></literal> would need to be ! created. ! </para> ! <para> ! Validating schema is a new feature in VS 2005 it is validating all the time while you ! edit, you will see any errors that it finds in the Error List window. ! </para> ! <para> ! Keep these tradeoffs in mind as you decide where to place the bulk of ! your configuration information. Conventional wisdom is do quick ! prototyping with App.config and use another IResource location, ! file or embedded assembly resource, for serious development. ! </para> </sect1> <sect1 id="vsnet-schema-versions"> <title>Versions of XML Schema</title> ! <para> ! The schema was updated from Spring 1.0.1 to 1.0.2 in order ! to support generics. The schema for version 1.0.1 is located under ! <literal>http://www.springframework.net/xsd/1.0.1/</literal> ! The schema for the latest version will always be located under ! <literal>http://www.springframework.net/xsd/</literal> ! </para> </sect1> <sect1 id="vsnet-api-help"> <title>Integrated API help</title> - <para>As part of the installation process the API documentation - for Spring.NET is registered with Visual Studio. There are - two versions of the documentation, one for VS.NET 2002/2003 - and the other for VS.NET 2005. They differ only in the - format applied, VS.NET 2005 using the sexy new format. Enjoy! - </para> - </sect1> - - </chapter> - - - --- 155,204 ---- </configuration> </programlisting> ! ! ! ! <para>In this case VS.NET 2002/2003 will still provide you with ! IntelliSense help but you will not be able to fully validate the document ! as the entire schema for App.config is not known. To be able to validate ! this document one would need to install the <ulink ! url="http://www.radsoftware.com.au/articles/intellisensewebconfig.aspx">.NET ! Configuration File schema</ulink> and and addition schema that ! incorporates the <literal><spring></literal> and ! <literal><context></literal> section in addition to the ! <literal><objects></literal> would need to be created.</para> ! ! ! ! <para>Validating schema is a new feature in VS 2005 it is validating all ! the time while you edit, you will see any errors that it finds in the ! Error List window.</para> ! ! ! ! <para>Keep these tradeoffs in mind as you decide where to place the bulk ! of your configuration information. Conventional wisdom is do quick ! prototyping with App.config and use another IResource location, file or ! embedded assembly resource, for serious development.</para> ! ! </sect1> + <sect1 id="vsnet-schema-versions"> <title>Versions of XML Schema</title> ! ! <para>The schema was updated from Spring 1.0.1 to 1.0.2 in order to ! support generics. The schema for version 1.0.1 is located under ! <literal>http://www.springframework.net/xsd/1.0.1/</literal> The schema ! for the latest version will always be located under ! <literal>http://www.springframework.net/xsd/</literal></para> </sect1> + <sect1 id="vsnet-api-help"> <title>Integrated API help</title> + <para>Spring provides API documentation that can be integrated within + Visual Studio. There are two versions of the documentation, one for VS.NET + 2002/2003 and the other for VS.NET 2005. They differ only in the format + applied, VS.NET 2005 using the sexy new format. Enjoy!</para> + </sect1> + </chapter> \ No newline at end of file Index: web.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/web.xml,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** web.xml 14 Dec 2007 18:05:10 -0000 1.31 --- web.xml 20 Dec 2007 16:33:52 -0000 1.32 *************** *** 1521,1524 **** --- 1521,1607 ---- </note> </sect2> + + <sect2> + <title>Using DataBindingPanel</title> + + <para>To simplify use of Spring's Data Binding feature on web pages and + controls, Spring.Web provides a special DataBindingPanel container + control. A DataBindingPanel does not render any html code itself, but + allows for specifiying additional, data binding related attributes to + its child controls:</para> + + <para><programlisting><%@ Page Language="C#" CodeFile="Default.aspx.cs" Inherits="DataBinding_EasyEmployeeInfo_Default" %> + <%@ Register TagPrefix="spring" Namespace="Spring.Web.UI.Controls" Assembly="Spring.Web" %> + <html> + <body> + <spring:DataBindingPanel ID="ctlDataBindingPanel" runat="server"> + <table cellpadding="3" cellspacing="3" border="0"> + <tr> + <td>Employee ID:</td> + <td> + <asp:TextBox ID="txtId" runat="server" BindingTarget="Employee.Id" /> + </td> + </tr> + <tr> + <td>First Name:</td> + <td><asp:TextBox ID="txtFirstName" runat="server" BindingTarget="Employee.FirstName" /></td> + </tr> + </table> + </spring.DataBindingPanel> + </body> + </html></programlisting></para> + + <para>Using DataBindingPanel the binding information can be specified + directly on the control declaration. The following attributes are + recognized by a DataBindingPanel:</para> + + <itemizedlist> + <listitem> + <para>BindingTarget</para> + + <para>corresponds to the target expression used in + IBindingContainer.AddBinding()</para> + </listitem> + + <listitem> + <para>BindingSource</para> + + <para>corresponds to the source expression used in + IBindingContainer.AddBinding(). For standard controls you don't need + to specify the source expression. If you are binding to some custom + control, of course you must specifiy this attribute.</para> + </listitem> + + <listitem> + <para>BindingDirection</para> + + <para>one of the values of the BindingDirection enumeration</para> + </listitem> + + <listitem> + <para>BindingFormatter</para> + + <para>if you need a custom formatter, you can specifiy the object + name of a formatter here. The formatter instance will be obtained by + a call to IApplicationContext.GetObject() each time it is + needed.</para> + </listitem> + + <listitem> + <para>BindingType</para> + + <para>In case you need a completely customized binding, specify its + type here. Note that a custom binding type must implement the + following constructor signature:</para> + + <para><literal>ctor(string source,string target, BindingDirection, + IFormatter)</literal></para> + </listitem> + </itemizedlist> + + <note> + 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. + </note> + </sect2> </sect1> Index: objects.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/objects.xml,v retrieving revision 1.113 retrieving revision 1.114 diff -C2 -d -r1.113 -r1.114 *** objects.xml 7 Dec 2007 20:31:59 -0000 1.113 --- objects.xml 20 Dec 2007 16:33:52 -0000 1.114 *************** *** 196,200 **** the Spring.Core.Tests.build file included the distribution. </note> The <classname>IResource</classname> abstraction is explained further in ! <xref linkend="objects-iresource" />. </para> <para>The preferred way to create an --- 196,200 ---- the Spring.Core.Tests.build file included the distribution. </note> The <classname>IResource</classname> abstraction is explained further in ! <xref linkend="objects-iresource" />.</para> <para>The preferred way to create an *************** *** 269,275 **** providing validation (and Intellisense support in the case of VisualStudio.NET). You may wish to refer to <xref linkend="vsnet" /> for ! more information regarding such integration. You can also obtain the XSD ! that supports the latest release from the web at <ulink ! url="http://www.springframework.net/xsd/spring-objects.xsd">spring-objects.xsd</ulink>.</para> <para>Your XML object definitions can also be defined within the --- 269,273 ---- providing validation (and Intellisense support in the case of VisualStudio.NET). You may wish to refer to <xref linkend="vsnet" /> for ! more information regarding such integration.</para> <para>Your XML object definitions can also be defined within the *************** *** 321,325 **** context constructor which takes multiple resource locations. With an object factory, an object definition reader can be used multiple times ! to read definitions from each file in turn. </para> <para>Generally, the Spring.NET team prefers the above approach, --- 319,323 ---- context constructor which takes multiple resource locations. With an object factory, an object definition reader can be used multiple times ! to read definitions from each file in turn.</para> <para>Generally, the Spring.NET team prefers the above approach, *************** *** 1416,1425 **** demonstrates this behaviour...</para> ! <programlisting><object type="Examples.ExampleObject, ! ExamplesLibrary"> <property ! name="email"><value></value></property> ! <!-- equivalent, using value attribute as opposed to nested ! <value/> element... <property name="email" ! value=""/> </object></programlisting> <para>This results in the email property being set to the empty string --- 1414,1423 ---- demonstrates this behaviour...</para> ! <programlisting><object type="Examples.ExampleObject, ExamplesLibrary"> ! <property name="email"><value></value></property> ! ! <!-- equivalent, using value attribute as opposed to nested <value/> element... ! <property name="email" value=""/> ! </object></programlisting> <para>This results in the email property being set to the empty string *************** *** 1429,1436 **** indicate a <literal>null</literal> value; to wit...</para> ! <programlisting><object type="Examples.ExampleObject, ! ExamplesLibrary"> <property ! name="email"><null/></property> ! </object></programlisting> <para>This results in the email property being set to --- 1427,1433 ---- indicate a <literal>null</literal> value; to wit...</para> ! <programlisting><object type="Examples.ExampleObject, ExamplesLibrary"> ! <property name="email"><null/></property> ! </object></programlisting> <para>This results in the email property being set to Index: ajax.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/ajax.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ajax.xml 28 Jun 2007 14:42:34 -0000 1.5 --- ajax.xml 20 Dec 2007 16:33:52 -0000 1.6 *************** *** 131,139 **** <para>You can find a full Web.config file in the example that comes with ! this integration. (see <xref linkend="quickstarts" />)</para> </sect2> <sect2 id="callingWebServices"> ! <title>Calling Web Services by using JavaScript</title> <para>A proxy class is generated for each Web Service. Calls to Web --- 131,139 ---- <para>You can find a full Web.config file in the example that comes with ! this integration. </para> </sect2> <sect2 id="callingWebServices"> ! <title>alling Web Services by using JavaScript</title> <para>A proxy class is generated for each Web Service. Calls to Web |
From: Bruno B. <bb...@us...> - 2007-12-20 16:33:32
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14454 Modified Files: App.config Program.cs Log Message: Fix WCF Quickstart. Index: App.config =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/App.config,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** App.config 14 Sep 2007 16:13:11 -0000 1.3 --- App.config 20 Dec 2007 16:33:27 -0000 1.4 *************** *** 13,19 **** <context> <!-- Make sure 'http://localhost:2637/Spring.WcfQuickStart.Web/' web application is running --> ! <!-- ! <resource uri="assembly://Spring.WcfQuickStart.ClientApp/Spring.WcfQuickStart.Config/Web.xml" /> ! --> <!-- Make sure 'ServerApp' console application is running and listening. --> --- 13,17 ---- <context> <!-- Make sure 'http://localhost:2637/Spring.WcfQuickStart.Web/' web application is running --> ! <resource uri="assembly://Spring.WcfQuickStart.ClientApp/Spring.WcfQuickStart.Config/Web.xml" /> <!-- Make sure 'ServerApp' console application is running and listening. --> *************** *** 46,50 **** <client> <endpoint name="webCalculatorEndpoint" ! address="http://localhost:2637/Spring.WcfQuickStart.Web.2007/Calculator.svc" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding1" contract="Spring.WcfQuickStart.ICalculator" /> --- 44,48 ---- <client> <endpoint name="webCalculatorEndpoint" ! address="http://localhost:2637/Spring.WcfQuickStart.Web.2008/Calculator.svc" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding1" contract="Spring.WcfQuickStart.ICalculator" /> Index: Program.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/Program.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Program.cs 18 May 2007 21:05:04 -0000 1.1 --- Program.cs 20 Dec 2007 16:33:27 -0000 1.2 *************** *** 44,54 **** foreach (ICalculator calculator in ctx.GetObjectsOfType(typeof(ICalculator)).Values) { ! Console.WriteLine(calculator.GetName()); ! Console.WriteLine("Add(1, 1) : " + calculator.Add(1, 1)); ! Console.WriteLine("Divide(11, 2) : " + calculator.Divide(11, 2)); ! Console.WriteLine("Multiply(2, 5) : " + calculator.Multiply(2, 5)); ! Console.WriteLine("Subtract(7, 4) : " + calculator.Subtract(7, 4)); ! ! Console.WriteLine(); } } --- 44,61 ---- foreach (ICalculator calculator in ctx.GetObjectsOfType(typeof(ICalculator)).Values) { ! try ! { ! Console.WriteLine(calculator.GetName()); ! Console.WriteLine("Add(1, 1) : " + calculator.Add(1, 1)); ! Console.WriteLine("Divide(11, 2) : " + calculator.Divide(11, 2)); ! Console.WriteLine("Multiply(2, 5) : " + calculator.Multiply(2, 5)); ! Console.WriteLine("Subtract(7, 4) : " + calculator.Subtract(7, 4)); ! Console.WriteLine(); ! } ! catch (Exception e) ! { ! Console.WriteLine(e); ! Console.WriteLine(); ! } } } |
From: Erich E. <oak...@us...> - 2007-12-16 23:02:19
|
Update of /cvsroot/springnet/Spring.Net In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12502 Modified Files: .cvsignore Log Message: ignore Spring.Calculator.snk Index: .cvsignore =================================================================== RCS file: /cvsroot/springnet/Spring.Net/.cvsignore,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** .cvsignore 5 Dec 2006 23:07:34 -0000 1.19 --- .cvsignore 16 Dec 2007 23:02:13 -0000 1.20 *************** *** 24,26 **** *resharper* *.bat ! CommonAssemblyInfo.cs \ No newline at end of file --- 24,27 ---- *resharper* *.bat ! CommonAssemblyInfo.cs ! Spring.Calculator.snk \ No newline at end of file |
From: Erich E. <oak...@us...> - 2007-12-16 12:44:00
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Objects/Factory/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv2855/Objects/Factory/Support Modified Files: WebObjectFactoryTests.cs Log Message: initial solution for SPRNET-824 - WebObjectFactory does not need a valid HttpContext.Current instance anymore as long as no 'session' or 'request' scoped objects are requested. Index: WebObjectFactoryTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Objects/Factory/Support/WebObjectFactoryTests.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** WebObjectFactoryTests.cs 15 Dec 2007 21:22:04 -0000 1.3 --- WebObjectFactoryTests.cs 16 Dec 2007 12:43:56 -0000 1.4 *************** *** 39,43 **** public sealed class WebObjectFactoryTests { ! [Test, Explicit] public void CanBeUsedOnNonWebThread() { --- 39,43 ---- public sealed class WebObjectFactoryTests { ! [Test] public void CanBeUsedOnNonWebThread() { *************** *** 45,48 **** --- 45,50 ---- RootWebObjectDefinition rwod; + // we need to create WOF within a valid HttpContext environment 'cause we will + // make use of 'request' and 'session' scope. using (new VirtualEnvironmentMock("/somedir/some.file", "/", true)) { *************** *** 66,71 **** Assert.IsNotNull(o); ! AssertGetObjectThrows(typeof(InvalidOperationException), wof, "requestScopedObject"); ! AssertGetObjectThrows(typeof(InvalidOperationException), wof, "sessionScopedObject"); } --- 68,73 ---- Assert.IsNotNull(o); ! AssertGetObjectThrows(typeof(ObjectCreationException), wof, "requestScopedObject"); ! AssertGetObjectThrows(typeof(ObjectCreationException), wof, "sessionScopedObject"); } |
From: Erich E. <oak...@us...> - 2007-12-16 12:43:52
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Objects/Factory/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv2840 Modified Files: WebObjectFactory.cs Log Message: initial solution for SPRNET-824 - WebObjectFactory does not need a valid HttpContext.Current instance anymore as long as no 'session' or 'request' scoped objects are requested. Index: WebObjectFactory.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Objects/Factory/Support/WebObjectFactory.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** WebObjectFactory.cs 15 Dec 2007 21:21:47 -0000 1.8 --- WebObjectFactory.cs 16 Dec 2007 12:43:48 -0000 1.9 *************** *** 232,235 **** --- 232,239 ---- else if (scope == ObjectScope.Request) { + if (this.Context == null) + { + throw new ObjectCreationException(string.Format("Can't create 'request' scoped web singleton object '{0}' without a valid HttpContext.Current instance.", objectName)); + } string key = GetObjectKey(objectName); Request[key] = TemporarySingletonPlaceHolder; *************** *** 239,247 **** else if (scope == ObjectScope.Session) { IDictionary sessionCache = this.Session; if (sessionCache == null) { ! throw ConfigurationUtils.CreateConfigurationException( ! "'session'-scoped objects require SessionState to be enabled."); } string key = GetObjectKey(objectName); --- 243,254 ---- else if (scope == ObjectScope.Session) { + if (this.Context == null) + { + throw new ObjectCreationException(string.Format("Can't create 'session' scoped web singleton object '{0}' without a valid HttpContext.Current instance.", objectName)); + } IDictionary sessionCache = this.Session; if (sessionCache == null) { ! throw new ObjectCreationException(string.Format("'session' scoped web singleton object '{0}' require a valid Session.", objectName)); } string key = GetObjectKey(objectName); |
From: Erich E. <oak...@us...> - 2007-12-15 21:22:14
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Util In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv18228/Util Modified Files: WebUtilsTests.cs Log Message: added first WebObjectFactory tests Index: WebUtilsTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Util/WebUtilsTests.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** WebUtilsTests.cs 28 Nov 2007 23:26:28 -0000 1.6 --- WebUtilsTests.cs 15 Dec 2007 21:22:11 -0000 1.7 *************** *** 182,186 **** { // emulate root website context ! using( new VirtualEnvironmentMock("/somedir/some.file", "/") ) { CombineVirtualPathsSuite( "/" ); --- 182,186 ---- { // emulate root website context ! using( new VirtualEnvironmentMock("/somedir/some.file", "/", true) ) { CombineVirtualPathsSuite( "/" ); *************** *** 192,196 **** { // emulate child website context ! using( new VirtualEnvironmentMock("/somedir/some.file", "/myapp") ) { CombineVirtualPathsSuite( "/myapp/" ); --- 192,196 ---- { // emulate child website context ! using( new VirtualEnvironmentMock("/somedir/some.file", "/myapp", true) ) { CombineVirtualPathsSuite( "/myapp/" ); |
From: Erich E. <oak...@us...> - 2007-12-15 21:22:14
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/TestSupport In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv18228/TestSupport Modified Files: VirtualEnvironmentMock.cs Added Files: VoidDelegate.cs Log Message: added first WebObjectFactory tests --- NEW FILE: VoidDelegate.cs --- namespace Spring.TestSupport { /// <summary> /// Signature of a method with no args and no return type /// </summary> internal delegate void VoidDelegate(); } Index: VirtualEnvironmentMock.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/TestSupport/VirtualEnvironmentMock.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** VirtualEnvironmentMock.cs 29 May 2007 18:19:38 -0000 1.3 --- VirtualEnvironmentMock.cs 15 Dec 2007 21:22:11 -0000 1.4 *************** *** 18,22 **** private string _applicationVirtualPath; ! public VirtualEnvironmentMock(string currentVirtualPath, string applicationVirtualPath) { _currentVirtualPath = currentVirtualPath; --- 18,22 ---- private string _applicationVirtualPath; ! public VirtualEnvironmentMock(string currentVirtualPath, string applicationVirtualPath, bool autoInitialize) { _currentVirtualPath = currentVirtualPath; *************** *** 24,27 **** --- 24,31 ---- _prevEnvironment = VirtualEnvironment.SetInstance(this); + if (autoInitialize) + { + VirtualEnvironment.SetInitialized(); + } } |
From: Erich E. <oak...@us...> - 2007-12-15 21:22:07
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Objects/Factory/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv17996 Modified Files: WebObjectFactoryTests.cs Log Message: added first WebObjectFactory tests Index: WebObjectFactoryTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Objects/Factory/Support/WebObjectFactoryTests.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WebObjectFactoryTests.cs 18 May 2006 21:37:53 -0000 1.2 --- WebObjectFactoryTests.cs 15 Dec 2007 21:22:04 -0000 1.3 *************** *** 23,26 **** --- 23,29 ---- using System; using NUnit.Framework; + using Spring.Objects.Factory.Config; + using Spring.TestSupport; + using Spring.Web.TestSupport; #endregion *************** *** 28,39 **** namespace Spring.Objects.Factory.Support { ! /// <summary> ! /// Unit tests for the WebObjectFactory class. ! /// </summary> ! /// <author>Rick Evans</author> ! /// <version>$Id$</version> ! [TestFixture] ! public sealed class WebObjectFactoryTests ! { ! } } \ No newline at end of file --- 31,85 ---- namespace Spring.Objects.Factory.Support { ! /// <summary> ! /// Unit tests for the WebObjectFactory class. ! /// </summary> ! /// <author>Rick Evans</author> ! /// <version>$Id$</version> ! [TestFixture] ! public sealed class WebObjectFactoryTests ! { ! [Test, Explicit] ! public void CanBeUsedOnNonWebThread() ! { ! WebObjectFactory wof; ! RootWebObjectDefinition rwod; ! ! using (new VirtualEnvironmentMock("/somedir/some.file", "/", true)) ! { ! wof = new WebObjectFactory("/somedir/", false); ! } ! ! rwod = new RootWebObjectDefinition(typeof(object), new ConstructorArgumentValues(), new MutablePropertyValues()); ! rwod.Scope = ObjectScope.Application; ! wof.RegisterObjectDefinition("applicationScopedObject", rwod); ! ! rwod = new RootWebObjectDefinition(typeof(object), new ConstructorArgumentValues(), new MutablePropertyValues()); ! rwod.Scope = ObjectScope.Request; ! wof.RegisterObjectDefinition("requestScopedObject", rwod); ! ! rwod = new RootWebObjectDefinition(typeof(object), new ConstructorArgumentValues(), new MutablePropertyValues()); ! rwod.Scope = ObjectScope.Session; ! wof.RegisterObjectDefinition("sessionScopedObject", rwod); ! ! object o; ! o = wof.GetObject("applicationScopedObject"); ! Assert.IsNotNull(o); ! ! AssertGetObjectThrows(typeof(InvalidOperationException), wof, "requestScopedObject"); ! AssertGetObjectThrows(typeof(InvalidOperationException), wof, "sessionScopedObject"); ! } ! ! private void AssertGetObjectThrows(Type exceptionType, WebObjectFactory wof, string objectName) ! { ! try ! { ! wof.GetObject(objectName); ! Assert.Fail("must not reach this line"); ! } ! catch (Exception ex) ! { ! Assert.AreEqual(exceptionType, ex.GetType()); ! } ! } ! } } \ No newline at end of file |
From: Erich E. <oak...@us...> - 2007-12-15 21:22:06
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv17803 Modified Files: Spring.Web.Tests.2005.csproj Log Message: added first WebObjectFactory tests Index: Spring.Web.Tests.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Spring.Web.Tests.2005.csproj,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Spring.Web.Tests.2005.csproj 5 Dec 2007 08:30:21 -0000 1.24 --- Spring.Web.Tests.2005.csproj 15 Dec 2007 21:21:56 -0000 1.25 *************** *** 93,96 **** --- 93,97 ---- <Compile Include="TestSupport\TestWebContext.cs" /> <Compile Include="TestSupport\VirtualEnvironmentMock.cs" /> + <Compile Include="TestSupport\VoidDelegate.cs" /> <Compile Include="Threading\HttpContextStorageTests.cs" /> <Compile Include="Threading\HybridContextStorageTests.cs" /> |
From: Erich E. <oak...@us...> - 2007-12-15 21:22:06
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Core/IO In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv17803/Core/IO Modified Files: WebResourceTests.cs Log Message: added first WebObjectFactory tests Index: WebResourceTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Core/IO/WebResourceTests.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** WebResourceTests.cs 8 Aug 2007 17:49:38 -0000 1.4 --- WebResourceTests.cs 15 Dec 2007 21:21:56 -0000 1.5 *************** *** 42,46 **** public void SetUpFixture() { ! testVirtualEnvironment = new VirtualEnvironmentMock("/some.request", "/"); } --- 42,46 ---- public void SetUpFixture() { ! testVirtualEnvironment = new VirtualEnvironmentMock("/some.request", "/", true); } |
From: Erich E. <oak...@us...> - 2007-12-15 21:21:52
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Objects/Factory/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv17770 Modified Files: WebObjectFactory.cs Log Message: added first WebObjectFactory tests Index: WebObjectFactory.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Objects/Factory/Support/WebObjectFactory.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** WebObjectFactory.cs 2 Aug 2007 20:49:50 -0000 1.7 --- WebObjectFactory.cs 15 Dec 2007 21:21:47 -0000 1.8 *************** *** 50,62 **** public class WebObjectFactory : DefaultListableObjectFactory { ! private readonly static ILog log = LogManager.GetLogger(typeof(WebObjectFactory)); ! private const string OBJECTTABLEKEY = "spring.objects"; ! ! /// <summary> ! /// Holds the virtual path this factory has been created from. ! /// </summary> private string contextPath; ! #region Constructor (s) / Destructor --- 50,62 ---- public class WebObjectFactory : DefaultListableObjectFactory { ! private readonly static ILog log = LogManager.GetLogger(typeof(WebObjectFactory)); ! private const string OBJECTTABLEKEY = "spring.objects"; ! ! /// <summary> ! /// Holds the virtual path this factory has been created from. ! /// </summary> private string contextPath; ! #region Constructor (s) / Destructor *************** *** 65,69 **** EnsureEventHandlersRegistered(); } ! /// <summary> /// Registers events handlers with <see cref="WebSupportModule"/> to ensure --- 65,69 ---- EnsureEventHandlersRegistered(); } ! /// <summary> /// Registers events handlers with <see cref="WebSupportModule"/> to ensure *************** *** 76,80 **** VirtualEnvironment.EndSession += new VirtualEnvironment.SessionEventHandler(OnEndSession); } ! /// <summary> /// Creates a new instance of the --- 76,80 ---- VirtualEnvironment.EndSession += new VirtualEnvironment.SessionEventHandler(OnEndSession); } ! /// <summary> /// Creates a new instance of the *************** *** 82,87 **** /// </summary> /// <param name="contextPath">The virtual path resources will be relative resolved to.</param> ! /// <param name="caseSensitive">Flag specifying whether to make this object factory case sensitive or not.</param> ! public WebObjectFactory( string contextPath, bool caseSensitive ) : this(contextPath, caseSensitive, null) { --- 82,87 ---- /// </summary> /// <param name="contextPath">The virtual path resources will be relative resolved to.</param> ! /// <param name="caseSensitive">Flag specifying whether to make this object factory case sensitive or not.</param> ! public WebObjectFactory(string contextPath, bool caseSensitive) : this(contextPath, caseSensitive, null) { *************** *** 92,105 **** /// <see cref="Spring.Objects.Factory.Support.WebObjectFactory"/> class. /// </summary> ! /// <param name="contextPath">The virtual path resources will be relative resolved to.</param> ! /// <param name="caseSensitive">Flag specifying whether to make this object factory case sensitive or not.</param> ! /// <param name="parentFactory"> /// The parent object factory. /// </param> ! public WebObjectFactory( string contextPath, bool caseSensitive, IObjectFactory parentFactory) : base(caseSensitive, parentFactory) { this.contextPath = contextPath; ! InstantiationStrategy = new WebInstantiationStrategy(); } --- 92,105 ---- /// <see cref="Spring.Objects.Factory.Support.WebObjectFactory"/> class. /// </summary> ! /// <param name="contextPath">The virtual path resources will be relative resolved to.</param> ! /// <param name="caseSensitive">Flag specifying whether to make this object factory case sensitive or not.</param> ! /// <param name="parentFactory"> /// The parent object factory. /// </param> ! public WebObjectFactory(string contextPath, bool caseSensitive, IObjectFactory parentFactory) : base(caseSensitive, parentFactory) { this.contextPath = contextPath; ! InstantiationStrategy = new WebInstantiationStrategy(); } *************** *** 131,135 **** objecttable = new Hashtable(); this.Context.Items[OBJECTTABLEKEY] = objecttable; ! } } return objecttable; --- 131,135 ---- objecttable = new Hashtable(); this.Context.Items[OBJECTTABLEKEY] = objecttable; ! } } return objecttable; *************** *** 144,158 **** get { ! IDictionary objecttable = null; ! if ( (Context != null) && (Context.Session != null)) ! { ! objecttable = Context.Session[OBJECTTABLEKEY] as IDictionary; ! if (objecttable == null) ! { ! objecttable = new Hashtable(); ! Context.Session[OBJECTTABLEKEY] = objecttable; ! } ! } ! return objecttable; } } --- 144,158 ---- get { ! IDictionary objecttable = null; ! if ((Context != null) && (Context.Session != null)) ! { ! objecttable = Context.Session[OBJECTTABLEKEY] as IDictionary; ! if (objecttable == null) ! { ! objecttable = new Hashtable(); ! Context.Session[OBJECTTABLEKEY] = objecttable; ! } ! } ! return objecttable; } } *************** *** 220,232 **** { object instance; ! ObjectScope scope = ((IWebObjectDefinition) objectDefinition).Scope; if (scope == ObjectScope.Application) { ! return base.CreateAndCacheSingletonInstance(objectName, objectDefinition, arguments); ! // base.AddSingleton(objectName, TemporarySingletonPlaceHolder); ! // // eager caching (last parameter) should be allowed in order to resolve circular references ! // instance = CreateObject(objectName, objectDefinition, arguments, true); ! // base.AddSingleton(objectName, instance); } else if (scope == ObjectScope.Request) --- 220,232 ---- { object instance; ! ObjectScope scope = ((IWebObjectDefinition)objectDefinition).Scope; if (scope == ObjectScope.Application) { ! return base.CreateAndCacheSingletonInstance(objectName, objectDefinition, arguments); ! // base.AddSingleton(objectName, TemporarySingletonPlaceHolder); ! // // eager caching (last parameter) should be allowed in order to resolve circular references ! // instance = CreateObject(objectName, objectDefinition, arguments, true); ! // base.AddSingleton(objectName, instance); } else if (scope == ObjectScope.Request) *************** *** 239,248 **** else if (scope == ObjectScope.Session) { ! IDictionary sessionCache = this.Session; ! if (sessionCache == null) ! { ! throw ConfigurationUtils.CreateConfigurationException( ! "'session'-scoped objects require SessionState to be enabled."); ! } string key = GetObjectKey(objectName); sessionCache[key] = TemporarySingletonPlaceHolder; --- 239,248 ---- else if (scope == ObjectScope.Session) { ! IDictionary sessionCache = this.Session; ! if (sessionCache == null) ! { ! throw ConfigurationUtils.CreateConfigurationException( ! "'session'-scoped objects require SessionState to be enabled."); ! } string key = GetObjectKey(objectName); sessionCache[key] = TemporarySingletonPlaceHolder; *************** *** 269,273 **** } ! /// <summary> /// Injects dependencies into the supplied <paramref name="target"/> instance /// using the named object definition. --- 269,273 ---- } ! /// <summary> /// Injects dependencies into the supplied <paramref name="target"/> instance /// using the named object definition. *************** *** 282,352 **** /// <seealso cref="Spring.Objects.Factory.IObjectFactory.ConfigureObject(object, string)"/> public override object ConfigureObject(object target, string name) ! { // always configure object relative to contextPath ! using( new HttpContextSwitch( contextPath )) { return base.ConfigureObject(target, name); } ! } ! /// <summary> ! /// Disposes all 'request'-scoped objects at the end of each Request ! /// </summary> ! private static void OnEndRequest(HttpContext context) ! { ! IDictionary items = context.Items[OBJECTTABLEKEY] as IDictionary; ! if(items != null) ! { ! log.Debug("disposing 'request'-scoped item cache"); ! ArrayList keys = new ArrayList(items.Keys); ! for(int i=0;i<keys.Count;i++) ! { ! IDisposable d = items[keys[i]] as IDisposable; ! if (d != null) ! { ! d.Dispose(); ! } ! } ! } ! } ! ! /// <summary> ! /// Disposes all 'session'-scoped objects at the end of a session ! /// </summary> ! private static void OnEndSession(HttpSessionState session, CacheItemRemovedReason reason) ! { ! IDictionary items = null; ! try ! { ! items = session[OBJECTTABLEKEY] as IDictionary; ! } ! catch ! { // ignore exceptions while accessing session ! } ! if(items != null) ! { ! log.Debug("disposing 'session'-scoped item cache"); ! object key = null; ! try ! { ! ArrayList keys = new ArrayList(items.Keys); ! for(int i=0;i<keys.Count;i++) ! { ! key = keys[i]; ! IDisposable d = items[key] as IDisposable; ! if (d != null) ! { ! d.Dispose(); ! } ! } ! } ! catch (Exception ex) ! { ! log.Fatal(string.Format("error during disposing session item with key '{0}'", key), ex); ! } ! } ! } ! } } \ No newline at end of file --- 282,352 ---- /// <seealso cref="Spring.Objects.Factory.IObjectFactory.ConfigureObject(object, string)"/> public override object ConfigureObject(object target, string name) ! { // always configure object relative to contextPath ! using (new HttpContextSwitch(contextPath)) { return base.ConfigureObject(target, name); } ! } ! /// <summary> ! /// Disposes all 'request'-scoped objects at the end of each Request ! /// </summary> ! private static void OnEndRequest(HttpContext context) ! { ! IDictionary items = context.Items[OBJECTTABLEKEY] as IDictionary; ! if (items != null) ! { ! log.Debug("disposing 'request'-scoped item cache"); ! ArrayList keys = new ArrayList(items.Keys); ! for (int i = 0; i < keys.Count; i++) ! { ! IDisposable d = items[keys[i]] as IDisposable; ! if (d != null) ! { ! d.Dispose(); ! } ! } ! } ! } ! ! /// <summary> ! /// Disposes all 'session'-scoped objects at the end of a session ! /// </summary> ! private static void OnEndSession(HttpSessionState session, CacheItemRemovedReason reason) ! { ! IDictionary items = null; ! try ! { ! items = session[OBJECTTABLEKEY] as IDictionary; ! } ! catch ! { // ignore exceptions while accessing session ! } ! if (items != null) ! { ! log.Debug("disposing 'session'-scoped item cache"); ! object key = null; ! try ! { ! ArrayList keys = new ArrayList(items.Keys); ! for (int i = 0; i < keys.Count; i++) ! { ! key = keys[i]; ! IDisposable d = items[key] as IDisposable; ! if (d != null) ! { ! d.Dispose(); ! } ! } ! } ! catch (Exception ex) ! { ! log.Fatal(string.Format("error during disposing session item with key '{0}'", key), ex); ! } ! } ! } ! } } \ No newline at end of file |
From: Erich E. <oak...@us...> - 2007-12-14 18:05:18
|
Update of /cvsroot/springnet/Spring.Net/doc/reference/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv7680 Modified Files: web.xml Log Message: sprnet-821 updated ref Index: web.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/web.xml,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** web.xml 7 Dec 2007 07:32:36 -0000 1.30 --- web.xml 14 Dec 2007 18:05:10 -0000 1.31 *************** *** 1411,1414 **** --- 1411,1440 ---- controls) are updated prior to the actual rendering.</para> </sect3> + + <sect3> + <title>HttpRequestListBindingContainer</title> + + <para> + HttpRequestListBindingContainer extracts posted raw values from the request and populates the specified IList by creating objects + of the type specified and populating each of these objects according to the requestBindings collection. + </para> + <para> + Please checkout the WebQuickStart sample's demo of HttpRequestListBindingContainer. Below + </para> + <para><programlisting>protected override void InitializeDataBindings() + { + // HttpRequestListBindingContainer unbinds specified values from Request -> Productlist + HttpRequestListBindingContainer requestBindings = + new HttpRequestListBindingContainer("sku,name,quantity,price", "Products", typeof(ProductInfo)); + requestBindings.AddBinding("sku", "Sku"); + requestBindings.AddBinding("name", "Name"); + requestBindings.AddBinding("quantity", "Quantity", quantityFormatter); + requestBindings.AddBinding("price", "Price", priceFormatter); + + BindingManager.AddBinding(requestBindings); + }</programlisting></para> + <note>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.</note> + </sect3> </sect2> *************** *** 1492,1496 **** <note> ! 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. </note> </sect2> --- 1518,1522 ---- <note> ! 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. </note> </sect2> |
From: Erich E. <oak...@us...> - 2007-12-14 17:47:35
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/DataBinding In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv769 Modified Files: HttpRequestBindingContainer.cs Log Message: SPRNET-821 Index: HttpRequestBindingContainer.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/DataBinding/HttpRequestBindingContainer.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** HttpRequestBindingContainer.cs 16 Aug 2007 05:42:33 -0000 1.4 --- HttpRequestBindingContainer.cs 14 Dec 2007 17:47:26 -0000 1.5 *************** *** 15,18 **** --- 15,22 ---- /// Binds agroup of HTTP request multi-valued items to the data model. /// </summary> + /// <remarks> + /// Due to the fact, that browsers don't send the values of unchecked checkboxes, you + /// can't use <see cref="HttpRequestListBindingContainer"/> for binding to checkboxes. + /// </remarks> /// <author>Aleksandar Seovic</author> /// <version>$Id$</version> |
From: Erich E. <oak...@us...> - 2007-12-14 16:38:51
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/UI/Controls In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv5113 Modified Files: CheckBoxList.cs Log Message: fixed SPRNET-819, SPRNET-820 Index: CheckBoxList.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/UI/Controls/CheckBoxList.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CheckBoxList.cs 2 Aug 2007 19:49:22 -0000 1.1 --- CheckBoxList.cs 14 Dec 2007 16:38:44 -0000 1.2 *************** *** 37,41 **** /// <author>Erich Eichinger</author> /// <version>$Id$</version> - [ParseChildren(true), PersistChildren(false)] public class CheckBoxList : System.Web.UI.WebControls.CheckBoxList { --- 37,40 ---- |
From: Erich E. <oak...@us...> - 2007-12-14 16:38:29
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/Lists In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv5057/DataBinding/Lists Modified Files: Default.aspx Default.aspx.cs Log Message: fixed SPRNET-819, SPRNET-820 Index: Default.aspx.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/Lists/Default.aspx.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx.cs 19 May 2007 00:23:37 -0000 1.1 --- Default.aspx.cs 14 Dec 2007 16:38:18 -0000 1.2 *************** *** 65,69 **** this.lstHobbies.DataTextField = "Title"; this.lstHobbies.DataValueField = "UniqueKey"; ! if(!IsPostBack) { this.lstHobbies.DataBind(); --- 65,69 ---- this.lstHobbies.DataTextField = "Title"; this.lstHobbies.DataValueField = "UniqueKey"; ! if (!IsPostBack) { this.lstHobbies.DataBind(); Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/Lists/Default.aspx,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Default.aspx 23 Aug 2007 10:37:53 -0000 1.2 --- Default.aspx 14 Dec 2007 16:38:18 -0000 1.3 *************** *** 34,43 **** <tr> <td>Hobbies:</td> ! <td><asp:ListBox id="lstHobbies" runat="server" /></td> </tr> <tr> <td>Favorite Food:</td> <td> ! <asp:CheckBoxList id="lstFavoriteFood" runat="server"> <asp:ListItem value="0">Cheese</asp:ListItem> <asp:ListItem value="1">Noodles</asp:ListItem> --- 34,43 ---- <tr> <td>Hobbies:</td> ! <td><asp:ListBox id="lstHobbies" runat="server" SelectionMode="Multiple" EnableViewState="false" /></td> </tr> <tr> <td>Favorite Food:</td> <td> ! <asp:CheckBoxList id="lstFavoriteFood" runat="server" EnableViewState="false"> <asp:ListItem value="0">Cheese</asp:ListItem> <asp:ListItem value="1">Noodles</asp:ListItem> |
From: Erich E. <oak...@us...> - 2007-12-14 16:38:21
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/RobustEmployeeInfo In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv5057/DataBinding/RobustEmployeeInfo Modified Files: Default.aspx Log Message: fixed SPRNET-819, SPRNET-820 Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/RobustEmployeeInfo/Default.aspx,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Default.aspx 23 Aug 2007 10:37:53 -0000 1.2 --- Default.aspx 14 Dec 2007 16:38:18 -0000 1.3 *************** *** 39,43 **** <td> <asp:TextBox ID="txtId" runat="server" EnableViewState="false" /> ! <spring:ValidationError Provider="id.errors" runat="server" /> </td> </tr> --- 39,43 ---- <td> <asp:TextBox ID="txtId" runat="server" EnableViewState="false" /> ! <spring:ValidationError ID="errId" Provider="id.errors" runat="server" /> </td> </tr> *************** *** 54,58 **** <td> <asp:TextBox ID="txtDOB" runat="server" EnableViewState="false" /> ! <spring:ValidationError Provider="dob.errors" runat="server" /> </td> </tr> --- 54,58 ---- <td> <asp:TextBox ID="txtDOB" runat="server" EnableViewState="false" /> ! <spring:ValidationError ID="errDOB" Provider="dob.errors" runat="server" /> </td> </tr> *************** *** 74,78 **** <td> <asp:TextBox ID="txtSalary" runat="server" EnableViewState="false" /> ! <spring:ValidationError Provider="salary.errors" runat="server" /> </td> </tr> --- 74,78 ---- <td> <asp:TextBox ID="txtSalary" runat="server" EnableViewState="false" /> ! <spring:ValidationError ID="errSalary" Provider="salary.errors" runat="server" /> </td> </tr> |
From: Erich E. <oak...@us...> - 2007-12-14 16:38:21
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/EasyEmployeeInfo In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv5057/DataBinding/EasyEmployeeInfo Modified Files: Default.aspx Default.aspx.cs Log Message: fixed SPRNET-819, SPRNET-820 Index: Default.aspx.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/EasyEmployeeInfo/Default.aspx.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx.cs 3 Dec 2007 16:11:31 -0000 1.1 --- Default.aspx.cs 14 Dec 2007 16:38:17 -0000 1.2 *************** *** 1,4 **** --- 1,5 ---- using System; using System.Diagnostics; + using System.Web.UI.WebControls; /// <summary> *************** *** 15,21 **** } ! protected void Page_Load(object sender, EventArgs e) ! {} protected void btnSave_Click(object sender, EventArgs e) --- 16,48 ---- } ! protected override void OnInitializeControls(EventArgs e) ! { ! base.OnInitializeControls(e); + InitializeHobbiesList(); + } + + private void InitializeHobbiesList() + { + // fill lstHobbies with 'Hobby' items + Hobby[] hobbies = { + new Hobby("1", "Tennis"), + new Hobby("2", "Climbing"), + new Hobby("3", "Sailing"), + new Hobby("4", "Reading") + }; + + this.lstHobbies.SelectionMode = ListSelectionMode.Multiple; + + // assign the list in any case - this is required for DataSourceItemFormatter to be able + // to access Hobby objects + this.lstHobbies.DataSource = hobbies; + this.lstHobbies.DataTextField = "Title"; + this.lstHobbies.DataValueField = "UniqueKey"; + if (!IsPostBack) + { + this.lstHobbies.DataBind(); + } + } protected void btnSave_Click(object sender, EventArgs e) *************** *** 23,27 **** // do something with employee such as: // employeeDao.Save(Employee); ! Debug.Write(Employee); } --- 50,54 ---- // do something with employee such as: // employeeDao.Save(Employee); ! Debug.Write(Employee); } Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/EasyEmployeeInfo/Default.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx 3 Dec 2007 16:11:31 -0000 1.1 --- Default.aspx 14 Dec 2007 16:38:17 -0000 1.2 *************** *** 102,105 **** --- 102,120 ---- </tr> <tr> + <td>Hobbies:</td> + <td><asp:ListBox id="lstHobbies" runat="server" SelectionMode="Multiple" BindingTarget="Employee.Hobbies" /></td> + </tr> + <tr> + <td>Favorite Food:</td> + <td> + <spring:CheckBoxList id="lstFavoriteFood" runat="server" BindingTarget="Employee.FavoriteFood"> + <asp:ListItem value="0">Cheese</asp:ListItem> + <asp:ListItem value="1">Noodles</asp:ListItem> + <asp:ListItem value="2">Fruits</asp:ListItem> + <asp:ListItem value="3">Vegetables</asp:ListItem> + </spring:CheckBoxList> + </td> + </tr> + <tr> <td> </td> <td><asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" /></td> |
From: Erich E. <oak...@us...> - 2007-12-13 21:18:46
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Transaction/Interceptor In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10112/Transaction/Interceptor Modified Files: MatchAlwaysTransactionAttributeSourceTests.cs Added Files: MatchAlwaysTransactionAttributeSourceTests.xml Log Message: added test for SPRNET-818 --- NEW FILE: MatchAlwaysTransactionAttributeSourceTests.xml --- (This appears to be a binary file; contents omitted.) Index: MatchAlwaysTransactionAttributeSourceTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Transaction/Interceptor/MatchAlwaysTransactionAttributeSourceTests.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MatchAlwaysTransactionAttributeSourceTests.cs 17 May 2006 17:48:28 -0000 1.3 --- MatchAlwaysTransactionAttributeSourceTests.cs 13 Dec 2007 21:18:36 -0000 1.4 *************** *** 2,23 **** using System.Data; using NUnit.Framework; namespace Spring.Transaction.Interceptor { ! [TestFixture] ! public class MatchAlwaysTransactionAttributeSourceTests ! { ! [Test] ! public void GetTransactionAttribute() ! { ! MatchAlwaysTransactionAttributeSource tas = new MatchAlwaysTransactionAttributeSource(); ! ITransactionAttribute ta = tas.ReturnTransactionAttribute(typeof(Object).GetMethod("GetHashCode"), null); ! Assert.IsNotNull(ta); ! Assert.IsTrue(TransactionPropagation.Required == ta.PropagationBehavior); ! tas.TransactionAttribute = new DefaultTransactionAttribute(TransactionPropagation.Supports); ! ta = tas.ReturnTransactionAttribute(typeof(DataException).GetType().GetMethod("GetHashCode"), typeof(DataException)); ! Assert.IsNotNull(ta); ! Assert.IsTrue(TransactionPropagation.Supports == ta.PropagationBehavior); ! } ! } } --- 2,38 ---- using System.Data; using NUnit.Framework; + using Spring.Context; + using Spring.Context.Support; namespace Spring.Transaction.Interceptor { ! /// <summary> ! /// Test MatchAlwaysTransactionAttributeSourceTests ! /// </summary> ! /// <author>Mark Pollack</author> ! /// <version>$Id$</version> ! [TestFixture] ! public class MatchAlwaysTransactionAttributeSourceTests ! { ! [Test] ! public void GetTransactionAttribute() ! { ! MatchAlwaysTransactionAttributeSource tas = new MatchAlwaysTransactionAttributeSource(); ! ITransactionAttribute ta = tas.ReturnTransactionAttribute(typeof(Object).GetMethod("GetHashCode"), null); ! Assert.IsNotNull(ta); ! Assert.IsTrue(TransactionPropagation.Required == ta.PropagationBehavior); ! tas.TransactionAttribute = new DefaultTransactionAttribute(TransactionPropagation.Supports); ! ta = tas.ReturnTransactionAttribute(typeof(DataException).GetType().GetMethod("GetHashCode"), typeof(DataException)); ! Assert.IsNotNull(ta); ! Assert.IsTrue(TransactionPropagation.Supports == ta.PropagationBehavior); ! } ! ! [Test, Explicit] ! public void CanConfigureInAppContext() ! { ! IApplicationContext ctx = new XmlApplicationContext("assembly://Spring.Data.Tests/Spring.Transaction.Interceptor/MatchAlwaysTransactionAttributeSourceTests.xml"); ! MatchAlwaysTransactionAttributeSource tas = (MatchAlwaysTransactionAttributeSource) ctx.GetObject("MatchAlwaysTransactionAttributeSource"); ! Assert.AreEqual( TransactionPropagation.RequiresNew, tas.ReturnTransactionAttribute(null, null).PropagationBehavior ); ! } ! } } |
From: Erich E. <oak...@us...> - 2007-12-13 21:18:43
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10112 Modified Files: Spring.Data.Tests.2005.csproj Log Message: added test for SPRNET-818 Index: Spring.Data.Tests.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Spring.Data.Tests.2005.csproj,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** Spring.Data.Tests.2005.csproj 6 Dec 2007 05:48:32 -0000 1.32 --- Spring.Data.Tests.2005.csproj 13 Dec 2007 21:18:34 -0000 1.33 *************** *** 167,170 **** --- 167,171 ---- <EmbeddedResource Include="Data\AutoDeclarativeTxTests.xml" /> <Content Include="Spring.Data.Tests.dll.config" /> + <EmbeddedResource Include="Transaction\Interceptor\MatchAlwaysTransactionAttributeSourceTests.xml" /> <EmbeddedResource Include="Transaction\Config\TxNamespaceParserTests.xml" /> </ItemGroup> |
From: Mark P. <mar...@us...> - 2007-12-08 01:26:16
|
Update of /cvsroot/springnet/Spring.Net In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16782 Modified Files: readme.txt Log Message: change name Index: readme.txt =================================================================== RCS file: /cvsroot/springnet/Spring.Net/readme.txt,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** readme.txt 16 Oct 2007 00:28:49 -0000 1.33 --- readme.txt 8 Dec 2007 01:26:12 -0000 1.34 *************** *** 1,3 **** ! THE SPRING.NET FRAMEWORK, Release 1.1 Release Candidate 1 (RC2) (October 15, 2007) -------------------------------------------------------------------- http://www.springframework.net/ --- 1,3 ---- ! THE SPRING.NET FRAMEWORK, Release 1.1 (December 7, 2007) -------------------------------------------------------------------- http://www.springframework.net/ |
From: Mark P. <mar...@us...> - 2007-12-08 00:05:54
|
Update of /cvsroot/springnet/Spring.Net/doc/reference/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv17822 Modified Files: springair.xml Log Message: misc Index: springair.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/springair.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** springair.xml 7 Dec 2007 23:59:59 -0000 1.5 --- springair.xml 8 Dec 2007 00:05:51 -0000 1.6 *************** *** 211,215 **** <para>The method called when the Search button is clicked will perform ! validation and if it passed validation and additional business logic checks, the next page in the flow is loaded. This is shown in the code below. Notice how much cleaner and more business focused the code reads --- 211,215 ---- <para>The method called when the Search button is clicked will perform ! validation. If validation succeeds as well as additional business logic checks, the next page in the flow is loaded. This is shown in the code below. Notice how much cleaner and more business focused the code reads |
From: Mark P. <mar...@us...> - 2007-12-08 00:02:50
|
Update of /cvsroot/springnet/Spring.Net In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16659 Modified Files: changelog.txt Log Message: Index: changelog.txt =================================================================== RCS file: /cvsroot/springnet/Spring.Net/changelog.txt,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** changelog.txt 7 Dec 2007 13:33:49 -0000 1.31 --- changelog.txt 8 Dec 2007 00:02:47 -0000 1.32 *************** *** 9,12 **** --- 9,13 ---- [SPRNET-448] - TransactionTimeout setting not being applied correctly. [SPRNET-453] - ConversionUtils should use ConvertFromInvariantString if failed to convert string value. + [SPRNET-511] - UrlResource Exists only returns true for file:// [SPRNET-606] - Problems with Attributes in proxy generation [SPRNET-719] - PropertyPlaceholderConfigurer does not replace property values in <list element-type=${prop}> *************** *** 16,22 **** --- 17,25 ---- [SPRNET-760] - StoredProcedure.DeclaredParameters.AddOut("A", OracleType.Cursor); causes double ':' in Oracle10g stored procedure call [SPRNET-761] - Fix use of Nested Transactions in TxScopeTransactionManager. + [SPRNET-767] - Generic AdoTemplate CommandTimeout property does not set corresponding ClassicAdoTemplate property [SPRNET-769] - Resume and throw exception if exception is thrown at start of transaction. [SPRNET-770] - Nested RequiresNew propagaion options not working in AdoPlatformTransaction manager . [SPRNET-778] - AdoExceptionTranslator in HibernateTransactionManager did not have a default value + [SPRNET-779] - NHibernateTransactionManager can not convert AdoAcessException [SPRNET-796] - AdoTemplate not using DbMetadata for CommandBuilderDeriveParamtersMethod [SPRNET-800] - SimpleLoggingAdvice does not correctly check for logging level other than trace. *************** *** 25,28 **** --- 28,32 ---- Improvement + [SPRNET-497] - Print 'resultName's value if Page.SetResult() is called with a non-existant result name [SPRNET-514] - dbproviders.xml configuration should allow for an optional 'DeriveParameters' method. *************** *** 34,48 **** [SPRNET-793] - Add Execute methods missing in Generic.AdoTemplate but present in non-generic version. [SPRNET-797] - Make it such that DefaultTransactionStatus property Rollback can only be set to true Task [SPRNET-203] - Add test coverage for Spring.Net Web module [SPRNET-421] - Document programmatic use of data validation framework ! [SPRNET-457] - Investigate AdoTemplate behavior when contraint is violated. ! [SPRNET-511] - Clean up IResource code/comments [SPRNET-516] - Improve documentation on Spring.Data DataSet functionality [SPRNET-574] - NHibernate and custom loader [SPRNET-590] - Include use of Spring's implementation of NHibernate's ICurrentSessionContext in demo appliation. ! [SPRNET-609] - AOP documentation should describe in detail differences using ProxyTargetType value on ProxyFactoryObject [SPRNET-682] - Change vs.net 2002 solution to be Spring.Net.1.1.2002.sln [SPRNET-708] - Remove "UniqueID" based usercontrol DI sample from web reference docs --- 38,53 ---- [SPRNET-793] - Add Execute methods missing in Generic.AdoTemplate but present in non-generic version. [SPRNET-797] - Make it such that DefaultTransactionStatus property Rollback can only be set to true + [SPRNET-803] - Allow web service base type to be configurable in WebServiceExporter. Task [SPRNET-203] - Add test coverage for Spring.Net Web module + [SPRNET-217] - QuickStart documents for Spring.Air [SPRNET-421] - Document programmatic use of data validation framework ! [SPRNET-457] - ErrorCode translation can produce extraneous UncategorizedDataAccessException [SPRNET-516] - Improve documentation on Spring.Data DataSet functionality [SPRNET-574] - NHibernate and custom loader [SPRNET-590] - Include use of Spring's implementation of NHibernate's ICurrentSessionContext in demo appliation. ! [SPRNET-610] - AOP documentation improvements [SPRNET-682] - Change vs.net 2002 solution to be Spring.Net.1.1.2002.sln [SPRNET-708] - Remove "UniqueID" based usercontrol DI sample from web reference docs |