Skip to main content
Jacleng
Level 2
October 16, 2015
Solved

How to refresh container component after deleting child component in it

Purpose: I want to refresh parsys component after deleting child component in it.

So far, after insert component into parsys there is Extjs function to refresh the parsys, just configure as below under [parsys/cq_editConfig/cq:listener]

<cq:listeners jcr:primaryType="cq:EditListenersConfig" afteredit="REFRESH_SELF" afterchildinsert="REFRESH_SELF"/>

 

But there is no [afterchilddelete] function to configure.

Thanks :)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aanchal-sikka
aanchal-sikkaAccepted solution
Community Advisor
December 7, 2023

You can rather add "afterdelete" on the child component and use action as "REFRESH_PARENT".

 

That should refresh container after that component is deleted

Aanchal Sikka

2 replies

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
December 7, 2023

You can rather add "afterdelete" on the child component and use action as "REFRESH_PARENT".

 

That should refresh container after that component is deleted

Translate
Aanchal Sikka
kautuk_sahni
Level 9
December 11, 2023

@jacleng Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Translate
Kautuk Sahni