How can a access a component property defined in the portal.xml file
simulair to this
<property name="plainDescription" value="Number of messages"/>
I use a JSPDynPage.
what I realy want is this.
<env-entry>
<env-entry-name>CONFIGURATION_FILE</env-entry-name>
<env-entry-value><![CDATA[/configuration.properties]]></env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
Hi Edward,
if "plainDescription" really is a property of your component, then:
IPortalComponentProfile profile = request.getComponentContext().getProfile(); String prop = profile.getProperty("plainDescription");
But "plainDescription" sounds like a standard attribute of a property? In this case, to retrieve the attribute:
IPortalComponentProfile profile = request.getComponentContext().getProfile(); String attrib = profile.getPropertyAttribute("yourPropertyName", "plainDescription");
> what I realy want is this.
I don't understand what's your aim so far.
Hope it helps
Detlev
PS: Historical. This was posting nr. 1000 😊
Add a comment