cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinhard_po...@yahoo.de>
Subject Re: Cocoon development using blocks
Date Tue, 10 Jan 2006 11:37:29 GMT

--- Daniel Fagerstrom <danielf@nada.kth.se> schrieb:

> Right now they don't. But if each block has a unique
> namespace, we 
> probably could find some way to let the property 
> org.mydomain.myblock.foo set the block parameter
> foo.

This sounds like a workaround for now. Actually we
want to use the properties from block.xml, right?

Another (related) question - see the XML below: Will
this scenario of differently configured blocks be
supported? (like in this example that blocks can use
different database connections)

<wiring
xmlns="http://apache.org/cocoon/blocks/wiring/1.0">

  <block id="core" location="core/"/>

  <block id="test1id" location="test1/">
    <mount path="/test1"/>
    <connections>
      <connection name="core" block="core"/>
      <connection name="test2" block="test2id"/>
      <connection name="test3" block="test3id"/>
    </connections>
  </block>

  <block id="test2id" location="test2/">
    <mount path="/test2"/>
    <properties>
      <property name="database-con" value="blahAAAA"/>
    </properties>
  </block>

  <block id="test3id" location="test2/">
    <mount path="/test3"/>
    <properties>
      <property name="database-con" value="blahBBBB"/>
    </properties>
  </block>

</wiring>

--
Reinhard



	

	
		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

Mime
View raw message