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.

Regards
Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to