Search code examples
ibm-sbt

sbt.properties with XPages


In the install guide was explained about the sbt.properties file, with references to the different environments. In XPages you normally use the xsp.properties files. Should I copy the references from sbt.properties to xsp.properties, to take advantage of these references. There was also mentioned to include these variable by %{variable name}. Is it possible to use such a syntax in my faces-config.xml in my Domino database?


Solution

  • The SBT code uses both managed beans and properties. In case of a Java EE server, and when JSF in not in the mix, we implemented from scratch. In case of XPages, we actually use what is already implemented by the XPages framework. This means that it uses the properties defined in xsp.properties, and the JSF managed beans, defined in the regular faces-config.xml. Because the JSF framework doesn't support the property substitution in the managed bean definition files, this functionality is not available to XPagesNow, in JSF, the property values can also be computed using an EL expression: #{...}. This is not as easy to use, but can help.