1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.seasar.teeda.core.taglib.html; |
17 | |
|
18 | |
import javax.faces.component.UIComponent; |
19 | |
import javax.faces.component.html.HtmlForm; |
20 | |
|
21 | |
import org.seasar.teeda.core.JsfConstants; |
22 | |
import org.seasar.teeda.core.taglib.UIComponentTagBase; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | 4 | public class FormTag extends UIComponentTagBase { |
29 | |
|
30 | |
public String getComponentType() { |
31 | 1 | return HtmlForm.COMPONENT_TYPE; |
32 | |
} |
33 | |
|
34 | |
public String getRendererType() { |
35 | 5 | return "javax.faces.Form"; |
36 | |
} |
37 | |
|
38 | |
protected void setProperties(UIComponent component) { |
39 | 2 | super.setProperties(component); |
40 | 2 | setComponentProperty(component, JsfConstants.ACCEPT_ATTR, getAccept()); |
41 | 2 | setComponentProperty(component, JsfConstants.ACCEPTCHARSET_ATTR, |
42 | |
getAcceptcharset()); |
43 | 2 | setComponentProperty(component, JsfConstants.ENCTYPE_ATTR, getEnctype()); |
44 | 2 | setComponentProperty(component, JsfConstants.ONRESET_ATTR, getOnreset()); |
45 | 2 | setComponentProperty(component, JsfConstants.ONSUBMIT_ATTR, |
46 | |
getOnsubmit()); |
47 | 2 | setComponentProperty(component, JsfConstants.TARGET_ATTR, getTarget()); |
48 | 2 | } |
49 | |
|
50 | |
} |