[Springnet-commits] Spring.Net/doc/reference/src web.xml, 1.30, 1.31
Brought to you by:
aseovic,
markpollack
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> |