KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > taglib > core > ParamTag


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.taglib.core;
17
18 import org.apache.myfaces.taglib.UIComponentTagBase;
19
20 import javax.faces.component.UIComponent;
21
22 /**
23  * DOCUMENT ME!
24  * @author Manfred Geiler (latest modification by $Author: matze $)
25  * @version $Revision: 1.6 $ $Date: 2004/10/13 11:51:00 $
26  */

27 public class ParamTag
28     extends UIComponentTagBase
29 {
30     public String JavaDoc getComponentType()
31     {
32         return "javax.faces.Parameter";
33     }
34
35     public String JavaDoc getRendererType()
36     {
37         return null;
38     }
39
40     // UIComponent attributes --> already implemented in UIComponentTagBase
41

42     // UIParameter attributes
43
// value already implemented in UIComponentTagBase
44
private String JavaDoc _name;
45
46     protected void setProperties(UIComponent component)
47     {
48         super.setProperties(component);
49         
50         setStringProperty(component, "name", _name);
51     }
52
53     public void setName(String JavaDoc name)
54     {
55         _name = name;
56     }
57 }
58
Popular Tags