Taglib documentation for tag mak:searchField#
Description#
Enclosed inside a <mak:criterion>, generates an input for that criterion. This tag is based on the <mak:input /> tag, and provides additionally the following attributes:
.
Attributes#
Name | Required | Runtime expression | Description | Comments |
---|---|---|---|---|
role | false | false | Indicates whether this input is the input for the lower or upper range.
.![]() |
Only for range searches, values are 'rangeBegin' and 'rangeEnd'. Defaults to 'rangeBegin'.
.![]() |
value (from mak:input) |
false | false | MQL expression relative to enclosing query tags or a $attribute computed previously in the page (with <mak:value var=.../>, pageContext.setAttribute(...), or read by in the previous page by an <mak:input />)
.![]() |
. ![]() |
id (from mak:list) |
false | false | Tag's identifier
.![]() |
Can be used to distinguish otherwise identical tags on a page (to avoid confusion by Makumba's JSP analyser)
.![]() |
dataType (from mak:input) |
false | false | 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)
.![]() |
Can be char, char[xx], int, date, text, ptr Type, set Type
.![]() |
default (from mak:input) |
false | true | FIXME
.![]() |
. ![]() |
format (from mak:input) |
false | false | 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"
.![]() |
Only for date.
.![]() |
type (from mak:input) |
false | false | HTML INPUT type to be used
.
![]() |
. ![]() |
forceInputStyle | false | false | Changes the style/type of the input as it would be normally computed for the data type.
.![]() |
Applicable for the following data types:
.
![]() |
calendarEditor (from mak:input) |
false | false | Whether to generate code for a calendar editor.
.![]() |
Only for date types. Defaults to true resp. the default value specified in the Makumba configuration.
.![]() |
calendarEditorLink (from mak:input) |
false | false | The formatting that appears on the link to the calendar date-chooser.
.![]() |
Only for date types. Defaults to <img border="0" src="_CONTEXT_PATH_/mak-tools/makumbaResources/image/calendar.gif">
.![]() |
nameVar (from mak:input) |
false | false | 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.
.![]() |
. ![]() |
nullOption (from mak:input) |
false | false | A text that would be displayed as the "null option" in drop-down boxes, i.e. to add a null value to the other possible options. May be used to allow a ptr to be set to null, and/or require a deliberate action from the users to select a value, rather leaving the default (first) value selected.
.![]() |
Only for ptr and intEnum types
.![]() |
labelSeparator (from mak:input) |
false | true | The string that separates the tickbox (radio/check) from the label. Default is " " (space). The output will be < tick >< labelSeparator >< label >
.![]() |
Only for type="tickbox"
.![]() |
elementSeparator (from mak:input) |
false | true | The string that separates the different options. Default is " " (space). The output will be < [x] label >< elementSeparator >< [x] label >
.![]() |
Only for type="tickbox"
.![]() |
size (from mak:input) |
false | true | Size of the input control
.![]() |
Only for char, int (size of the textbox) and set, ptr (height of the select)
.![]() |
maxlength (from mak:input) |
false | true | Max length of a text control
.![]() |
Only for char and int. Defaults to makumba width of the char
.![]() |
rows (from mak:input) |
false | true | Number of textarea rows and columns
.![]() |
only for text
.![]() |
cols (from mak:input) |
false | true | Number of textarea rows and columns
.![]() |
only for text
.![]() |
accessKey (from mak:input) |
false | true | Input-specific HTML tag attribute
(generic) |
The content is copied to the resulting <input...> tag. Careful with (escaping) quotes.
(generic)
|
disabled (from mak:input) |
false | true | ||
onChange (from mak:input) |
false | true | ||
onBlur (from mak:input) |
false | true | ||
onFocus (from mak:input) |
false | true | ||
onSelect (from mak:input) |
false | true | ||
tabIndex (from mak:input) |
false | true | ||
styleClass (from mak:form) |
false | true | Generic HTML tag attribute
.![]() |
results in class="..."
.![]() |
style (from mak:form) |
false | true | Generic HTML tag attribute
(generic) |
The content is copied to the resulting html tag. Careful with (escaping) quotes.
(generic)
|
title (from mak:form) |
false | true | ||
onClick (from mak:form) |
false | true | ||
onDblClick (from mak:form) |
false | true | ||
onKeyDown (from mak:form) |
false | true | ||
onKeyUp (from mak:form) |
false | true | ||
onKeyPress (from mak:form) |
false | true | ||
onMouseDown (from mak:form) |
false | true | ||
onMouseUp (from mak:form) |
false | true | ||
onMouseMove (from mak:form) |
false | true | ||
onMouseOut (from mak:form) |
false | true | ||
onMouseOver (from mak:form) |
false | true |
See also#
mak:searchForm, mak:resultList, mak:criterion, mak:matchMode
Examples#
<mak:searchForm in="company.Company" name="searchCompany"> <mak:criterion fields="name"> <mak:searchField /> </mak:criterion> <mak:criterion fields="targetMarkets"> <mak:searchField forceInputStyle="single" /> </mak:criterion> </mak:searchForm>
