01: /*
02: * Copyright 2004-2006 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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.shared_impl.taglib.UIComponentELTagBase;
19:
20: import javax.faces.component.UIComponent;
21: import javax.el.ValueExpression;
22:
23: /**
24: * DOCUMENT ME!
25: * @author Manfred Geiler (latest modification by $Author: baranda $)
26: * @author Bruno Aranda (JSR-252)
27: * @version $Revision: 462928 $ $Date: 2006-10-11 22:25:15 +0200 (Mi, 11 Okt 2006) $
28: */
29: public class ParamTag extends UIComponentELTagBase {
30: public String getComponentType() {
31: return "javax.faces.Parameter";
32: }
33:
34: public String getRendererType() {
35: return null;
36: }
37:
38: // UIComponent attributes --> already implemented in UIComponentELTagBase
39:
40: // UIParameter attributes
41: private ValueExpression _name;
42:
43: protected void setProperties(UIComponent component) {
44: super .setProperties(component);
45:
46: setStringProperty(component, "name", _name);
47: }
48:
49: public void setName(ValueExpression name) {
50: _name = name;
51: }
52: }
|