Adding, editing, deleting component doesn't refresh page even with cq listener configured
This one has me scratching my head. I created a component and dragged on to a page I created with a basic template. It doesn't refresh the page even though I've set aftercreate,afterdelete,afteredit,afterinsert and aftermove to REFRESH_PAGE. Here is my _cq_editConfig.xml file.
<?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" cq:actions="[edit,delete,insert,copymove]" cq:inherit="true" jcr:primaryType="cq:EditConfig"> <cq:listeners jcr:primaryType="cq:EditListenersConfig" aftercreate="REFRESH_PAGE" afterdelete="REFRESH_PAGE" afteredit="REFRESH_PAGE" afterinsert="REFRESH_PAGE" afterMove="REFRESH_PAGE"/> </jcr:root>
Then I tried dragging a we retail component that I know refreshes the page (in the we retail project) and it still didn't work. This leads me to think there is something wrong with my template or the page component it is inheriting from.
/templates/blank-template/.content.xml
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:description="Blank Template" jcr:mixinTypes="[mix:lockable]" jcr:primaryType="cq:Template" jcr:title="Blank Template" allowedPaths="[.*]" ranking="{Long}42"> <jcr:content jcr:primaryType="cq:PageContent" sling:resourceType="my-app/components/structure/page"> </jcr:content> </jcr:root>/components/structure/page/.content.xml
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:Component" jcr:title="A Page" sling:resourceSuperType="wcm/foundation/components/page" componentGroup=".hidden"/>
Any help would be greatly appreciated it.