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:15:05 UTC
svn commit: r662960 [2/2] - in
/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component:
./ html/
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectBoolean.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/UISelectBoolean.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectBoolean.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectBoolean.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,147 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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 javax.el.ValueExpression;
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
+
+/**
+ *
+ * UISelectBoolean is a Comonent which represents a boolean value.
+ *
+ * <h4>Events:</h4>
+ * <table border="1" width="100%" cellpadding="3" summary="">
+ * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ * <th align="left">Type</th>
+ * <th align="left">Phases</th>
+ * <th align="left">Description</th>
+ * </tr>
+ * <tr class="TableRowColor">
+ * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
+ * <td valign="top" nowrap></td>
+ * <td valign="top">The valueChange event is delivered when the value
+ attribute is changed.</td>
+ * </tr>
+ * </table>
+ */
+@JSFComponent
+(defaultRendererType = "javax.faces.Checkbox"
+)
+public class UISelectBoolean extends UIInput
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.SelectBoolean";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.SelectBoolean";
+
+ /**
+ * Construct an instance of the UISelectBoolean.
+ */
+ public UISelectBoolean()
+ {
+ setRendererType("javax.faces.Checkbox");
+ }
+
+ public void setSelected(boolean selected)
+ {
+ setValue(Boolean.valueOf(selected));
+ }
+
+ public boolean isSelected()
+ {
+ Boolean value = (Boolean)getSubmittedValue();
+ if( value == null )
+ value = (Boolean)getValue();
+
+ return value != null ? value.booleanValue() : false;
+ }
+
+ /**
+ * @deprecated Use getValueExpression instead
+ */
+ public ValueBinding getValueBinding(String name)
+ {
+ if (name == null) throw new NullPointerException("name");
+ if (name.equals("selected"))
+ {
+ return super.getValueBinding("value");
+ }
+ else
+ {
+ return super.getValueBinding(name);
+ }
+ }
+
+ /**
+ * @deprecated Use setValueExpression instead
+ */
+ public void setValueBinding(String name,
+ ValueBinding binding)
+ {
+ if (name == null) throw new NullPointerException("name");
+ if (name.equals("selected"))
+ {
+ super.setValueBinding("value", binding);
+ }
+ else
+ {
+ super.setValueBinding(name, binding);
+ }
+ }
+
+ public ValueExpression getValueExpression(String name)
+ {
+ if (name == null) throw new NullPointerException("name");
+ if (name.equals("selected"))
+ {
+ return super.getValueExpression("value");
+ }
+ else
+ {
+ return super.getValueExpression(name);
+ }
+ }
+
+ public void setValueExpression(String name,
+ ValueExpression binding)
+ {
+ if (name == null) throw new NullPointerException("name");
+ if (name.equals("selected"))
+ {
+ super.setValueExpression("value", binding);
+ }
+ else
+ {
+ super.setValueExpression(name, binding);
+ }
+ }
+
+ @Override
+ public String getFamily()
+ {
+ return COMPONENT_FAMILY;
+ }
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectBoolean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectMany.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/UISelectMany.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectMany.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectMany.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,450 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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 java.lang.reflect.Array;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import javax.el.ValueExpression;
+import javax.faces.application.FacesMessage;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.ConverterException;
+import javax.faces.el.ValueBinding;
+import javax.faces.render.Renderer;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
+
+/**
+ *
+ * UISelectMany is a Component which represents a user choice of 0..n values.
+ *
+ * <h4>Events:</h4>
+ * <table border="1" width="100%" cellpadding="3" summary="">
+ * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ * <th align="left">Type</th>
+ * <th align="left">Phases</th>
+ * <th align="left">Description</th>
+ * </tr>
+ * <tr class="TableRowColor">
+ * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
+ * <td valign="top" nowrap></td>
+ * <td valign="top">The valueChange event is delivered when the value
+ attribute is changed.</td>
+ * </tr>
+ * </table>
+ */
+@JSFComponent
+(defaultRendererType = "javax.faces.Listbox"
+)
+public class UISelectMany extends UIInput
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.SelectMany";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.SelectMany";
+
+ /**
+ * Construct an instance of the UISelectMany.
+ */
+ public UISelectMany()
+ {
+ setRendererType("javax.faces.Listbox");
+ }
+ public static final String INVALID_MESSAGE_ID = "javax.faces.component.UISelectMany.INVALID";
+
+
+ public Object[] getSelectedValues()
+ {
+ return (Object[]) getValue();
+ }
+
+ public void setSelectedValues(Object[] selectedValues)
+ {
+ setValue(selectedValues);
+ }
+
+ /**
+ * @deprecated Use getValueExpression instead
+ */
+ public ValueBinding getValueBinding(String name)
+ {
+ if (name == null)
+ {
+ throw new NullPointerException("name");
+ }
+ if (name.equals("selectedValues"))
+ {
+ return super.getValueBinding("value");
+ } else
+ {
+ return super.getValueBinding(name);
+ }
+ }
+
+ /**
+ * @deprecated Use setValueExpression instead
+ */
+ public void setValueBinding(String name, ValueBinding binding)
+ {
+ if (name == null)
+ {
+ throw new NullPointerException("name");
+ }
+ if (name.equals("selectedValues"))
+ {
+ super.setValueBinding("value", binding);
+ } else
+ {
+ super.setValueBinding(name, binding);
+ }
+ }
+
+ public ValueExpression getValueExpression(String name)
+ {
+ if (name == null)
+ {
+ throw new NullPointerException("name");
+ }
+ if (name.equals("selectedValues"))
+ {
+ return super.getValueExpression("value");
+ } else
+ {
+ return super.getValueExpression(name);
+ }
+ }
+
+ public void setValueExpression(String name, ValueExpression binding)
+ {
+ if (name == null)
+ {
+ throw new NullPointerException("name");
+ }
+ if (name.equals("selectedValues"))
+ {
+ super.setValueExpression("value", binding);
+ } else
+ {
+ super.setValueExpression(name, binding);
+ }
+ }
+
+ /**
+ * @return true if Objects are different (!)
+ */
+ protected boolean compareValues(Object previous, Object value)
+ {
+ if (previous == null)
+ {
+ // one is null, the other not
+ return value != null;
+ } else if (value == null)
+ {
+ // one is null, the other not
+ return previous != null;
+ } else
+ {
+ if (previous instanceof Object[] && value instanceof Object[])
+ {
+ return compareObjectArrays((Object[]) previous,
+ (Object[]) value);
+ } else if (previous instanceof List && value instanceof List)
+ {
+ return compareLists((List) previous, (List) value);
+ } else if (previous.getClass().isArray()
+ && value.getClass().isArray())
+ {
+ return comparePrimitiveArrays(previous, value);
+ } else
+ {
+ //Objects have different classes
+ return true;
+ }
+ }
+ }
+
+ private boolean compareObjectArrays(Object[] previous, Object[] value)
+ {
+ int length = value.length;
+ if (previous.length != length)
+ {
+ //different length
+ return true;
+ }
+
+ boolean[] scoreBoard = new boolean[length];
+ for (int i = 0; i < length; i++)
+ {
+ Object p = previous[i];
+ boolean found = false;
+ for (int j = 0; j < length; j++)
+ {
+ if (scoreBoard[j] == false)
+ {
+ Object v = value[j];
+ if ((p == null && v == null)
+ || (p != null && v != null && p.equals(v)))
+ {
+ scoreBoard[j] = true;
+ found = true;
+ break;
+ }
+ }
+ }
+ if (!found)
+ {
+ return true; //current element of previous array not found in new array
+ }
+ }
+
+ return false; // arrays are identical
+ }
+
+ private boolean compareLists(List previous, List value)
+ {
+ int length = value.size();
+ if (previous.size() != length)
+ {
+ //different length
+ return true;
+ }
+
+ boolean[] scoreBoard = new boolean[length];
+ for (int i = 0; i < length; i++)
+ {
+ Object p = previous.get(i);
+ boolean found = false;
+ for (int j = 0; j < length; j++)
+ {
+ if (scoreBoard[j] == false)
+ {
+ Object v = value.get(j);
+ if ((p == null && v == null)
+ || (p != null && v != null && p.equals(v)))
+ {
+ scoreBoard[j] = true;
+ found = true;
+ break;
+ }
+ }
+ }
+ if (!found)
+ {
+ return true; //current element of previous List not found in new List
+ }
+ }
+
+ return false; // Lists are identical
+ }
+
+ private boolean comparePrimitiveArrays(Object previous, Object value)
+ {
+ int length = Array.getLength(value);
+ if (Array.getLength(previous) != length)
+ {
+ //different length
+ return true;
+ }
+
+ boolean[] scoreBoard = new boolean[length];
+ for (int i = 0; i < length; i++)
+ {
+ Object p = Array.get(previous, i);
+ boolean found = false;
+ for (int j = 0; j < length; j++)
+ {
+ if (scoreBoard[j] == false)
+ {
+ Object v = Array.get(value, j);
+ if ((p == null && v == null)
+ || (p != null && v != null && p.equals(v)))
+ {
+ scoreBoard[j] = true;
+ found = true;
+ break;
+ }
+ }
+ }
+ if (!found)
+ {
+ return true; //current element of previous array not found in new array
+ }
+ }
+
+ return false; // arrays are identical
+ }
+
+ protected void validateValue(FacesContext context, Object convertedValue)
+ {
+ Iterator itemValues = _createItemValuesIterator(convertedValue);
+
+ // verify that iterator was successfully created for convertedValue type
+ if (itemValues == null)
+ {
+ _MessageUtils.addErrorMessage(context, this, INVALID_MESSAGE_ID, new Object[]{_MessageUtils.getLabel(context,this)});
+ setValid(false);
+ return;
+ }
+
+ boolean hasValues = itemValues.hasNext();
+
+ // if UISelectMany is required, then there must be some selected values
+ if (isRequired() && !hasValues)
+ {
+ _MessageUtils.addErrorMessage(context, this, REQUIRED_MESSAGE_ID, new Object[]{_MessageUtils.getLabel(context,this)});
+ setValid(false);
+ return;
+ }
+
+ // run the validators only if there are item values to validate
+ if (hasValues)
+ {
+ _ComponentUtils.callValidators(context, this, convertedValue);
+ }
+
+ if (isValid() && hasValues)
+ {
+ // all selected values must match to the values of the available options
+
+ _SelectItemsUtil._ValueConverter converter = new _SelectItemsUtil._ValueConverter()
+ {
+ public Object getConvertedValue(FacesContext context, String value)
+ {
+ Object convertedValue = UISelectMany.this.getConvertedValue(context, new String[]{value});
+ if (convertedValue instanceof Collection)
+ {
+ Iterator iter = ((Collection) convertedValue).iterator();
+ if (iter.hasNext())
+ {
+ return iter.next();
+ }
+ return null;
+ }
+ return ((Object[]) convertedValue)[0];
+ }
+ };
+
+ Collection items = new ArrayList();
+ for (Iterator iter = new _SelectItemsIterator(this); iter.hasNext();)
+ {
+ items.add(iter.next());
+ }
+ while (itemValues.hasNext())
+ {
+ Object itemValue = itemValues.next();
+
+ if (!_SelectItemsUtil.matchValue(context, itemValue,
+ items.iterator(), converter))
+ {
+ _MessageUtils.addErrorMessage(context, this, INVALID_MESSAGE_ID, new Object[]{_MessageUtils.getLabel(context,this)});
+ setValid(false);
+ return;
+ }
+ }
+ }
+ }
+
+ /**
+ * First part is identical to super.validate except the empty condition.
+ * Second part: iterate through UISelectItem and UISelectItems and check
+ * current values against these items
+ */
+ public void validate(FacesContext context)
+ {
+ // TODO : Setting the submitted value to null in the super class causes a bug, if set to null, you'll get the following error :
+ // java.lang.NullPointerException at org.apache.myfaces.renderkit._SharedRendererUtils.getConvertedUISelectManyValue(_SharedRendererUtils.java:118)
+ super.validate(context);
+ }
+
+ protected Object getConvertedValue(FacesContext context,
+ Object submittedValue)
+ {
+ try
+ {
+ Renderer renderer = getRenderer(context);
+ if (renderer != null)
+ {
+ return renderer
+ .getConvertedValue(context, this,
+ submittedValue);
+ } else if (submittedValue == null)
+ {
+ return null;
+ } else if (submittedValue instanceof String[])
+ {
+ return _SharedRendererUtils.getConvertedUISelectManyValue(
+ context, this, (String[]) submittedValue);
+ }
+ }
+ catch (ConverterException e)
+ {
+ FacesMessage facesMessage = e.getFacesMessage();
+ if (facesMessage != null)
+ {
+ context.addMessage(getClientId(context), facesMessage);
+ } else
+ {
+ _MessageUtils.addErrorMessage(context, this, CONVERSION_MESSAGE_ID, new Object[]{_MessageUtils.getLabel(context,this)});
+ }
+ setValid(false);
+ }
+ return submittedValue;
+ }
+
+ private Iterator _createItemValuesIterator(Object convertedValue)
+ {
+ if (convertedValue == null)
+ {
+ return Collections.EMPTY_LIST.iterator();
+ } else
+ {
+ Class valueClass = convertedValue.getClass();
+ if (valueClass.isArray())
+ {
+ return new _PrimitiveArrayIterator(convertedValue);
+ } else if (convertedValue instanceof Object[])
+ {
+ Object[] values = (Object[]) convertedValue;
+ return Arrays.asList(values).iterator();
+ } else if (convertedValue instanceof List)
+ {
+ List values = (List) convertedValue;
+ return values.iterator();
+ } else
+ {
+ // unsupported type for iteration
+ return null;
+ }
+ }
+ }
+
+ @Override
+ public String getFamily()
+ {
+ return COMPONENT_FAMILY;
+ }
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectMany.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectOne.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/UISelectOne.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectOne.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectOne.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,105 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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 javax.el.ValueExpression;
+import javax.faces.context.FacesContext;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
+
+/**
+ *
+ * UISelectOne is a Component which represents a user choice of 0..1 value.
+ *
+ * <h4>Events:</h4>
+ * <table border="1" width="100%" cellpadding="3" summary="">
+ * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ * <th align="left">Type</th>
+ * <th align="left">Phases</th>
+ * <th align="left">Description</th>
+ * </tr>
+ * <tr class="TableRowColor">
+ * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
+ * <td valign="top" nowrap></td>
+ * <td valign="top">The valueChange event is delivered when the value
+ attribute is changed.</td>
+ * </tr>
+ * </table>
+ */
+@JSFComponent
+(defaultRendererType = "javax.faces.Menu"
+)
+public class UISelectOne extends UIInput
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.SelectOne";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.SelectOne";
+
+ /**
+ * Construct an instance of the UISelectOne.
+ */
+ public UISelectOne()
+ {
+ setRendererType("javax.faces.Menu");
+ }
+ public static final String INVALID_MESSAGE_ID = "javax.faces.component.UISelectOne.INVALID";
+
+ /**
+ * Verify that the result of converting the newly submitted value is
+ * <i>equal</i> to the value property of one of the child SelectItem
+ * objects. If this is not true, a validation error is reported.
+ *
+ * @see javax.faces.component.UIInput#validateValue(javax.faces.context.FacesContext,java.lang.Object)
+ */
+ protected void validateValue(FacesContext context, Object value)
+ {
+ super.validateValue(context, value);
+
+ if (!isValid() || value == null)
+ {
+ return;
+ }
+
+ _SelectItemsUtil._ValueConverter converter = new _SelectItemsUtil._ValueConverter()
+ {
+ public Object getConvertedValue(FacesContext context, String value)
+ {
+ return UISelectOne.this.getConvertedValue(context, value);
+ }
+ };
+
+ // selected value must match to one of the available options
+ if (!_SelectItemsUtil.matchValue(context, value, new _SelectItemsIterator(this), converter))
+ {
+ _MessageUtils.addErrorMessage(context, this, INVALID_MESSAGE_ID, new Object[]{_MessageUtils.getLabel(context,this)});
+ setValid(false);
+ }
+ }
+
+ @Override
+ public String getFamily()
+ {
+ return COMPONENT_FAMILY;
+ }
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UISelectOne.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIViewRoot.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/UIViewRoot.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIViewRoot.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIViewRoot.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,602 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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 java.util.ArrayList;
+import java.util.ConcurrentModificationException;
+import java.util.List;
+import java.util.ListIterator;
+import java.util.Locale;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.el.MethodExpression;
+import javax.el.ValueExpression;
+import javax.faces.FactoryFinder;
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+import javax.faces.event.AbortProcessingException;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.PhaseEvent;
+import javax.faces.event.PhaseId;
+import javax.faces.event.PhaseListener;
+import javax.faces.lifecycle.Lifecycle;
+import javax.faces.lifecycle.LifecycleFactory;
+import javax.faces.webapp.FacesServlet;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspProperties;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspProperty;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
+
+/**
+ *
+ * The root element.
+ */
+@JSFComponent
+@JSFJspProperties(properties={
+@JSFJspProperty(name = "rendered",returnType = "boolean",tagExcluded = true),
+@JSFJspProperty(name = "binding",returnType = "java.lang.String",tagExcluded = true),
+@JSFJspProperty(name = "id",returnType = "java.lang.String",tagExcluded = true)})
+public class UIViewRoot extends UIComponentBase
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.ViewRoot";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.ViewRoot";
+
+ /**
+ * Construct an instance of the UIViewRoot.
+ */
+ public UIViewRoot()
+ {
+ setRendererType(null);
+ }
+ private static final int ANY_PHASE_ORDINAL = PhaseId.ANY_PHASE.getOrdinal();
+ public static final String UNIQUE_ID_PREFIX = "j_id";
+
+ private final Logger logger = Logger.getLogger(UIViewRoot.class.getName());
+
+ // todo: is it right to save the state of _events and _phaseListeners?
+
+ private transient Lifecycle _lifecycle = null;
+
+ public void queueEvent(FacesEvent event)
+ {
+ checkNull(event, "event");
+ if (_events == null)
+ {
+ _events = new ArrayList<FacesEvent>();
+ }
+ _events.add(event);
+ }
+
+
+ public void processDecodes(final FacesContext context)
+ {
+ checkNull(context, "context");
+ process(context, PhaseId.APPLY_REQUEST_VALUES, new Processor()
+ {
+ public void process()
+ {
+ UIViewRoot.super.processDecodes(context);
+ }
+ }, true);
+ }
+
+ public void processValidators(final FacesContext context)
+ {
+ checkNull(context, "context");
+ process(context, PhaseId.PROCESS_VALIDATIONS, new Processor()
+ {
+ public void process()
+ {
+ UIViewRoot.super.processValidators(context);
+ }
+ }, true);
+ }
+
+ public void processUpdates(final FacesContext context)
+ {
+ checkNull(context, "context");
+ process(context, PhaseId.UPDATE_MODEL_VALUES, new Processor()
+ {
+ public void process()
+ {
+ UIViewRoot.super.processUpdates(context);
+ }
+ }, true);
+ }
+
+ public void processApplication(final FacesContext context)
+ {
+ checkNull(context, "context");
+ process(context, PhaseId.INVOKE_APPLICATION, null, true);
+ }
+
+ public void encodeBegin(FacesContext context)
+ throws java.io.IOException
+ {
+ checkNull(context, "context");
+
+ boolean skipPhase = false;
+
+ try
+ {
+ skipPhase = notifyListeners(context, PhaseId.RENDER_RESPONSE, getBeforePhaseListener(), true);
+ }
+ catch (Exception e)
+ {
+ // following the spec we have to swallow the exception
+ logger.log(Level.SEVERE, "Exception while processing phase listener: " + e.getMessage(), e);
+ }
+
+ if(!skipPhase)
+ {
+ super.encodeBegin(context);
+ }
+ }
+
+ public void encodeEnd(FacesContext context) throws java.io.IOException
+ {
+ checkNull(context, "context");
+ super.encodeEnd(context);
+ try
+ {
+ notifyListeners(context, PhaseId.RENDER_RESPONSE, getAfterPhaseListener(), false);
+ }
+ catch (Exception e)
+ {
+ // following the spec we have to swallow the exception
+ logger.log(Level.SEVERE, "Exception while processing phase listener: " + e.getMessage(), e);
+ }
+ }
+
+ /*
+ * Provides a unique id for this component instance.
+ */
+ public String createUniqueId()
+ {
+ ExternalContext extCtx = FacesContext.getCurrentInstance().getExternalContext();
+ StringBuilder bld = __getSharedStringBuilder();
+ return extCtx.encodeNamespace(bld.append(UNIQUE_ID_PREFIX).append(_uniqueIdCounter++).toString());
+ }
+
+ /**
+ * Gets The locale for this ViewRoot.
+ *
+ * @return the new locale value
+ */
+ public Locale getLocale()
+ {
+ if (_locale != null)
+ {
+ return _locale;
+ }
+ ValueExpression expression = getValueExpression("locale");
+ if (expression != null)
+ {
+ return (Locale) expression.getValue(getFacesContext().getELContext());
+ }
+ else
+ {
+ Object locale = getFacesContext().getApplication().getViewHandler().calculateLocale(getFacesContext());
+
+ if (locale instanceof Locale)
+ {
+ return (Locale) locale;
+ }
+ else if (locale instanceof String)
+ {
+ return stringToLocale((String)locale);
+ }
+ }
+
+ return getFacesContext().getApplication().getViewHandler().calculateLocale(getFacesContext());
+ }
+
+ private boolean process(FacesContext context, PhaseId phaseId, Processor processor, boolean broadcast)
+ {
+ if (!notifyListeners(context, phaseId, getBeforePhaseListener(), true))
+ {
+ if (processor != null)
+ processor.process();
+
+ if (broadcast)
+ {
+ _broadcastForPhase(phaseId);
+ if (context.getRenderResponse() || context.getResponseComplete())
+ {
+ clearEvents();
+ }
+ }
+ }
+ return notifyListeners(context, phaseId, getAfterPhaseListener(), false);
+ }
+
+ private boolean notifyListeners(FacesContext context, PhaseId phaseId, MethodExpression listener, boolean beforePhase)
+ {
+ boolean skipPhase = false;
+
+ if (listener != null || (_phaseListeners != null && !_phaseListeners.isEmpty()))
+ {
+ PhaseEvent event = createEvent(context, phaseId);
+
+ if (listener != null)
+ {
+ listener.invoke(context.getELContext(), new Object[]{event});
+ skipPhase = context.getResponseComplete() || context.getRenderResponse();
+ }
+
+ if (_phaseListeners != null && !_phaseListeners.isEmpty())
+ {
+ for (PhaseListener phaseListener : _phaseListeners)
+ {
+ PhaseId listenerPhaseId = phaseListener.getPhaseId();
+ if (phaseId.equals(listenerPhaseId) || PhaseId.ANY_PHASE.equals(listenerPhaseId))
+ {
+ if (beforePhase)
+ {
+ phaseListener.beforePhase(event);
+ }
+ else
+ {
+ phaseListener.afterPhase(event);
+ }
+ skipPhase = context.getResponseComplete() || context.getRenderResponse();
+ }
+ }
+ }
+ }
+
+ return skipPhase;
+ }
+
+ private PhaseEvent createEvent(FacesContext context, PhaseId phaseId)
+ {
+ if (_lifecycle == null)
+ {
+ LifecycleFactory factory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
+ String id = context.getExternalContext().getInitParameter(FacesServlet.LIFECYCLE_ID_ATTR);
+ if (id == null)
+ {
+ id = LifecycleFactory.DEFAULT_LIFECYCLE;
+ }
+ _lifecycle = factory.getLifecycle(id);
+ }
+ return new PhaseEvent(context, phaseId, _lifecycle);
+ }
+
+ private void _broadcastForPhase(PhaseId phaseId)
+ {
+ if (_events == null)
+ {
+ return;
+ }
+
+ boolean abort = false;
+
+ int phaseIdOrdinal = phaseId.getOrdinal();
+ for (ListIterator<FacesEvent> listiterator = _events.listIterator(); listiterator.hasNext();)
+ {
+ FacesEvent event = listiterator.next();
+ int ordinal = event.getPhaseId().getOrdinal();
+ if (ordinal == ANY_PHASE_ORDINAL ||
+ ordinal == phaseIdOrdinal)
+ {
+ UIComponent source = event.getComponent();
+ try
+ {
+ source.broadcast(event);
+ }
+ catch (AbortProcessingException e)
+ {
+ // abort event processing
+ // Page 3-30 of JSF 1.1 spec: "Throw an AbortProcessingException, to tell the JSF implementation
+ // that no further broadcast of this event, or any further events, should take place."
+ abort = true;
+ break;
+ }
+ finally
+ {
+ try
+ {
+ listiterator.remove();
+ }
+ catch (ConcurrentModificationException cme)
+ {
+ int eventIndex = listiterator.previousIndex();
+ _events.remove(eventIndex);
+ listiterator = _events.listIterator();
+ }
+ }
+ }
+ }
+
+ if (abort)
+ {
+ // TODO: abort processing of any event of any phase or just of any event of the current phase???
+ clearEvents();
+ }
+ }
+
+
+ private void clearEvents()
+ {
+ _events = null;
+ }
+
+ private void checkNull(Object value, String valueLabel)
+ {
+ if (value == null)
+ {
+ throw new NullPointerException(valueLabel + " is null");
+ }
+ }
+
+ private interface Processor
+ {
+ void process();
+ }
+
+ private Locale stringToLocale(String localeStr)
+ {
+ // locale expr: \[a-z]{2}((-|_)[A-Z]{2})?
+
+ if (localeStr.contains("_") || localeStr.contains("-"))
+ {
+ if (localeStr.length() == 2)
+ {
+ // localeStr is the lang
+ return new Locale(localeStr);
+ }
+ }
+ else
+ {
+ if (localeStr.length() == 5)
+ {
+ String lang = localeStr.substring(0,1);
+ String country = localeStr.substring(3,4);
+ return new Locale(lang,country);
+ }
+ }
+
+ return Locale.getDefault();
+ }
+
+
+ // Property: locale
+ private Locale _locale;
+
+ /**
+ * Sets The locale for this ViewRoot.
+ *
+ * @param locale the new locale value
+ */
+ public void setLocale(Locale locale)
+ {
+ this._locale = locale;
+ }
+
+ // Property: renderKitId
+ private String _renderKitId;
+
+ /**
+ * Gets The initial value of this component.
+ *
+ * @return the new renderKitId value
+ */
+ @JSFProperty
+ public String getRenderKitId()
+ {
+ if (_renderKitId != null)
+ {
+ return _renderKitId;
+ }
+ ValueExpression expression = getValueExpression("renderKitId");
+ if (expression != null)
+ {
+ return (String)expression.getValue(getFacesContext().getELContext());
+ }
+ return null;
+ }
+
+ /**
+ * Sets The initial value of this component.
+ *
+ * @param renderKitId the new renderKitId value
+ */
+ public void setRenderKitId(String renderKitId)
+ {
+ this._renderKitId = renderKitId;
+ }
+
+ // Property: viewId
+ private String _viewId;
+
+ /**
+ * Gets The viewId.
+ *
+ * @return the new viewId value
+ */
+ @JSFProperty
+ (tagExcluded = true)
+ public String getViewId()
+ {
+ return _viewId;
+ }
+
+ /**
+ * Sets The viewId.
+ *
+ * @param viewId the new viewId value
+ */
+ public void setViewId(String viewId)
+ {
+ this._viewId = viewId;
+ }
+
+ // Property: events
+ private List<FacesEvent> _events;
+
+ // Property: uniqueIdCounter
+ private long _uniqueIdCounter = 0;
+
+ // Property: phaseListeners
+ private List<PhaseListener> _phaseListeners;
+
+ /**
+ * Adds a The phaseListeners attached to ViewRoot.
+ */
+ public void addPhaseListener( PhaseListener phaseListener)
+ {
+ if (phaseListener == null) throw new NullPointerException("phaseListener");
+ if (_phaseListeners == null)
+ _phaseListeners = new ArrayList<PhaseListener>();
+
+ _phaseListeners.add(phaseListener);
+ }
+
+ /**
+ * Removes a The phaseListeners attached to ViewRoot.
+ */
+ public void removePhaseListener( PhaseListener phaseListener)
+ {
+ if (phaseListener == null || _phaseListeners == null)
+ return;
+
+ _phaseListeners.remove(phaseListener);
+ }
+
+ // Property: beforePhaseListener
+ private MethodExpression _beforePhaseListener;
+
+ /**
+ * Gets
+ *
+ * @return the new beforePhaseListener value
+ */
+ @JSFProperty
+ (stateHolder = true,
+ returnSignature = "void",
+ methodSignature = "javax.faces.event.PhaseEvent",
+ jspName = "beforePhase")
+ public MethodExpression getBeforePhaseListener()
+ {
+ if (_beforePhaseListener != null)
+ {
+ return _beforePhaseListener;
+ }
+ ValueExpression expression = getValueExpression("beforePhaseListener");
+ if (expression != null)
+ {
+ return (MethodExpression)expression.getValue(getFacesContext().getELContext());
+ }
+ return null;
+ }
+
+ /**
+ * Sets
+ *
+ * @param beforePhaseListener the new beforePhaseListener value
+ */
+ public void setBeforePhaseListener(MethodExpression beforePhaseListener)
+ {
+ this._beforePhaseListener = beforePhaseListener;
+ }
+
+ // Property: afterPhaseListener
+ private MethodExpression _afterPhaseListener;
+
+ /**
+ * Gets
+ *
+ * @return the new afterPhaseListener value
+ */
+ @JSFProperty
+ (stateHolder = true,
+ returnSignature = "void",
+ methodSignature = "javax.faces.event.PhaseEvent",
+ jspName = "afterPhase")
+ public MethodExpression getAfterPhaseListener()
+ {
+ if (_afterPhaseListener != null)
+ {
+ return _afterPhaseListener;
+ }
+ ValueExpression expression = getValueExpression("afterPhaseListener");
+ if (expression != null)
+ {
+ return (MethodExpression)expression.getValue(getFacesContext().getELContext());
+ }
+ return null;
+ }
+
+ /**
+ * Sets
+ *
+ * @param afterPhaseListener the new afterPhaseListener value
+ */
+ public void setAfterPhaseListener(MethodExpression afterPhaseListener)
+ {
+ this._afterPhaseListener = afterPhaseListener;
+ }
+
+ @Override
+ public Object saveState(FacesContext facesContext)
+ {
+ Object[] values = new Object[10];
+ values[0] = super.saveState(facesContext);
+ values[1] = _locale;
+ values[2] = _renderKitId;
+ values[3] = _viewId;
+ values[4] = saveAttachedState(facesContext, _events);
+ values[5] = _uniqueIdCounter;
+ values[7] = saveAttachedState(facesContext, _phaseListeners);
+ values[8] = saveAttachedState(facesContext, _beforePhaseListener);
+ values[9] = saveAttachedState(facesContext, _afterPhaseListener);
+
+ return values;
+ }
+
+ @Override
+ public void restoreState(FacesContext facesContext, Object state)
+ {
+ Object[] values = (Object[])state;
+ super.restoreState(facesContext,values[0]);
+ _locale = (Locale)values[1];
+ _renderKitId = (String)values[2];
+ _viewId = (String)values[3];
+ _events = (List)restoreAttachedState(facesContext, values[4]);
+ _uniqueIdCounter = (Long)values[5];
+ _phaseListeners = (List) restoreAttachedState(facesContext, values[7]);
+ _beforePhaseListener = (MethodExpression)restoreAttachedState(facesContext, values[8]);
+ _afterPhaseListener = (MethodExpression)restoreAttachedState(facesContext, values[9]);
+ }
+
+ @Override
+ public String getFamily()
+ {
+ return COMPONENT_FAMILY;
+ }
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIViewRoot.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlPanelGrid.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/html/_HtmlPanelGrid.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlPanelGrid.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlPanelGrid.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,176 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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.html;
+
+import javax.faces.component.UIPanel;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
+
+/**
+ *
+ * This element renders as an HTML table with specified number of columns.
+ * <p>
+ * Children of this element are rendered as cells in the table, filling
+ * rows from left to right. Facets named "header" and "footer" are optional
+ * and specify the content of the thead and tfoot rows, respectively.
+ * </p>
+ */
+@JSFComponent
+(name = "h:panelGrid",
+clazz = "javax.faces.component.html.HtmlPanelGrid",
+tagClass = "org.apache.myfaces.taglib.html.HtmlPanelGridTag",
+defaultRendererType = "javax.faces.Grid"
+)
+abstract class _HtmlPanelGrid extends UIPanel implements _EventProperties,
+_StyleProperties, _UniversalProperties
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.Panel";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.HtmlPanelGrid";
+
+ /**
+ * HTML: The background color of this element.
+ *
+ * @JSFProperty
+ */
+ public abstract String getBgcolor();
+
+ /**
+ * HTML: Specifies the width of the border of this element, in pixels. Deprecated in HTML 4.01.
+ *
+ * @JSFProperty
+ * defaultValue="Integer.MIN_VALUE"
+ */
+ public abstract int getBorder();
+
+ /**
+ * HTML: Specifies the amount of empty space between the cell border and
+ * its contents. It can be either a pixel length or a percentage.
+ *
+ * @JSFProperty
+ */
+ public abstract String getCellpadding();
+
+ /**
+ * HTML: Specifies the amount of space between the cells of the table.
+ * It can be either a pixel length or a percentage of available
+ * space.
+ *
+ * @JSFProperty
+ */
+ public abstract String getCellspacing();
+
+ /**
+ * A comma separated list of CSS class names to apply to td elements in
+ * each column.
+ *
+ * @JSFProperty
+ */
+ public abstract String getColumnClasses();
+
+ /**
+ * Specifies the number of columns in the grid.
+ *
+ * @JSFProperty
+ * defaultValue="1"
+ */
+ public abstract int getColumns();
+
+ /**
+ * The CSS class to be applied to footer cells.
+ *
+ * @JSFProperty
+ */
+ public abstract String getFooterClass();
+
+ /**
+ * HTML: Controls what part of the frame that surrounds a table is
+ * visible. Values include: void, above, below, hsides, lhs,
+ * rhs, vsides, box, and border.
+ *
+ * @JSFProperty
+ */
+ public abstract String getFrame();
+
+ /**
+ * The CSS class to be applied to header cells.
+ *
+ * @JSFProperty
+ */
+ public abstract String getHeaderClass();
+
+ /**
+ * A comma separated list of CSS class names to apply to td elements in
+ * each row.
+ *
+ * @JSFProperty
+ */
+ public abstract String getRowClasses();
+
+ /**
+ * HTML: Controls how rules are rendered between cells. Values include:
+ * none, groups, rows, cols, and all.
+ *
+ * @JSFProperty
+ */
+ public abstract String getRules();
+
+ /**
+ * HTML: Provides a summary of the contents of the table, for
+ * accessibility purposes.
+ *
+ * @JSFProperty
+ */
+ public abstract String getSummary();
+
+ /**
+ * HTML: Specifies the desired width of the table, as a pixel length or
+ * a percentage of available space.
+ *
+ * @JSFProperty
+ */
+ public abstract String getWidth();
+
+ /**
+ * A comma separated list of CSS class names to apply to all captions.
+ * If there are less classes than the number of rows, apply the same
+ * sequence of classes to the remaining captions, so the pattern is repeated.
+ * More than one class can be applied to a row by separating the classes
+ * with a space.
+ *
+ * @return the new captionClass value
+ */
+ @JSFProperty
+ public abstract String getCaptionClass();
+
+ /**
+ * Gets The CSS class to be applied to the Caption.
+ *
+ * @return the new captionStyle value
+ */
+ @JSFProperty
+ public abstract String getCaptionStyle();
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlPanelGrid.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlPanelGroup.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/html/_HtmlPanelGroup.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlPanelGroup.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlPanelGroup.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,60 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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.html;
+
+import javax.faces.component.UIPanel;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
+
+/**
+ *
+ * This element is used to group other components where the
+ * specification requires one child element. If any of the HTML or
+ * CSS attributes are set, its content is rendered within a span element.
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ */
+@JSFComponent
+(name = "h:panelGroup",
+clazz = "javax.faces.component.html.HtmlPanelGroup",
+tagClass = "org.apache.myfaces.taglib.html.HtmlPanelGroupTag",
+defaultRendererType = "javax.faces.Group"
+)
+abstract class _HtmlPanelGroup extends UIPanel implements _StyleProperties
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.Panel";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.HtmlPanelGroup";
+
+ /**
+ * The type of layout markup to use when rendering this group. If the value is "block"
+ * the renderer must produce an HTML "div" element. Otherwise HTML "span" element must be produced.
+ *
+ * @return the new layout value
+ */
+ @JSFProperty
+ public abstract String getLayout();
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlPanelGroup.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectBooleanCheckbox.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/html/_HtmlSelectBooleanCheckbox.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectBooleanCheckbox.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectBooleanCheckbox.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,72 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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.html;
+
+import javax.faces.component.UISelectBoolean;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+
+/**
+ *
+ * Allow the user to choose a "true" or "false" value, presented as a
+ * checkbox.
+ * <p>
+ * Renders as an HTML input tag with its type set to "checkbox", and
+ * its name attribute set to the id. The "checked" attribute is rendered
+ * if the value of this component is true.
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ *
+ * <h4>Events:</h4>
+ * <table border="1" width="100%" cellpadding="3" summary="">
+ * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ * <th align="left">Type</th>
+ * <th align="left">Phases</th>
+ * <th align="left">Description</th>
+ * </tr>
+ * <tr class="TableRowColor">
+ * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
+ * <td valign="top" nowrap></td>
+ * <td valign="top">The valueChange event is delivered when the value
+ attribute is changed.</td>
+ * </tr>
+ * </table>
+ */
+@JSFComponent
+(name = "h:selectBooleanCheckbox",
+clazz = "javax.faces.component.html.HtmlSelectBooleanCheckbox",
+tagClass = "org.apache.myfaces.taglib.html.HtmlSelectBooleanCheckboxTag",
+defaultRendererType = "javax.faces.Checkbox"
+)
+abstract class _HtmlSelectBooleanCheckbox extends UISelectBoolean implements
+_AccesskeyProperty, _UniversalProperties, _Disabled_ReadonlyProperties,
+_Focus_BlurProperties, _Change_SelectProperties, _EventProperties,
+_StyleProperties, _TabindexProperty, _LabelProperty
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.SelectBoolean";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.HtmlSelectBooleanCheckbox";
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectBooleanCheckbox.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyCheckbox.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/html/_HtmlSelectManyCheckbox.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyCheckbox.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyCheckbox.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,102 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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.html;
+
+import javax.faces.component.UISelectMany;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+
+/**
+ *
+ * Allow the user to select zero or more items from a set of
+ * available options. This is presented as a table with one cell per
+ * available option; each cell contains a checkbox and the option's
+ * label. The "layout" attribute determines whether the checkboxes
+ * are laid out horizontally or vertically.
+ * <p>
+ * The set of available options is defined by adding child
+ * f:selectItem or f:selectItems components to this component.
+ * <p>
+ * The value attribute must be a value-binding expression to a
+ * property of type List, Object array or primitive array. That
+ * "collection" is expected to contain objects of the same type as
+ * SelectItem.getValue() returns for the child SelectItem objects.
+ * On rendering, any child whose value is in the list will be
+ * selected initially. During the update phase, the property setter
+ * is called to replace the original collection with a completely
+ * new collection object of the appropriate type. The new collection
+ * object contains the value of each child SelectItem object that
+ * is currently selected.
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ *
+ * <h4>Events:</h4>
+ * <table border="1" width="100%" cellpadding="3" summary="">
+ * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ * <th align="left">Type</th>
+ * <th align="left">Phases</th>
+ * <th align="left">Description</th>
+ * </tr>
+ * <tr class="TableRowColor">
+ * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
+ * <td valign="top" nowrap></td>
+ * <td valign="top">The valueChange event is delivered when the value
+ attribute is changed.</td>
+ * </tr>
+ * </table>
+ */
+@JSFComponent
+(name = "h:selectManyCheckbox",
+clazz = "javax.faces.component.html.HtmlSelectManyCheckbox",
+tagClass = "org.apache.myfaces.taglib.html.HtmlSelectManyCheckboxTag",
+defaultRendererType = "javax.faces.Checkbox"
+)
+abstract class _HtmlSelectManyCheckbox extends UISelectMany implements
+ _AccesskeyProperty, _UniversalProperties, _Focus_BlurProperties,
+ _Change_SelectProperties, _EventProperties, _StyleProperties,
+ _TabindexProperty, _Disabled_ReadonlyProperties,
+ _DisabledClass_EnabledClassProperties, _LabelProperty
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.SelectMany";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.HtmlSelectManyCheckbox";
+
+ /**
+ * HTML: Specifies the width of the border of this element, in pixels. Deprecated in HTML 4.01.
+ *
+ * @JSFProperty
+ * defaultValue="Integer.MIN_VALUE"
+ */
+ public abstract int getBorder();
+
+ /**
+ * Controls the layout direction of the child elements. Values include:
+ * lineDirection (vertical) and pageDirection (horzontal).
+ *
+ * @JSFProperty
+ */
+ public abstract String getLayout();
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyCheckbox.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.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/html/_HtmlSelectManyListbox.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,97 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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.html;
+
+import javax.faces.component.UISelectMany;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+
+/**
+ *
+ * Allow the user to select zero or more items from a set of
+ * available options. This is presented as a listbox which allows
+ * multiple rows in the list to be selected simultaneously.
+ * <p>
+ * The set of available options is defined by adding child
+ * f:selectItem or f:selectItems components to this component.
+ * <p>
+ * The list is rendered as an HTML select element. The "multiple"
+ * attribute is set on the element and the size attribute is set to
+ * the provided value, defaulting to the number of items in the list
+ * if no value is provided. If the size is set to 1, then a
+ * "drop-down" list (aka "combo-box") is presented, though if this is
+ * the intention then a selectManyMenu should be used instead.
+ * <p>
+ * The value attribute must be a value-binding expression to a
+ * property of type List, Object array or primitive array. That
+ * "collection" is expected to contain objects of the same type as
+ * SelectItem.getValue() returns for the child SelectItem objects.
+ * On rendering, any child whose value is in the list will be
+ * selected initially. During the update phase, the property is set
+ * to contain a "collection" of values for those child SelectItem
+ * objects that are currently selected.
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ *
+ * <h4>Events:</h4>
+ * <table border="1" width="100%" cellpadding="3" summary="">
+ * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ * <th align="left">Type</th>
+ * <th align="left">Phases</th>
+ * <th align="left">Description</th>
+ * </tr>
+ * <tr class="TableRowColor">
+ * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
+ * <td valign="top" nowrap></td>
+ * <td valign="top">The valueChange event is delivered when the value
+ attribute is changed.</td>
+ * </tr>
+ * </table>
+ */
+@JSFComponent
+(name = "h:selectManyListbox",
+clazz = "javax.faces.component.html.HtmlSelectManyListbox",
+tagClass = "org.apache.myfaces.taglib.html.HtmlSelectManyListboxTag",
+defaultRendererType = "javax.faces.Listbox"
+)
+abstract class _HtmlSelectManyListbox extends UISelectMany implements
+_AccesskeyProperty, _UniversalProperties, _Disabled_ReadonlyProperties,
+_Focus_BlurProperties, _Change_SelectProperties, _EventProperties,
+_StyleProperties, _TabindexProperty, _DisabledClass_EnabledClassProperties,
+_LabelProperty
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.SelectMany";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.HtmlSelectManyListbox";
+
+ /**
+ * see JSF Spec.
+ *
+ * @JSFProperty
+ * defaultValue="Integer.MIN_VALUE"
+ */
+ public abstract int getSize();
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.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/html/_HtmlSelectManyMenu.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,86 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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.html;
+
+import javax.faces.component.UISelectMany;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+
+/**
+ *
+ * Allow the user to select zero or more items from a set of available
+ * options. This is presented as a drop-down "combo-box" which allows
+ * multiple rows in the list to be selected simultaneously.
+ * <p>
+ * The set of available options is defined by adding child
+ * f:selectItem or f:selectItems components to this component.
+ * <p>
+ * Renders as an HTML select element, with the choices made up of
+ * child f:selectItem or f:selectItems elements. The multiple
+ * attribute is set and the size attribute is set to 1.
+ * <p>
+ * The value attribute must be a value-binding expression to a
+ * property of type List, Object array or primitive array. That
+ * "collection" is expected to contain objects of the same type as
+ * SelectItem.getValue() returns for the child SelectItem objects.
+ * On rendering, any child whose value is in the list will be
+ * selected initially. During the update phase, the property is set
+ * to contain a "collection" of values for those child SelectItem
+ * objects that are currently selected.
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ *
+ * <h4>Events:</h4>
+ * <table border="1" width="100%" cellpadding="3" summary="">
+ * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ * <th align="left">Type</th>
+ * <th align="left">Phases</th>
+ * <th align="left">Description</th>
+ * </tr>
+ * <tr class="TableRowColor">
+ * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
+ * <td valign="top" nowrap></td>
+ * <td valign="top">The valueChange event is delivered when the value
+ attribute is changed.</td>
+ * </tr>
+ * </table>
+ */
+@JSFComponent
+(name = "h:selectManyMenu",
+clazz = "javax.faces.component.html.HtmlSelectManyMenu",
+tagClass = "org.apache.myfaces.taglib.html.HtmlSelectManyMenuTag",
+defaultRendererType = "javax.faces.Menu"
+)
+abstract class _HtmlSelectManyMenu extends UISelectMany implements
+_AccesskeyProperty, _UniversalProperties, _Disabled_ReadonlyProperties,
+_Focus_BlurProperties, _Change_SelectProperties, _EventProperties,
+_StyleProperties, _TabindexProperty, _DisabledClass_EnabledClassProperties,
+_LabelProperty
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.SelectMany";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.HtmlSelectManyMenu";
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.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/html/_HtmlSelectOneListbox.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,94 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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.html;
+
+import javax.faces.component.UISelectOne;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+
+/**
+ *
+ * Allow the user to choose one option from a set of options.
+ * <p>
+ * Rendered as a listbox with the MULTIPLE attribute set to false.
+ * <p>
+ * The available choices are defined via child f:selectItem or
+ * f:selectItems elements. The size of the listbox defaults to the
+ * number of available choices; if size is explicitly set to a
+ * smaller value, then scrollbars will be rendered. If size is set
+ * to 1 then a "drop-down menu" (aka "combo-box") is rendered, though
+ * if this is the intent then selectOneMenu should be used instead.
+ * <p>
+ * The value attribute of this component is read to determine
+ * which of the available options is initially selected; its value
+ * should match the "value" property of one of the child SelectItem
+ * objects.
+ * <p>
+ * On submit of the enclosing form, the value attribute's bound
+ * property is updated to contain the "value" property from the
+ * chosen SelectItem.
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ *
+ * <h4>Events:</h4>
+ * <table border="1" width="100%" cellpadding="3" summary="">
+ * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ * <th align="left">Type</th>
+ * <th align="left">Phases</th>
+ * <th align="left">Description</th>
+ * </tr>
+ * <tr class="TableRowColor">
+ * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
+ * <td valign="top" nowrap></td>
+ * <td valign="top">The valueChange event is delivered when the value
+ attribute is changed.</td>
+ * </tr>
+ * </table>
+ */
+@JSFComponent
+(name = "h:selectOneListbox",
+clazz = "javax.faces.component.html.HtmlSelectOneListbox",
+tagClass = "org.apache.myfaces.taglib.html.HtmlSelectOneListboxTag",
+defaultRendererType = "javax.faces.Listbox"
+)
+abstract class _HtmlSelectOneListbox extends UISelectOne implements
+_AccesskeyProperty, _UniversalProperties, _Disabled_ReadonlyProperties,
+_Focus_BlurProperties, _Change_SelectProperties, _EventProperties,
+_StyleProperties, _TabindexProperty, _DisabledClass_EnabledClassProperties,
+_LabelProperty
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.SelectOne";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.HtmlSelectOneListbox";
+
+ /**
+ * see JSF Spec.
+ *
+ * @JSFProperty
+ * defaultValue="Integer.MIN_VALUE"
+ */
+ public abstract int getSize();
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.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/html/_HtmlSelectOneMenu.java?rev=662960&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java Tue Jun 3 20:15:04 2008
@@ -0,0 +1,81 @@
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+
+/*
+ * 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.html;
+
+import javax.faces.component.UISelectOne;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+
+/**
+ *
+ * Allow the user to choose one option from a set of options.
+ * <p>
+ * Renders a drop-down menu (aka "combo-box") containing a set of
+ * choices, of which only one can be chosen at a time. The available
+ * choices are defined via child f:selectItem or f:selectItems
+ * elements.
+ * <p>
+ * The value attribute of this component is read to determine
+ * which of the available options is initially selected; its value
+ * should match the "value" property of one of the child SelectItem
+ * objects.
+ * <p>
+ * On submit of the enclosing form, the value attribute's bound property
+ * is updated to contain the "value" property from the chosen SelectItem.
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ *
+ * <h4>Events:</h4>
+ * <table border="1" width="100%" cellpadding="3" summary="">
+ * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ * <th align="left">Type</th>
+ * <th align="left">Phases</th>
+ * <th align="left">Description</th>
+ * </tr>
+ * <tr class="TableRowColor">
+ * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
+ * <td valign="top" nowrap></td>
+ * <td valign="top">The valueChange event is delivered when the value
+ attribute is changed.</td>
+ * </tr>
+ * </table>
+ */
+@JSFComponent
+(name = "h:selectOneMenu",
+clazz = "javax.faces.component.html.HtmlSelectOneMenu",
+tagClass = "org.apache.myfaces.taglib.html.HtmlSelectOneMenuTag",
+defaultRendererType = "javax.faces.Menu"
+)
+abstract class _HtmlSelectOneMenu extends UISelectOne implements
+_AccesskeyProperty, _UniversalProperties, _Disabled_ReadonlyProperties,
+_Focus_BlurProperties, _Change_SelectProperties, _EventProperties,
+_StyleProperties, _TabindexProperty, _DisabledClass_EnabledClassProperties,
+_LabelProperty
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.SelectOne";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.HtmlSelectOneMenu";
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL