1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.myfaces.tobago.internal.taglib.component;
21
22 import org.apache.myfaces.tobago.apt.annotation.BodyContent;
23 import org.apache.myfaces.tobago.apt.annotation.Tag;
24 import org.apache.myfaces.tobago.apt.annotation.TagAttribute;
25 import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
26 import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
27 import org.apache.myfaces.tobago.component.RendererTypes;
28 import org.apache.myfaces.tobago.internal.component.AbstractUIMessages;
29 import org.apache.myfaces.tobago.internal.taglib.declaration.HasCurrentMarkup;
30 import org.apache.myfaces.tobago.internal.taglib.declaration.HasFor;
31 import org.apache.myfaces.tobago.internal.taglib.declaration.HasIdBindingAndRendered;
32 import org.apache.myfaces.tobago.internal.taglib.declaration.HasMarkup;
33 import org.apache.myfaces.tobago.internal.taglib.declaration.IsGridLayoutComponent;
34
35 import javax.faces.component.UIMessages;
36
37
38
39
40 @Tag(name = "messages", bodyContent = BodyContent.EMPTY)
41 @UIComponentTag(
42 uiComponent = "org.apache.myfaces.tobago.component.UIMessages",
43 uiComponentBaseClass = "org.apache.myfaces.tobago.internal.component.AbstractUIMessages",
44 uiComponentFacesClass = "javax.faces.component.UIMessages",
45 componentFamily = UIMessages.COMPONENT_FAMILY,
46 rendererType = RendererTypes.MESSAGES,
47 allowedChildComponenents = "NONE")
48
49 public interface MessagesTagDeclaration
50 extends HasIdBindingAndRendered, HasFor, IsGridLayoutComponent, HasMarkup, HasCurrentMarkup {
51
52
53
54
55
56 @TagAttribute
57 @UIComponentTagAttribute(defaultValue = "false")
58 void setGlobalOnly(String globalOnly);
59
60
61
62
63 @TagAttribute
64 @UIComponentTagAttribute(type = "boolean", defaultValue = "false")
65 void setShowDetail(String showDetail);
66
67
68
69
70 @TagAttribute
71 @UIComponentTagAttribute(type = "boolean", defaultValue = "true")
72 void setShowSummary(String showSummary);
73
74
75
76
77 @TagAttribute
78 @UIComponentTagAttribute(type = "javax.faces.application.FacesMessage$Severity", defaultValue = "info",
79 defaultCode = "javax.faces.application.FacesMessage.SEVERITY_INFO")
80 void setMinSeverity(String minSeverity);
81
82
83
84
85
86
87 @TagAttribute
88 @UIComponentTagAttribute(type = "javax.faces.application.FacesMessage$Severity", defaultValue = "fatal",
89 defaultCode = "javax.faces.application.FacesMessage.SEVERITY_FATAL")
90 void setMaxSeverity(String maxSeverity);
91
92
93
94
95 @TagAttribute
96 @UIComponentTagAttribute(type = "java.lang.Integer", defaultValue = "2147483647")
97 void setMaxNumber(String maxNumber);
98
99
100
101
102 @TagAttribute
103 @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.component.UIMessages$OrderBy",
104 allowedValues = {AbstractUIMessages.OrderBy.OCCURRENCE_STRING, AbstractUIMessages.OrderBy.SEVERITY_STRING},
105 defaultValue = AbstractUIMessages.OrderBy.OCCURRENCE_STRING,
106 defaultCode = "org.apache.myfaces.tobago.internal.component.AbstractUIMessages.OrderBy.OCCURRENCE")
107 void setOrderBy(String orderBy);
108
109
110
111
112
113
114 @TagAttribute
115 @UIComponentTagAttribute(type = "boolean", defaultValue = "false")
116 void setConfirmation(String confirmation);
117
118 }