<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JSF binding in Nuxeo widgets in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/jsf-binding-in-nuxeo-widgets/m-p/320253#M7254</link>
    <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;I would like to be able to index the binding using a value from the layout.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;h:inputText ... binding="#{AutoCodify.bindingProperty[widget.id]}" /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With a property using a Map&amp;lt;String, UIInput&amp;gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;public Map&amp;lt;String, UIInput&amp;gt; getBindingProperty() {
...
}

public void setBindingProperty(Map&amp;lt;String, UIInput&amp;gt; m) {
...
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2012 21:30:44 GMT</pubDate>
    <dc:creator>fdgonthier_</dc:creator>
    <dc:date>2012-07-17T21:30:44Z</dc:date>
    <item>
      <title>JSF binding in Nuxeo widgets</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/jsf-binding-in-nuxeo-widgets/m-p/320253#M7254</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;I would like to be able to index the binding using a value from the layout.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;h:inputText ... binding="#{AutoCodify.bindingProperty[widget.id]}" /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With a property using a Map&amp;lt;String, UIInput&amp;gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;public Map&amp;lt;String, UIInput&amp;gt; getBindingProperty() {
...
}

public void setBindingProperty(Map&amp;lt;String, UIInput&amp;gt; m) {
...
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2012 21:30:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/jsf-binding-in-nuxeo-widgets/m-p/320253#M7254</guid>
      <dc:creator>fdgonthier_</dc:creator>
      <dc:date>2012-07-17T21:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: JSF binding in Nuxeo widgets</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/jsf-binding-in-nuxeo-widgets/m-p/320254#M7255</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 20:51:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/jsf-binding-in-nuxeo-widgets/m-p/320254#M7255</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-07-18T20:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: JSF binding in Nuxeo widgets</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/jsf-binding-in-nuxeo-widgets/m-p/320255#M7256</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2012 21:18:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/jsf-binding-in-nuxeo-widgets/m-p/320255#M7256</guid>
      <dc:creator>fdgonthier_</dc:creator>
      <dc:date>2012-09-03T21:18:51Z</dc:date>
    </item>
  </channel>
</rss>

