myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1747360 - /myfaces/site/publish/tobago/faq.html
Date Wed, 08 Jun 2016 08:13:07 GMT
Author: lofwyr
Date: Wed Jun  8 08:13:07 2016
New Revision: 1747360

URL: http://svn.apache.org/viewvc?rev=1747360&view=rev
Log: (empty)

Modified:
    myfaces/site/publish/tobago/faq.html

Modified: myfaces/site/publish/tobago/faq.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/faq.html?rev=1747360&r1=1747359&r2=1747360&view=diff
==============================================================================
--- myfaces/site/publish/tobago/faq.html (original)
+++ myfaces/site/publish/tobago/faq.html Wed Jun  8 08:13:07 2016
@@ -14,7 +14,7 @@
 
 
       <div class="date">
-        Last Published: 22 Apr 2016
+        Last Published: 08 Jun 2016
       </div>
       <ul>
         <li>
@@ -230,6 +230,8 @@
           <li><a href="#maven-mirror">How to configure a maven mirror?</a></li>
           <li><a href="#offline-build">How do I configure an offline build?</a></li>
           <li><a href="#checkstyle">How do I perform a local checkstyle check?</a></li>
+          <li><a href="#checkstyle-vdl">How do I check the syntax of Facelet-Files
(*.xhtml) with respect to the
+            Taglib?</a></li>
           <li><a href="#max-path">Why my Subversion checkout fails on Windows?</a></li>
           <li><a href="#selenium">How can I run the Selenium tests?</a></li>
           <li><a href="#liberty">How can I run the Tobago demo with WebSphere
Liberty Profile (WLP) from Maven?</a></li>
@@ -581,6 +583,60 @@ mvn compile checkstyle:check</pre>
           </div>
 
           <p align="right"><a href="#top">[top]</a></p>
+          <hr/>
+        </dd>
+        <dt><a name="checkstyle-vdl">How do I check the syntax of Facelet-Files
(*.xhtml) with respect to the
+          Taglib?</a></dt>
+        <dd>
+
+          <p>
+            The problem is, that there is no concept for <i>deprecation</i> in
Taglibs.
+            The tobago-core.jar contains a generated checkstyle configuration to perform
+            a syntax check via the maven checkstyle plugin.
+          </p>
+
+
+          <p>
+            Configure in the applications pom.xml an entry like this example
+          </p>
+          <div class="source">
+<pre>    &lt;profile&gt;
+      &lt;id&gt;checkstyle-for-view-definition-language&lt;/id&gt;
+      &lt;build&gt;
+        &lt;plugins&gt;
+          &lt;plugin&gt;
+            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
+            &lt;artifactId&gt;maven-checkstyle-plugin&lt;/artifactId&gt;
+            &lt;configuration&gt;
+              &lt;configLocation&gt;META-INF/checkstyle-tobago.xml&lt;/configLocation&gt;
+              &lt;includes&gt;**/*.xhtml&lt;/includes&gt;
+              &lt;excludes&gt;**/*.java&lt;/excludes&gt;
+              &lt;sourceDirectory&gt;src/main/webapp&lt;/sourceDirectory&gt;
+            &lt;/configuration&gt;
+            &lt;dependencies&gt;
+              &lt;dependency&gt;
+                &lt;groupId&gt;org.apache.myfaces.tobago&lt;/groupId&gt;
+                &lt;artifactId&gt;tobago-core&lt;/artifactId&gt;
+                &lt;version&gt;${tobago.version}&lt;/version&gt;
+              &lt;/dependency&gt;
+            &lt;/dependencies&gt;
+          &lt;/plugin&gt;
+        &lt;/plugins&gt;
+      &lt;/build&gt;
+    &lt;/profile&gt;
+       </pre>
+          </div>
+
+
+          <p>
+            To perform a check call
+          </p>
+          <div class="source">
+<pre>
+mvn checkstyle:check -Pcheckstyle-for-view-definition-language</pre>
+          </div>
+
+          <p align="right"><a href="#top">[top]</a></p>
           <hr/>
         </dd>
         <dt><a name="max-path">Why my Subversion checkout fails on Windows?</a></dt>



Mime
View raw message