Robin Wyles pisze: > Hi I posted this a few weeks ago and I'm still searching for an > answer... could anyone help? >
Hi Robin, Now I know what was the mail I forgot to reply ;-) > On 10 Dec 2007, at 12:09, Robin Wyles wrote: > >> Hi, >> >> What I hope is a simple question... If I have a block A which depends >> on block B, can I override properties defined in block B by specifying >> them in block A? If this is possible, then I can't seem to get it to >> work - are there any special steps I have to take? Current situation with blocks is that they not offer complete isolation because it was too hard to implement at the first time. It means that when you define properties in blocks they are visible everywhere. If you want to override and set the same property in another block you get conflict as you probably guessed. The solution that we offer at the moment for such situations is to resolve property files in an alphabetic order (see[1]). Last definition of property wins. In order to override a property you just need to put it in a file named in a such way that you can be sure it will be read as last. HTH. [1] http://cocoon.apache.org/subprojects/configuration/1.0/spring-configurator/1.0/1310_1_1.html -- Grzegorz Kossakowski --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
