Re: d2wContext Question
Re: d2wContext Question
- Subject: Re: d2wContext Question
- From: Omar <email@hidden>
- Date: Wed, 15 Sep 2004 18:42:18 -0400
Thanks for you answer!
I was able to get my component to work after I read your message, now I
am trying to create a "DataGrid" component so that I don't need to copy
all my code (including the alternating colors and so on) everytime I
need to show data in an html table so what I did was create a new
component but I need this component to "inherit" the d2wContext.
Meaning that I have a component called QueryPage that calls the DataGrid
component and I have the following rules:
pageConfiguration = "ListOffices" => pageName = "QueryPage"
pageConfiguration = "ListOffices" => displayPropertyKeys = "(name,
address_1, status, ...)"
pageConfiguration = "ListOffices" => entity = "offices"
...
How can my component DataGrid access "displayPropertyKeys" from the
QueryPage component? Hope you understand what I mean.
Thanks again for your help!
Omar
Anjo Krank wrote:
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