From d3b1209ce1008d2cff00ca5b328064ddf3443aa2 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 24 Oct 2009 19:25:09 +0000 Subject: [PATCH] Polishing the Portlet sections of the reference manual. git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2177 50f2f4bb-b051-0410-bef5-90022cba6387 --- spring-framework-reference/src/portlet.xml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/spring-framework-reference/src/portlet.xml b/spring-framework-reference/src/portlet.xml index f55371141b5..3329925f52d 100644 --- a/spring-framework-reference/src/portlet.xml +++ b/spring-framework-reference/src/portlet.xml @@ -1577,7 +1577,7 @@ public class PetSitesEditController { - Any other return type will be considered as single model attribute + Any other return type will be considered a single model attribute to be exposed to the view, using the attribute name specified through @ModelAttribute at the method level (or the default attribute name based on the return type's class name otherwise). The model @@ -1617,7 +1617,7 @@ public class PetSitesEditController { can specify that a parameter is optional by setting @RequestParam's required attribute to false (e.g., - @RequestParam(value="id", required="false")). + @RequestParam(value="id", required=false)).
@@ -1628,7 +1628,7 @@ public class PetSitesEditController { controllers. When placed on a method parameter, @ModelAttribute is used to map a model attribute to the specific, annotated method parameter (see the - processSubmit() method below). This is how the + populateSite() method below). This is how the controller gets a reference to the object holding the data entered in the form. In addition, the parameter can be declared as the specific type of the form backing object rather than as a generic @@ -1637,7 +1637,7 @@ public class PetSitesEditController { @ModelAttribute is also used at the method level to provide reference data for the model (see - the populatePetTypes() method below). For this usage + the getPetSites() method below). For this usage the method signature can contain the same types as documented above for the @RequestMapping annotation. @@ -1685,8 +1685,9 @@ public class PetSitesEditController { @SessionAttributes The type-level @SessionAttributes - annotation declares session attributes used by a specific handler. This - will typically list the names of model attributes which should be + annotation declares session attributes used by a specific handler. + This will typically list the names of model attributes or types of + model attributes which should be transparently stored in the session or some conversational storage, serving as form-backing beans between subsequent requests.