Hi,

Now I found a unwrap() on the NativeJavaObject, that returns the right object.

Is that the right way of doing such stuff, or I'm missing something?

Thanks
Ramy

Ramy Mamdouh wrote:
Hello there,

Creating an object inside the flow script always has the type org.mozilla.javascript.NativeJavaObject ?

Something like :
var x = new AnyKindOfObject();

Then how can I cast this org.mozilla.javascript.NativeJavaObject to the original type, to use in XSP for example, it throws a CastException !

I'm using the cocoon-2.1 cvs

Thanks
Ramy



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





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



Reply via email to