The fun is not gotten by the code at line 591 in
FOM_JavaScriptInterpreter.java
      Object fun = ScriptableObject.getProperty(thrScope, funName);

, so ResourceNotFoundException is thrown at its following code.
                   if (fun == Scriptable.NOT_FOUND) {
                       throw new ResourceNotFoundException("Function
\"javascript:" + funName + "()\" not found");
                   }

By studying the source code, I do not think *"call a function not in global
object in <map:call >" *is supported in trunk because function is still
gotten in thrScope. Am I right?
*
Rice
*


On 1/13/07, Mark Lundquist <[EMAIL PROTECTED]> wrote:


On Jan 13, 2007, at 2:21 AM, Rice Yeh wrote:

> Do you have an example about how to pass the namespace object? I use
> it like the following:
>
> <map:call function="xs.party.use">
> <map:parameter name="flowpath" value="{0}"/>
> </map:call>
>
> , but it does not work.

That should work if there is a function xs.party.use() at the global
scope.  E.g., something like:

        var xs = {};
        .
        .
        .
        xs.party = {};
        .
        .
        .
        xs.party.use =
                function() {
                        .
                        .
                };

What do you mean by "it does not work"?

cheers,
—ml—


Reply via email to