Nevermind, although searching for half an hour before emailing, I found it just
after:
<c:forEach var="item" items="${pageModel.results}">
<cms:out contentNode="${item}" nodeDataName="myproperty" />
</c:forEach>
coffee break time;)
________________________________
From: Hans Wichman
Sent: Tuesday, March 22, 2011 11:35 AM
To: [email protected]
Subject: jsp ${content.@mynode} equivalent
Hi list,
I have content nodes with a property showOnPage, which can be set to true or
false.
Looping over this content nodes using jstl, I'm trying to access this nodedata
through:
${item.showOnPage}
but the jsp throws an exception, probably since the contentnode does not
implement getShowOnPage.
How can I access this property ?
In addition is there any way to simply have java/magnolia access public
properties on a class instead of going the private property / public getter
way? I'm well aware of the religious wars on this subject, but wonder about the
technical possibilities of it anyway;).
thanks,
Hans
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------