AEM6 WCMUse Bug - getInheritedProperties not working | Community
Skip to main content
Level 8
Oct 16, 2015 2:26 AM UTC
Solved

AEM6 WCMUse Bug - getInheritedProperties not working

I think i've found a bug with AEM6.  I have a custom property on parent page named "clientName".  Inside of my component class which extends WCMUse, i'm trying to utilize getInheritedProperties().get("clientName", String.class) to return the client name, however, the value is never found and a null is returned.  If i do the same but with a standard property like "jcr:title", the correct value is returned.

If i however use ${inheritedPageProperties.clientName} or the older WCMUtils.getInheritedProperty method - the value of "clientName" is correctly returned.

Is this a known issue?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
BrianKasingli
BrianKasingliAccepted solution
New Participant
Jul 21, 2023 7:16 AM UTC

If inheritedPageProperties is not working as expected in AEM, try the following steps:

  1. Ensure you have the latest AEM service pack installed.
  2. Review your implementation and configuration.
  3. Check AEM documentation and community forums for solutions.

For more insights, check this blog: https://sourcedcode.com/blog/aem/aem-quick-reference/aem-inheritedpageproperties-with-sightly-jsp-osgi-bundle

1 reply

BrianKasingli
BrianKasingliAccepted solution
New Participant
Jul 21, 2023 7:16 AM UTC

If inheritedPageProperties is not working as expected in AEM, try the following steps:

  1. Ensure you have the latest AEM service pack installed.
  2. Review your implementation and configuration.
  3. Check AEM documentation and community forums for solutions.

For more insights, check this blog: https://sourcedcode.com/blog/aem/aem-quick-reference/aem-inheritedpageproperties-with-sightly-jsp-osgi-bundle

Translate