Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
_UISelectItems |
|
| 0.0;0 |
1 | /* | |
2 | * Licensed to the Apache Software Foundation (ASF) under one | |
3 | * or more contributor license agreements. See the NOTICE file | |
4 | * distributed with this work for additional information | |
5 | * regarding copyright ownership. The ASF licenses this file | |
6 | * to you under the Apache License, Version 2.0 (the | |
7 | * "License"); you may not use this file except in compliance | |
8 | * with the License. You may obtain a copy of the License at | |
9 | * | |
10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
11 | * | |
12 | * Unless required by applicable law or agreed to in writing, | |
13 | * software distributed under the License is distributed on an | |
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
15 | * KIND, either express or implied. See the License for the | |
16 | * specific language governing permissions and limitations | |
17 | * under the License. | |
18 | */ | |
19 | package javax.faces.component; | |
20 | ||
21 | import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent; | |
22 | import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty; | |
23 | ||
24 | /** | |
25 | * This tag associates a set of selection list items with the nearest | |
26 | * parent UIComponent. The set of SelectItem objects is retrieved via | |
27 | * a value-binding. | |
28 | * <p> | |
29 | * Unless otherwise specified, all attributes accept static values | |
30 | * or EL expressions. | |
31 | * </p> | |
32 | * <p> | |
33 | * UISelectItems should be nested inside a UISelectMany or UISelectOne component, | |
34 | * and results in the addition of one ore more SelectItem instance to the list of available options | |
35 | * for the parent component | |
36 | * </p> | |
37 | */ | |
38 | @JSFComponent | |
39 | (clazz = "javax.faces.component.UISelectItems",template=true, | |
40 | name = "f:selectItems", | |
41 | tagClass = "org.apache.myfaces.taglib.core.SelectItemsTag", | |
42 | bodyContent = "empty") | |
43 | 0 | abstract class _UISelectItems extends UIComponentBase |
44 | { | |
45 | ||
46 | static public final String COMPONENT_FAMILY = | |
47 | "javax.faces.SelectItems"; | |
48 | static public final String COMPONENT_TYPE = | |
49 | "javax.faces.SelectItems"; | |
50 | ||
51 | /** | |
52 | * Disable this property; although this class extends a base-class that | |
53 | * defines a read/write rendered property, this particular subclass | |
54 | * does not support setting it. Yes, this is broken OO design: direct | |
55 | * all complaints to the JSF spec group. | |
56 | */ | |
57 | @JSFProperty(tagExcluded=true) | |
58 | @Override | |
59 | public void setRendered(boolean state) { | |
60 | 0 | super.setRendered(state); |
61 | //call parent method due TCK problems | |
62 | //throw new UnsupportedOperationException(); | |
63 | 0 | } |
64 | ||
65 | /** | |
66 | * The initial value of this component. | |
67 | * | |
68 | * @return the new value value | |
69 | */ | |
70 | @JSFProperty | |
71 | public abstract Object getValue(); | |
72 | ||
73 | } |