myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1747365 - /myfaces/tobago/trunk/src/site/fml/faq.fml
Date Wed, 08 Jun 2016 09:08:22 GMT
Author: lofwyr
Date: Wed Jun  8 09:08:22 2016
New Revision: 1747365

URL: http://svn.apache.org/viewvc?rev=1747365&view=rev
Log:
How do I check the syntax of Facelet-Files (*.xhtml) with respect to the Taglib

Modified:
    myfaces/tobago/trunk/src/site/fml/faq.fml

Modified: myfaces/tobago/trunk/src/site/fml/faq.fml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/src/site/fml/faq.fml?rev=1747365&r1=1747364&r2=1747365&view=diff
==============================================================================
--- myfaces/tobago/trunk/src/site/fml/faq.fml (original)
+++ myfaces/tobago/trunk/src/site/fml/faq.fml Wed Jun  8 09:08:22 2016
@@ -295,6 +295,50 @@ resource-path/content-type/theme/client/
 mvn compile checkstyle:check</source>
       </answer>
     </faq>
+    <faq id="checkstyle-vdl">
+      <question>How do I check the syntax of Facelet-Files (*.xhtml) with respect to
the Taglib?</question>
+      <answer>
+        <p>
+        The problem is, that there is no concept for <em>deprecation</em> 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
+        <source>    &lt;profile>
+      &lt;id>checkstyle-for-view-definition-language&lt;/id>
+      &lt;build>
+        &lt;plugins>
+          &lt;plugin>
+            &lt;groupId>org.apache.maven.plugins&lt;/groupId>
+            &lt;artifactId>maven-checkstyle-plugin&lt;/artifactId>
+            &lt;configuration>
+              &lt;configLocation>META-INF/checkstyle-tobago.xml&lt;/configLocation>
+              &lt;includes>**/*.xhtml&lt;/includes>
+              &lt;excludes>**/*.java&lt;/excludes>
+              &lt;sourceDirectory>src/main/webapp&lt;/sourceDirectory>
+            &lt;/configuration>
+            &lt;dependencies>
+              &lt;dependency>
+                &lt;groupId>org.apache.myfaces.tobago&lt;/groupId>
+                &lt;artifactId>tobago-core&lt;/artifactId>
+                &lt;version>${tobago.version}&lt;/version>
+              &lt;/dependency>
+            &lt;/dependencies>
+          &lt;/plugin>
+        &lt;/plugins>
+      &lt;/build>
+    &lt;/profile>
+        </source>
+        </p>
+        <p>
+        To perform a check call
+        <source>
+mvn checkstyle:check -Pcheckstyle-for-view-definition-language</source>
+          You will find the result in target/checkstyle-result.xml
+        </p>      </answer>
+    </faq>
     <faq id="max-path">
       <question>Why my Subversion checkout fails on Windows?</question>
       <answer>



Mime
View raw message