Author: buildbot
Date: Mon Jul 15 00:18:55 2013
New Revision: 869510

Log:
Staging update by buildbot for deltaspike

Added:
    websites/staging/deltaspike/trunk/content/bean-validation.html
Modified:
    websites/staging/deltaspike/trunk/content/   (props changed)
    websites/staging/deltaspike/trunk/content/documentation.html

Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Jul 15 00:18:55 2013
@@ -1 +1 @@
-1503080
+1503086

Added: websites/staging/deltaspike/trunk/content/bean-validation.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/bean-validation.html (added)
+++ websites/staging/deltaspike/trunk/content/bean-validation.html Mon Jul 15 
00:18:55 2013
@@ -0,0 +1,141 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="description" content="deltaspike-generate-pages">
+    <meta name="author" content="chm">
+
+    <title>Apache DeltaSpike - Bean Validation Module</title>
+
+    
+
+    
+    <!-- Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license agreements.  See the NOTICE file distributed with this work 
for additional information regarding copyright ownership.  The ASF licenses 
this file to you under the Apache License, Version 2.0 (the 
&quot;License&quot;); you may not use this file except in compliance with the 
License.  You may obtain a copy of the License at . 
http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law 
or agreed to in writing, software distributed under the License is distributed 
on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
either express or implied.  See the License for the specific language governing 
permissions and limitations under the License. -->
+
+    <!-- Styles -->
+    
+    <link href="./resources/css/bootstrap.css" rel="stylesheet">    
+    <!--<link href="./resources/css/prettify.css" rel="stylesheet" /> -->
+    <link href="./resources/css/codehilite.css" rel="stylesheet" />
+    <link href="./resources/css/bootstrap-responsive.css" rel="stylesheet">
+    <style type="text/css">
+        body {
+            padding-top: 60px;
+            padding-bottom: 40px;
+        }
+    </style>
+       <script type="text/javascript">
+
+         var _gaq = _gaq || [];
+         _gaq.push(['_setAccount', 'UA-36103647-1']);
+         _gaq.push(['_trackPageview']);
+       
+         (function() {
+               var ga = document.createElement('script'); ga.type = 
'text/javascript'; ga.async = true;
+               ga.src = ('https:' == document.location.protocol ? 
'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+               var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
+         })();
+       
+       </script>
+</head>
+
+<body>
+
+    <div class="navbar navbar-fixed-top">
+        <div class="navbar-inner">
+            <div class="container">
+                <a class="btn btn-navbar" data-toggle="collapse" 
data-target=".nav-collapse">
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </a>
+                <a class="brand" href="index.html"><img 
src="./resources/images/deltaspike-logo-medium.png"/></a>
+                <div class="nav-collapse">
+                    <ul class="nav">
+                        <li class="active"><a href="./index.html">Home</a></li>
+                        <li><a 
href="./documentation.html">Documentation</a></li>
+                        <li><a href="./source.html">Source</a></li>
+                        <!-- <li><a href="./download.html">Download</a></li> 
-->
+                        <li><a href="./community.html">Community</a></li>
+                        <!-- <li><a href="./support.html">Support</a></li>  -->
+                        <li><a href="./news.html">News</a></li>
+                        <li><a href="./migration-guide.html">Migration</a></li>
+                    </ul>
+                </div><!--/.nav-collapse -->
+                <form id="search-form" action="http://www.google.com/search"; 
method="get"  class="navbar-search pull-right" >
+                    <input value="deltaspike.apache.org" name="sitesearch" 
type="hidden"/>
+                    <input class="search-query" name="q" id="query" 
type="text" />
+                </form>
+            </div>
+        </div>
+    </div>
+
+    <div class="container">
+      <div class="row">
+          <div class="span12">
+              <div class="page-title">
+                <h1>Bean Validation Module</h1>
+              </div>
+              <div class="toc">
+<ul>
+<li><a href="#introduction">Introduction</a><ul>
+<li><a href="#scoping">Scoping</a></li>
+<li><a href="#code-requirements">Code Requirements</a></li>
+</ul>
+</li>
+</ul>
+</div>
+<hr />
+<h1 id="introduction">Introduction</h1>
+<p>The main feature of the Bean Validation module is to provide CDI 
integration in to <code>ConstraintValidator</code>s.  This allows you to inject 
CDI objects, EJBs etc in to your validators.</p>
+<h2 id="scoping">Scoping</h2>
+<p><code>ConstraintValidator</code>s will inherit whatever scope as defined in 
the bean class.  Inherently, a <code>ConstraintValidator</code> may be invoked 
by multiple threads so please keep that in mind when using them.  You should 
consider using at least <code>RequestScoped</code> validators.</p>
+<h2 id="code-requirements">Code Requirements</h2>
+<p>There are no compile dependencies to use the Bean Validation module.  You 
simply need to override the factory, either in XML or in Java:</p>
+<div class="codehilite"><pre><span class="n">Validation</span><span 
class="o">.</span><span class="na">byDefaultProvider</span><span 
class="o">().</span><span class="na">configure</span><span 
class="o">().</span><span class="na">constraintValidatorFactory</span><span 
class="o">(</span><span class="k">new</span> <span 
class="n">CDIAwareConstraintValidatorFactory</span><span 
class="o">()).</span><span class="na">buildValidatorFactory</span><span 
class="o">()</span>
+
+<span class="o">:::</span><span class="n">xml</span>
+<span class="o">&lt;</span><span class="n">validation</span><span 
class="o">-</span><span class="n">config</span> <span 
class="n">xmlns</span><span class="o">=</span><span 
class="s">&quot;http://jboss.org/xml/ns/javax/validation/configuration&quot;</span>
+ <span class="nl">xmlns:</span><span class="n">xsi</span><span 
class="o">=</span><span 
class="s">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span>
+ <span class="nl">xsi:</span><span class="n">schemaLocation</span><span 
class="o">=</span><span 
class="s">&quot;http://jboss.org/xml/ns/javax/validation/configuration&quot;</span><span
 class="o">&gt;</span>
+    <span class="o">&lt;</span><span class="n">constraint</span><span 
class="o">-</span><span class="n">validator</span><span class="o">-</span><span 
class="n">factory</span><span class="o">&gt;</span><span 
class="n">org</span><span class="o">.</span><span class="na">apache</span><span 
class="o">.</span><span class="na">deltaspike</span><span 
class="o">.</span><span class="na">beanValidation</span><span 
class="o">.</span><span class="na">impl</span><span class="o">.</span><span 
class="na">CDIAwareConstraintValidatorFactory</span><span 
class="o">&lt;/</span><span class="n">constraint</span><span 
class="o">-</span><span class="n">validator</span><span class="o">-</span><span 
class="n">factory</span><span class="o">&gt;</span>
+<span class="o">&lt;/</span><span class="n">validation</span><span 
class="o">-</span><span class="n">config</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<p>And then you can simply build your <code>ConstraintValidator</code>s based 
on CDI programming rules.</p>
+          </div>
+      </div>
+
+      <hr>
+
+      <footer>
+        <p>Copyright © 20011-2012 The Apache Software Foundation, Licensed 
under the Apache License, Version 2.0.</p>
+        <p>Apache and the Apache feather logo are trademarks of The Apache 
Software Foundation.</p>
+      </footer>
+
+    </div> <!-- /container -->
+
+    <!-- Javascript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <!--<script src="./resources/js/prettyfy.js"></script> -->
+    <script src="./resources/js/prettyprint.js"></script>
+    <script src="./resources/js/jquery.js"></script>
+    <script src="./resources/js/bootstrap-transition.js"></script>
+    <script src="./resources/js/bootstrap-alert.js"></script>
+    <script src="./resources/js/bootstrap-modal.js"></script>
+    <script src="./resources/js/bootstrap-dropdown.js"></script>
+    <script src="./resources/js/bootstrap-scrollspy.js"></script>
+    <script src="./resources/js/bootstrap-tab.js"></script>
+    <script src="./resources/js/bootstrap-tooltip.js"></script>
+    <script src="./resources/js/bootstrap-popover.js"></script>
+    <script src="./resources/js/bootstrap-button.js"></script>
+    <script src="./resources/js/bootstrap-collapse.js"></script>
+    <script src="./resources/js/bootstrap-carousel.js"></script>
+    <script src="./resources/js/bootstrap-typeahead.js"></script>
+
+</body>
+</html>

Modified: websites/staging/deltaspike/trunk/content/documentation.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/documentation.html (original)
+++ websites/staging/deltaspike/trunk/content/documentation.html Mon Jul 15 
00:18:55 2013
@@ -411,7 +411,7 @@ The resolved bean is a normal CDI bean w
 <p>Definition : A module for adding CDI support in Bean Validation.</p>
 <p>Features : Allows a developer to create CDI aware 
<code>ConstraintValidator</code>s that can use business objects (EJBs, 
ManagedBeans) to support validation needs.</p>
 <p>*
-<a class="btn" href="beanval.html">View details »</a></p>
+<a class="btn" href="bean-validation.html">View details »</a></p>
 <h1 id="external">External</h1>
 <h2 id="blogs">Blogs</h2>
 <ul>


Reply via email to