I would like to know if it's possible to use JSF bindings inside a Nuxeo widget. A binding is typically done on a single property. If a widget is used several times in Nuxeo, it means the binding is reused and that is obviously going to lead to side-effects in many cases.
I would like to be able to index the binding using a value from the layout.
<h:inputText ... binding="#{AutoCodify.bindingProperty[widget.id]}" />
With a property using a Map<String, UIInput>.
public Map<String, UIInput> getBindingProperty() {
...
}
public void setBindingProperty(Map<String, UIInput> m) {
...
}
The EL language specifications seems to indicate it is possible but I could never get it to work in Nuxeo. I could find no example of that done anywhere in Nuxeo or anywhere else. This might be related to the version of JSF I am using. I have spent several days trying to find a workaround but could not.