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

Taglib documentation for tag mak:submit#

Description#

The mak:submit tag simplifies the creation of a submit widget, which can be either a button or a link (the default is a button). It should be placed inside of a mak:form (or mak:newForm or mak:editForm) and will trigger the submission of the form. If the tag has no body, the button/link will have as default text "Submit", otherwise, it will have as text the content of the tag body.

mak:submit checks for the existance of a onSubmit javascript handler method before doing the actual submission, and only submits if the method returns true.

.

Attributes#

Name Required Runtime expression Description Comments
widget false false
Widget to be used for the submission.
.
Can have as values 'button' or 'link', defaults to 'button'.
.
styleId
(from mak:form)
false true
Generic HTML tag attribute
.
results in id="..."
.
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)

See also#

mak:form, mak:newForm, mak:addForm, mak:editForm

Examples#

<mak:newForm type="company.Employee" triggerEvent="employeeCreated">
  Name: <mak:input field="name" /><br/>
  Surname: <mak:input field="surname" /><br/>
  <br/>
  <mak:submit>Create employee</mak:submit>
</mak:newForm>

<mak:section name="employees" reloadOn="employeeCreated">
  <mak:list from="company.Employee e">
    <mak:value expr="e.nameSurname()" /><br/>
  </mak:list>
</mak:section>
.

Category Documentation


Add Comment
« This page was last updated on August 1 2010