title: CQ access deep child node's property from current node (current component)
body: <p>i am working on a carousel component called "tabbedcarousel", i need to iterate through it's children nodes to access an image property. see the pic below:</p>
  
  <p><img src="https://i.stack.imgur.com/YyFkS.png" alt="enter image description here"></p>
  
  <p>that "tabbedimagecarouselunselectedimage" -> "fileReference"  is what i need to get.</p>
  
  <p>say i m currently working on "tabbedcarousel.jsp",   i have access to my currentNode,  so the way i m assuming to get the deep child img property is like this:</p>
  
  <pre><code>&lt;%
  
  
          NodeIterator tabbedCarouselChildNodes = currentNode.getNodes();
          while(tabbedCarouselChildNodes.hasNext()){
              Node parNode = tabbedCarouselChildNodes.nextNode();
  
              NodeIterator parChildNodes = parNode.getNodes();
              while(parChildNodes.hasNext()){
                  Node tabbedCarouselItemNode = parChildNodes.nextNode();
  
                  NodeIterator tabbedCarouselItemChildNodes = tabbedCarouselItemNode.getNodes();
                  while(tabbedCarouselItemChildNodes.hasNext()){
                      Node tabImgNode = tabbedCarouselItemChildNodes.nextNode();
                      %&gt;
                      test here s the img property : &lt;%= tabImgNode.getProperties("fileReference").toString()%&gt; !!!
                      &lt;% 
              }
          }
  
  %&gt;
  </code></pre>
  
  <p>but it does not work.  hopefully someone can give me some suggestions. thanks</p>