cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: woody block: assert validation not work
Date Thu, 02 Oct 2003 09:23:10 GMT
On Thu, 2003-10-02 at 03:03, Carlos Chávez wrote:
>   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'd need to see the full stacktrace for this.

However, for what you are trying to do here, I'd suggest using the
"range" validation rule.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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


Mime
View raw message