How to print local environment properties in Nuxeo

I added a custom property to the nuxeo.conf file. I want to print this custom property in a .xhtml file using EL expressions under web/nuxeo.war/widgets/summary directory. Currently what I have below does not work…

nuxeo.conf my.custom.field=Some Text

file.xhtml

Thank you in advance, Joanna

0 votes

1 answers

1949 views

ANSWER



Hi,

You should be able to use

#{frameworkPropertyActions.getProperty('my.custom.field')}

in your xhtml file.

2 votes



Thank you, Thomas! I just had to replace the double quotes with single quotes due to a parsing error. <h:outputtext value="#{frameworkPropertyActions.getProperty('my.custom.field')}"/>
01/17/2013

Whoops, sorry, I've updated my answer.
01/17/2013