This content has been marked as final.
Show 3 replies
-
1. Re: Getting the portalname programmatically
mwringe May 25, 2010 9:58 AM (in response to hauch)I believe what you should be using instead is the PortalRequestContext (use PortalRequestContext.getCurrentInstance() to get access to it). I think the portal name is retrieved through something like getPortalOwner
-
2. Re: Getting the portalname programmatically
trong.tran May 26, 2010 12:01 AM (in response to mwringe)Yes, you could retrieve portal name via PortalRequestContext.getPortalOwner();
and for the returned ExoContainerContext.
getCurrentContainer().getContext().getPortalContainerName(), it would be corresponding to http://localhost:8080/<portal container name>/private/<my portal>/<page>
-
3. Re: Getting the portalname programmatically
hauch May 27, 2010 10:04 AM (in response to mwringe)Yep - that did it!
Thanks for your help.