Stefano Mazzocchi wrote:
Christopher Oliver wrote:
http://cvs.apache.org/viewcvs.cgi/*checkout*/cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/xmlForm.js?rev=1.3&content-type=text/plain


In order to communicate with XMLFormTransformer and to handle restarting continuations, this script needs access to:


cocoon.session
cocoon.componentManager
cocoon.environment.objectModel
cocoon.forwardTo()


Why do you need direct access to the objectModel?


Only because of the design of XMLForm: it stores the form "view" in the object model and several of the methods of org.apache.cocoon.component.xmlform.Form require the object model as a parameter.


Regardless of the flow, there doesn't appear to be lot of consistency in the way Cocoon components communicate: sometimes they stash stuff in request parameters, sometimes in the session, sometimes in the object model. In any case there seems to be no explicit contract,




Reply via email to