1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.myfaces.view.facelets.tag.jsf.core; |
20 | |
|
21 | |
import javax.faces.component.UIParameter; |
22 | |
import javax.faces.component.UISelectItem; |
23 | |
import javax.faces.component.UISelectItems; |
24 | |
import javax.faces.component.UIViewAction; |
25 | |
import javax.faces.component.UIViewParameter; |
26 | |
import javax.faces.convert.DateTimeConverter; |
27 | |
import javax.faces.convert.NumberConverter; |
28 | |
import javax.faces.validator.BeanValidator; |
29 | |
import javax.faces.validator.DoubleRangeValidator; |
30 | |
import javax.faces.validator.LengthValidator; |
31 | |
import javax.faces.validator.LongRangeValidator; |
32 | |
import javax.faces.validator.RegexValidator; |
33 | |
import javax.faces.validator.RequiredValidator; |
34 | |
|
35 | |
import org.apache.myfaces.view.facelets.tag.AbstractTagLibrary; |
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
public final class CoreLibrary extends AbstractTagLibrary |
45 | |
{ |
46 | |
|
47 | |
public final static String NAMESPACE = "http://xmlns.jcp.org/jsf/core"; |
48 | |
public final static String ALIAS_NAMESPACE = "http://java.sun.com/jsf/core"; |
49 | |
|
50 | 0 | public final static CoreLibrary INSTANCE = new CoreLibrary(); |
51 | |
|
52 | |
public CoreLibrary() |
53 | |
{ |
54 | 0 | super(NAMESPACE, ALIAS_NAMESPACE); |
55 | |
|
56 | 0 | this.addTagHandler("actionListener", ActionListenerHandler.class); |
57 | |
|
58 | 0 | this.addTagHandler("ajax", AjaxHandler.class); |
59 | |
|
60 | 0 | this.addTagHandler("attribute", AttributeHandler.class); |
61 | |
|
62 | 0 | this.addTagHandler("attributes", AttributesHandler.class); |
63 | |
|
64 | 0 | this.addConverter("convertDateTime", DateTimeConverter.CONVERTER_ID, ConvertDateTimeHandler.class); |
65 | |
|
66 | 0 | this.addConverter("convertNumber", NumberConverter.CONVERTER_ID, ConvertNumberHandler.class); |
67 | |
|
68 | 0 | this.addConverter("converter", null, ConvertDelegateHandler.class); |
69 | |
|
70 | 0 | this.addTagHandler ("event", EventHandler.class); |
71 | |
|
72 | 0 | this.addTagHandler("facet", FacetHandler.class); |
73 | |
|
74 | 0 | this.addTagHandler("loadBundle", LoadBundleHandler.class); |
75 | |
|
76 | 0 | this.addTagHandler("metadata", ViewMetadataHandler.class); |
77 | |
|
78 | 0 | this.addComponent("param", UIParameter.COMPONENT_TYPE, null); |
79 | |
|
80 | 0 | this.addTagHandler("passThroughAttribute", PassThroughAttributeHandler.class); |
81 | |
|
82 | 0 | this.addTagHandler("passThroughAttributes", PassThroughAttributesHandler.class); |
83 | |
|
84 | 0 | this.addTagHandler("phaseListener", PhaseListenerHandler.class); |
85 | |
|
86 | 0 | this.addTagHandler("resetValues", ResetValuesActionListenerHandler.class); |
87 | |
|
88 | 0 | this.addComponent("selectItem", UISelectItem.COMPONENT_TYPE, null, SelectItemHandler.class); |
89 | |
|
90 | 0 | this.addComponent("selectItems", UISelectItems.COMPONENT_TYPE, null, SelectItemsHandler.class); |
91 | |
|
92 | 0 | this.addTagHandler("setPropertyActionListener", SetPropertyActionListenerHandler.class); |
93 | |
|
94 | 0 | this.addComponent("subview", "javax.faces.NamingContainer", null); |
95 | |
|
96 | 0 | this.addValidator("validateBean", BeanValidator.VALIDATOR_ID); |
97 | |
|
98 | 0 | this.addValidator("validateLength", LengthValidator.VALIDATOR_ID); |
99 | |
|
100 | 0 | this.addValidator("validateLongRange", LongRangeValidator.VALIDATOR_ID); |
101 | |
|
102 | 0 | this.addValidator("validateDoubleRange", DoubleRangeValidator.VALIDATOR_ID); |
103 | |
|
104 | 0 | this.addValidator("validateRegex", RegexValidator.VALIDATOR_ID); |
105 | |
|
106 | 0 | this.addValidator("validateRequired", RequiredValidator.VALIDATOR_ID); |
107 | |
|
108 | 0 | this.addValidator("validator", null, ValidateDelegateHandler.class); |
109 | |
|
110 | 0 | this.addTagHandler("valueChangeListener", ValueChangeListenerHandler.class); |
111 | |
|
112 | 0 | this.addTagHandler("view", ViewHandler.class); |
113 | |
|
114 | 0 | this.addComponent("viewAction", UIViewAction.COMPONENT_TYPE, null); |
115 | |
|
116 | 0 | this.addComponent("viewParam", UIViewParameter.COMPONENT_TYPE, null); |
117 | |
|
118 | 0 | this.addComponent("verbatim", "javax.faces.HtmlOutputText", "javax.faces.Text", VerbatimHandler.class); |
119 | 0 | } |
120 | |
} |