Browse Source

file names based on section id now; updated sec ids to match conventions

pull/23217/head
Keith Donald 15 years ago
parent
commit
14b69148f9
  1. 4
      spring-framework-reference/src/new-in-3.xml
  2. 28
      spring-framework-reference/src/validation.xml
  3. 2
      spring-framework-reference/styles/html/custom.xsl

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

@ -386,7 +386,7 @@ public class AppConfig { @@ -386,7 +386,7 @@ public class AppConfig {
<title>General purpose type conversion system and field formatting
system</title>
<para>A general purpose <link linkend="core.convert">type conversion
<para>A general purpose <link linkend="core-convert">type conversion
system</link> has been introduced. The system is currently used by SpEL
for type conversion, and may also be used by a Spring Container and DataBinder when
binding bean property values.</para>
@ -456,7 +456,7 @@ public class AppConfig { @@ -456,7 +456,7 @@ public class AppConfig {
<section id="new-feature-validation">
<title>Declarative model validation</title>
<para>Several <link linkend="validation.beanvalidation">validation enhancements</link>,
<para>Several <link linkend="validation-beanvalidation">validation enhancements</link>,
including JSR 303 support that uses Hibernate Validator as the default provider.</para>
</section>

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

@ -750,7 +750,7 @@ public final class CustomPropertyEditorRegistrar implements PropertyEditorRegist @@ -750,7 +750,7 @@ public final class CustomPropertyEditorRegistrar implements PropertyEditorRegist
</section>
</section>
<section id="core.convert">
<section id="core-convert">
<title>Spring 3 Type Conversion</title>
<para>
Spring 3 introduces a <filename>core.convert</filename> package that provides a general type conversion system.
@ -983,7 +983,7 @@ public class MyService { @@ -983,7 +983,7 @@ public class MyService {
<section id="format">
<title>Spring 3 Field Formatting</title>
<para>
As discussed in the previous section, <link linkend="core.convert"><filename>core.convert</filename></link> is a general-purpose type conversion system.
As discussed in the previous section, <link linkend="core-convert"><filename>core.convert</filename></link> is a general-purpose type conversion system.
It provides a unified ConversionService API as well as a strongly-typed Converter SPI for implementing conversion logic from one type to another.
A Spring Container uses this system to bind bean property values.
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,7 +1152,7 @@ public class MyModel {
}]]>
</programlisting>
<section id="format.annotations.api">
<section id="format-annotations-api">
<title>Format Annotation API</title>
<para>
A portable format annotation API exists in the <filename>org.springframework.format.annotation</filename> package.
@ -1259,7 +1259,7 @@ public interface FormatterRegistry { @@ -1259,7 +1259,7 @@ public interface FormatterRegistry {
</para>
</section>
</section>
<section id="validation.beanvalidation">
<section id="validation-beanvalidation">
<title>Spring 3 Validation</title>
<para>
Spring 3 introduces several enhancements to its validation support.
@ -1267,7 +1267,7 @@ public interface FormatterRegistry { @@ -1267,7 +1267,7 @@ public interface FormatterRegistry {
Second, when used programatically, Spring's DataBinder can now validate objects as well as bind to them.
Third, Spring MVC now has support for declaratively validating @Controller inputs.
</para>
<section id="validation.beanvalidation.overview">
<section id="validation-beanvalidation-overview">
<title>Overview of the JSR-303 Bean Validation API</title>
<para>
JSR-303 standardizes validation constraint declaration and metadata for the Java platform.
@ -1306,7 +1306,7 @@ public class PersonForm { @@ -1306,7 +1306,7 @@ public class PersonForm {
To learn how to setup a JSR-303 implementation as a Spring bean, keep reading.
</para>
</section>
<section id="validation.beanvalidation.spring">
<section id="validation-beanvalidation-spring">
<title>Configuring a Bean Validation Implementation</title>
<para>
Spring provides full support for the JSR-303 Bean Validation API.
@ -1323,7 +1323,7 @@ public class PersonForm { @@ -1323,7 +1323,7 @@ public class PersonForm {
The basic configuration above will trigger JSR-303 to initialize using its default bootstrap mechanism.
A JSR-303 provider, such as Hibernate Validator, is expected to be present in the classpath and will be detected automatically.
</para>
<section id="validation.beanvalidation.spring.inject">
<section id="validation-beanvalidation-spring-inject">
<title>Injecting a Validator</title>
<para>
<classname>LocalValidatorFactoryBean</classname> implements both <code>javax.validation.Validator</code> and <code>org.springframework.validation.Validator</code>.
@ -1355,7 +1355,7 @@ public class MyService { @@ -1355,7 +1355,7 @@ public class MyService {
}]]></programlisting>
</section>
<section id="validation.beanvalidation.spring.constraints">
<section id="validation-beanvalidation-spring-constraints">
<title>Configuring Custom Constraints</title>
<para>
Each JSR-303 validation constraint consists of two parts.
@ -1391,7 +1391,7 @@ public class MyConstraintValidator implements ConstraintValidator { @@ -1391,7 +1391,7 @@ public class MyConstraintValidator implements ConstraintValidator {
As you can see, a ConstraintValidator implementation may have its dependencies @Autowired like any other Spring bean.
</para>
</section>
<section id="validation.beanvalidation.spring.other">
<section id="validation-beanvalidation-spring-other">
<title>Additional Configuration Options</title>
<para>
The default <classname>LocalValidatorFactoryBean</classname> configuration should prove sufficient for most cases.
@ -1400,7 +1400,7 @@ public class MyConstraintValidator implements ConstraintValidator { @@ -1400,7 +1400,7 @@ public class MyConstraintValidator implements ConstraintValidator {
</para>
</section>
</section>
<section id="validation.binder">
<section id="validation-binder">
<title>Configuring a DataBinder</title>
<para>
Since Spring 3, a DataBinder instance can be configured with a Validator.
@ -1424,13 +1424,13 @@ binder.validate(); @@ -1424,13 +1424,13 @@ binder.validate();
BindingResult results = binder.getBindingResult();
</programlisting>
</section>
<section id="validation.mvc">
<section id="validation-mvc">
<title>Spring MVC 3 Validation</title>
<para>
Beginning with Spring 3, Spring MVC has the ability to automatically validate @Controller inputs.
In previous versions it was up to the developer to manually invoke validation logic.
</para>
<section id="validation.mvc.triggering">
<section id="validation-mvc-triggering">
<title>Triggering @Controller Input Validation</title>
<para>
To trigger validation of a @Controller input, simply annotate the input argument as @Valid:
@ -1450,7 +1450,7 @@ public class MyController { @@ -1450,7 +1450,7 @@ public class MyController {
</para>
</note>
</section>
<section id="validation.mvc.configuring">
<section id="validation-mvc-configuring">
<title>Configuring a Validator for use by Spring MVC</title>
<para>
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,7 +1492,7 @@ public class MyController {
]]>
</programlisting>
</section>
<section id="validation.mvc.jsr303">
<section id="validation-mvc-jsr303">
<title>Configuring a JSR-303 Validator for use by Spring MVC</title>
<para>
With JSR-303, a single <code>javax.validation.Validator</code> instance typically validates <emphasis>all</emphasis> model objects that declare validation constraints.

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

@ -28,7 +28,6 @@ @@ -28,7 +28,6 @@
<xsl:param name="use.extensions">1</xsl:param>
<xsl:param name="tablecolumns.extension">0</xsl:param>
<xsl:param name="callout.extensions">1</xsl:param>
<!-- Activate Graphics -->
<xsl:param name="admon.graphics" select="1"/>
<xsl:param name="admon.graphics.path">images/</xsl:param>
@ -46,6 +45,7 @@ @@ -46,6 +45,7 @@
<xsl:param name="admonition.title.properties">text-align: left</xsl:param>
<!-- Label Chapters and Sections (numbering) -->
<xsl:param name="use.id.as.filename" select="1"/>
<xsl:param name="chapter.autolabel" select="1"/>
<xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.autolabel.max.depth" select="3"/>

Loading…
Cancel
Save