I'm trying to create an adobe cq component and include a parsys element that users can drag other components into. However, when I drag items into my parsys component they always display outside of the html tags I wrapped around my include. What am I doing wrong?
html in my component jsp
<div class="div-one">
div one
</div>
<div class="div-two">
<cq:include path="par" resourceType="foundation/components/parsys" />
</div>
content.xml for my component
<?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:description=""
jcr:primaryType="cq:Component"
jcr:title="title"
sling:resourceSuperType="foundation/components/parbase"
allowedParents="[*/parsys]"
componentGroup="My Group"
cq:htmlTag=""/>
How the html is rendered in a browser after I think I dragged a component into div-two
<div class="div-one">
div one
</div>
<div class="div-two">
<cq:include path="par" resourcetype="foundation/components/parsys">
</cq:include></div>
<div id="myComponent" class="row">
</div>