Jakarta > Tapestry
Jakarta
 

LinkSubmit

Creates a hyperlink that submits its enclosing form using a JavaScript function.
Pages incorporating a LinkSubmit component must also include a Body component.

See also: org.apache.tapestry.form.LinkSubmit, Form, ImageSubmit, Submit

Parameters

Name Type Direction Required Default Default Binding Description
disabled boolean in no false Controls whether the link is produced. If disabled, the portion of the template the link surrounds is still rendered, but not the link itself.
selected Object out no   This parameter is bound to a property that is updated when the submit button is clicked by the user. The property is updated to match the tag parameter.
tag Object in no   Tag used with the selected parameter to indicate which Submit button on a form was clicked.
listener IActionListener in no   If specified, the listener is notified. This notification occurs as the component is rewinded, i.e., prior to the Form's listener. In addition, the selected property (if bound) will be updated before the listener is notified.

Body: allowed

Informal parameters: allowed

Reserved parameters: name, href

Warning
In Tapestry 3.0, the behavior of the LinkSubmit was undeferred, the equivalent of setting the defer parameter to false. The default for the defer parameter in 4.0 is true, which may in rare cases, cause problems when upgrading an applicaton from 3.0 to 4.0.