diff --git a/src/asciidoc/web-view.adoc b/src/asciidoc/web-view.adoc index ec969740adb..a62ed5933d5 100644 --- a/src/asciidoc/web-view.adoc +++ b/src/asciidoc/web-view.adoc @@ -67,13 +67,13 @@ The XML counterpart using the MVC namespace is: [source,xml,indent=0] [subs="verbatim,quotes"] ---- - + - + - + ---- [[view-groovymarkup-example]] @@ -311,7 +311,7 @@ configured earlier; #springBind( "command.name" )
+ value="$!status.value"/>
#foreach($error in $status.errorMessages) $error
#end
... @@ -326,15 +326,15 @@ configured earlier; ---- - <#import "/spring.ftl" as spring /> + <#import "/spring.ftl" as spring/> ...
Name: - <@spring.bind "command.name" /> + <@spring.bind "command.name"/>
+ value="${spring.status.value?default("")}"/>
<#list spring.status.errorMessages as error> ${error}

... @@ -537,7 +537,7 @@ model under the name 'cityMap'. ---- ... Town: - <@spring.formRadioButtons "command.address.town", cityMap, "" />

+ <@spring.formRadioButtons "command.address.town", cityMap, ""/>

---- This renders a line of radio buttons, one for each value in `cityMap` using the @@ -622,7 +622,7 @@ In similar fashion, HTML escaping can be specified per field: <#assign htmlEscape = true in spring> <#-- next field will use HTML escaping --> - <@spring.formInput "command.name" /> + <@spring.formInput "command.name"/> <#assign htmlEscape = false in spring> <#-- all future fields will be bound with HTML escaping off --> @@ -768,15 +768,15 @@ look like: - + - +
First Name:
Last Name:
- +
@@ -804,7 +804,7 @@ The generated HTML looks like a standard form: - + @@ -822,15 +822,15 @@ The preceding JSP assumes that the variable name of the form backing object is - + - +
First Name:
Last Name:
- +
@@ -1055,7 +1055,7 @@ This tag renders an HTML 'input' tag with type 'password' using the bound value. Password: - + ---- @@ -1070,7 +1070,7 @@ true, like so. Password: - + ---- @@ -1206,7 +1206,7 @@ happen to be specified as well, the item value property will apply to the map ke the item label property will apply to the map value. -[[view-jsp-formtaglib-textAreatag]] +[[view-jsp-formtaglib-textareatag]] ==== The textarea tag This tag renders an HTML 'textarea'. @@ -1216,8 +1216,8 @@ This tag renders an HTML 'textarea'. ---- Notes: - - + + ---- @@ -1231,7 +1231,7 @@ an unbound hidden value, use the HTML `input` tag with type 'hidden'. [source,xml,indent=0] [subs="verbatim,quotes"] ---- - + ---- @@ -1281,20 +1281,20 @@ The `form.jsp` would look like: - + <%-- Show errors for firstName field --%> - + - + <%-- Show errors for lastName field --%> - +
First Name:
Last Name:
- +
@@ -1324,7 +1324,7 @@ what the HTML would look like: - + @@ -1345,21 +1345,21 @@ field-specific errors next to the fields: [subs="verbatim,quotes"] ---- - + - - + + - - + +
First Name:
Last Name:
- +
@@ -1387,7 +1387,7 @@ The HTML would look like: - + @@ -1543,14 +1543,14 @@ The XML counterpart using MVC namespace is: [source,xml,indent=0] [subs="verbatim,quotes"] ---- - + - + - + ----