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/04/25 00:51:08 UTC
svn commit: r651448 [1/2] - in
/myfaces/myfaces-build-tools/branches/builder_plugin:
bigtest/core_trunk_11/api/src/main/java/javax/faces/component/
bigtest/core_trunk_11/api/src/main/java/javax/faces/convert/
bigtest/core_trunk_11/api/src/main/java/jav...
Author: lu4242
Date: Thu Apr 24 15:50:55 2008
New Revision: 651448
URL: http://svn.apache.org/viewvc?rev=651448&view=rev
Log:
Generation of myfaces-core.tld finnished, add params feature to MakeConfigMojo.java
Added:
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_core-base.tld (with props)
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/old/myfaces_core.tld (with props)
Removed:
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/resources/META-INF/myfaces_core.tld
Modified:
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UIParameter.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UISelectItem.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UISelectItems.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UIViewRoot.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/convert/DateTimeConverter.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/convert/NumberConverter.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/DoubleRangeValidator.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/LengthValidator.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/LongRangeValidator.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/AttributeTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/ConverterTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/FacetTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/ValidatorTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/pom.xml
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_html-base.tld
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/ActionListenerTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/LoadBundleTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/ValueChangeListenerTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/VerbatimTag.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/resources/META-INF/myfaces_html.vm
myfaces/myfaces-build-tools/branches/builder_plugin/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/MakeConfigMojo.java
myfaces/myfaces-build-tools/branches/builder_plugin/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/model/ConverterMeta.java
myfaces/myfaces-build-tools/branches/builder_plugin/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/model/ValidatorMeta.java
myfaces/myfaces-build-tools/branches/builder_plugin/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/qdox/QdoxModelBuilder.java
myfaces/myfaces-build-tools/branches/builder_plugin/test/api/ (props changed)
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UIParameter.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UIParameter.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UIParameter.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UIParameter.java Thu Apr 24 15:50:55 2008
@@ -25,10 +25,11 @@
* 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.Parameter"
- * family = "javax.faces.Parameter"
+ * name="f:param"
+ * bodyContent="empty"
+ * tagClass = "org.apache.myfaces.taglib.core.ParamTag"
* desc = "UIParameter"
- *
+ * @JSFJspProperty name = "rendered" returnType = "boolean" tagExcluded = "true"
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
@@ -58,7 +59,10 @@
}
/**
+ * A String containing the name of the parameter.
+ *
* @JSFProperty
+ * required="true"
*/
public String getName()
{
@@ -73,7 +77,10 @@
}
/**
+ * The value of this parameter.
+ *
* @JSFProperty
+ * required="true"
*/
public Object getValue()
{
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UISelectItem.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UISelectItem.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UISelectItem.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UISelectItem.java Thu Apr 24 15:50:55 2008
@@ -23,11 +23,11 @@
/**
* 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.
@@ -35,9 +35,11 @@
* 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.SelectItem"
- * family = "javax.faces.SelectItem"
+ * name = "f:selectItem"
+ * bodyContent = "empty"
+ * tagClass = "org.apache.myfaces.taglib.core.SelectItemTag"
* desc = "UISelectItem"
+ * @JSFJspProperty name = "rendered" returnType = "boolean" tagExcluded = "true"
*
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
@@ -72,14 +74,14 @@
}
/**
+ * An optional description for this item.
* For use in development tools.
- * <p>
- * Q: what use is an EL expression for this???
*
* @JSFProperty
*/
public String getItemDescription()
{
+ //Q: what use is an EL expression for this???
if (_itemDescription != null) return _itemDescription;
ValueBinding vb = getValueBinding("itemDescription");
return vb != null ? _ComponentUtils.getStringValue(getFacesContext(), vb) : null;
@@ -131,6 +133,8 @@
}
/**
+ * The value of this item, of the same type as the parent component's value.
+ *
* @JSFProperty
*/
public Object getItemValue()
@@ -146,6 +150,8 @@
}
/**
+ * An EL expression that refers to a javax.faces.model.SelectItem instance.
+ *
* @JSFProperty
*/
public Object getValue()
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UISelectItems.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UISelectItems.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UISelectItems.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UISelectItems.java Thu Apr 24 15:50:55 2008
@@ -20,13 +20,20 @@
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.
+ * <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>
*
* @JSFComponent
- * type = "javax.faces.SelectItems"
- * family = "javax.faces.SelectItems"
+ * name = "f:selectItems"
+ * bodyContent = "empty"
+ * tagClass = "org.apache.myfaces.taglib.core.SelectItemsTag"
* desc = "UISelectItems"
*
* @author Manfred Geiler (latest modification by $Author$)
@@ -57,6 +64,20 @@
}
/**
+ * An EL expression that specifies the contents of the selection list.
+ * The expression can refer to one of the following:
+ * <ol>
+ * <li>A single SelectItem</li>
+ * <li>An array or Collection of SelectItem instances</li>
+ * <li>A Map. The contents of the Map are used to create SelectItem
+ * instances, where the SelectItem's label is the map's key value,
+ * and the SelectItem's value is the map's value. When using a
+ * map, it is recommended that an ordered implementation such as
+ * java.util.TreeMap is used.</li>
+ * </ol>
+ * The value properties of each of the SelectItems must be of the same
+ * basic type as the parent component's value.
+ *
* @JSFProperty
*/
public Object getValue()
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/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_11/api/src/main/java/javax/faces/component/UIViewRoot.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UIViewRoot.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/component/UIViewRoot.java Thu Apr 24 15:50:55 2008
@@ -32,11 +32,17 @@
import javax.faces.event.PhaseId;
/**
+ * Creates a JSF View, which is a container that holds all of the
+ * components that are part of the view.
+ *
+ * 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>
*
* @JSFComponent
- * type = "javax.faces.ViewRoot"
- * family = "javax.faces.ViewRoot"
+ * name = "f:view"
+ * bodyContent = "JSP"
+ * tagClass = "org.apache.myfaces.taglib.core.ViewTag"
* desc = "UIViewRoot"
*
* @author Manfred Geiler (latest modification by $Author$)
@@ -60,9 +66,6 @@
private Locale _locale = null;
private List _events = null;
- /**
- * @JSFProperty
- */
public String getViewId()
{
return _viewId;
@@ -200,6 +203,8 @@
}
/**
+ * The locale of this view. Default: the default locale from the configuration file.
+ *
* @JSFProperty
*/
public Locale getLocale()
@@ -300,9 +305,6 @@
_renderKitId = renderKitId;
}
- /**
- * @JSFProperty
- */
public String getRenderKitId()
{
if (_renderKitId != null) return _renderKitId;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/convert/DateTimeConverter.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/convert/DateTimeConverter.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/convert/DateTimeConverter.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/convert/DateTimeConverter.java Thu Apr 24 15:50:55 2008
@@ -26,11 +26,17 @@
import javax.faces.component.StateHolder;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
-
/**
+ * This tag associates a date time converter with the nearest parent UIComponent.
+ *
+ * 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>
*
* @JSFConverter
+ * name="f:convertDateTime"
+ * bodyContent="empty"
+ * tagClass="org.apache.myfaces.taglib.core.ConvertDateTimeTag"
*
* @author Thomas Spiegl (latest modification by $Author$)
* @version $Revision$ $Date$
@@ -156,6 +162,13 @@
}
// GETTER & SETTER
+
+ /**
+ * The style of the date. Values include: default, short, medium,
+ * long, and full.
+ *
+ * @JSFProperty
+ */
public String getDateStyle() {
return _dateStyle != null ? _dateStyle : Style.DEFAULT.getName();
}
@@ -165,6 +178,11 @@
_dateStyle = dateStyle;
}
+ /**
+ * The name of the locale to be used, instead of the default.
+ *
+ * @JSFProperty
+ */
public Locale getLocale() {
if (_locale != null)
return _locale;
@@ -176,6 +194,11 @@
_locale = locale;
}
+ /**
+ * A custom Date formatting pattern, in the format used by java.text.SimpleDateFormat.
+ *
+ * @JSFProperty
+ */
public String getPattern() {
return _pattern;
}
@@ -184,6 +207,12 @@
_pattern = pattern;
}
+ /**
+ * The style of the time. Values include: default, short, medium, long,
+ * and full.
+ *
+ * @JSFProperty
+ */
public String getTimeStyle() {
return _timeStyle != null ? _timeStyle : Style.DEFAULT.getName();
}
@@ -193,6 +222,15 @@
_timeStyle = timeStyle;
}
+ /**
+ * The time zone to use instead of GMT (the default timezone). When
+ * this value is a value-binding to a TimeZone instance, that
+ * timezone is used. Otherwise this value is treated as a String
+ * containing a timezone id, ie as the ID parameter of method
+ * java.util.TimeZone.getTimeZone(String).
+ *
+ * @JSFProperty
+ */
public TimeZone getTimeZone() {
return _timeZone != null ? _timeZone : TIMEZONE_DEFAULT;
}
@@ -209,6 +247,13 @@
_transient = aTransient;
}
+ /**
+ * Specifies whether the date, time, or both should be
+ * parsed/formatted. Values include: date, time, and both.
+ * Default based on setting of timeStyle and dateStyle.
+ *
+ * @JSFProperty
+ */
public String getType() {
return _type != null ? _type : Type.DATE.getName();
}
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/convert/NumberConverter.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/convert/NumberConverter.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/convert/NumberConverter.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/convert/NumberConverter.java Thu Apr 24 15:50:55 2008
@@ -29,9 +29,17 @@
import java.util.Locale;
/**
+ * This tag creates a number formatting converter and associates it
+ * with the nearest parent UIComponent.
+ *
+ * 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>
*
* @JSFConverter
+ * name="f:convertNumber"
+ * bodyContent="empty"
+ * tagClass="org.apache.myfaces.taglib.core.ConvertNumberTag"
*
* @author Thomas Spiegl (latest modification by $Author$)
* @version $Revision$ $Date$
@@ -254,6 +262,12 @@
}
// GETTER & SETTER
+
+ /**
+ * ISO 4217 currency code
+ *
+ * @JSFProperty
+ */
public String getCurrencyCode()
{
return _currencyCode != null ?
@@ -266,6 +280,12 @@
_currencyCode = currencyCode;
}
+ /**
+ * The currency symbol used to format a currency value. Defaults
+ * to the currency symbol for locale.
+ *
+ * @JSFProperty
+ */
public String getCurrencySymbol()
{
return _currencySymbol != null ?
@@ -278,6 +298,11 @@
_currencySymbol = currencySymbol;
}
+ /**
+ * Specifies whether output will contain grouping separators. Default: true.
+ *
+ * @JSFProperty
+ */
public boolean isGroupingUsed()
{
return _groupingUsed;
@@ -288,6 +313,11 @@
_groupingUsed = groupingUsed;
}
+ /**
+ * Specifies whether only the integer part of the input will be parsed. Default: false.
+ *
+ * @JSFProperty
+ */
public boolean isIntegerOnly()
{
return _integerOnly;
@@ -298,6 +328,12 @@
_integerOnly = integerOnly;
}
+ /**
+ * The name of the locale to be used, instead of the default as
+ * specified in the faces configuration file.
+ *
+ * @JSFProperty
+ */
public Locale getLocale()
{
if (_locale != null) return _locale;
@@ -310,6 +346,11 @@
_locale = locale;
}
+ /**
+ * The maximum number of digits in the fractional portion of the number.
+ *
+ * @JSFProperty
+ */
public int getMaxFractionDigits()
{
return _maxFractionDigits;
@@ -321,6 +362,11 @@
_maxFractionDigits = maxFractionDigits;
}
+ /**
+ * The maximum number of digits in the integer portion of the number.
+ *
+ * @JSFProperty
+ */
public int getMaxIntegerDigits()
{
return _maxIntegerDigits;
@@ -332,6 +378,11 @@
_maxIntegerDigits = maxIntegerDigits;
}
+ /**
+ * The minimum number of digits in the fractional portion of the number.
+ *
+ * @JSFProperty
+ */
public int getMinFractionDigits()
{
return _minFractionDigits;
@@ -343,6 +394,11 @@
_minFractionDigits = minFractionDigits;
}
+ /**
+ * The minimum number of digits in the integer portion of the number.
+ *
+ * @JSFProperty
+ */
public int getMinIntegerDigits()
{
return _minIntegerDigits;
@@ -354,6 +410,11 @@
_minIntegerDigits = minIntegerDigits;
}
+ /**
+ * A custom Date formatting pattern, in the format used by java.text.SimpleDateFormat.
+ *
+ * @JSFProperty
+ */
public String getPattern()
{
return _pattern;
@@ -374,6 +435,12 @@
_transient = aTransient;
}
+ /**
+ * The type of formatting/parsing to be performed. Values include:
+ * number, currency, and percent. Default: number.
+ *
+ * @JSFProperty
+ */
public String getType()
{
return _type;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/DoubleRangeValidator.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/DoubleRangeValidator.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/DoubleRangeValidator.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/DoubleRangeValidator.java Thu Apr 24 15:50:55 2008
@@ -23,9 +23,20 @@
import javax.faces.context.FacesContext;
/**
+ * Creates a validator and associateds it with the nearest parent
+ * UIComponent. When invoked, the validator ensures that values are
+ * valid doubles that lie within the minimum and maximum values specified.
+ *
+ * Commonly associated with a h:inputText entity.
+ *
+ * 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>
*
* @JSFValidator
+ * name="f:validateDoubleRange"
+ * bodyContent="empty"
+ * tagClass="org.apache.myfaces.taglib.core.ValidateDoubleRangeTag"
*
* @author Manfred Geiler (latest modification by $Author$)
* @author Thomas Spiegl
@@ -126,6 +137,12 @@
// GETTER & SETTER
+
+ /**
+ * The largest value that should be considered valid.
+ *
+ * @JSFProperty
+ */
public double getMaximum()
{
return _maximum != null ? _maximum.doubleValue() : Double.MAX_VALUE;
@@ -136,6 +153,11 @@
_maximum = new Double(maximum);
}
+ /**
+ * The smallest value that should be considered valid.
+ *
+ * @JSFProperty
+ */
public double getMinimum()
{
return _minimum != null ? _minimum.doubleValue() : Double.MIN_VALUE;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/LengthValidator.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/LengthValidator.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/LengthValidator.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/LengthValidator.java Thu Apr 24 15:50:55 2008
@@ -23,9 +23,21 @@
import javax.faces.context.FacesContext;
/**
+ * Creates a validator and associateds it with the nearest parent
+ * UIComponent. When invoked, the validator ensures that values are
+ * valid strings with a length that lies within the minimum and maximum
+ * values specified.
+ *
+ * Commonly associated with a h:inputText entity.
+ *
+ * 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>
*
* @JSFValidator
+ * name="f:validateLength"
+ * bodyContent="empty"
+ * tagClass="org.apache.myfaces.taglib.core.ValidateLengthTag"
*
* @author Manfred Geiler (latest modification by $Author$)
* @author Thomas Spiegl
@@ -97,6 +109,12 @@
}
// SETTER & GETTER
+
+ /**
+ * The largest value that should be considered valid.
+ *
+ * @JSFProperty
+ */
public int getMaximum()
{
return _maximum != null ? _maximum.intValue() : 0;
@@ -107,6 +125,11 @@
_maximum = new Integer(maximum);
}
+ /**
+ * The smallest value that should be considered valid.
+ *
+ * @JSFProperty
+ */
public int getMinimum()
{
return _minimum != null ? _minimum.intValue() : 0;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/LongRangeValidator.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/LongRangeValidator.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/LongRangeValidator.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/validator/LongRangeValidator.java Thu Apr 24 15:50:55 2008
@@ -21,11 +21,21 @@
import javax.faces.component.StateHolder;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
-
/**
+ * Creates a validator and associateds it with the nearest parent
+ * UIComponent. When invoked, the validator ensures that values
+ * are valid longs that lie within the minimum and maximum values specified.
+ *
+ * Commonly associated with a h:inputText entity.
+ *
+ * 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>
*
* @JSFValidator
+ * name="f:validateLongRange"
+ * bodyContent="empty"
+ * tagClass="org.apache.myfaces.taglib.core.ValidateLongRangeTag"
*
* @author Manfred Geiler (latest modification by $Author$)
* @author Thomas Spiegl
@@ -126,6 +136,12 @@
// GETTER & SETTER
+
+ /**
+ * The largest value that should be considered valid.
+ *
+ * @JSFProperty
+ */
public long getMaximum()
{
return _maximum != null ? _maximum.longValue() : Long.MAX_VALUE;
@@ -136,6 +152,11 @@
_maximum = new Long(maximum);
}
+ /**
+ * The smallest value that should be considered valid.
+ *
+ * @JSFProperty
+ */
public long getMinimum()
{
return _minimum != null ? _minimum.longValue() : Long.MIN_VALUE;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/AttributeTag.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/AttributeTag.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/AttributeTag.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/AttributeTag.java Thu Apr 24 15:50:55 2008
@@ -26,8 +26,35 @@
import javax.servlet.jsp.tagext.TagSupport;
/**
+ * This tag associates an attribute with the nearest parent
+ * UIComponent.
+ * <p>
+ * When the value is not an EL expression, this tag has the same effect
+ * as calling component.getAttributes.put(name, value). When the attribute
+ * name specified matches a standard property of the component, that
+ * property is set. However it is also valid to assign attributes
+ * to components using any arbitrary name; the component itself won't
+ * make any use of these but other objects such as custom renderers,
+ * validators or action listeners can later retrieve the attribute
+ * from the component by name.
+ * <p>
+ * When the value is an EL expression, this tag has the same effect
+ * as calling component.setValueBinding. A call to method
+ * component.getAttributes().get(name) will then cause that
+ * expression to be evaluated and the result of the expression is
+ * returned, not the original EL expression string.
+ * <p>
+ * See the javadoc for UIComponent.getAttributes for more details.
+ * <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>
*
+ * @JSFJspTag
+ * name="f:attribute"
+ * bodyContent="empty"
+ *
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
@@ -38,11 +65,23 @@
private String _name;
private String _value;
+ /**
+ * The name of the attribute.
+ *
+ * @JSFJspAttribute
+ * required="true"
+ */
public void setName(String name)
{
_name = name;
}
+ /**
+ * The attribute's value.
+ *
+ * @JSFJspAttribute
+ * required="true"
+ */
public void setValue(String value)
{
_value = value;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/ConverterTag.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/ConverterTag.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/ConverterTag.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/ConverterTag.java Thu Apr 24 15:50:55 2008
@@ -29,8 +29,15 @@
import javax.servlet.jsp.tagext.TagSupport;
/**
+ * This tag creates an instance of the specified Converter, and
+ * associates it with the nearest parent UIComponent.
+ *
* see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
*
+ * @JSFJspTag
+ * name="f:converter"
+ * bodyContent="empty"
+ *
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
@@ -45,6 +52,12 @@
super();
}
+ /**
+ * The converter's registered ID.
+ *
+ * @JSFJspAttribute
+ * required="true"
+ */
public void setConverterId(String converterId)
{
_converterId = converterId;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/FacetTag.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/FacetTag.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/FacetTag.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/FacetTag.java Thu Apr 24 15:50:55 2008
@@ -22,8 +22,19 @@
import javax.servlet.jsp.tagext.TagSupport;
/**
+ * This tag adds its child as a facet of the nearest parent UIComponent.
+ * A child consisting of multiple elements should be nested within a
+ * container component (i.e., within an h:panelGroup for HTML library
+ * components).
+ *
+ * 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>
*
+ * @JSFJspTag
+ * name="f:facet"
+ * bodyContent="JSP"
+ *
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
@@ -38,6 +49,12 @@
return _name;
}
+ /**
+ * The name of the facet to be created. This must be a static value.
+ *
+ * @JSFJspAttribute
+ * required="true"
+ */
public void setName(String name)
{
_name = name;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/ValidatorTag.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/ValidatorTag.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/ValidatorTag.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/api/src/main/java/javax/faces/webapp/ValidatorTag.java Thu Apr 24 15:50:55 2008
@@ -29,8 +29,31 @@
import javax.servlet.jsp.tagext.TagSupport;
/**
+ * Creates a validator and associates it with the nearest parent
+ * UIComponent. During the validation phase (or the apply-request-values
+ * phase for immediate components), if the associated component has any
+ * submitted value and the conversion of that value to the required
+ * type has succeeded then the specified validator type is
+ * invoked to test the validity of the converted value.
+ * <p>
+ * Commonly associated with an h:inputText entity, but may be applied to
+ * any input component.
+ * <p>
+ * Some validators may allow the component to use attributes to define
+ * component-specific validation constraints; see the f:attribute tag.
+ * See also the "validator" attribute of all input components, which
+ * allows a component to specify an arbitrary validation <i>method</i>
+ * (rather than a registered validation type, as this tag does).
+ * <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>
*
+ * @JSFJspTag
+ * name="f:validator"
+ * bodyContent="empty"
+ *
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
@@ -40,6 +63,12 @@
private static final long serialVersionUID = 8794036166323016663L;
private String _validatorId;
+ /**
+ * The registered ID of the desired Validator.
+ *
+ * @JSFJspAttribute
+ * required="true"
+ */
public void setValidatorId(String validatorId)
{
_validatorId = validatorId;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/pom.xml?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/pom.xml (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/pom.xml Thu Apr 24 15:50:55 2008
@@ -72,7 +72,12 @@
<xmlFile>classes/META-INF/myfaces_html.tld</xmlFile>
<xmlBaseFile>src/main/conf/META-INF/myfaces_html-base.tld</xmlBaseFile>
<templateFile>myfaces_html.vm</templateFile>
-
+ <params>
+ <shortname>h</shortname>
+ <uri>http://java.sun.com/jsf/html</uri>
+ <displayname>JSF HTML tag library.</displayname>
+ <description>This tag library implements the standard JSF HTML tags.</description>
+ </params>
<modelIds>
<modelId>myfaces-api</modelId>
</modelIds>
@@ -80,7 +85,28 @@
<goals>
<goal>make-config</goal>
</goals>
- </execution>
+ </execution>
+ <execution>
+ <id>makecoretld</id>
+ <configuration>
+ <xmlFile>classes/META-INF/myfaces_core.tld</xmlFile>
+ <xmlBaseFile>src/main/conf/META-INF/myfaces_core-base.tld</xmlBaseFile>
+ <templateFile>myfaces_core.vm</templateFile>
+ <modelIds>
+ <modelId>myfaces-api</modelId>
+ <modelId>myfaces-impl</modelId>
+ </modelIds>
+ <params>
+ <shortname>f</shortname>
+ <uri>http://java.sun.com/jsf/core</uri>
+ <displayname>JSF core tag library.</displayname>
+ <description>This tag library implements the standard JSF core tags.</description>
+ </params>
+ </configuration>
+ <goals>
+ <goal>make-config</goal>
+ </goals>
+ </execution>
</executions>
</plugin>
<plugin>
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_core-base.tld
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_core-base.tld?rev=651448&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_core-base.tld (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_core-base.tld Thu Apr 24 15:50:55 2008
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * 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.
+-->
+<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+<taglib xmlns="http://java.sun.com/JSP/TagLibraryDescriptor">
+<!--
+======================================================
+ Listener, that does all the startup work (configuration, init).
+======================================================
+-->
+ <listener>
+ <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
+ </listener>
+
+</taglib>
\ No newline at end of file
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_core-base.tld
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_core-base.tld
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_html-base.tld
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_html-base.tld?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_html-base.tld (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/conf/META-INF/myfaces_html-base.tld Thu Apr 24 15:50:55 2008
@@ -19,13 +19,5 @@
-->
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib xmlns="http://java.sun.com/JSP/TagLibraryDescriptor">
- <tlib-version>1.0</tlib-version>
- <jsp-version>1.2</jsp-version>
- <short-name>h</short-name>
- <uri>http://java.sun.com/jsf/html</uri>
- <display-name>JSF HTML tag library.</display-name>
- <description>
- This tag library implements the standard JSF HTML tags.
- </description>
</taglib>
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/ActionListenerTag.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/ActionListenerTag.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/ActionListenerTag.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/ActionListenerTag.java Thu Apr 24 15:50:55 2008
@@ -29,8 +29,17 @@
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.Tag;
import javax.servlet.jsp.tagext.TagSupport;
-
/**
+ * This tag creates an instance of the specified ActionListener, and
+ * associates it with the nearest parent UIComponent.
+ *
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ *
+ * @JSFJspTag
+ * name="f:actionListener"
+ * bodyContent="empty"
+ *
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
@@ -45,6 +54,12 @@
{
}
+ /**
+ * The fully qualified class name of the ActionListener class.
+ *
+ * @JSFJspAttribute
+ * required="true"
+ */
public void setType(String type)
{
_type = type;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/LoadBundleTag.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/LoadBundleTag.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/LoadBundleTag.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/LoadBundleTag.java Thu Apr 24 15:50:55 2008
@@ -38,13 +38,14 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-
/**
- * TODO:
- * We should find a way to save loaded bundles in the state, because otherwise
- * on the next request the bundle map will not be present before the render phase
- * and value bindings that reference to the bundle will always log annoying
- * "Variable 'xxx' could not be resolved" error messages.
+ * Loads a resource bundle and saves it as a variable in the request scope.
+ *
+ * Unless otherwise specified, all attributes accept static values or EL expressions.
+ *
+ * @JSFJspTag
+ * name="f:loadBundle"
+ * bodyContent="empty"
*
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
@@ -52,6 +53,14 @@
public class LoadBundleTag
extends TagSupport
{
+ /*
+ * TODO:
+ * We should find a way to save loaded bundles in the state, because otherwise
+ * on the next request the bundle map will not be present before the render phase
+ * and value bindings that reference to the bundle will always log annoying
+ * "Variable 'xxx' could not be resolved" error messages.
+ */
+
private static final long serialVersionUID = -8892145684062838928L;
private static final Log log = LogFactory.getLog(LoadBundleTag.class);
@@ -59,11 +68,24 @@
private String _basename;
private String _var;
+ /**
+ * The base name of the resource bundle.
+ *
+ * @JSFJspAttribute
+ * required="true"
+ */
public void setBasename(String basename)
{
_basename = basename;
}
+ /**
+ * The name of the variable in request scope that the resources
+ * are saved to. This must be a static value.
+ *
+ * @JSFJspAttribute
+ * required="true"
+ */
public void setVar(String var)
{
_var = var;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java Thu Apr 24 15:50:55 2008
@@ -22,6 +22,30 @@
import javax.faces.component.UINamingContainer;
/**
+ * This tag associates a set of UIComponents with the nearest parent
+ * UIComponent. It acts as a naming container to make the IDs of its
+ * component elements unique.
+ *
+ * Unless otherwise specified, all attributes accept static values or EL expressions.
+ *
+ * @JSFJspTag
+ * name="f:subview"
+ * bodyContent="JSP"
+ * @JSFJspAttribute
+ * name="id"
+ * className="java.lang.String"
+ * required="true"
+ * longDescription="The developer-assigned ID of this component."
+ * @JSFJspAttribute
+ * name="binding"
+ * className="java.lang.String"
+ * longDescription="Identifies a backing bean property to bind to this component instance."
+ * @JSFJspAttribute
+ * name="rendered"
+ * className="java.lang.String"
+ * longDescription="A boolean value that indicates whether this component should be rendered."
+ *
+ *
* @author Thomas Spiegl (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/ValueChangeListenerTag.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/ValueChangeListenerTag.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/ValueChangeListenerTag.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/ValueChangeListenerTag.java Thu Apr 24 15:50:55 2008
@@ -31,6 +31,23 @@
import javax.servlet.jsp.tagext.TagSupport;
/**
+ * Adds the specified ValueChangeListener to the nearest parent
+ * UIComponent (which is expected to be a UIInput component).
+ * Whenever the form containing the parent UIComponent is submitted,
+ * an instance of the specified type is created. If the submitted
+ * value from the component is different from the component's current
+ * value then a ValueChangeEvent is queued. When the ValueChangeEvent
+ * is processed (at end of the validate phase for non-immediate components,
+ * or at end of the apply-request-values phase for immediate components)
+ * the object's processValueChange method is invoked.
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ *
+ * @JSFJspTag
+ * name="f:valueChangeListener"
+ * bodyContent="empty"
+ *
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
@@ -46,6 +63,11 @@
{
}
+ /**
+ * The name of a Java class that implements ValueChangeListener.
+ *
+ * @JSFJspAttribute
+ */
public void setType(String type)
{
_type = type;
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/VerbatimTag.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/VerbatimTag.java?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/VerbatimTag.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/java/org/apache/myfaces/taglib/core/VerbatimTag.java Thu Apr 24 15:50:55 2008
@@ -27,6 +27,17 @@
import javax.servlet.jsp.tagext.BodyContent;
/**
+ * Outputs its body as verbatim text. No JSP tags within the verbatim
+ * tag (including JSF tags) are evaluated; the content is treated
+ * simply as literal text to be copied to the response.
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ *
+ * @JSFJspTag
+ * name="f:verbatim"
+ * bodyContent="JSP"
+ *
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
@@ -66,6 +77,11 @@
component.setTransient(true);
}
+ /**
+ * If true, generated markup is escaped. Default: false.
+ *
+ * @JSFJspAttribute
+ */
public void setEscape(String escape)
{
_escape = escape;
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/old/myfaces_core.tld
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/old/myfaces_core.tld?rev=651448&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/old/myfaces_core.tld (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/old/myfaces_core.tld Thu Apr 24 15:50:55 2008
@@ -0,0 +1,784 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * 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.
+-->
+<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+<taglib>
+ <tlib-version>1.0</tlib-version>
+ <jsp-version>1.2</jsp-version>
+ <short-name>f</short-name>
+ <uri>http://java.sun.com/jsf/core</uri>
+ <display-name>JSF core tag library.</display-name>
+ <description>
+ This tag library implements the standard JSF core tags.
+ </description>
+ <!--
+======================================================
+ Listener, that does all the startup work (configuration, init).
+======================================================
+-->
+ <listener>
+ <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
+ </listener>
+ <!--
+======================================================
+ actionListener
+======================================================
+-->
+ <tag>
+ <name>actionListener</name>
+ <tag-class>org.apache.myfaces.taglib.core.ActionListenerTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ This tag creates an instance of the specified ActionListener, and
+ associates it with the nearest parent UIComponent.
+
+ Unless otherwise specified, all attributes accept static values
+ or EL expressions.
+ </description>
+ <attribute>
+ <name>type</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The fully qualified class name of the ActionListener class.</description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ attribute
+======================================================
+-->
+ <tag>
+ <name>attribute</name>
+ <tag-class>javax.faces.webapp.AttributeTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ This tag associates an attribute with the nearest parent
+ UIComponent.
+ <p>
+ When the value is not an EL expression, this tag has the same effect
+ as calling component.getAttributes.put(name, value). When the attribute
+ name specified matches a standard property of the component, that
+ property is set. However it is also valid to assign attributes
+ to components using any arbitrary name; the component itself won't
+ make any use of these but other objects such as custom renderers,
+ validators or action listeners can later retrieve the attribute
+ from the component by name.
+ <p>
+ When the value is an EL expression, this tag has the same effect
+ as calling component.setValueBinding. A call to method
+ component.getAttributes().get(name) will then cause that
+ expression to be evaluated and the result of the expression is
+ returned, not the original EL expression string.
+ <p>
+ See the javadoc for UIComponent.getAttributes for more details.
+ <p>
+ Unless otherwise specified, all attributes accept static values
+ or EL expressions.
+
+ </description>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The name of the attribute.</description>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The attribute's value.</description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ converter
+======================================================
+-->
+ <tag>
+ <name>convertDateTime</name>
+ <tag-class>org.apache.myfaces.taglib.core.ConvertDateTimeTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ This tag associates a date time converter with the nearest parent UIComponent.
+
+ Unless otherwise specified, all attributes accept static values or EL expressions.
+ </description>
+ <attribute>
+ <name>dateStyle</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The style of the date. Values include: default, short, medium, long, and full.</description>
+ </attribute>
+ <attribute>
+ <name>locale</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The name of the locale to be used, instead of the default.</description>
+ </attribute>
+ <attribute>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>A custom Date formatting pattern, in the format used by java.text.SimpleDateFormat.</description>
+ </attribute>
+ <attribute>
+ <name>timeStyle</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The style of the time. Values include: default, short, medium, long, and full.</description>
+ </attribute>
+ <attribute>
+ <name>timeZone</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ The time zone to use instead of GMT (the default timezone). When
+ this value is a value-binding to a TimeZone instance, that
+ timezone is used. Otherwise this value is treated as a String
+ containing a timezone id, ie as the ID parameter of method
+ java.util.TimeZone.getTimeZone(String).
+ </description>
+ </attribute>
+ <attribute>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ Specifies whether the date, time, or both should be
+ parsed/formatted. Values include: date, time, and both.
+ Default based on setting of timeStyle and dateStyle.
+ </description>
+ </attribute>
+ </tag>
+ <tag>
+ <name>converter</name>
+ <tag-class>javax.faces.webapp.ConverterTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ This tag creates an instance of the specified Converter, and
+ associates it with the nearest parent UIComponent.
+ </description>
+ <attribute>
+ <name>converterId</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The converter's registered ID.</description>
+ </attribute>
+ </tag>
+ <tag>
+ <name>convertNumber</name>
+ <tag-class>org.apache.myfaces.taglib.core.ConvertNumberTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ This tag creates a number formatting converter and associates it
+ with the nearest parent UIComponent.
+
+ Unless otherwise specified, all attributes accept static values or EL expressions.
+ </description>
+ <attribute>
+ <name>currencyCode</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>ISO 4217 currency code</description>
+ </attribute>
+ <attribute>
+ <name>currencySymbol</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ The currency symbol used to format a currency value. Defaults
+ to the currency symbol for locale.
+ </description>
+ </attribute>
+ <attribute>
+ <name>groupingUsed</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Specifies whether output will contain grouping separators. Default: true.</description>
+ </attribute>
+ <attribute>
+ <name>integerOnly</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Specifies whether only the integer part of the input will be parsed. Default: false.</description>
+ </attribute>
+ <attribute>
+ <name>locale</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ The name of the locale to be used, instead of the default as
+ specified in the faces configuration file.
+ </description>
+ </attribute>
+ <attribute>
+ <name>maxFractionDigits</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The maximum number of digits in the fractional portion of the number.</description>
+ </attribute>
+ <attribute>
+ <name>maxIntegerDigits</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The maximum number of digits in the integer portion of the number.</description>
+ </attribute>
+ <attribute>
+ <name>minFractionDigits</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The minimum number of digits in the fractional portion of the number.</description>
+ </attribute>
+ <attribute>
+ <name>minIntegerDigits</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The minimum number of digits in the integer portion of the number.</description>
+ </attribute>
+ <attribute>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>A custom Date formatting pattern, in the format used by java.text.SimpleDateFormat.</description>
+ </attribute>
+ <attribute>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ The type of formatting/parsing to be performed. Values include:
+ number, currency, and percent. Default: number.
+ </description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ facet
+======================================================
+-->
+ <tag>
+ <name>facet</name>
+ <tag-class>javax.faces.webapp.FacetTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ This tag adds its child as a facet of the nearest parent UIComponent.
+ A child consisting of multiple elements should be nested within a
+ container component (i.e., within an h:panelGroup for HTML library
+ components).
+
+ Unless otherwise specified, all attributes accept static values or EL expressions.
+ </description>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The name of the facet to be created. This must be a static value.</description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ loadBundle
+======================================================
+-->
+ <tag>
+ <name>loadBundle</name>
+ <tag-class>org.apache.myfaces.taglib.core.LoadBundleTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ Loads a resource bundle and saves it as a variable in the request scope.
+
+ Unless otherwise specified, all attributes accept static values or EL expressions.
+ </description>
+ <attribute>
+ <name>basename</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The base name of the resource bundle.</description>
+ </attribute>
+ <attribute>
+ <name>var</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ The name of the variable in request scope that the resources
+ are saved to. This must be a static value.
+ </description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ param
+======================================================
+-->
+ <tag>
+ <name>param</name>
+ <tag-class>org.apache.myfaces.taglib.core.ParamTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ This tag associates a parameter name-value pair with the nearest
+ parent UIComponent. A UIComponent is created to represent this
+ name-value pair, and stored as a child of the parent component; what
+ effect this has depends upon the renderer of that parent component.
+ <p>
+ Unless otherwise specified, all attributes accept static values
+ or EL expressions.
+
+ </description>
+ <!-- UIParameter attributes -->
+ <attribute>
+ <name>binding</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ Identifies a backing bean property (of type UIComponent or appropriate
+ subclass) to bind to this component instance. This value must be an
+ EL expression.
+ </description>
+ </attribute>
+ <attribute>
+ <name>id</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ The developer-assigned ID of this component. The ID must be unique
+ within the scope of the tag's enclosing naming container (e.g.
+ h:form or f:subview). This value must be a static value.
+ </description>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>A String containing the name of the parameter.</description>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>The value of this parameter.</description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ selectitem
+======================================================
+-->
+ <tag>
+ <name>selectItem</name>
+ <tag-class>org.apache.myfaces.taglib.core.SelectItemTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ This tag associates a single SelectItem with the nearest
+ parent UIComponent. The item represents a single option
+ for a component such as an h:selectBooleanCheckbox or h:selectOneMenu.
+ See also component selectItems.
+ <p>
+ Unless otherwise specified, all attributes accept static values
+ or EL expressions.
+
+ </description>
+ <!-- UISelectItem attributes -->
+ <attribute>
+ <name>binding</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ Identifies a backing bean property (of type UIComponent or appropriate
+ subclass) to bind to this component instance. This value must be an
+ EL expression.
+ </description>
+ </attribute>
+ <attribute>
+ <name>id</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ The developer-assigned ID of this component. The ID must be unique
+ within the scope of the tag's enclosing naming container (e.g.
+ h:form or f:subview). This value must be a static value.
+ </description>
+ </attribute>
+ <attribute>
+ <name>itemDisabled</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ If true, this component will not be saved during state saving.
+ </description>
+ </attribute>
+ <attribute>
+ <name>itemDescription</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>An optional description for this item.</description>
+ </attribute>
+ <attribute>
+ <name>itemLabel</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ The locale-specific label that will be displayed to the user for this item.
+ </description>
+ </attribute>
+ <attribute>
+ <name>itemValue</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ The value of this item, of the same type as the parent component's value.
+ </description>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ An EL expression that refers to a javax.faces.model.SelectItem instance.
+ </description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ selectitems
+======================================================
+-->
+ <tag>
+ <name>selectItems</name>
+ <tag-class>org.apache.myfaces.taglib.core.SelectItemsTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ 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.
+ <p>
+ Unless otherwise specified, all attributes accept static values
+ or EL expressions.
+
+ </description>
+ <!-- UISelectItems attributes -->
+ <attribute>
+ <name>binding</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ Identifies a backing bean property (of type UIComponent or appropriate
+ subclass) to bind to this component instance. This value must be an
+ EL expression.
+ </description>
+ </attribute>
+ <attribute>
+ <name>id</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ The developer-assigned ID of this component. The ID must be unique
+ within the scope of the tag's enclosing naming container (e.g.
+ h:form or f:subview). This value must be a static value.
+ </description>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ An EL expression that specifies the contents of the selection list.
+ The expression can refer to one of the following:
+ <ol>
+ <li>A single SelectItem</li>
+ <li>An array or Collection of SelectItem instances</li>
+ <li>A Map. The contents of the Map are used to create SelectItem
+ instances, where the SelectItem's label is the map's key value,
+ and the SelectItem's value is the map's value. When using a
+ map, it is recommended that an ordered implementation such as
+ java.util.TreeMap is used.</li>
+ </ol>
+ The value properties of each of the SelectItems must be of the same
+ basic type as the parent component's value.
+
+ </description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ subview
+======================================================
+-->
+ <tag>
+ <name>subview</name>
+ <tag-class>org.apache.myfaces.taglib.core.SubviewTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ This tag associates a set of UIComponents with the nearest parent
+ UIComponent. It acts as a naming container to make the IDs of its
+ component elements unique.
+
+ Unless otherwise specified, all attributes accept static values or EL expressions.
+ </description>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ The developer-assigned ID of this component. The ID must be unique
+ within the scope of the tag's enclosing naming container (e.g.
+ h:form or f:subview). This value must be a static value.
+ </description>
+ </attribute>
+ <attribute>
+ <name>binding</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ Identifies a backing bean property (of type UIComponent or appropriate
+ subclass) to bind to this component instance. This value must be an
+ EL expression.
+ </description>
+ </attribute>
+ <attribute>
+ <name>rendered</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ A boolean value that indicates whether this component should be rendered.
+ Default value: true.
+ </description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ validators
+======================================================
+-->
+ <tag>
+ <name>validateDoubleRange</name>
+ <tag-class>org.apache.myfaces.taglib.core.ValidateDoubleRangeTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ Creates a validator and associateds it with the nearest parent
+ UIComponent. When invoked, the validator ensures that values are
+ valid doubles that lie within the minimum and maximum values specified.
+
+ Commonly associated with a h:inputText entity.
+
+ Unless otherwise specified, all attributes accept static values or EL expressions.
+ </description>
+ <!-- validator min/max attributes -->
+ <attribute>
+ <name>minimum</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>The smallest value that should be considered valid.</description>
+ </attribute>
+ <attribute>
+ <name>maximum</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>The largest value that should be considered valid.</description>
+ </attribute>
+ </tag>
+ <tag>
+ <name>validateLength</name>
+ <tag-class>org.apache.myfaces.taglib.core.ValidateLengthTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ Creates a validator and associateds it with the nearest parent
+ UIComponent. When invoked, the validator ensures that values are
+ valid strings with a length that lies within the minimum and maximum
+ values specified.
+
+ Commonly associated with a h:inputText entity.
+
+ Unless otherwise specified, all attributes accept static values or EL expressions.
+ </description>
+ <!-- validator min/max attributes -->
+ <attribute>
+ <name>minimum</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>The smallest value that should be considered valid.</description>
+ </attribute>
+ <attribute>
+ <name>maximum</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>The largest value that should be considered valid.</description>
+ </attribute>
+ </tag>
+ <tag>
+ <name>validateLongRange</name>
+ <tag-class>org.apache.myfaces.taglib.core.ValidateLongRangeTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ Creates a validator and associateds it with the nearest parent
+ UIComponent. When invoked, the validator ensures that values
+ are valid longs that lie within the minimum and maximum values specified.
+
+ Commonly associated with a h:inputText entity.
+
+ Unless otherwise specified, all attributes accept static values or EL expressions.
+ </description>
+ <!-- validator min/max attributes -->
+ <attribute>
+ <name>minimum</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>The smallest value that should be considered valid.</description>
+ </attribute>
+ <attribute>
+ <name>maximum</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>The largest value that should be considered valid.</description>
+ </attribute>
+ </tag>
+ <tag>
+ <name>validator</name>
+ <tag-class>javax.faces.webapp.ValidatorTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ Creates a validator and associates it with the nearest parent
+ UIComponent. During the validation phase (or the apply-request-values
+ phase for immediate components), if the associated component has any
+ submitted value and the conversion of that value to the required
+ type has succeeded then the specified validator type is
+ invoked to test the validity of the converted value.
+ <p>
+ Commonly associated with an h:inputText entity, but may be applied to
+ any input component.
+ <p>
+ Some validators may allow the component to use attributes to define
+ component-specific validation constraints; see the f:attribute tag.
+ See also the "validator" attribute of all input components, which
+ allows a component to specify an arbitrary validation <i>method</i>
+ (rather than a registered validation type, as this tag does).
+ <p>
+ Unless otherwise specified, all attributes accept static values
+ or EL expressions.
+
+ </description>
+ <attribute>
+ <name>validatorId</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>The registered ID of the desired Validator.</description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ valueChangeListener
+======================================================
+-->
+ <tag>
+ <name>valueChangeListener</name>
+ <tag-class>org.apache.myfaces.taglib.core.ValueChangeListenerTag</tag-class>
+ <body-content>empty</body-content>
+ <description>
+ Adds the specified ValueChangeListener to the nearest parent
+ UIComponent (which is expected to be a UIInput component).
+ Whenever the form containing the parent UIComponent is submitted,
+ an instance of the specified type is created. If the submitted
+ value from the component is different from the component's current
+ value then a ValueChangeEvent is queued. When the ValueChangeEvent
+ is processed (at end of the validate phase for non-immediate components,
+ or at end of the apply-request-values phase for immediate components)
+ the object's processValueChange method is invoked.
+ <p>
+ Unless otherwise specified, all attributes accept static values
+ or EL expressions.
+
+ </description>
+ <attribute>
+ <name>type</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The name of a Java class that implements ValueChangeListener.</description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ verbatim
+======================================================
+-->
+ <tag>
+ <name>verbatim</name>
+ <tag-class>org.apache.myfaces.taglib.core.VerbatimTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ Outputs its body as verbatim text. No JSP tags within the verbatim
+ tag (including JSF tags) are evaluated; the content is treated
+ simply as literal text to be copied to the response.
+ <p>
+ Unless otherwise specified, all attributes accept static values
+ or EL expressions.
+
+ </description>
+ <attribute>
+ <name>escape</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>If true, generated markup is escaped. Default: false.</description>
+ </attribute>
+ </tag>
+ <!--
+======================================================
+ view
+======================================================
+-->
+ <tag>
+ <name>view</name>
+ <tag-class>org.apache.myfaces.taglib.core.ViewTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ Creates a JSF View, which is a container that holds all of the
+ components that are part of the view.
+
+ Unless otherwise specified, all attributes accept static values or EL expressions.
+ </description>
+ <attribute>
+ <name>locale</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>The locale of this view. Default: the default locale from the configuration file.</description>
+ </attribute>
+ </tag>
+</taglib>
\ No newline at end of file
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/old/myfaces_core.tld
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/resources/META-INF/myfaces_html.vm
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/resources/META-INF/myfaces_html.vm?rev=651448&r1=651447&r2=651448&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/resources/META-INF/myfaces_html.vm (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_11/impl/src/main/resources/META-INF/myfaces_html.vm Thu Apr 24 15:50:55 2008
@@ -19,6 +19,12 @@
-->
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
+ <tlib-version>1.0</tlib-version>
+ <jsp-version>1.2</jsp-version>
+ <short-name>$shortname</short-name>
+ <uri>$uri</uri>
+ <display-name>$displayname</display-name>
+ <description>$description</description>
$baseContent
@@ -26,12 +32,12 @@
#foreach( $component in $componentList )
#if ($modelIds.contains($component.modelId)
&& ($component.name))
-#if ($utils.getTagPrefix($component.name) == "h")
+#if ($utils.getTagPrefix($component.name) == $shortname)
<tag>
<name>$utils.getTagName($component.name)</name>
<tag-class>$component.tagClass</tag-class>
<body-content>JSP</body-content>
- <description>$component.longDescription</description>
+ <description><![CDATA[$component.longDescription]]></description>
#set ($propertyList = ${component.propertyList})
#foreach( $property in $propertyList )
@@ -41,7 +47,7 @@
<required>$property.isRequired()</required>
<rtexprvalue>false</rtexprvalue>
<type>java.lang.String</type>
- <description>$property.longDescription</description>
+ <description><![CDATA[$property.longDescription]]></description>
</attribute>
#end
#end