Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Unable to edit included components immediately after dragging to page

Avatar

Level 2

If I have 2 components, A and B, and component A includes component B in the JSP like <cq:include path="pathB" resourceType="myApp/components/componentB" />, and I drag component A onto a page, I can edit component A, but if I want to edit component B, I need to refresh the page. Is there a work around for this? I'm using v5.4; is this behavior updated in newer versions?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Have you added listener to the component B 

afterinsert => REFRESH_PAGE
afterremove => REFRESH_PAGE
aftermove => REFRESH_PAGE

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Have you added listener to the component B 

afterinsert => REFRESH_PAGE
afterremove => REFRESH_PAGE
aftermove => REFRESH_PAGE