Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: d2wContext Question



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:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >d2wContext Question (From: Omar <email@hidden>)
 >Re: d2wContext Question (From: Anjo Krank <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.