KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > wap > def > Message


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.wap.def;
17
18 /**
19  * Render a single message for a specific component.
20  *
21  * Set-up for Rendering
22  * Obtain the "summary" and "detail" properties fromUIMessage component. If not present, keep the empty string as the value, respectively. Obtain the firstFacesMessage to render from the component, using the "for" property of the UIMessage. This will be the only message we render.
23  *
24  * Rendering
25  * For the message renderer, we only render one row, for the first message. For the messages renderer, we render as many rows as we have messages.
26  *
27  * @wapfaces.tag
28  * componentFamily="UIMessage"
29  * rendererType="MessageRenderer"
30  * tagName="message"
31  * tagBaseClass="org.apache.myfaces.wap.base.MessageTagBase"
32  * bodyContent="JSP"
33  *
34  * @author <a HREF="mailto:Jiri.Zaloudek@ivancice.cz">Jiri Zaloudek</a> (latest modification by $Author: matzew $)
35  * @version $Revision: 1.1 $ $Date: 2004/12/30 09:37:25 $
36  * $Log: Message.java,v $
37  * Revision 1.1 2004/12/30 09:37:25 matzew
38  * added a new RenderKit for WML. Thanks to Jirí Žaloudek
39  *
40  */

41
42
43 public class Message extends javax.faces.component.UIMessage {
44         
45     // ============= ABSTARACT ATTRIBUTES ======================================
46
/**
47      * The component identifier for the associated component.
48      *
49      * @wapfaces.attribute
50      * abstract="true"
51      * inherit="true"
52      */

53     java.lang.String JavaDoc id;
54     
55     /**
56      * Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
57      *
58      * @wapfaces.attribute
59      * abstract="true"
60      * inherit="true"
61      */

62     boolean rendered;
63         
64     /**
65      * The value binding expression linking this component to a property in a backing bean.
66      *
67      * @wapfaces.attribute
68      * abstract="true"
69      * inherit="true"
70      */

71     java.lang.String JavaDoc binding;
72
73     /**
74      * Client identifier of the component for which to display messages.
75      *
76      * @wapfaces.attribute
77      * required="true"
78      * abstract="true"
79      * inherit="true"
80      * replaceWith="for"
81      */

82     java.lang.String JavaDoc forComponent;
83     
84      /**
85      * Flag indicating whether the summary portion of displayed messages should be included. Default value is "true".
86      *
87      * @wapfaces.attribute
88      * initValue="true"
89      * abstract="true"
90      * inherit="true"
91      */

92     boolean showDetail;
93     
94      /**
95      * Flag indicating whether the summary portion of displayed messages should be included. Default value is "false".
96      *
97      * @wapfaces.attribute
98      * initValue="false"
99      * abstract="true"
100      * inherit="true"
101      */

102     boolean showSummary;
103     
104 }
105
Popular Tags