You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2008/06/04 05:09:37 UTC

svn commit: r662956 - /myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UISelectItems.java

Author: lu4242
Date: Tue Jun  3 20:09:37 2008
New Revision: 662956

URL: http://svn.apache.org/viewvc?rev=662956&view=rev
Log:
Component generation for 1.2

Added:
    myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UISelectItems.java   (with props)

Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UISelectItems.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UISelectItems.java?rev=662956&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UISelectItems.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UISelectItems.java Tue Jun  3 20:09:37 2008
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+package javax.faces.component;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
+
+/**
+ *
+ * UISelectItems should be nestetd inside a UISelectMany or UISelectOne component,
+ * and results in  the addition of one ore more SelectItem instance to the list of available options
+ * for the parent component
+ */
+@JSFComponent
+(clazz = "javax.faces.component.UISelectItems")
+abstract class _UISelectItems extends UIComponentBase
+{
+
+  static public final String COMPONENT_FAMILY =
+    "javax.faces.SelectItems";
+  static public final String COMPONENT_TYPE =
+    "javax.faces.SelectItems";
+
+  /**
+   * Disable this property; although this class extends a base-class that
+   * defines a read/write rendered property, this particular subclass
+   * does not support setting it. Yes, this is broken OO design: direct
+   * all complaints to the JSF spec group.
+   */
+  @JSFProperty(tagExcluded=true)
+  @Override
+  public void setRendered(boolean state) {
+     throw new UnsupportedOperationException();
+  }
+  
+  /**
+   * The initial value of this component.
+   *
+   * @return  the new value value
+   */
+  @JSFProperty
+  public abstract Object getValue();
+
+}

Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UISelectItems.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL