3 Replies Latest reply on Oct 26, 2012 7:26 AM by rush_pawan

    Can I get a Node reference from a component

    joel_triemstra Level 1

      I have a component A that I have dragged onto a parsys. The component has another parsys P on it, and in the JSP code for A, I want to iterate over the components B, C, D in parsys P. My thought was to get a reference to the current node in the JSP code for component A, and drill down through its children. However, the currentNode object is null. Is there a way to get a reference to the current component's node?

       

      Edit: actually in the scenario described above, the currentNode object works. The problem scenario is: I have a component A that I have dragged onto a parsys. Component A has a cq:include of component E. The component E has another parsys P on it, and in the JSP code for E, I want to iterate over the components B, C, D in parsys P. My thought was to get a reference to the current node in the JSP code for component E, and drill down through its children. However, the currentNode object is null. Is there a way to get a reference to the current component's node?