You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-framework-reference/src/validation.xml
+14-14
Original file line number
Diff line number
Diff line change
@@ -750,7 +750,7 @@ public final class CustomPropertyEditorRegistrar implements PropertyEditorRegist
750
750
</section>
751
751
</section>
752
752
753
-
<sectionid="core.convert">
753
+
<sectionid="core-convert">
754
754
<title>Spring 3 Type Conversion</title>
755
755
<para>
756
756
Spring 3 introduces a <filename>core.convert</filename> package that provides a general type conversion system.
@@ -983,7 +983,7 @@ public class MyService {
983
983
<sectionid="format">
984
984
<title>Spring 3 Field Formatting</title>
985
985
<para>
986
-
As discussed in the previous section, <linklinkend="core.convert"><filename>core.convert</filename></link> is a general-purpose type conversion system.
986
+
As discussed in the previous section, <linklinkend="core-convert"><filename>core.convert</filename></link> is a general-purpose type conversion system.
987
987
It provides a unified ConversionService API as well as a strongly-typed Converter SPI for implementing conversion logic from one type to another.
988
988
A Spring Container uses this system to bind bean property values.
989
989
In addition, both the Spring Expression Language (SpEL) and DataBinder use this system to bind field values.
@@ -1152,7 +1152,7 @@ public class MyModel {
1152
1152
1153
1153
}]]>
1154
1154
</programlisting>
1155
-
<sectionid="format.annotations.api">
1155
+
<sectionid="format-annotations-api">
1156
1156
<title>Format Annotation API</title>
1157
1157
<para>
1158
1158
A portable format annotation API exists in the <filename>org.springframework.format.annotation</filename> package.
@@ -1259,15 +1259,15 @@ public interface FormatterRegistry {
1259
1259
</para>
1260
1260
</section>
1261
1261
</section>
1262
-
<sectionid="validation.beanvalidation">
1262
+
<sectionid="validation-beanvalidation">
1263
1263
<title>Spring 3 Validation</title>
1264
1264
<para>
1265
1265
Spring 3 introduces several enhancements to its validation support.
1266
1266
First, the JSR-303 Bean Validation API is now fully supported.
1267
1267
Second, when used programatically, Spring's DataBinder can now validate objects as well as bind to them.
1268
1268
Third, Spring MVC now has support for declaratively validating @Controller inputs.
1269
1269
</para>
1270
-
<sectionid="validation.beanvalidation.overview">
1270
+
<sectionid="validation-beanvalidation-overview">
1271
1271
<title>Overview of the JSR-303 Bean Validation API</title>
1272
1272
<para>
1273
1273
JSR-303 standardizes validation constraint declaration and metadata for the Java platform.
@@ -1306,7 +1306,7 @@ public class PersonForm {
1306
1306
To learn how to setup a JSR-303 implementation as a Spring bean, keep reading.
1307
1307
</para>
1308
1308
</section>
1309
-
<sectionid="validation.beanvalidation.spring">
1309
+
<sectionid="validation-beanvalidation-spring">
1310
1310
<title>Configuring a Bean Validation Implementation</title>
1311
1311
<para>
1312
1312
Spring provides full support for the JSR-303 Bean Validation API.
@@ -1323,7 +1323,7 @@ public class PersonForm {
1323
1323
The basic configuration above will trigger JSR-303 to initialize using its default bootstrap mechanism.
1324
1324
A JSR-303 provider, such as Hibernate Validator, is expected to be present in the classpath and will be detected automatically.
<classname>LocalValidatorFactoryBean</classname> implements both <code>javax.validation.Validator</code> and <code>org.springframework.validation.Validator</code>.
To trigger validation of a @Controller input, simply annotate the input argument as @Valid:
@@ -1450,7 +1450,7 @@ public class MyController {
1450
1450
</para>
1451
1451
</note>
1452
1452
</section>
1453
-
<sectionid="validation.mvc.configuring">
1453
+
<sectionid="validation-mvc-configuring">
1454
1454
<title>Configuring a Validator for use by Spring MVC</title>
1455
1455
<para>
1456
1456
The Validator instance invoked when a @Valid method argument is encountered may be configured in two ways.
@@ -1492,7 +1492,7 @@ public class MyController {
1492
1492
]]>
1493
1493
</programlisting>
1494
1494
</section>
1495
-
<sectionid="validation.mvc.jsr303">
1495
+
<sectionid="validation-mvc-jsr303">
1496
1496
<title>Configuring a JSR-303 Validator for use by Spring MVC</title>
1497
1497
<para>
1498
1498
With JSR-303, a single <code>javax.validation.Validator</code> instance typically validates <emphasis>all</emphasis> model objects that declare validation constraints.
0 commit comments