The problem (I think) is that he is trying to use JXTG in a pipeline called from the Form constructor, e.g.
var form = new Form("cocoon:/whatever");
Ah, got it now!
However, the "cocoon" variable in JXTG is only set up when the pipeline is called from a Flowscript via cocoon.sendPage*().
Vadim raised this issue a while ago and Carsten mentioned he was planning to do something about it. Carsten, what's the status of that?
Perhaps what is needed is for JXTG to have a parameterized "ContextBuilder" that can set up its variable context differently depending on whether it is called from sendPage*() (in which case it provides access to the FOM) or not (in which case it only provides access to the Request/Session/Context - and/or other objects...)
Seems a good idea. There should be no difference from the template POV on the availability of non-flow data (request, session, etc) whether the template is called by a flowscript or not.
Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
