How to refresh container component after deleting child component in it | Community
Skip to main content
Jacleng
Level 2
October 16, 2015
Solved

How to refresh container component after deleting child component in it

  • October 16, 2015
  • 2 replies
  • 1218 views

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.
Best answer by aanchal-sikka

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

 

That should refresh container after that component is deleted

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

Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
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.

Kautuk Sahni