Re: Session null in jxtg

2006-01-26 Thread Daniele Madama
* Daniele Madama: Hola, Hola, I want to get a session attribute from a JXTemplate without success. Indeed the flow object model is different from the JXTemplate object model, sadly. Yeah, but reading the doc [1] it seems that the session is a properties of cocoon object... You have

Re: Session null in jxtg

2006-01-26 Thread Daniele Madama
Ri-hola, looking at the source of JXTemplateGenerator it try to put the sessione in the cocoon object snip of the setContexts() if (session != null) { cocoon.put(session, FOM_JavaScriptFlowHelper.getFOM_Session(objectModel)); } /snip Debugging this code the session is not null, but it

Session null in jxtg

2006-01-25 Thread Daniele Madama
Hola, I want to get a session attribute from a JXTemplate without success. My template is this page xmlns:jx=http://apache.org/cocoon/templates/jx/1.0; jx:set var=session value=${cocoon}/ ${session} /page and the output ?xml version=1.0 encoding=ISO-8859-1? page

Re: Session null in jxtg

2006-01-25 Thread Jean-Baptiste Quenot
* Daniele Madama: Hola, Hola, I want to get a session attribute from a JXTemplate without success. Indeed the flow object model is different from the JXTemplate object model, sadly. You have to do: ${session} Directly. -- Jean-Baptiste Quenot http://caraldi.com/jbq/