component renders only on page refresh
On authoring a customized component dialog, component does not render on click of done in the dialog.
It renders fine only after reloading the page.
What can be the possible fix?
Thanks in advance
On authoring a customized component dialog, component does not render on click of done in the dialog.
It renders fine only after reloading the page.
What can be the possible fix?
Thanks in advance
Hi @dolly
The component doesn't render the latest changes from the dialog unless you define a edit behaviour or refresh the page. In order to define a edit behaviour you can create a cq:EditConfigand a cq:listeners. Below is a sample xml. This will reload the page as soon as you submit a dialog so that the latest changes from the dialog are displayed.
<jcr:root xmlns:cq="https://www.day.com/jcr/cq/1.0" xmlns:jcr="https://www.jcp.org/jcr/1.0"
cq:actions="[edit]"
cq:dialogMode="floating"
cq:layout="editbar"
jcr:primaryType="cq:EditConfig">
<cq:listeners
jcr:primaryType="cq:EditListenersConfig"
afteredit="REFRESH_PAGE"/>
</jcr:root>Please find below the adobe documentation for the same.
Thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.