Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

AEM6 WCMUse Bug - getInheritedProperties not working

Avatar

Level 8

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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-os...

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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-os...