AEM6 WCMUse Bug - getInheritedProperties not working | Adobe Higher Education
Skip to main content
Level 8
October 16, 2015
Beantwortet

AEM6 WCMUse Bug - getInheritedProperties not working

  • October 16, 2015
  • 1 Antwort
  • 599 Ansichten

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?

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von 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 Antwort

BrianKasingli
Community Advisor and Adobe Champion
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