Taglib documentation for tag mak:searchForm#
Description#
Produces a form to search for records in the database.
Search forms are in principal related to mak:forms, i.e. attributes allowed there are also allowed in search forms. Additionally, the following attributes are defined.
Attributes#
| Name | Required | Runtime expression | Description | Comments |
|---|---|---|---|---|
| in | true | false | The MDD to search in
.![]() |
Mandatory
.
|
| resultLabel | false | true | name of the label of the results, used in the resultList
.![]() |
Optional. Defaults to "o"
.
|
| name | true | true | Name of the form
.![]() |
As in mak:forms, but mandatory. Name is used in connection with mak:resultList, and is the prefix for several pageContext attributes set, which can be used to perform searching manually.
.
|
| message | false | true | The message that is displayed in the response page
.![]() |
Defaults to "Search done!".
.
|
| action (from mak:form) |
false | true | the response page of the form
.![]() |
Mandatory if a <mak:action> is absent
.
|
| method (from mak:form) |
false | true | the HTTP method (get or post)
.![]() |
Defaults to get
.
|
| db (from mak:form) |
false | true | 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.
.![]() |
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 <%= ...%>
.
|
| target (from mak:form) |
false | true | Form-specific HTML tag attribute
(generic) |
The content is copied to the resulting <form...> tag. Careful with (escaping) quotes.
(generic)
|
| onReset (from mak:form) |
false | true | ||
| onSubmit (from mak:form) |
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:resultList, mak:criterion, mak:matchMode, mak:searchField
Examples#
<mak:searchForm in="company.Company" name="searchCompany">
...
</mak:searchForm>