Expand my Community achievements bar.

SOLVED

After edit AEM 6.4 author component refresh not working

Avatar

Level 1

Hi Guys,

I was using the Adobe AEM 6.4 , but even after using editConfigListener on component page refresh after editing the component is not working.

<?xml version="1.0" encoding="UTF-8"?>

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

Any suggestion?

Thanks a lot.

1 Accepted Solution

Avatar

Correct answer by
Level 5

can u share how you are including your component ? Because it refreshes the inter frame and i doubt you are doing parent reloading .

you can force refresh by adding below script of category cq.authoring.dialog

(function ($, $document) {

    "use strict";

$document.on("dialog-success", function() {

window.location.reload();

})($, $(document));

thanks

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

can u share how you are including your component ? Because it refreshes the inter frame and i doubt you are doing parent reloading .

you can force refresh by adding below script of category cq.authoring.dialog

(function ($, $document) {

    "use strict";

$document.on("dialog-success", function() {

window.location.reload();

})($, $(document));

thanks