Wiki source code of WOSubmitButton
Last modified by Pascal Robert on 2012/02/11 07:54
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{toc/}} | ||
| 2 | |||
| 3 | = Introduction = | ||
| 4 | |||
| 5 | A WOSubmitButton element generates a submit button in an HTML page. This element is used within HTML forms. | ||
| 6 | |||
| 7 | = Usage = | ||
| 8 | |||
| 9 | {{code}} | ||
| 10 | |||
| 11 | WOSubmitButton { | ||
| 12 | action=submitForm; | directActionName=anActionName; actionClass=className; | ||
| 13 | value=aString; | ||
| 14 | [disabled=aBoolean;] | ||
| 15 | [name=aName;] ... | ||
| 16 | } | ||
| 17 | |||
| 18 | {{/code}} | ||
| 19 | |||
| 20 | = Bindings = | ||
| 21 | |||
| 22 | |((( | ||
| 23 | action | ||
| 24 | )))|((( | ||
| 25 | Action method to invoke when the form is submitted. | ||
| 26 | ))) | ||
| 27 | |((( | ||
| 28 | actionClass | ||
| 29 | )))|((( | ||
| 30 | The name of the class in which the method designated in directActionName can be found. Defaults to DirectAction. | ||
| 31 | ))) | ||
| 32 | |((( | ||
| 33 | value | ||
| 34 | )))|((( | ||
| 35 | Title of the button. | ||
| 36 | ))) | ||
| 37 | |((( | ||
| 38 | directActionName | ||
| 39 | )))|((( | ||
| 40 | The name of the direct action method (minus the "Action" suffix) to invoke when this element is activated. Defaults to "default". | ||
| 41 | ))) | ||
| 42 | |((( | ||
| 43 | disabled | ||
| 44 | )))|((( | ||
| 45 | If disabled evaluates to true, the element appears in the page but is not active. That is, clicking the button does not actually submit the form. | ||
| 46 | ))) | ||
| 47 | |((( | ||
| 48 | name | ||
| 49 | )))|((( | ||
| 50 | Name that uniquely identifies this element within the form. You may specify a name or let WebObjects automatically assign one at runtime. | ||
| 51 | ))) | ||
| 52 | |||
| 53 | = Examples = | ||
| 54 | |||
| 55 | == Java methods == | ||
| 56 | |||
| 57 | == WOD-style == | ||
| 58 | |||
| 59 | {{code/}} | ||
| 60 | |||
| 61 | == Inline bindings (WOOGNL) == | ||
| 62 | |||
| 63 | {{code/}} | ||
| 64 | |||
| 65 | = Related documents = | ||
| 66 | |||
| 67 | [[ERXSubmitButton>>url:http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/_private/ERXSubmitButton.html||shape="rect"]] | ||
| 68 | [[AjaxSubmitButton>>url:http://wocommunity.org/documents/javadoc/wonder/latest/er/ajax/AjaxSubmitButton.html||shape="rect"]] |