struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [struts-site] branch asf-site updated: Updates production by Jenkins
Date Thu, 07 Feb 2019 06:17:37 GMT
This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new cd284cf  Updates production by Jenkins
cd284cf is described below

commit cd284cf486be2b72df3421dc34c3aaa887af7d61
Author: jenkins <builds@apache.org>
AuthorDate: Thu Feb 7 06:17:35 2019 +0000

    Updates production by Jenkins
---
 content/core-developers/validation-annotation.html | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/content/core-developers/validation-annotation.html b/content/core-developers/validation-annotation.html
index 0cba7ca..63b493e 100644
--- a/content/core-developers/validation-annotation.html
+++ b/content/core-developers/validation-annotation.html
@@ -149,12 +149,10 @@ is no longer necessary.</p>
 <h3 id="an-annotated-interface">An Annotated Interface</h3>
 
 <ul>
-  <li>Mark the interface with <code class="highlighter-rouge">@Validation()</code></li>
   <li>Apply standard or custom annotations at method level</li>
 </ul>
 
-<div class="highlighter-rouge"><pre class="highlight"><code> <span class="nd">@Validation</span><span
class="o">()</span>
- <span class="kd">public</span> <span class="kd">interface</span>
<span class="nc">AnnotationDataAware</span> <span class="o">{</span>
+<div class="highlighter-rouge"><pre class="highlight"><code> <span class="kd">public</span>
<span class="kd">interface</span> <span class="nc">AnnotationDataAware</span>
<span class="o">{</span>
 
      <span class="kt">void</span> <span class="n">setBarObj</span><span
class="o">(</span><span class="n">Bar</span> <span class="n">b</span><span
class="o">);</span>
 
@@ -172,8 +170,7 @@ is no longer necessary.</p>
 
 <h3 id="an-annotated-class">An Annotated Class</h3>
 
-<div class="highlighter-rouge"><pre class="highlight"><code> <span class="nd">@Validation</span><span
class="o">()</span>
- <span class="kd">public</span> <span class="kd">class</span> <span
class="nc">SimpleAnnotationAction</span> <span class="kd">extends</span>
<span class="n">ActionSupport</span> <span class="o">{</span>
+<div class="highlighter-rouge"><pre class="highlight"><code> <span class="kd">public</span>
<span class="kd">class</span> <span class="nc">SimpleAnnotationAction</span>
<span class="kd">extends</span> <span class="n">ActionSupport</span>
<span class="o">{</span>
 
      <span class="nd">@RequiredFieldValidator</span><span class="o">(</span><span
class="n">type</span> <span class="o">=</span> <span class="n">ValidatorType</span><span
class="o">.</span><span class="na">FIELD</span><span class="o">,</span>
<span class="n">message</span> <span class="o">=</span> <span class="s">"You
must enter a value for bar."</span><span class="o">)</span>
      <span class="nd">@IntRangeFieldValidator</span><span class="o">(</span><span
class="n">type</span> <span class="o">=</span> <span class="n">ValidatorType</span><span
class="o">.</span><span class="na">FIELD</span><span class="o">,</span>
<span class="n">min</span> <span class="o">=</span> <span class="s">"6"</span><span
class="o">,</span> <span class="n">max</span> <span class="o">=</span>
<span class="s">"10"</span><span class="o">,</span> <span class="n">message</span>
<span class [...]


Mime
View raw message