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 {
<title>General purpose type conversion system and field formatting <title>General purpose type conversion system and field formatting
system</title> 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 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 for type conversion, and may also be used by a Spring Container and DataBinder when
binding bean property values.</para> binding bean property values.</para>
@ -456,7 +456,7 @@ public class AppConfig {
<section id="new-feature-validation"> <section id="new-feature-validation">
<title>Declarative model validation</title> <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> including JSR 303 support that uses Hibernate Validator as the default provider.</para>
</section> </section>

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

@ -750,7 +750,7 @@ public final class CustomPropertyEditorRegistrar implements PropertyEditorRegist
</section> </section>
</section> </section>
<section id="core.convert"> <section id="core-convert">
<title>Spring 3 Type Conversion</title> <title>Spring 3 Type Conversion</title>
<para> <para>
Spring 3 introduces a <filename>core.convert</filename> package that provides a general type conversion system. Spring 3 introduces a <filename>core.convert</filename> package that provides a general type conversion system.
@ -983,7 +983,7 @@ public class MyService {
<section id="format"> <section id="format">
<title>Spring 3 Field Formatting</title> <title>Spring 3 Field Formatting</title>
<para> <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. 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. 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. In addition, both the Spring Expression Language (SpEL) and DataBinder use this system to bind field values.
@ -1152,7 +1152,7 @@ public class MyModel {
}]]> }]]>
</programlisting> </programlisting>
<section id="format.annotations.api"> <section id="format-annotations-api">
<title>Format Annotation API</title> <title>Format Annotation API</title>
<para> <para>
A portable format annotation API exists in the <filename>org.springframework.format.annotation</filename> package. A portable format annotation API exists in the <filename>org.springframework.format.annotation</filename> package.
@ -1259,7 +1259,7 @@ public interface FormatterRegistry {
</para> </para>
</section> </section>
</section> </section>
<section id="validation.beanvalidation"> <section id="validation-beanvalidation">
<title>Spring 3 Validation</title> <title>Spring 3 Validation</title>
<para> <para>
Spring 3 introduces several enhancements to its validation support. Spring 3 introduces several enhancements to its validation support.
@ -1267,7 +1267,7 @@ public interface FormatterRegistry {
Second, when used programatically, Spring's DataBinder can now validate objects as well as bind to them. 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. Third, Spring MVC now has support for declaratively validating @Controller inputs.
</para> </para>
<section id="validation.beanvalidation.overview"> <section id="validation-beanvalidation-overview">
<title>Overview of the JSR-303 Bean Validation API</title> <title>Overview of the JSR-303 Bean Validation API</title>
<para> <para>
JSR-303 standardizes validation constraint declaration and metadata for the Java platform. JSR-303 standardizes validation constraint declaration and metadata for the Java platform.
@ -1306,7 +1306,7 @@ public class PersonForm {
To learn how to setup a JSR-303 implementation as a Spring bean, keep reading. To learn how to setup a JSR-303 implementation as a Spring bean, keep reading.
</para> </para>
</section> </section>
<section id="validation.beanvalidation.spring"> <section id="validation-beanvalidation-spring">
<title>Configuring a Bean Validation Implementation</title> <title>Configuring a Bean Validation Implementation</title>
<para> <para>
Spring provides full support for the JSR-303 Bean Validation API. Spring provides full support for the JSR-303 Bean Validation API.
@ -1323,7 +1323,7 @@ public class PersonForm {
The basic configuration above will trigger JSR-303 to initialize using its default bootstrap mechanism. 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. A JSR-303 provider, such as Hibernate Validator, is expected to be present in the classpath and will be detected automatically.
</para> </para>
<section id="validation.beanvalidation.spring.inject"> <section id="validation-beanvalidation-spring-inject">
<title>Injecting a Validator</title> <title>Injecting a Validator</title>
<para> <para>
<classname>LocalValidatorFactoryBean</classname> implements both <code>javax.validation.Validator</code> and <code>org.springframework.validation.Validator</code>. <classname>LocalValidatorFactoryBean</classname> implements both <code>javax.validation.Validator</code> and <code>org.springframework.validation.Validator</code>.
@ -1355,7 +1355,7 @@ public class MyService {
}]]></programlisting> }]]></programlisting>
</section> </section>
<section id="validation.beanvalidation.spring.constraints"> <section id="validation-beanvalidation-spring-constraints">
<title>Configuring Custom Constraints</title> <title>Configuring Custom Constraints</title>
<para> <para>
Each JSR-303 validation constraint consists of two parts. Each JSR-303 validation constraint consists of two parts.
@ -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. As you can see, a ConstraintValidator implementation may have its dependencies @Autowired like any other Spring bean.
</para> </para>
</section> </section>
<section id="validation.beanvalidation.spring.other"> <section id="validation-beanvalidation-spring-other">
<title>Additional Configuration Options</title> <title>Additional Configuration Options</title>
<para> <para>
The default <classname>LocalValidatorFactoryBean</classname> configuration should prove sufficient for most cases. The default <classname>LocalValidatorFactoryBean</classname> configuration should prove sufficient for most cases.
@ -1400,7 +1400,7 @@ public class MyConstraintValidator implements ConstraintValidator {
</para> </para>
</section> </section>
</section> </section>
<section id="validation.binder"> <section id="validation-binder">
<title>Configuring a DataBinder</title> <title>Configuring a DataBinder</title>
<para> <para>
Since Spring 3, a DataBinder instance can be configured with a Validator. Since Spring 3, a DataBinder instance can be configured with a Validator.
@ -1424,13 +1424,13 @@ binder.validate();
BindingResult results = binder.getBindingResult(); BindingResult results = binder.getBindingResult();
</programlisting> </programlisting>
</section> </section>
<section id="validation.mvc"> <section id="validation-mvc">
<title>Spring MVC 3 Validation</title> <title>Spring MVC 3 Validation</title>
<para> <para>
Beginning with Spring 3, Spring MVC has the ability to automatically validate @Controller inputs. 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. In previous versions it was up to the developer to manually invoke validation logic.
</para> </para>
<section id="validation.mvc.triggering"> <section id="validation-mvc-triggering">
<title>Triggering @Controller Input Validation</title> <title>Triggering @Controller Input Validation</title>
<para> <para>
To trigger validation of a @Controller input, simply annotate the input argument as @Valid: To trigger validation of a @Controller input, simply annotate the input argument as @Valid:
@ -1450,7 +1450,7 @@ public class MyController {
</para> </para>
</note> </note>
</section> </section>
<section id="validation.mvc.configuring"> <section id="validation-mvc-configuring">
<title>Configuring a Validator for use by Spring MVC</title> <title>Configuring a Validator for use by Spring MVC</title>
<para> <para>
The Validator instance invoked when a @Valid method argument is encountered may be configured in two ways. The Validator instance invoked when a @Valid method argument is encountered may be configured in two ways.
@ -1492,7 +1492,7 @@ public class MyController {
]]> ]]>
</programlisting> </programlisting>
</section> </section>
<section id="validation.mvc.jsr303"> <section id="validation-mvc-jsr303">
<title>Configuring a JSR-303 Validator for use by Spring MVC</title> <title>Configuring a JSR-303 Validator for use by Spring MVC</title>
<para> <para>
With JSR-303, a single <code>javax.validation.Validator</code> instance typically validates <emphasis>all</emphasis> model objects that declare validation constraints. 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 @@
<xsl:param name="use.extensions">1</xsl:param> <xsl:param name="use.extensions">1</xsl:param>
<xsl:param name="tablecolumns.extension">0</xsl:param> <xsl:param name="tablecolumns.extension">0</xsl:param>
<xsl:param name="callout.extensions">1</xsl:param> <xsl:param name="callout.extensions">1</xsl:param>
<!-- Activate Graphics --> <!-- Activate Graphics -->
<xsl:param name="admon.graphics" select="1"/> <xsl:param name="admon.graphics" select="1"/>
<xsl:param name="admon.graphics.path">images/</xsl:param> <xsl:param name="admon.graphics.path">images/</xsl:param>
@ -46,6 +45,7 @@
<xsl:param name="admonition.title.properties">text-align: left</xsl:param> <xsl:param name="admonition.title.properties">text-align: left</xsl:param>
<!-- Label Chapters and Sections (numbering) --> <!-- Label Chapters and Sections (numbering) -->
<xsl:param name="use.id.as.filename" select="1"/>
<xsl:param name="chapter.autolabel" select="1"/> <xsl:param name="chapter.autolabel" select="1"/>
<xsl:param name="section.autolabel" select="1"/> <xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.autolabel.max.depth" select="3"/> <xsl:param name="section.autolabel.max.depth" select="3"/>

Loading…
Cancel
Save