cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos Chávez" <ccha...@agssa.net>
Subject woody block: assert validation not work
Date Thu, 02 Oct 2003 01:03:40 GMT

  Hello all,

  i am need write the expression: tasa_tasacambio > 0.0000 in the assert
  validation, the data definition file is:

      <wd:field id="tasa_tasacambio" required="true">
        <wd:label>Tasa:</wd:label>
        <wd:datatype base="decimal">
            <wd:convertor variant="number">
                <wd:patterns>
                    <wd:pattern>#.0000</wd:pattern>
                </wd:patterns>
            </wd:convertor>
            <wd:validation>
                <wd:assert test="tasa_tasacambio &gt; 0.0000"/>
            </wd:validation>
        </wd:datatype>
    </wd:field>

   the validation of the field empty work fine, but when is execute
   the assert validation send the next message:

An Error Occurred

"resource://org/apache/cocoon/woody/flow/javascript/woody2.js", line 148:
uncaught JavaScript exception: at tasacambioform
(file:/home/desarrollo/tomcat/webapps/sga/docs/tasacambio/tasacambio.js,
Line 4) at (resource://org/apache/cocoon/woody/flow/javascript/woody2.js,
Line 148): java.lang.StackOverflowError

org.apache.avalon.framework.CascadingRuntimeException:
"resource://org/apache/cocoon/woody/flow/javascript/woody2.js", line 148:
uncaught JavaScript exception: at tasacambioform
(file:/home/desarrollo/tomcat/webapps/sga/docs/tasacambio/tasacambio.js,
Line 4) at (resource://org/apache/cocoon/woody/flow/javascript/woody2.js,
Line 148): java.lang.StackOverflowError

cause: java.lang.StackOverflowError

full exception chain stacktrace[show]


   i'am try to see the example of registration form of woody but
   this not work too when the assert validation of confirmPassword field
   is execute, the examplo present the empty page after thes execute.

   what is wrong?

  i'am use cocoon version: 2.1.3-dev CVS

-- 
Carlos Chávez
AG Software, S.A.
776-8344
267-3007



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message