1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.myfaces.shared_impl.taglib.html; |
20 | |
|
21 | |
import org.apache.myfaces.shared_impl.renderkit.html.HTML; |
22 | |
|
23 | |
import javax.faces.component.UIComponent; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | 0 | public abstract class HtmlFormTagBase |
31 | |
extends org.apache.myfaces.shared_impl.taglib.html.HtmlComponentTagBase |
32 | |
{ |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
private String _accept; |
46 | |
private String _acceptCharset; |
47 | |
private String _enctype; |
48 | |
private String _name; |
49 | |
private String _onreset; |
50 | |
private String _onsubmit; |
51 | |
private String _target; |
52 | |
|
53 | |
|
54 | |
public void release() { |
55 | 0 | super.release(); |
56 | 0 | _accept=null; |
57 | 0 | _acceptCharset=null; |
58 | 0 | _enctype=null; |
59 | 0 | _name=null; |
60 | 0 | _onreset=null; |
61 | 0 | _onsubmit=null; |
62 | 0 | _target=null; |
63 | 0 | } |
64 | |
|
65 | |
protected void setProperties(UIComponent component) |
66 | |
{ |
67 | 0 | super.setProperties(component); |
68 | 0 | setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ACCEPT_ATTR, _accept); |
69 | 0 | setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ACCEPT_CHARSET_ATTR, _acceptCharset); |
70 | 0 | setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ENCTYPE_ATTR, _enctype); |
71 | 0 | setStringProperty(component, HTML.NAME_ATTR, _name); |
72 | 0 | setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONRESET_ATTR, _onreset); |
73 | 0 | setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONSUMBIT_ATTR, _onsubmit); |
74 | 0 | setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.TARGET_ATTR, _target); |
75 | 0 | } |
76 | |
|
77 | |
public void setAccept(String accept) |
78 | |
{ |
79 | 0 | _accept = accept; |
80 | 0 | } |
81 | |
|
82 | |
public void setAcceptCharset(String acceptCharset) |
83 | |
{ |
84 | 0 | _acceptCharset = acceptCharset; |
85 | 0 | } |
86 | |
|
87 | |
public void setEnctype(String enctype) |
88 | |
{ |
89 | 0 | _enctype = enctype; |
90 | 0 | } |
91 | |
|
92 | |
public void setName(String name) |
93 | |
{ |
94 | 0 | _name = name; |
95 | 0 | } |
96 | |
|
97 | |
public void setOnreset(String onreset) |
98 | |
{ |
99 | 0 | _onreset = onreset; |
100 | 0 | } |
101 | |
|
102 | |
public void setOnsubmit(String onsubmit) |
103 | |
{ |
104 | 0 | _onsubmit = onsubmit; |
105 | 0 | } |
106 | |
|
107 | |
public void setTarget(String target) |
108 | |
{ |
109 | 0 | _target = target; |
110 | 0 | } |
111 | |
|
112 | |
} |