cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew MacDonald <>
Subject Changing the portal layout dynamically
Date Mon, 04 Oct 2004 18:35:32 GMT
I am trying to change the portal layout dynamically
but am having problems doing so.  One of the
approaches I've tried is to access (and possibly
change) the portal context.  I've tried accessing it
from flow and from an XML page using the session
transformer.  The following is the code I've tried and
the errors I get...
>From flow:

var portalManager =
var portalContext = portalManager.getContext(true);
var xml = portalContext.getXML("/*");

That code produces the error:
"portal: portal-uri required for application 'portal'"

I've also tried from flow:

var contextMan =

var portalContext = contextMan.getContext("portal");
var xml = portalContext.getXML("/*");

That code produces the error:
"Portal context not available outside a coplet."

I also get that same error when I try to access the
portal context from XML.  For example:
<session:getxml context="portal" path="/*"/>

I'm almost certain I'm inside a coplet when using this
code so I don't understand the meaning of this error.

Any help towards solving these problems would be much
appreciated.  I've looked and haven't been able to
find any info on accessing the portal context.

Andrew MacDonald

Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage! 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message