Skip to Content
0
Former Member
Sep 20, 2011 at 07:56 PM

PCD Inspector - meta-attribute

34 Views

Friends,

I've created a meta-attribute on com.sap.portal.pcm.Title and at PCD Inspector it looks like this:

com.sap.portal.pcm.Title-attrName

But now I can't retrieve this value from my java code inside my AbstractComponent class.

Can anyone help me to solve this issue ?

Here is a fragment of my code:

iCtxComp = new InitialContext(getEnvironment(request, PcmConstants.ASPECT_SEMANTICS));

iPage = (IPage)iCtxComp.lookup(componentName);

Enumeration en = iPage.getiViews();

while (en.hasMoreElements()) {

Binding bind = (Binding)en.nextElement();

Object obj = bind.getObject();

if (obj instanceof IiView) {

IiView v = (IiView) obj;

response.write("<br/><br/>" + navigationView.getTitle(request.getLocale()));

response.write("<br/>" + navigationView.getAttributeValue("com.sap.portal.pcm.Title-isAcessoRapido"));

//// The above line is printing null but the attribut is visible in PCD Inspector.

}

}

Best regards,

Ramatí