You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by gv...@apache.org on 2006/02/04 23:06:00 UTC
svn commit: r374939 -
/struts/shale/trunk/clay-plugin/src/conf/clay-config.xml
Author: gvanmatre
Date: Sat Feb 4 14:05:35 2006
New Revision: 374939
URL: http://svn.apache.org/viewcvs?rev=374939&view=rev
Log:
Added standard Converter and Validator configuration definitions.
Modified:
struts/shale/trunk/clay-plugin/src/conf/clay-config.xml
Modified: struts/shale/trunk/clay-plugin/src/conf/clay-config.xml
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/conf/clay-config.xml?rev=374939&r1=374938&r2=374939&view=diff
==============================================================================
--- struts/shale/trunk/clay-plugin/src/conf/clay-config.xml (original)
+++ struts/shale/trunk/clay-plugin/src/conf/clay-config.xml Sat Feb 4 14:05:35 2006
@@ -529,11 +529,74 @@
</component>
<!--
+ Converts a String value into a BigDecimal type and back to a String.
+ -->
+ <component jsfid="bigDecimalConverter" componentType="javax.faces.BigDecimal"/>
+
+ <!--
+ Converts a String value into a BigInteger type and back to a String.
+ -->
+ <component jsfid="bigIntegerConverter" componentType="javax.faces.BigInteger"/>
+
+ <!--
+ Converts a String value into a Boolean type and back to a String.
+ -->
+ <component jsfid="booleanConverter" componentType="javax.faces.Boolean"/>
+
+ <!--
+ Converts a String value into a Byte type and back to a String.
+ -->
+ <component jsfid="byteConverter" componentType="javax.faces.Byte"/>
+
+ <!--
+ Converts a String value into a Character type and back to a String.
+ -->
+ <component jsfid="characterConverter" componentType="javax.faces.Character"/>
+
+ <!--
+ Converts a String value into a Double type and back to a String.
+ -->
+ <component jsfid="doubleConverter" componentType="javax.faces.Double"/>
+
+ <!--
+ Converts a String value into a Float type and back to a String.
+ -->
+ <component jsfid="floatConverter" componentType="javax.faces.Float"/>
+
+ <!--
Converts a string value into a primitive int type and back to a string.
-->
<component jsfid="integerConverter" componentType="javax.faces.Integer"/>
<!--
+ Converts a String value into a Long type and back to a String.
+ -->
+ <component jsfid="longConverter" componentType="javax.faces.Long"/>
+
+ <!--
+ Converts a String value into a number type and back to a String.
+ -->
+ <component jsfid="numberConverter" componentType="javax.faces.Number">
+ <attributes>
+ <set name="currencyCode" bindingType="Early"/>
+ <set name="currencySymbol" bindingType="Early"/>
+ <set name="integerOnly" bindingType="Early"/>
+ <set name="maxFractionDigits" bindingType="Early"/>
+ <set name="maxIntegerDigits" bindingType="Early"/>
+ <set name="minFractionDigits" bindingType="Early"/>
+ <set name="minIntegerDigits" bindingType="Early"/>
+ <set name="pattern" bindingType="Early"/>
+ <set name="type" bindingType="Early"/>
+ </attributes>
+ </component>
+
+ <!--
+ Converts a String value into a Short type and back to a String.
+ -->
+ <component jsfid="shortConverter" componentType="javax.faces.Short"/>
+
+
+ <!--
Converts a string value into a java.util.Date type and back to a string.
-->
<component jsfid="dateTimeConverter" componentType="javax.faces.DateTime" >
@@ -541,7 +604,8 @@
<set name="dateStyle" bindingType="Early" />
<set name="pattern" bindingType="Early"/>
<set name="timeStyle" bindingType="Early"/>
- <set name="type" bindingType="Early"/>
+ <set name="type" bindingType="Early"/>
+ <set name="timeZone" bindingType="Early"/>
</attributes>
</component>
@@ -604,5 +668,33 @@
</attributes>
</component>
+ <!-- Checks the local value of a component, which must be of any numeric type,
+ against specified maximum and/or minimum values. -->
+ <component jsfid="doubleRangeValidator" componentType="javax.faces.DoubleRange">
+ <attributes>
+ <set name="maximum" bindingType="Early"/>
+ <set name="minimum" bindingType="Early"/>
+ </attributes>
+ </component>
+
+ <!-- Checks the length (i.e. number of characters) of the local
+ value of a component, which must be of type String, against maximum and/or
+ minimum values. -->
+ <component jsfid="lengthValidator" componentType="javax.faces.Length">
+ <attributes>
+ <set name="maximum" bindingType="Early"/>
+ <set name="minimum" bindingType="Early"/>
+ </attributes>
+ </component>
+
+ <!-- Checks the local value of a component, which must be
+ of any numeric type convertible to long, against maximum and/or
+ minimum values. -->
+ <component jsfid="longRangeValidator" componentType="javax.faces.LongRange">
+ <attributes>
+ <set name="maximum" bindingType="Early"/>
+ <set name="minimum" bindingType="Early"/>
+ </attributes>
+ </component>
</view>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org