EditConfig Listener not working in nested components in aem 6.4 | Community
Skip to main content
Level 2
March 20, 2019

EditConfig Listener not working in nested components in aem 6.4

  • March 20, 2019
  • 2 replies
  • 2884 views

Hi All,

We are having two components lets say Component A and Component B. Both have its own editConfig Listeners for afterinsert and afteredit to refresh the current page.

It is working fine when both the components are used individually, but there seems to be an issue when we include component A inside component B using data-sly-resource, after inserting the component the page is not refreshed and the component is non editable. We have to manually refresh the page and after that the component functions normally where both the components get enabled for editing. Has anyone faced the same issue? we are using the version 6.4 with service pack 2.(6.4.2).

Thanks,

Raja S

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

March 28, 2019

Yes, even I 'm facing the same issue. I have to either do hard refresh or change modes (Moving from edit to preview and then back to edit mode) to solve this issue. Someone please suggest any other approach to solve.

arunpatidar
Community Advisor
Community Advisor
March 28, 2019

You can try below:

In the cq:editConfig node of component A (which I understand to be the inner component), change Listener from REFRESH_SELF or REFRESH_PAGE  to  REFRESH_PARENT

e.g. afteredit="REFRESH_PARENT"

This will force the parent component B to refresh when editing component A.

Arun Patidar
RajaZeusAuthor
Level 2
March 28, 2019

Thanks for chiming in Arun, i have tried that option already and it does not seem to solve the issue.

smacdonald2008
Level 10
March 28, 2019

Is the outer component the responsive grid?

smacdonald2008
Level 10
March 28, 2019

Also best practice to model your components based on the core components.