Skip to content

Commit 14b6914

Browse files
author
Keith Donald
committedDec 11, 2009
file names based on section id now; updated sec ids to match conventions
1 parent b673087 commit 14b6914

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed
 

‎spring-framework-reference/src/new-in-3.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ public class AppConfig {
386386
<title>General purpose type conversion system and field formatting
387387
system</title>
388388

389-
<para>A general purpose <link linkend="core.convert">type conversion
389+
<para>A general purpose <link linkend="core-convert">type conversion
390390
system</link> has been introduced. The system is currently used by SpEL
391391
for type conversion, and may also be used by a Spring Container and DataBinder when
392392
binding bean property values.</para>
@@ -456,7 +456,7 @@ public class AppConfig {
456456
<section id="new-feature-validation">
457457
<title>Declarative model validation</title>
458458

459-
<para>Several <link linkend="validation.beanvalidation">validation enhancements</link>,
459+
<para>Several <link linkend="validation-beanvalidation">validation enhancements</link>,
460460
including JSR 303 support that uses Hibernate Validator as the default provider.</para>
461461
</section>
462462

‎spring-framework-reference/src/validation.xml

+14-14
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ public final class CustomPropertyEditorRegistrar implements PropertyEditorRegist
750750
</section>
751751
</section>
752752

753-
<section id="core.convert">
753+
<section id="core-convert">
754754
<title>Spring 3 Type Conversion</title>
755755
<para>
756756
Spring 3 introduces a <filename>core.convert</filename> package that provides a general type conversion system.
@@ -983,7 +983,7 @@ public class MyService {
983983
<section id="format">
984984
<title>Spring 3 Field Formatting</title>
985985
<para>
986-
As discussed in the previous section, <link linkend="core.convert"><filename>core.convert</filename></link> is a general-purpose type conversion system.
986+
As discussed in the previous section, <link linkend="core-convert"><filename>core.convert</filename></link> is a general-purpose type conversion system.
987987
It provides a unified ConversionService API as well as a strongly-typed Converter SPI for implementing conversion logic from one type to another.
988988
A Spring Container uses this system to bind bean property values.
989989
In addition, both the Spring Expression Language (SpEL) and DataBinder use this system to bind field values.
@@ -1152,7 +1152,7 @@ public class MyModel {
11521152
11531153
}]]>
11541154
</programlisting>
1155-
<section id="format.annotations.api">
1155+
<section id="format-annotations-api">
11561156
<title>Format Annotation API</title>
11571157
<para>
11581158
A portable format annotation API exists in the <filename>org.springframework.format.annotation</filename> package.
@@ -1259,15 +1259,15 @@ public interface FormatterRegistry {
12591259
</para>
12601260
</section>
12611261
</section>
1262-
<section id="validation.beanvalidation">
1262+
<section id="validation-beanvalidation">
12631263
<title>Spring 3 Validation</title>
12641264
<para>
12651265
Spring 3 introduces several enhancements to its validation support.
12661266
First, the JSR-303 Bean Validation API is now fully supported.
12671267
Second, when used programatically, Spring's DataBinder can now validate objects as well as bind to them.
12681268
Third, Spring MVC now has support for declaratively validating @Controller inputs.
12691269
</para>
1270-
<section id="validation.beanvalidation.overview">
1270+
<section id="validation-beanvalidation-overview">
12711271
<title>Overview of the JSR-303 Bean Validation API</title>
12721272
<para>
12731273
JSR-303 standardizes validation constraint declaration and metadata for the Java platform.
@@ -1306,7 +1306,7 @@ public class PersonForm {
13061306
To learn how to setup a JSR-303 implementation as a Spring bean, keep reading.
13071307
</para>
13081308
</section>
1309-
<section id="validation.beanvalidation.spring">
1309+
<section id="validation-beanvalidation-spring">
13101310
<title>Configuring a Bean Validation Implementation</title>
13111311
<para>
13121312
Spring provides full support for the JSR-303 Bean Validation API.
@@ -1323,7 +1323,7 @@ public class PersonForm {
13231323
The basic configuration above will trigger JSR-303 to initialize using its default bootstrap mechanism.
13241324
A JSR-303 provider, such as Hibernate Validator, is expected to be present in the classpath and will be detected automatically.
13251325
</para>
1326-
<section id="validation.beanvalidation.spring.inject">
1326+
<section id="validation-beanvalidation-spring-inject">
13271327
<title>Injecting a Validator</title>
13281328
<para>
13291329
<classname>LocalValidatorFactoryBean</classname> implements both <code>javax.validation.Validator</code> and <code>org.springframework.validation.Validator</code>.
@@ -1355,7 +1355,7 @@ public class MyService {
13551355
13561356
}]]></programlisting>
13571357
</section>
1358-
<section id="validation.beanvalidation.spring.constraints">
1358+
<section id="validation-beanvalidation-spring-constraints">
13591359
<title>Configuring Custom Constraints</title>
13601360
<para>
13611361
Each JSR-303 validation constraint consists of two parts.
@@ -1391,7 +1391,7 @@ public class MyConstraintValidator implements ConstraintValidator {
13911391
As you can see, a ConstraintValidator implementation may have its dependencies @Autowired like any other Spring bean.
13921392
</para>
13931393
</section>
1394-
<section id="validation.beanvalidation.spring.other">
1394+
<section id="validation-beanvalidation-spring-other">
13951395
<title>Additional Configuration Options</title>
13961396
<para>
13971397
The default <classname>LocalValidatorFactoryBean</classname> configuration should prove sufficient for most cases.
@@ -1400,7 +1400,7 @@ public class MyConstraintValidator implements ConstraintValidator {
14001400
</para>
14011401
</section>
14021402
</section>
1403-
<section id="validation.binder">
1403+
<section id="validation-binder">
14041404
<title>Configuring a DataBinder</title>
14051405
<para>
14061406
Since Spring 3, a DataBinder instance can be configured with a Validator.
@@ -1424,13 +1424,13 @@ binder.validate();
14241424
BindingResult results = binder.getBindingResult();
14251425
</programlisting>
14261426
</section>
1427-
<section id="validation.mvc">
1427+
<section id="validation-mvc">
14281428
<title>Spring MVC 3 Validation</title>
14291429
<para>
14301430
Beginning with Spring 3, Spring MVC has the ability to automatically validate @Controller inputs.
14311431
In previous versions it was up to the developer to manually invoke validation logic.
14321432
</para>
1433-
<section id="validation.mvc.triggering">
1433+
<section id="validation-mvc-triggering">
14341434
<title>Triggering @Controller Input Validation</title>
14351435
<para>
14361436
To trigger validation of a @Controller input, simply annotate the input argument as @Valid:
@@ -1450,7 +1450,7 @@ public class MyController {
14501450
</para>
14511451
</note>
14521452
</section>
1453-
<section id="validation.mvc.configuring">
1453+
<section id="validation-mvc-configuring">
14541454
<title>Configuring a Validator for use by Spring MVC</title>
14551455
<para>
14561456
The Validator instance invoked when a @Valid method argument is encountered may be configured in two ways.
@@ -1492,7 +1492,7 @@ public class MyController {
14921492
]]>
14931493
</programlisting>
14941494
</section>
1495-
<section id="validation.mvc.jsr303">
1495+
<section id="validation-mvc-jsr303">
14961496
<title>Configuring a JSR-303 Validator for use by Spring MVC</title>
14971497
<para>
14981498
With JSR-303, a single <code>javax.validation.Validator</code> instance typically validates <emphasis>all</emphasis> model objects that declare validation constraints.

‎spring-framework-reference/styles/html/custom.xsl

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<xsl:param name="use.extensions">1</xsl:param>
2929
<xsl:param name="tablecolumns.extension">0</xsl:param>
3030
<xsl:param name="callout.extensions">1</xsl:param>
31-
3231
<!-- Activate Graphics -->
3332
<xsl:param name="admon.graphics" select="1"/>
3433
<xsl:param name="admon.graphics.path">images/</xsl:param>
@@ -46,6 +45,7 @@
4645
<xsl:param name="admonition.title.properties">text-align: left</xsl:param>
4746

4847
<!-- Label Chapters and Sections (numbering) -->
48+
<xsl:param name="use.id.as.filename" select="1"/>
4949
<xsl:param name="chapter.autolabel" select="1"/>
5050
<xsl:param name="section.autolabel" select="1"/>
5151
<xsl:param name="section.autolabel.max.depth" select="3"/>

0 commit comments

Comments
 (0)