cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Johnston <>
Subject Re: AW: AW: AW: AW: Continuations: Snapshot or Pointers?
Date Tue, 17 Apr 2007 22:21:15 GMT

On Tue, 17 Apr 2007 22:23:42 +0200, Joerg Heinicke <> wrote:
> On 17.04.2007 16:28, Franziska Witzani wrote:
>> Invocation of getClassName returns an error.
>> org.mozilla.javascript.EcmaError: TypeError: Cannot find function
>> getClassName.
>> (file:/D:/apache-tomcat-6.0.10/webapps/dibatest/exKo/flows/exKo.js#73)
>> Either the loop is not executed if written like this (as if it were
>> a javascript object) or an error is thrown if I try to call a
>> function like e.g.
>> The error says that the function getChildren is not defined.
> Yes, that's what I would expect. You still work with a very restricted
> JavaScript object. And it is not of type ScriptableWidget, but
> ScriptableWidget is handling the conversion/ wrapping of the Java
> Widget. This means you have to extend ScriptableWidget in a way that it
> provides more access to the underlying Java API (e.g. getChildren()).
> Maybe its "length" implementation in has(String, Scriptable) and
> get(String, Scriptable) can help.

If the goal is to be able to traverse the actual Java objects, you can use form.getWidget()
rather than form.getModel().  That returns the actual org.apache.cocoon.forms.formmodel.Form
object rather than a ScriptableWidget wrapper.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message