AEM6 WCMUse Bug - getInheritedProperties not working | Community
Skip to main content
Level 8
October 16, 2015
Solved

AEM6 WCMUse Bug - getInheritedProperties not working

  • October 16, 2015
  • 1 reply
  • 598 views

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.
Best answer by BrianKasingli

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
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
July 21, 2023

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