title: Is it possible to get Page Properties inside CQ dialog listener
body: <p>I have a page at 
  /content/admin/mycomp-test/testpage/jcr:content</p>
  
  <p>property</p>
  
  <pre><code>name : validated
  type : boolean
  value : true
  </code></pre>
  
  <p>Is it possible to get the above property value inside CQ dialog's 
  I tried the following code, but it;s not working.</p>
  
  <pre><code>&lt;listeners jcr:primaryType="nt:unstructured"
                 beforesubmit="function(dialog) {
  
                  var compPath = dialog.path;
  
                  Resource res= resourceResolver.getResource(compPath);
  
                  Node node = res.adaptTo(Node.class);
  
                  var prop= node.getProperty('validated').getValue().getString(); 
  
  
  
                  CQ.Ext.Msg.alert('valieded : ' + prop);
                      return false;
  
          }" /&gt;
  }
  </code></pre>