title: cq5. using pathField xtype in dialog
body: <p>I want to use pathfield in dialog of my component.</p>
  
  <p>According <a href="https://stackoverflow.com/a/19046632/2674303">link</a></p>
  
  <p>I added </p>
  
  <pre><code>&lt;myPathComponent
          jcr:primaryType="cq:Widget"
          fieldLabel="My path component"
          plugins="customRootPathPlugin"
          xtype="pathfield" /&gt;
  </code></pre>
  
  <p>to my dialog.xml</p>
  
  <p>I tryed differents varians:</p>
  
  <h2>1</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
      jcr:primaryType="cq:Dialog"
      title="Example Component Dialog"
      xtype="dialog"&gt;
      &lt;items
          jcr:primaryType="cq:Widget"
          xtype="tabpanel"&gt;
          &lt;items jcr:primaryType="cq:WidgetCollection"&gt;
              &lt;tab1                
               &lt;myPathComponent
                    jcr:primaryType="cq:Widget"
                    fieldLabel="My path component"
                    plugins="customRootPathPlugin"
                    xtype="pathfield" /&gt;
  
              /&gt;
          &lt;/items&gt;
      &lt;/items&gt;
  &lt;/jcr:root&gt;
  </code></pre>
  
  <h2>2</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
      jcr:primaryType="cq:Dialog"
      title="Example Component Dialog"
      xtype="dialog"&gt;
      &lt;items
          jcr:primaryType="cq:Widget"
          xtype="tabpanel"&gt;
          &lt;items jcr:primaryType="cq:WidgetCollection"&gt;
  
               &lt;myPathComponent
                    jcr:primaryType="cq:Widget"
                    fieldLabel="My path component"
                    plugins="customRootPathPlugin"
                    xtype="pathfield" /&gt;
  
  
          &lt;/items&gt;
      &lt;/items&gt;
  &lt;/jcr:root&gt;
  </code></pre>
  
  <h2>3</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
      jcr:primaryType="cq:Dialog"
      title="Example Component Dialog"
      xtype="dialog"&gt;
      &lt;items
          jcr:primaryType="cq:Widget"
          xtype="tabpanel"&gt;
  
  
               &lt;myPathComponent
                    jcr:primaryType="cq:Widget"
                    fieldLabel="My path component"
                    plugins="customRootPathPlugin"
                    xtype="pathfield" /&gt;
  
  
  
      &lt;/items&gt;
  &lt;/jcr:root&gt;
  </code></pre>
  
  <h2>4</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
      jcr:primaryType="cq:Dialog"
      title="Example Component Dialog"
      xtype="dialog"&gt;
  
  
  
               &lt;myPathComponent
                    jcr:primaryType="cq:Widget"
                    fieldLabel="My path component"
                    plugins="customRootPathPlugin"
                    xtype="pathfield" /&gt;
  
  
  
  
  &lt;/jcr:root&gt;
  </code></pre>
  
  <h2>5</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
  
  
  
               &lt;myPathComponent
                    jcr:primaryType="cq:Widget"
                    fieldLabel="My path component"
                    plugins="customRootPathPlugin"
                    xtype="pathfield" /&gt;
  
  
  
  
  &lt;/jcr:root&gt;
  </code></pre>
  
  <p>only in some cases after double click by component I see component reaction. But there are arise empty  list :</p>
  
  <p><img src="https://i.stack.imgur.com/cFs8b.png" alt="enter image description here"></p>
  
  <p>What I need to read for resolve my problem ?</p>