You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/05/31 19:53:48 UTC

svn commit: r662055 - in /myfaces/core/trunk/api/src/main/java/javax/faces/component: ./ html/

Author: skitching
Date: Sat May 31 10:53:47 2008
New Revision: 662055

URL: http://svn.apache.org/viewvc?rev=662055&view=rev
Log:
Fix some bad javadoc. Remove unused imports.

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIColumn.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponent.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItem.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItems.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectMany.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlMessage.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlOutputFormat.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java
    myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneRadio.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIColumn.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIColumn.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIColumn.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIColumn.java Sat May 31 10:53:47 2008
@@ -18,18 +18,18 @@
 */
 package javax.faces.component;
 
-
-
 /**
- *
  * This tag is commonly used as a child of the dataTable tag, to
- * represent a column of data. It can be decorated with "header" and
- * "footer" facets to drive the output of header and footer rows.
- * Row values are specified via its children.
+ * represent a column of data.
+ * <p>
+ * It can be decorated with "header" and "footer" facets to drive
+ * the output of header and footer rows. Row values are specified
+ * via its children.
+ * <p>
  * Unless otherwise specified, all attributes accept static values
  * or EL expressions.
- * 
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * <p>
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   name = "h:column"

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponent.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponent.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponent.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponent.java Sat May 31 10:53:47 2008
@@ -21,7 +21,9 @@
 import javax.faces.event.AbortProcessingException;
 
 /**
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * A base class for all JSF component classes.
+ * <p>
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   type = "javax.faces.Component"

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java Sat May 31 10:53:47 2008
@@ -41,7 +41,6 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-
 /**
  * Standard implementation of the UIComponent base class; all standard JSF
  * components extend this class.
@@ -51,13 +50,13 @@
  * specification cannot be replicated here. Any javadoc here therefore
  * describes the current implementation rather than the spec, though
  * this class has been verified as correctly implementing the spec.
- *
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a> for more.
+ * <p>
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a> for more.
  * 
  * @JSFComponent
  *   type = "javax.faces.ComponentBase"
  *   family = "javax.faces.ComponentBase"
- *   desc = "base component when all components must inherit"
+ *   desc = "base component from which all components should inherit"
  *   tagClass = "javax.faces.webapp.UIComponentTag"
  *   
  * @JSFJspProperty

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItem.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItem.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItem.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItem.java Sat May 31 10:53:47 2008
@@ -23,15 +23,15 @@
 
 /**
  * A component representing a single option that the user can choose.
- * <p></p>
+ * <p>
  * The option attributes can either be defined directly on this component
  * (via the itemValue, itemLabel, itemDescription properties) or the value
  * property can reference a SelectItem object (directly or via an EL expression).
- * <p></p>
+ * <p>
  * The value expression (if defined) is read-only; the parent select component
  * will have a value attribute specifying where the value for the chosen
  * selection will be stored.
- * 
+ * <p>
  * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItems.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItems.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItems.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectItems.java Sat May 31 10:53:47 2008
@@ -20,15 +20,16 @@
 
 import javax.faces.context.FacesContext;
 import javax.faces.el.ValueBinding;
+
 /**
  * This tag associates a set of selection list items with the nearest
  * parent UIComponent. The set of SelectItem objects is retrieved via
  * a value-binding.
- * &lt;p&gt;
+ * <p>
  * Unless otherwise specified, all attributes accept static values
  * or EL expressions.
- * 
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * <p> 
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   name = "f:selectItems"

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectMany.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectMany.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectMany.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectMany.java Sat May 31 10:53:47 2008
@@ -33,7 +33,17 @@
 import javax.faces.render.Renderer;
 
 /**
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * Base class for the various component classes that allow a user to select zero or
+ * more options from a set.
+ * <p>
+ * This is not an abstract class; java code can create an instance of this, configure
+ * its rendererType appropriately, and add it to a view. However there is no tag class
+ * for this component, ie it cannot be added directly to a page when using JSP (and
+ * other presentation technologies are expected to behave similarly). Instead, there
+ * is a family of subclasses that extend this base functionality, and they do have
+ * tag classes. 
+ * <p>
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   type = "javax.faces.SelectMany"

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java Sat May 31 10:53:47 2008
@@ -34,10 +34,10 @@
 /**
  * Creates a JSF View, which is a container that holds all of the
  * components that are part of the view.
- * 
+ * <p> 
  * Unless otherwise specified, all attributes accept static values or EL expressions.
- * 
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * <p>
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   name = "f:view"

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlMessage.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlMessage.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlMessage.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlMessage.java Sat May 31 10:53:47 2008
@@ -19,17 +19,15 @@
 package javax.faces.component.html;
 
 import javax.faces.component.UIMessage;
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
 
 /**
  * Renders the first FacesMessage that is assigned to the component
  * referenced by the "for" attribute.
- * 
+ * <p>
  * Unless otherwise specified, all attributes accept static values
  * or EL expressions.
- * 
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * <p>
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   name = "h:message"

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlOutputFormat.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlOutputFormat.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlOutputFormat.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlOutputFormat.java Sat May 31 10:53:47 2008
@@ -19,18 +19,16 @@
 package javax.faces.component.html;
 
 import javax.faces.component.UIOutput;
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
 
 /**
  * Renders as text, applying the child f:param values to the value
  * attribute as a MessageFormat string.  If this element has an ID
  * or CSS style properties, the text is wrapped in a span element.
- * 
+ * <p>
  * Unless otherwise specified, all attributes accept static values
  * or EL expressions.
- * 
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * <p>
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   name = "h:outputFormat"

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java Sat May 31 10:53:47 2008
@@ -19,24 +19,22 @@
 package javax.faces.component.html;
 
 import javax.faces.component.UISelectMany;
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
 
 /**
  * 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.
- * &lt;p&gt;
+ * <p>
  * The set of available options is defined by adding child
  * f:selectItem or f:selectItems components to this component.
- * &lt;p&gt;
+ * <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.
- * &lt;p&gt;
+ * <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
@@ -45,11 +43,11 @@
  * 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.
- * &lt;p&gt;
+ * <p>
  * Unless otherwise specified, all attributes accept static values
  * or EL expressions.
- * 
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * <p>
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   name = "h:selectManyListbox"

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java Sat May 31 10:53:47 2008
@@ -19,21 +19,19 @@
 package javax.faces.component.html;
 
 import javax.faces.component.UISelectMany;
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
 
 /**
  * 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.
- * &lt;p&gt;
+ * <p>
  * The set of available options is defined by adding child
  * f:selectItem or f:selectItems components to this component.
- * &lt;p&gt;
+ * <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.
- * &lt;p&gt;
+ * <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
@@ -42,11 +40,11 @@
  * 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.
- * &lt;p&gt;
+ * <p>
  * Unless otherwise specified, all attributes accept static values
  * or EL expressions.
- * 
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * <p>
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   name = "h:selectManyMenu"

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java Sat May 31 10:53:47 2008
@@ -19,34 +19,32 @@
 package javax.faces.component.html;
 
 import javax.faces.component.UISelectOne;
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
 
 /**
  * Allow the user to choose one option from a set of options.
- * &lt;p&gt;
+ * <p>
  * Rendered as a listbox with the MULTIPLE attribute set to false.
- * &lt;p&gt;
+ * <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.
- * &lt;p&gt;
+ * <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.
- * &lt;p&gt;
+ * <p>
  * On submit of the enclosing form, the value attribute's bound
  * property is updated to contain the "value" property from the
  * chosen SelectItem.
- * &lt;p&gt;
+ * <p>
  * Unless otherwise specified, all attributes accept static values
  * or EL expressions.
- * 
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * <p> 
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   name = "h:selectOneListbox"

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java Sat May 31 10:53:47 2008
@@ -19,29 +19,27 @@
 package javax.faces.component.html;
 
 import javax.faces.component.UISelectOne;
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
 
 /**
  * Allow the user to choose one option from a set of options.
- * &lt;p&gt;
+ * <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.
- * &lt;p&gt;
+ * <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.
- * &lt;p&gt;
+ * <p>
  * On submit of the enclosing form, the value attribute's bound property
  * is updated to contain the "value" property from the chosen SelectItem.
- * &lt;p&gt;
+ * <p>
  * Unless otherwise specified, all attributes accept static values
  * or EL expressions.
- * 
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * <p> 
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   name = "h:selectOneMenu"

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneRadio.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneRadio.java?rev=662055&r1=662054&r2=662055&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneRadio.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/html/_HtmlSelectOneRadio.java Sat May 31 10:53:47 2008
@@ -19,27 +19,25 @@
 package javax.faces.component.html;
 
 import javax.faces.component.UISelectOne;
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
 
 /**
  * Allow the user to choose one option from a set of options.
- * &lt;p&gt;
+ * <p>
  * Renders as an HTML table element, containing an input element for
  * each child f:selectItem or f:selectItems elements.  The input
  * elements are rendered as type radio.
- * &lt;p&gt;
+ * <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.
- * &lt;p&gt;
+ * <p>
  * On submit of the enclosing form, the value attribute's bound property
  * is updated to contain the "value" property from the chosen SelectItem.
- * &lt;p&gt;
+ * <p>
  * Unless otherwise specified, all attributes accept static values
  * or EL expressions.
- * 
- * see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
+ * <p> 
+ * See Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
  *
  * @JSFComponent
  *   name = "h:selectOneRadio"