##### For example

- Run PMD on a Sourceforge project

## Basic JSF rules

Rules concerning basic JSF guidelines.

### DontNestJsfInJstlIteration

Do not nest JSF component custom actions inside a custom action that iterates over its body.

This rule is defined by the following XPath expression:

    //Element[ @Name="c:forEach" ] // Element[ @NamespacePrefix="h" or @NamespacePrefix="f" ]

Here's an example of code that would trigger this rule:

    &lt;html&gt; &lt;body&gt; &lt;ul&gt;
    		&lt;c:forEach items='${books}' var='b'&gt;
    			&lt;li&gt; &lt;h:outputText value='#{b}' /&gt; &lt;/li&gt;
    		&lt;/c:forEach&gt;
    &lt;/ul&gt; &lt;/body&gt; &lt;/html&gt;