Wiki source code of WOForm
Last modified by Pascal Robert on 2012/01/30 22:25
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
5.1 | 1 | {{toc/}} |
![]() |
1.1 | 2 | |
3 | = Introduction = | ||
4 | |||
![]() |
3.1 | 5 | A **WOForm** will generate a <form></form> HTML tag. The content of the form has to be enclosed between the opening and closing WOForm tags. If your application or frameworks Application and Session classes inherits from ERXApplication and ERXSession (eg, you have a "full" Wonder project), WOForm is replaced by ERXWOForm (see related documents). |
![]() |
1.1 | 6 | |
7 | = Usage = | ||
8 | |||
9 | {{code}} | ||
10 | |||
11 | WOForm { [action=aMethod; | href=aURL;] [multipleSubmit=aBoolean;] ... } | ||
12 | |||
13 | {{/code}} | ||
14 | |||
15 | = Bindings = | ||
16 | |||
![]() |
5.1 | 17 | |((( |
18 | href | ||
19 | )))|((( | ||
20 | "Static" URL specifying where the form will be submitted. Use this binding if submitting to stateless resource. For stateful resource, use the //action// binding. | ||
21 | ))) | ||
22 | |((( | ||
23 | action | ||
24 | )))|((( | ||
25 | Action method that's invoked when the form is submitted. If the form contains a dynamic element that has its own action (such as a WOSubmitButton or a WOActiveImage), that action is invoked instead of the WOForm's. | ||
26 | ))) | ||
27 | |((( | ||
28 | multipleSubmit | ||
29 | )))|((( | ||
30 | If multipleSubmit evaluates to true , the form can have more than one WOSubmitButton, each with its own action. By default, WOForm supports only a single WOSubmitButton. | ||
31 | ))) | ||
![]() |
1.1 | 32 | |
33 | Additionals bindings are available if your project inherits from Project Wonder. | ||
34 | |||
35 | = Examples = | ||
36 | |||
37 | == Java methods == | ||
38 | |||
39 | In the Java code of your component, you could set the methods or variables used for the bindings. | ||
40 | |||
41 | == WOD-style == | ||
42 | |||
![]() |
5.1 | 43 | {{code/}} |
![]() |
1.1 | 44 | |
45 | == Inline bindings (WOOGNL) == | ||
46 | |||
47 | {{code}} | ||
48 | |||
49 | <wo:form enctype = "multipart/form-data"> | ||
50 | </wo:form> | ||
51 | |||
52 | {{/code}} | ||
53 | |||
54 | = Related documents = | ||
55 | |||
![]() |
5.1 | 56 | [[ERXWOForm>>url:http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/_private/ERXWOForm.html||shape="rect"]] |