polishing

This commit is contained in:
Sam Brannen 2011-09-17 11:59:46 +00:00
parent 71cc38aaff
commit 8b8be39d9f
1 changed files with 12 additions and 9 deletions

View File

@ -269,17 +269,19 @@
<para>URI template variables from the current request are used in more places: <para>URI template variables from the current request are used in more places:
<itemizedlist> <itemizedlist>
<listitem>URI template variables are used in addition to request parameters <listitem>URI template variables are used in addition to request parameters
when binding a request to @ModelAttribute method arguments.</listitem> when binding a request to <interfacename>@ModelAttribute</interfacename>
method arguments.</listitem>
<listitem>@PathVariable method argument values are merged into the model <listitem>@PathVariable method argument values are merged into the model
before rendering except in views that generate content in an automated before rendering, except in views that generate content in an automated
fashion such as JSON serialization an XML marshalling.</listitem> fashion such as JSON serialization or XML marshalling.</listitem>
<listitem>A redirect string can contain placeholders for URI variables <listitem>A redirect string can contain placeholders for URI variables
(e.g. <literal>"redirect:/blog/{year}/{month}"</literal>). When expanding (e.g. <literal>"redirect:/blog/{year}/{month}"</literal>). When expanding
the placeholders, URI template variables from the current request are the placeholders, URI template variables from the current request are
automatically considered.</listitem> automatically considered.</listitem>
<listitem>An @ModelAttribute method argument can be instantiated from <listitem>An <interfacename>@ModelAttribute</interfacename> method argument
a URI template variable provided there is a registered Converter or can be instantiated from a URI template variable provided there is a
PropertyEditor to convert from a String to the target object type.</listitem> registered Converter or PropertyEditor to convert from a String to the
target object type.</listitem>
</itemizedlist> </itemizedlist>
</para> </para>
</section> </section>
@ -290,15 +292,16 @@
can be annotated with <interface>@Valid</interface> to invoke automatic can be annotated with <interface>@Valid</interface> to invoke automatic
validation similar to the support for validation similar to the support for
<interface>@ModelAttribute</interface> method arguments. <interface>@ModelAttribute</interface> method arguments.
The resulting MethodArgumentNotValidException is handled in the A resulting <classname>MethodArgumentNotValidException</classname> is
DefaultHandlerExceptionResolver and results in 400 response code.</para> handled in the <classname>DefaultHandlerExceptionResolver</classname>
and results in a <literal>400</literal> response code.</para>
</section> </section>
<section> <section>
<title><interfacename>@RequestPart</interfacename> Annotation On Controller Method Arguments</title> <title><interfacename>@RequestPart</interfacename> Annotation On Controller Method Arguments</title>
<para>This new annotation provides access to the content of a <para>This new annotation provides access to the content of a
"multipart/form-data" request part. "multipart/form-data" request part.
See <xref linkend="mvc-multipart-forms-non-browsers" /> and See <xref linkend="mvc-multipart-forms-non-browsers" /> and
<xref linkend="mvc-multipart"/></para> <xref linkend="mvc-multipart"/>.</para>
</section> </section>
</section> </section>
</chapter> </chapter>