<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">

<document xmlns:xi="http://www.w3.org/2001/XInclude">
  <header>
    <title>mak:input tag documentation</title>
  </header>
  <body>
    <section id="attributes">
      <title>Attributes</title>
      <table>
        <tr>
          <th colspan="1" rowspan="1">Name</th>
          <th colspan="1" rowspan="1">Required</th>
          <th colspan="1" rowspan="1">rt expression value</th>
          <th colspan="1" rowspan="1">Description</th>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">field</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">Makumba field (from the edited record or via base pointers or sub-record pointers)</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">name</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">Makumba field (from the edited record or via base pointers or sub-record pointers)</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">value</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">OQL expression relative to enclosing query tags or a $attribute computed previously in the page (with &lt;mak:value var=.../&gt; or pageContext.setAttribute(...)), or read by in the previous page by an &lt;mak:input /&gt;</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">styleId</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">default</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">FIXME</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">empty</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">FIXME</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">dataType</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">The makumba type of the data (needed if there is no value, no default expression for the value, or no makumba type associated with an attribute)</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">display</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">If "false", it will not show the &lt;input&gt; but it will expect to read it in the next page. This allows the page designer to format the input control manually</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">format</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">Format string, according to java.text.SimpleDateFormat 
Can only countain d, M, y, H, m, s formatting chars, and any kind of separators. Ex: 
'the day' dd 'of the month' MMMM 'in the year' yyyy. 
Default is "dd MMMM yyyy"</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">type</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">HTML INPUT type to be used 
"hidden" works for all fields 
for char[] , type can be "text" or "password", default is "text" 
default type for [set]intEnum, [set]charEnum, ptr and set is "select" (dropdown or scroll list depending on size). Alternative is "tickbox" (checkboxes or radio buttons). Can be forced to a specific type by using "radio" or "checkbox" 
for set, type can be seteditor, which will create two multiple-select boxes (see an example). 
for int, spinner creates a spinner input with increase/decrease buttons; if a validation definition defines a range for the field, select and radio are will create select boxes and radio buttons. 
date is split in 3 inputs, &lt;fieldname&gt;_0 (day), _1 (month), _2 (year), and likewise for time elements 
for text, default is "textarea"; "file" will create file upload box, and will create supplementary attributes &lt;fieldname&gt;_filename, &lt;fieldname&gt;_contentType and &lt;fieldname&gt;_contentLength that have to be handled separately by the handler method 
for file, a file upload box will automatically created, and handling of file name, content type and length will be done automatically. </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">stepSize</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">For int data with type select or radio, the step size defines the steps between each option. The default stepsize is 1.</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">calendarEditor</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">FIXME</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">calendarEditorLink</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">The formatting that appears on the link to the calendar date-choser. 
See the detailed example for more information. </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">size</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Size of the input control</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">maxlength</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Max length of a text control</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">rows</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Number of textarea rows and columns</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">cols</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Number of textarea rows and columns</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">nameVar</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">The name of the java variable in which to store the name of the HTML input. In multiple forms,  there may be more HTML inputs generated by one mak:input, so a suffix is added by makumba to the name to generate unique names for each.</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">nullOption</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">Document me please</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">styleId</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">styleClass</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">style</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">labelSeparator</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">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>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">elementSeparator</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">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>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">title</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onClick</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onDblClick</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onKeyDown</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onKeyUp</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onKeyPress</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onMouseDown</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onMouseUp</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onMouseMove</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onMouseOut</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onMouseOver</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Generic html tag attributes, see newForm </td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">accessKey</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Document me please</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">disabled</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Document me please</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onChange</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Document me please</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onBlur</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Document me please</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onFocus</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Document me please</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">onSelect</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Document me please</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1">tabIndex</td>
          <td colspan="1" rowspan="1">false</td>
          <td colspan="1" rowspan="1">true</td>
          <td colspan="1" rowspan="1">Document me please</td>
        </tr>
      </table>
    </section>
    <section id="example">
  
      <title>Example</title>
  
      <p/>
  
      <p>
    
        <code/>
  
      </p>
    </section>  </body></document>