Well, evidently, I need to start from scratch, because none of these changes made a whit of difference. I still get no d2wcontext, and get the same NPE.
I wish I knew what it was that I broke, so this would seem less like black box magic and I had any understanding of it to fix my own issues. C'est la vie, I guess. On Jun 9, 2010, at 7:07 PM, David Holt wrote: > Hi Andrew, > > On 9-Jun-10, at 3:34 PM, akinnie wrote: > >> OK, that all makes sense. > > :-) > >> I didn't think I needed a home() method as I was putting it in a >> subcomponent, so I commented it out. > > homeAction() is just a name. Don't be confused by that. In this case, David > arbitrarily made the choice that the homeAction was the customary QueryAll > page for the ERModernMoviesDemo. It might just as easily be a list of users, > or a search page for bugs, or whatever you want. You just need to call the > method from your "Admin" tab, whatever it is called. For example you might > want to call it adminHomePage(). That just doesn't matter. > > The D2W.factory().defaultPage called in the homeAction is set in the Rules. > If you open up the rules for JavaDirectToWeb framework you'll find > > 0 *true* startupTask = "queryAll" > > This is what is being used by defaultPage to render the QueryAll page > component. > > If you prefer a different task to be your beginning task, set your new > 'startupTask' at a higher priority in the rules and make sure that you > specify a 'startupEntityName' as well (any task other than queryAll acts on > an entity). > > The Factory class in BugTracker gives you all sorts of options for actions > that you could call from your navigation scheme (for example you could > display a qualified list of entities based on your logged in user). This is > where ERXThreadStorage comes in handy because it is accessible from your EOs. > > >> I think. I am in school at the moment, so I do have it in front of me. >> Hopefully, if I'm not a zombie, I'll be able to look at it after 10:30 >> tonight. >> >> Thanks to you and Ramsey for all your help. . . not to suggest I won't need >> more tomorrow. > > Not a problem. It is my hope that I can be of some help! > > David _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com