You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2017/02/22 07:41:40 UTC

svn commit: r1007124 - in /websites/staging/sling/trunk/content: ./ documentation/bundles/models.html

Author: buildbot
Date: Wed Feb 22 07:41:40 2017
New Revision: 1007124

Log:
Staging update by buildbot for sling

Modified:
    websites/staging/sling/trunk/content/   (props changed)
    websites/staging/sling/trunk/content/documentation/bundles/models.html

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Feb 22 07:41:40 2017
@@ -1 +1 @@
-1783850
+1783973

Modified: websites/staging/sling/trunk/content/documentation/bundles/models.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/bundles/models.html (original)
+++ websites/staging/sling/trunk/content/documentation/bundles/models.html Wed Feb 22 07:41:40 2017
@@ -449,7 +449,7 @@ strategy by using adding <code>defaultIn
 
 <h2 id="sling-validation-since-120">Sling Validation (since 1.2.0)<a class="headerlink" href="#sling-validation-since-120" title="Permanent link">&para;</a></h2>
 <p><a name="validation"><em>See also <a href="https://issues.apache.org/jira/browse/SLING-4161">SLING-4161</a></em></a></p>
-<p>You can use the attribute <code>validation</code> on the Model annotation to enable validation of the resource being used by the Sling model through <a href="/documentation/bundles/validation.html">Sling Validation</a>. That field supports three different values:</p>
+<p>You can use the attribute <code>validation</code> on the Model annotation to call a validation service on the resource being used by the Sling model. That attribute supports three different values:</p>
 <table class="table">
 <thead>
 <tr>
@@ -484,8 +484,8 @@ strategy by using adding <code>defaultIn
 </tr>
 </tbody>
 </table>
-<p>In case the model is not instantiated an appropriate error message is logged (if <code>adaptTo()</code> is used) or an appropriate exception is thrown (if <code>ModelFactory.createModel()</code> is used).
-Validation is only supported on models which are adapted from either <code>Resource</code> or <code>SlingHttpServletRequest</code> and if the Sling Validation Bundle is deployed.</p>
+<p>In case the model is not instantiated an appropriate error message is logged (if <code>adaptTo()</code> is used) or an appropriate exception is thrown (if <code>ModelFactory.createModel()</code> is used).</p>
+<p>The only implementation for this Sling Models validation service is leveraging <a href="/documentation/bundles/validation.html">Sling Validation</a> and is located in the bundle <a href="https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/models/validation-impl/">org.apache.sling.models.validation-impl</a>. Validation is only working on models which are adapted from either <code>Resource</code> or <code>SlingHttpServletRequest</code> and if the Sling Validation Bundle is deployed.</p>
 <h1 id="custom-injectors">Custom Injectors<a class="headerlink" href="#custom-injectors" title="Permanent link">&para;</a></h1>
 <p>To create a custom injector, simply implement the <code>org.apache.sling.models.spi.Injector</code> interface and register your implementation with the OSGi service registry. Please refer to the standard injectors in <a href="http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/models/impl/src/main/java/org/apache/sling/models/impl/injectors/">Subversion</a> for examples.</p>
 <p>Injectors are invoked in order of their service ranking, from lowest to highest. See the table below for the rankings of the standard injectors.</p>
@@ -791,7 +791,7 @@ model, exported as a <code>java.lang.Str
 </pre></div>
 </td></tr></table>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1773335 by kwin on Fri, 9 Dec 2016 08:34:52 +0000
+        Rev. 1783973 by kwin on Wed, 22 Feb 2017 07:41:19 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project