You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2016/06/08 08:13:07 UTC
svn commit: r1747360 - /myfaces/site/publish/tobago/faq.html
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> <profile>
+ <id>checkstyle-for-view-definition-language</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <configLocation>META-INF/checkstyle-tobago.xml</configLocation>
+ <includes>**/*.xhtml</includes>
+ <excludes>**/*.java</excludes>
+ <sourceDirectory>src/main/webapp</sourceDirectory>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.myfaces.tobago</groupId>
+ <artifactId>tobago-core</artifactId>
+ <version>${tobago.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </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>