cancel
Showing results for 
Search instead for 
Did you mean: 

JSF binding in Nuxeo widgets

fdgonthier_
Confirmed Champ
Confirmed Champ

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.

2 REPLIES 2

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

Hi,

fdgonthier_
Confirmed Champ
Confirmed Champ

I was using Nuxeo 5.5. Sadly, I never got that to work and used a very ugly ad-hoc way for validating. I would still be very interesting in knowning the precise workaround for that kind of problem as it could be useful for future development.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.