currentNode is null
We are facing issue similar to below thread, but we don't want to use querymanager but rather use the currentNode object
http://stackoverflow.com/questions/18850171/currentnode-object-gives-nullpointerexception
In our code we have something like below:
In the control tabControlPG, we are using currentNode.getProperty(). currentNode is always null. So I tried using request.getResource() and even that throws error that getResource() is not availble for HttpServletRequest.
Any ideas or pointers are really appreciated.
<%if(currentPage.getName().equalsIgnoreCase("Documents-Publications")) {%>
<cq:include path="mainContent/tabcontrol" resourceType="/apps/imf/mobile/components/content/customComponents/tabControl"/>
<%}
else if(currentPage.getName().equalsIgnoreCase("logistics")) {%>
<cq:include path="mainContent/tabcontrol" resourceType="/apps/imf/mobile/components/content/customComponents/tabControlPG"/>
<%}%>