this is for unwraping NativeJavaObjects,

Scriptable fsbean = (Scriptable) FlowHelper.getContextObject(objectModel);
Object currentBean = ScriptableObject.getProperty((Scriptable) fsbean, "beanName");
if (currentBean instanceof NativeJavaObject) currentBean = ((NativeJavaObject) currentBean).unwrap();



if anyone knows how to unwrap org.mozilla.javascript.NativeObject, please post here.


Weez


----- Original Message ----- From: "Upayavira" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, April 18, 2005 6:37 PM
Subject: Re: attaching an object to sendpage



Jorg Heymans wrote:
How can i get at the original object using the flowhelper syntax you suggested :

Object bean = FlowHelper.getContextObject(objectModel)

bean is of class org.mozilla.javascript.NativeObject, it doesn't look like i can get my original object back from this.

I think i'll have to just go via the request object.

Have you ever used JXPath? That would be one way. Otherwise, does the NativeObject have an 'unwrap' option? Then you could cast the unwrapped object. I'm guessing now though.


Regards, Upayavira

---------------------------------------------------------------------
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