Re: Pierre's backPageComponent
Re: Pierre's backPageComponent
- Subject: Re: Pierre's backPageComponent
- From: email@hidden (Anjo Krank)
- Date: Mon, 26 May 2003 21:41:42 +0200
Am Montag, 26.05.03 um 21:20 Uhr schrieb Pierre Bernard:
If you go for pure direct actions: i.e. your pages have links to other
direct actions rather then dynamic component action links, I see no
way how this or any similar code could work. Indeed all your pages
will be independent, whereas this code relies on one page being
instantiated by its caller page. Thus you would either have to inform
a page about where it was called from: e.g through an additional
optional argument. This is the kind of architecture I tried to avoid
as it spreads the burden over all possible callers.
You could take a look at Wonder's ERD2WDirectAction which solves
exactly this problem (uses some private API, though, so you're on your
own if things break).
Basically you create hyperlinks with
?__cid = context.contextID;
added and the DA resolves those for the page in question as the
nextPage().
Cheers, Anjo
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.