Gianugo Rabellino wrote:
Guys,
please have a look at:
http://marc.theaimsgroup.com/?t=113821146000004&r=1&w=2&n=4
While the documentation seems to imply that the session object should
be available to JXTG, it doesn't seem the case at all. Are we missing
something or is that a bug? The relevant lines to blame seem to be:
src/java/org/apache/cocoon/generation/JXTemplateGenerator.java" line 2433:
if (session != null) {
cocoon.put("session",
FOM_JavaScriptFlowHelper.getFOM_Session(objectModel));
}
given that no session object is available in the objectModel, and
given that a few lines above the session is grabbed anyways:
final Object session = request.getSession(false);
that line should become
if (session != null) {
cocoon.put("session", session);
}
which works for us. Or are we missing something? I'm wondering what
should FOM_JavaScriptFlowHelper.getFOM_Session(objectModel) do at all,
if that's the case...
This is only the case for old JXTG. Have we finished the vote about
porting CTemplate back to 2.1?
--
Leszek Gawron [EMAIL PROTECTED]
IT Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65