How to get current PageAlias?

Is there a way in a CAF portlet to retrieve the current PageAlias or page name that the user navigated to?

You will use the PortalItemModel to get information about the current resource including it’s name, description and aliases. Here’s the javadocs for it: [url]http://ajax-softwareag.com/articles/Y4LCDN/Caf-7-1-1JavaDocs/com/webmethods/caf/faces/data/portal/PortalItemModel.html[/url]

The way you locate the current requested item is with the following:


IContext context = ContextFactory.acquireContext(true);
IURI uri = context.getCurrentResource();
PortalItemModel pim = new PortalItemModel();
pim.setItemID(uri.toString());
String [] aliases = pim.getAliases();

Regards,
–mark

Thanks mate, that was exactly what I was after.