sling:include not working with selector
I have a container component in container.jsp I want to include another component (Tile component) .Tile component has got 2 jsps,
In container.jsp when condition A matches I want to include Tile component only tile.jsp executed.
When condition B matches I want to include tile component only tile.selector.jsp to render content.
I tried with <cq:include resourceType="/apps/gwc/components/content/resTile" path ="abc.selector" />
and <sling:include resourceType="/apps/gwc/components/content/resTile" path="abc" addSelectors="selector" />
Both dont work, every time I get tile.jsp rendered.
Thanks in advance.
Any help would be appreciated.