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.jstl.core; |
20 | |
|
21 | |
import org.apache.myfaces.view.facelets.tag.AbstractTagLibrary; |
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
public final class JstlCoreLibrary extends AbstractTagLibrary |
28 | |
{ |
29 | |
|
30 | |
public final static String NAMESPACE = "http://xmlns.jcp.org/jsp/jstl/core"; |
31 | |
public final static String ALIAS_NAMESPACE = "http://java.sun.com/jsp/jstl/core"; |
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
public final static String ALTERNATIVE_NAMESPACE = "http://java.sun.com/jstl/core"; |
38 | |
|
39 | 0 | public final static JstlCoreLibrary INSTANCE = new JstlCoreLibrary(); |
40 | |
|
41 | |
public JstlCoreLibrary() |
42 | |
{ |
43 | 0 | super(NAMESPACE, ALIAS_NAMESPACE); |
44 | |
|
45 | 0 | this.addTagHandler("if", IfHandler.class); |
46 | |
|
47 | 0 | this.addTagHandler("forEach", ForEachHandler.class); |
48 | |
|
49 | 0 | this.addTagHandler("catch", CatchHandler.class); |
50 | |
|
51 | 0 | this.addTagHandler("choose", ChooseHandler.class); |
52 | |
|
53 | 0 | this.addTagHandler("when", ChooseWhenHandler.class); |
54 | |
|
55 | 0 | this.addTagHandler("otherwise", ChooseOtherwiseHandler.class); |
56 | |
|
57 | 0 | this.addTagHandler("set", SetHandler.class); |
58 | 0 | } |
59 | |
|
60 | |
public JstlCoreLibrary(String namespace) |
61 | |
{ |
62 | 0 | super(namespace); |
63 | |
|
64 | 0 | this.addTagHandler("if", IfHandler.class); |
65 | |
|
66 | 0 | this.addTagHandler("forEach", ForEachHandler.class); |
67 | |
|
68 | 0 | this.addTagHandler("catch", CatchHandler.class); |
69 | |
|
70 | 0 | this.addTagHandler("choose", ChooseHandler.class); |
71 | |
|
72 | 0 | this.addTagHandler("when", ChooseWhenHandler.class); |
73 | |
|
74 | 0 | this.addTagHandler("otherwise", ChooseOtherwiseHandler.class); |
75 | |
|
76 | 0 | this.addTagHandler("set", SetHandler.class); |
77 | 0 | } |
78 | |
} |