Jahia Dev Forum > get the property...

0 (0 Good)
0 (0 Bad)

get the property list of the node

by  bharatkasodariya »  2014/03/03 10:17

How to get properties of any node inside jsp 

  • get the property list of the node
    2014/03/03 10:17

    bharatkasodariya <p> How to get properties of any node inside jsp&nbsp;</p>

  • Number of messages  57
    Registration date Mar 3, 2014
    0 (0 Good)
    0 (0 Bad)

    Re: get the property list of the node

    by  qlamerand »  2014/03/03 10:42

    Hello,

    This is explained in the Part 4: Content definitions and views of the Templating and Integration guide available here :
    http://www.jahia.com/home/download/jahia-academy/documentation/guide-de-lintegration-et-du-temp.html

    Regards,
    Quentin

  • Re: get the property list of the node
    2014/03/03 10:42

    qlamerand <p> Hello,</p> <p> This is explained in the Part 4: Content definitions and views of&nbsp;the Templating and Integration guide available here :<br /> <a href="http://www.jahia.com/home/download/jahia-academy/documentation/guide-de-lintegration-et-du-temp.html">http://www.jahia.com/home/download/jahia-academy/documentation/guide-de-lintegration-et-du-temp.html</a></p> <p> Regards,<br /> Quentin</p>

  • Number of messages  28
    Registration date Mar 3, 2014
    0 (0 Good)
    0 (0 Bad)

    Re: Re: get the property list of the node

    by  bharatkasodariya »  2014/03/03 11:34

    Thanks, In reference guide its with current node. how to access one node inside another node. Like to access [cnt:dog]  node in another component [cnt:xyz] 

  • Re: Re: get the property list of the node
    2014/03/03 11:34

    bharatkasodariya <p> Thanks, In reference guide its with current node. how to access one node inside another node. Like to access [cnt:dog] &nbsp;node in another component&nbsp;[cnt:xyz]&nbsp;</p>

  • Number of messages  57
    Registration date Mar 3, 2014
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: get the property list of the node

    by  bharatkasodariya »  2014/03/05 14:35

    I tried below code to read the properties from the node definition. It doesn't return the property defined in the .cnd file.

    JCRNodeWrapper node = session
    .getNode("<node definition pat>");
    PropertyIterator iterator = node.getProperties();
    while (iterator.hasNext()) {
    Object obj = iterator.next();
    }
     
  • Re: Re: Re: get the property list of the node
    2014/03/05 14:35

    bharatkasodariya <p> I tried below code to read the properties from the node definition. It doesn&#39;t return the property defined in the .cnd file.</p> <div> JCRNodeWrapper node = session</div> <div> .getNode(&quot;&lt;node definition pat&gt;&quot;);</div> <div> PropertyIterator iterator = node.getProperties();</div> <div> while (iterator.hasNext()) {</div> <div> Object obj = iterator.next();</div> <div> }</div> <div> &nbsp;</div>

  • Number of messages  57
    Registration date Mar 5, 2014
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page