Giacomo Pati skrev:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Reinhard Poetz wrote:
Giacomo Pati wrote:
I've had discussions with Felix (which is sitting next to me) about
the issue that the mount path in
each block is carved in stone in the SitemapServlet bean definition (I
suppose it is not
overwritable by Springs PropertyOverwrite mechanism we use as it is an
attribute of our own servlet
Spring extension thingy).
You can override it by
[block-servlet-bean-id]/contextPath
See the output of the rcl goal
(./target/rcl/webapp/WEB-INF/cocoon/spring/rcl.properties) of the Cocoon
Maven plugin which already makes use of this configuration feature.
Ok, I wasn't aware that not only properties but even attributes of custom
Spring extensions are
overwritable.
In general they are not. The custom Spring extensions introduces a
preprocessing step where you can transform any custom XML format to an
ordinary bean configuration object. IIRC I tried to design the custom
format in such away that the corresponding properties would have the
intuitively expected property paths.
/Daniel