Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Component showing changes after manual referesh

Avatar

Level 2

Hi, I am facing an issue where my custom component is showing me the changes that I have made in the dialog. I have to refresh it manually after editing it to reflect those changes. Is there a way to fix this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Ankit_Gangishetti ,

You can try adding cq:listners under cq:editConfig in your component and it should solve the issue. After edit is the property which would refresh the component after edit.

MadhurMadan_0-1706121420144.png

 

View solution in original post

2 Replies

Avatar

Community Advisor

Hi,

 

Please try using the cq:EditConfig with the property to "refresh" the component after changes are applied: https://helpx.adobe.com/uk/experience-manager/kb/RefreshPageWhenModifyDialog.html 

Something like this, or using the "REFRESH_SELF" depending on what you are tyring to accomplish:

 

<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
	jcr:primaryType="cq:EditConfig">
	<cq:listeners
		jcr:primaryType="cq:EditListenersConfig"
		afteredit="REFRESH_PAGE"/>
</jcr:root>

 

You can learn more about this config here: http://www.sgaemsolutions.com/2019/01/ootbcustom-cqlisteners-in-cqeditconfig.html

 

Hope it helps 



Esteban Bustamante

Avatar

Correct answer by
Community Advisor

Hi @Ankit_Gangishetti ,

You can try adding cq:listners under cq:editConfig in your component and it should solve the issue. After edit is the property which would refresh the component after edit.

MadhurMadan_0-1706121420144.png