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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.