Hi,

I was able to build a path to the fragment of type portlet with the
following code:

        public String getPath(PortletContext context, PortletRequest request) {
                try {
                        String path = ((RequestContext)
request.getAttribute(RequestContext.REQUEST_PORTALENV)).getPath();

                        ContentFragment contentFragment = (ContentFragment)
request.getAttribute(PortalReservedParameters.FRAGMENT_ATTRIBUTE);

                        return path + contentFragment.getId();
                ...


Unfortunately this code only works when the request is a
RenderRequest, it seems that in ActionRequests the ContentFragment can
not be retrieved. Is there any way to get the ContentFragment from an
ActionRequest?

Another problem is that I can't navigate the hierarchy from a fragment
to the parent page. There's no method in ContentFragment that allows
me to get the parent fragment and thus build a path that includes the
decorator fragments. Is there any way to build that path that I'm
missing.

One more question, am I trying to use the portal for a use case that
is not recommendable?. I mean that I see the portal as an integration
application, among lots of other things it provides a site hierarchy
to navigate contents. I'm trying to integrate my contents with that
hierarchy, is it a wrong practice?.

br,
edgar

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to