<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//MAKUMBA//DTD Documentation V2.0//EN" "document-v20-mak.dtd"><document>
    <header>
        <title>mak:resultList tag documentation</title>
    </header>
    <body>
        <section id="description">
      
      
          <title>Description</title>      <p>Similar
    to, and based on the &lt;mak:list&gt;, this tag automatically iterates over the results from a specified search
    form. On top of &lt;mak:list&gt;, the following attributes are available:
  </p>    </section>
        <section id="attributes">
            <title>Attributes</title>
            <table>
                <tr>
                    <th>Name</th>
                    <th>Required</th>
                    <th>Request-time</th>
                    <th>Description</th>
                    <th>Comments</th>
                </tr>
                <tr>
                    <td>resultsFrom</td>
                    <td class="center required">true</td>
                    <td class="center">false</td>
                    <td>The name of the search form the results are taken from.</td>
                    <td class="missingDoc">Document me please</td>
                </tr>
                <tr>
                    <td>orderBy</td>
                    <td class="center">false</td>
                    <td class="center">false</td>
                    <td>OQL ORDER BY section</td>
                    <td>Fixed, can contain #{ JSP EL expressions } label.$fieldname used to be supported, not anymore</td>
                </tr>
                <tr>
                    <td>groupBy</td>
                    <td class="center">false</td>
                    <td class="center">false</td>
                    <td>OQL GROUP BY section</td>
                    <td>Fixed, can contain #{ JSP EL expressions }</td>
                </tr>
                <tr>
                    <td>offset</td>
                    <td class="center">false</td>
                    <td class="center">false</td>
                    <td>the offset of the result to show (0 for starting from the first result)</td>
                    <td>Fixed ($attribute allowed). If $attribute is not found, defaults to 0. Only allowed for the outermost
        mak:list</td>
                </tr>
                <tr>
                    <td>limit</td>
                    <td class="center">false</td>
                    <td class="center">false</td>
                    <td>the maximum numbers of results to show (-1 for all results)</td>
                    <td>Fixed ($attribute allowed). Only allowed for the outermost mak:list. if $attribute is not found,
        defaults to the value of defaultLimit, if present, or -1 otherwise.
        LIMIT can limit the query time dramatically, but the children mak:lists are not yet limited.</td>
                </tr>
                <tr>
                    <td>defaultLimit</td>
                    <td class="center">false</td>
                    <td class="center">false</td>
                    <td>the default value for limit, if the $attribute in limit="$attribute" is not present.</td>
                    <td>Fixed ($attribute allowed). Only allowed for the outermost mak:list.</td>
                </tr>
                <tr>
                    <td>id</td>
                    <td class="center">false</td>
                    <td class="center">false</td>
                    <td>Tag's identifier</td>
                    <td>Fixed. Can be used to distinguish otherwise identical tags on a page (to avoid confusion by Makumba's
        JSP analyser)</td>
                </tr>
                <tr>
                    <td>db</td>
                    <td class="center">false</td>
                    <td class="center">true</td>
                    <td>The makumba database to connect to. The format is Host_SQLEngineType_DatabaseName
        If not present, the default database is used. See database configuration and lookup.</td>
                    <td>Fixed, cannot contain attributes, for now. 
The default database is chosen if this argument is not set. 
Can only be set for top-level (root) query tags
Can be a Rtexpr &lt;%= ...%&gt;</td>
                </tr>
                <tr class="deprecated">
                    <td class="deprecated">separator (deprecated)</td>
                    <td class="deprecated center">false</td>
                    <td class="deprecated center">true</td>
                    <td class="deprecated">Character string as separator between two list elements. It is not included before the first or after
        the last</td>
                    <td class="deprecated">Deprecated, use &lt;c:if test="${mak:count&lt;mak:maxCount()}"&gt; instead.</td>
                </tr>
            </table>
        </section>
        <section id="example">
      
          <title>Example</title>      <source>
      <![CDATA[
<mak:resultList resultsFrom="searchPerson">
    Name: <mak:value expr="o.name"/> <br/>
</mak:resultList>
      ]]>
  </source>    </section>
        <section id="seeAlso">
            <title>See also</title>
            <ul>
                <li>
                    <a href="/doc/taglib/maksearchForm.html">mak:searchForm</a>
                </li>
                <li>
                    <a href="/doc/taglib/makcriterion.html">mak:criterion</a>
                </li>
                <li>
                    <a href="/doc/taglib/makmatchMode.html">mak:matchMode</a>
                </li>
                <li>
                    <a href="/doc/taglib/maksearchField.html">mak:searchField</a>
                </li>
            </ul>
        </section>
    </body>
</document>