cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <>
Subject [2.2] Global objectModel in JX components
Date Wed, 29 Jul 2009 20:27:22 GMT
Hi Cocoon devs,

I just noticed that the JX template generator uses a global object model 
in the execution context. This leads to problems when multiple JX 
template generators are called concurrently, e.g. if the processed 
template contains includes:


   ${} -> "foo"

   <i:include src="…"/> (some JX generator, with parameter foo=bar)

   ${} -> "bar"


The included JX template generator overwrites the cocoon/parameters 
object in the object model, which affects the outer template.

Would it make sense to pass a copy of the object model to the invoker 
instead of a reference to the global object model?

TIA for any comments!

-- Andreas

Andreas Hartmann, CTO
BeCompany GmbH
Tel.: +41 (0) 43 818 57 01

View raw message