cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <o...@wlkp.org>
Subject Re: Call continuations from flow instead of sitemap
Date Fri, 02 Apr 2004 08:56:27 GMT
On Fri, Apr 02, 2004 at 11:02:12AM +0200, Denis wrote:
> Hi leszek,
> 
> Could it be your loginValidator that in fact generates the NPE?
> 
> //function header
> function loginValidator( form )
> 
> and at line 62 you wrote
>  form.validator = loginValidator;
> try:
>   form.validator = loginValidator(form);
This is not a function call it is a function "pointer". It works no problem
when I use standard <map:call continuation="{1}"/> instead of trying to invoke
it from flow. See the "Custom Validator Sample" in form samples. I use a lot
of function pointers in flow, to get the inverse of control pattern running.

	lg
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/       ouzo@wlkp.org           _\\()//_
         .'/()\'.     Phone: +48(501)720812     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


Mime
View raw message