You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nacho Jimenez <na...@ya.com> on 2004/09/23 13:05:19 UTC

Trying to retrieve temporary context in sitemap..

Dear All,

I'm setting a variable in a flow function into the temporary context:
   
    var 
contextManager=cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE);
    var tempContext=contextManager.getContext("temporary");
    tempContext.setAttribute("/tenporary/test",value);

And later on, I try to retrieve it through the sitemap with 
{session-context:temporary/test}, but it doesn't exist. If I retrieve it 
from another flow function, it's there, but not from the sitemap or the 
session-fw transformer

What am I doing wrong?

Thanks in advance

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org