Re: d2wContext Question
Re: d2wContext Question
- Subject: Re: d2wContext Question
- From: Anjo Krank <email@hidden>
- Date: Tue, 14 Sep 2004 09:55:44 +0200
Am 14.09.2004 um 05:43 schrieb Omar:
I am a WO newbie and I am just fascinated by the D2W technology its
incredible we are implementing it in all of our new apps.
I've gotten most of the things I want to work but am having trouble
with one thing (for now).
I have a D2W component that needs to create another D2W component in
another window in the browser which I can do but when I try to access
the d2wContext from the component in the new window, all I get is
null.
This is the code I am using to call the new window using a WOHyperlink:
protected WOComponent oTestLookup() {
return pageWithName("LookupDialog");
}
and in my LookupDialog component I get null when I access d2wContext.
How am I supposed to call my component so I can access d2wContext?
WOComponent mycomp =
D2W.factory().pageWithConfigurationNamed("LookupDialog", session());
and in the rules, you need to have:
pageConfiguration = "LookupDialog" => pageName = "LookupDialog" [100]
If your page is also a subclass of the d2w pages, you probably need to
set up task and entity, too.
pageConfiguration = "LookupDialog" => task = ? [100] probably "query"?
pageConfiguration = "LookupDialog" => entity = ? [100]
[com.webobjects.directtoweb.EntityAssingment] whatever entity is shown
Cheers, Anjo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden