makumba hackers: this page is generated, don't edit it! Instead edit the text in the included pages.

Taglib documentation for tag mak:editForm#

Description#

Makes a form for editing the object indicated by any of the labels of the mandatory enclosing <mak:object> or <mak:list>. Also linked objects can be edited through the same form.

Attributes#

Name Required Runtime expression Description Comments
object true false
The label of the MQL object to edit
Mandatory.
recordChangesIn false false
In which variable to record the changed values in
Fixed, optional.
handler
(from mak:form)
false false
the Java method that handles the response
Arguments: (Dictionary<String, Object> formFields, Attributes restOfArguments, Transaction t)
Not mandatory. A form without handler will simply set attributes (as makumba objects) for the next page
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
name
(from mak:form)
false true
the name of the form
Optional name of the form, used to identify it by other makumba tags
message
(from mak:form)
false true
the message that is displayed in the response page upon success
Defaults to "changes done".
triggerEvent
(from mak:form)
false true
Name of the event to be raised after successful AJAX submission of the form
In case of a successful response, the event is fired.
annotation
(from mak:form)
false true
Indicates whether validation errors should be shown in the form, or be displayed in the <mak:response/>.
Taken into account only if reloadFormOnError is not set to false. Values are none (displayed in <mak:response/>), before (before the input), after (after the input) or both (displayed both before and after the input). Defaults to none.
annotationSeparator
(from mak:form)
false true
Prints the given separator between the annotation and the input field.
Also HTML can be used, e.g. printing an error icon.
reloadFormOnError
(from mak:form)
false true
Indicates whether the form page shall be reloaded on an error, or the specified form action page will be loaded directly.
Values are true or false; defaults to false.
clientSideValidation
(from mak:form)
false true
Controls whether client side validation shall be used.
Values are false (off), true (on submission) or live (while tpying).
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
onDblClick
(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:input, mak:newForm, mak:addForm, mak:editForm, mak:deleteLink, mak:delete

Examples#

<mak:object from="company.Employee e" where="e=$employee">
    <mak:editForm object="e" action="employeeView.jsp" method="post">
        <mak:input name="name"/>
        <mak:input name="surname"/>
        <mak:input name="gender"/>
        <mak:input name="birthdate"/>
        <mak:input name="salary"/>
        <mak:input name="department"/>
        <input type=submit value="Save changes">
    </mak:editForm>
</mak:object>

Category Documentation


« This page was last updated on August 1 2010