Hi Fabio, Magnolia 4.5 has started the switch to using the JCR native classes Node and Property rather than the wrapper classes Content and NodeData. Ultimately, this will speed up magnolia by eliminating a now unnecessary layer of code.
The property text that you are trying to read is a property of the node "/home/documentaleForm/main/0" - so I think your code is iterating over the properties of the wrong node. Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Fabio Paroni (via Magnolia Forums) Gesendet: Freitag, 28. Dezember 2012 09:45 An: Magnolia User List Betreff: [magnolia-user] JCR browser get property value Hi guys, inside my java class controller, I want to get the value (556035) of the node called 'text' in my JCR Browser as shown in the image: [img]http://img541.imageshack.us/img541/7517/jcr.png[/img] I tried with this code: [code]Content pageContent = MgnlContext.getAggregationState().getMainContent(); PropertyIterator iter = pageContent.getJCRNode().getProperties(); [/code] but I only get some properties of DocumentaleForm folder, like Title and so on... Any ideas? P.s.: Why are info.magnolia.cms.core.Content and info.magnolia.cms.core.NodeData deprecated? I'm using Magnolia CE 4.5. Thanks in advance. Fabio -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=65ad3023-a6b9-4c68-90ec-d17fda557db0 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
