AEM 6.4 touch UI dialog | Reload the component dialog after select event

Avatar

Avatar

pradeepdubey82

Avatar

pradeepdubey82

pradeepdubey82

17-06-2020

Hi All,

 

I have a requirement where i need to reload the component(not page refresh) when changed the tag value.

At present i am refreshing the page using 

window.location.reload();

which is closing the dialog and refreshing the page, this is what i don't want.

 

Please advise, thanks in advance. 

 

Thanks,

Pradeep

 

 

View Entire Topic

Avatar

Avatar

vanegi

Employee

Avatar

vanegi

Employee

vanegi
Employee

17-06-2020

You can use REFRESH_SELF in _cq_editConfig.xml. Sample xml file is:

 

<?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_SELF"/>
</jcr:root>

 

See the example component implementation from /libs/foundation/components/carousel/cq:editConfig/cq:listeners.