Closed ebruchez closed 1 week ago
$control
notationFor the $control
notation, the expression must be processed through replaceVarReferencesWithFunctionCallsFromString()
. It is desirable not to do this at each evaluation of a button's visibility, which means this should be cached.
An obvious place to do this is in the properties, as we cache a result associated with that.
Cool, @avernet just added replaceVarReferencesWithFunctionCallsFromProperty()
:)
This started happening since we introduced
fr:buttons-bar
. The evaluation context of the visibility expressions is now inside an XBL component. We usexxf:evaluate()
for those.Considering a way to tell to evaluate the expression in a given XForms context:
xxf:evaluate()
We only document a single parameter to
xxf:evaluate()
, although on the JVM we just delegate tosaxon:evaluate()
which can take more parameters. On JS, we only implement one parameter, the XPath expression as string.+1 from customer