KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Represents form element.
20  *
21  * Decode Behavior
22  * Obtain the Map from the "requestParameterMap" property of the ExternalContext. If the map contains an entry for the "clientId" of this UIForm component, call setSubmitted(true) on the form, otherwise callsetSubmitted(false) on the form.
23  *
24  * Encode Behavior
25  * Form element is not writed to the generated wml file. All input's data are posted by commandLink or commandButton elements.
26  * Encode end method assures writing state marker.
27  *
28  *
29  * @wapfaces.tag
30  * componentFamily="UIForm"
31  * rendererType="FormRenderer"
32  * tagName="form"
33  * tagBaseClass="org.apache.myfaces.wap.base.ComponentTagBase"
34  * bodyContent="JSP"
35  *
36  * @author <a HREF="mailto:Jiri.Zaloudek@ivancice.cz">Jiri Zaloudek</a> (latest modification by $Author: matzew $)
37  * @version $Revision: 1.1 $ $Date: 2004/12/30 09:37:25 $
38  * $Log: Form.java,v $
39  * Revision 1.1 2004/12/30 09:37:25 matzew
40  * added a new RenderKit for WML. Thanks to Jirí Žaloudek
41  *
42  */

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

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

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

73     java.lang.String JavaDoc binding;
74         
75 }
76
Popular Tags