Hi,
I can't use contentPropertyManager anymore in user macros since i updated Confluence to 7.0.3.
Why?
I'm accessing contentPropertyManager like this:
#set ($containerManagerClass=$content.class.forName('com.atlassian.spring.container.ContainerManager'))
#set ($getInstanceMethod=$containerManagerClass.getDeclaredMethod('getInstance',null))
#set ($containerManager=$getInstanceMethod.invoke(null,null))
#set ($containerContext=$containerManager.containerContext)
#set ($contentPropertyManager=$containerContext.getComponent('contentPropertyManager'))
$contentPropertyManager.setStringProperty($content, "myProperty", "Stuff")
what i get is the plain line of code "$contentPropertyManager.setStringProperty($content, "myProperty", "Stuff")" as a string... in earlier versions it rendered the contentPropertyManager value i was asking for...
if someone have the same issue, you should use ContentProperties now. See https://community.developer.atlassian.com/t/cant-use-contentpropertymanager-anymore-in-user-macro-since-7-0-3/32956/3
Thanks a lot! It helped me!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.