Expand my Community achievements bar.

SOLVED

How to refresh container component after deleting child component in it

Avatar

Level 2

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 :)

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Administrator

@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