<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//MAKUMBA//DTD Documentation V2.0//EN" "document-v20-mak.dtd"><document>
    <header>
        <title>mak:matchMode tag documentation</title>
    </header>
    <body>
        <section id="description">
      
      
          <title>Description</title>      <p>create a match-mode input</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>type</td>
                    <td class="center">false</td>
                    <td class="center">false</td>
                    <td>
        HTML input type to be used:
            &lt;ul&gt;
              &lt;li&gt;"select" (drop-down).&lt;/li&gt;
              &lt;li&gt;"radio" (radio buttons).&lt;/li&gt;
            &lt;/ul&gt;
        
      </td>
                    <td>Fixed. Defaults to 'select'.</td>
                </tr>
                <tr>
                    <td>matchModes</td>
                    <td class="center">false</td>
                    <td class="center">false</td>
                    <td>Defines how the search terms shall be matched. Allowed values depend on the data types:
      &lt;ul&gt;
        &lt;li&gt;for string matches, i.e. char and text: 'contains', 'equals', 'begins', 'ends'&lt;/li&gt;
    	&lt;li&gt;for range matches, i.e. int, real and date: 'between', 'betweenInclusive'&lt;/li&gt;
        &lt;li&gt;for number comparisons, i.e. int and real: 'equals', 'lessThan', 'greaterThan'&lt;/li&gt;
        &lt;li&gt;for date comparisons: 'equals', 'before', 'after'&lt;/li&gt;
      &lt;/ul&gt;
      </td>
                    <td>Fixed. Defaults to 'equals' for string, number and date comparisons, and 'betweenInclusive' for range
        comparisons.</td>
                </tr>
                <tr>
                    <td>default</td>
                    <td class="center">false</td>
                    <td class="center">false</td>
                    <td>The default match-mode to be selected when the form is first loaded.</td>
                    <td>see 'matchModes' for allowed values</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>labelSeparator</td>
                    <td class="center">false</td>
                    <td class="center">true</td>
                    <td>The string that separates the tickbox (radio/check) from the label. Default is " " (space). 
The output will be &lt; tick &gt;&lt; labelSeparator &gt;&lt; label &gt;</td>
                    <td>Rtexpr. Only for &lt;code&gt;type="tickbox"&lt;/code&gt;</td>
                </tr>
                <tr>
                    <td>elementSeparator</td>
                    <td class="center">false</td>
                    <td class="center">true</td>
                    <td>The string that separates the different options. Default is " " (space). 
The output will be &lt; [x] label &gt;&lt; elementSeparator &gt;&lt; [x] label &gt;</td>
                    <td>Rtexpr. Only for &lt;code&gt;type="tickbox"&lt;/code&gt;</td>
                </tr>
            </table>
        </section>
        <section id="example">
      
          <title>Example</title>      <source>
      <![CDATA[
<mak:searchForm in="best.Student" name="searchPerson">
    <mak:criterion fields="name">
        <mak:matchMode matchModes="contains, equals, begins, ends">
        <mak:searchField />
    </mak:criterion>
</mak:searchForm>
      ]]>
  </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/makresultList.html">mak:resultList</a>
                </li>
                <li>
                    <a href="/doc/taglib/makcriterion.html">mak:criterion</a>
                </li>
                <li>
                    <a href="/doc/taglib/maksearchField.html">mak:searchField</a>
                </li>
            </ul>
        </section>
    </body>
</document>