> > first you have to realize that this is a corner case. doing > > constructor injection with actual component instances is pretty rare. > > I find myself wanting to do it quite often with side-bar panels that > contain a mix optional items
I find that also - a whole branch of the page hierarchy need a particular side panel whereas another branch need a different side panel. Everything else - header, footer, menus etc., - remain pretty much constant. The solution I often find myself pining for is to be able to have more than one section in the markup that can be overridden in derived classes. (this is not the same as multiple inheritance and some wrongly assume). This makes the above very simple and very OO. This has been discussed at length on many occasions and recently spec'd out pretty accurately. Hopefully it will find its way into a not too distant release as the panel based workaround isn't as elegant, nor efficiently coded as a pure OO approach. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
