cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simo...@apache.org
Subject svn commit: r431909 - in /cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources: META-INF/legacy/xconf/cocoon-forms.xconf org/apache/cocoon/forms/forms.roles
Date Wed, 16 Aug 2006 14:34:23 GMT
Author: simoneg
Date: Wed Aug 16 07:34:22 2006
New Revision: 431909

URL: http://svn.apache.org/viewvc?rev=431909&view=rev
Log:
Added calculated fields and char datatype the the 2.2 configuration

Modified:
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/META-INF/legacy/xconf/cocoon-forms.xconf
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/forms.roles

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/META-INF/legacy/xconf/cocoon-forms.xconf
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/META-INF/legacy/xconf/cocoon-forms.xconf?rev=431909&r1=431908&r2=431909&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/META-INF/legacy/xconf/cocoon-forms.xconf
(original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/META-INF/legacy/xconf/cocoon-forms.xconf
Wed Aug 16 07:34:22 2006
@@ -118,6 +118,11 @@
           <convertor name="bean" src="org.apache.cocoon.forms.datatype.convertor.BeanConvertorBuilder"/>
         </convertors>
       </datatype>
+      <datatype name="char" src="org.apache.cocoon.forms.datatype.typeimpl.CharTypeBuilder">
+        <convertors default="plain" plain="plain">
+          <convertor name="plain" src="org.apache.cocoon.forms.datatype.convertor.CharConvertorBuilder"/>
+        </convertors>
+      </datatype>
     </datatypes>
     <validation-rules>
       <!-- old-style datatype validators (deprecated) -->
@@ -138,6 +143,7 @@
     <function name="Null" class="org.apache.cocoon.forms.expression.NullFunction"/>
     <function name="IsNull" class="org.apache.cocoon.forms.expression.IsNullFunction"/>
     <function name="String" class="org.apache.cocoon.forms.expression.StringFunction"/>
+    <function name="Sum" class="org.apache.cocoon.forms.expression.SumFunction"/>
   </forms-expression>
 
   <!--+
@@ -169,6 +175,7 @@
       <widget name="captcha" src="org.apache.cocoon.forms.formmodel.CaptchaDefinitionBuilder"/>
       <widget name="tree" src="org.apache.cocoon.forms.formmodel.tree.builder.TreeDefinitionBuilder"/>
       <widget name="imagemap" src="org.apache.cocoon.forms.formmodel.ImageMapDefinitionBuilder"/>
+      <widget name="calculatedfield" src="org.apache.cocoon.forms.formmodel.CalculatedFieldDefinitionBuilder"/>
     </widgets>
   </forms-formmanager>
 
@@ -198,6 +205,17 @@
     <validator name="captcha" class="org.apache.cocoon.forms.validation.impl.CaptchaValidatorBuilder"/>
     <validator name="java" class="org.apache.cocoon.forms.validation.impl.JavaClassValidatorBuilder"/>
   </forms-validators>
+
+  <!--+
+      | Calculated fields algorithms
+      +-->
+  <forms-calculated-algorithms logger="forms.algorithms" default="formula">
+    <algorithm name="formula" class="org.apache.cocoon.forms.formmodel.algorithms.SimpleFormulaBuilder"/>
+    <algorithm name="javascript" class="org.apache.cocoon.forms.formmodel.algorithms.JavaScriptBuilder"/>
+    <algorithm name="java" class="org.apache.cocoon.forms.formmodel.algorithms.JavaAlgorithmBuilder"/>
+    <algorithm name="repeatedformula" class="org.apache.cocoon.forms.formmodel.algorithms.RepeatedFormulaBuilder"/>
+  </forms-calculated-algorithms>
+
 
   <!--+
       | Widget listeners

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/forms.roles
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/forms.roles?rev=431909&r1=431908&r2=431909&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/forms.roles
(original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/forms.roles
Wed Aug 16 07:34:22 2006
@@ -55,4 +55,9 @@
         shorthand="forms-treemodels"
         default-class="org.apache.cocoon.core.container.DefaultServiceSelector"/>
 
+  <role name="org.apache.cocoon.forms.formmodel.CalculatedFieldAlgorithmBuilderSelector"
+        shorthand="forms-calculated-algorithms"
+        default-class="org.apache.cocoon.core.container.DefaultServiceSelector"/>
+
+
 </role-list>



Mime
View raw message