HI
I want to get responsivegrid componenet using jcr api.
Please help me with sample code.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @akshaybhujbale ,
You ca iterate nodes. Get ResourceResolver as per your project setup. Get Session from ResourceResolver and iterate nodes. This is just pseudo code.
Session session=resourceResolver.adaptTo(Session.class); Node node=session.getNode("Path to parent node"); NodeIterator nodeIterator= node.getNodes(); while (nodeIterator.hasNext()){ Node child=(Node)nodeIterator.next(); }
You can use resource api as well. Once get resource and adaptTo node.
Please check this discussion [1]
[1] https://stackoverflow.com/questions/48741445/how-to-iterate-over-jcr-nodes-in-java
Hi @akshaybhujbale ,
You ca iterate nodes. Get ResourceResolver as per your project setup. Get Session from ResourceResolver and iterate nodes. This is just pseudo code.
Session session=resourceResolver.adaptTo(Session.class); Node node=session.getNode("Path to parent node"); NodeIterator nodeIterator= node.getNodes(); while (nodeIterator.hasNext()){ Node child=(Node)nodeIterator.next(); }
You can use resource api as well. Once get resource and adaptTo node.
Views
Likes
Replies
Views
Likes
Replies