Hi Paul, I don't have a lot of time to respond, but some thoughts are:
My understanding of the docs is that you can use these ERDCustomComponents WITHOUT a d2wContext. "This is achieved by pulling values first from the bindings, then from the d2wContext and finally from an "extraBindings" binding." Have you tried just setting the key in the rules and see if the component can pull the value by itself? Alternatively have you tried subclassing a (ER)D2W(Stateless)Component instead? Then access it like so: @Override public D2WContext d2wContext() { return super.d2wContext(); } and in the .wod something like: StyleSheetRepetition : WORepetition { list = d2wContext.stylesheets; item = stylesheetName; } On 2012-06-07, at 3:55 PM, Paul Hoadley wrote: > Hello, > > This question is languishing at the end of my thread on another topic, so > I'll just drag it out into its own thread. Say I have just made a custom > property-level component by extending ERDCustomComponent. I want to be able > to read a value for a custom key that I've set in the rules. I'm assuming I > need access to the D2WContext for that, but I may be wrong, as all of > d2wContext(), localContext() and d2wContextFromBindings() are returning null > down in that custom component. What am I doing wrong here? > > > -- > Paul Hoadley > http://logicsquad.net/ > > > > _______________________________________________ > 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: > https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com > > This email sent to programming...@mac.com
_______________________________________________ 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com