<?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 Re: How to add Primefaces TreeTable / TreeGrid widget? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-primefaces-treetable-treegrid-widget/m-p/327077#M14078</link>
    <description>&lt;P&gt;If anyone has the same errors, we are using OpenFaces now, and it works without any problem.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2015 10:33:24 GMT</pubDate>
    <dc:creator>ioihanguren_</dc:creator>
    <dc:date>2015-11-03T10:33:24Z</dc:date>
    <item>
      <title>How to add Primefaces TreeTable / TreeGrid widget?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-primefaces-treetable-treegrid-widget/m-p/327076#M14077</link>
      <description>&lt;P&gt;We want to add a widget (treetable) that doesn't exist in Richfaces. We have added Primefaces jar to the nxserver/lib folder, but we had some problems, because in some pages both libraries (RF and PF) are loading their own jQuery with different versions (RF has 1.8.3 and PF 1.11).&lt;/P&gt;
&lt;P&gt;To solve this problem, we want both libraries to point to the same jQuery version, and we have followed this tutorial: &lt;A href="http://rik-ansikter.blogspot.com.es/2012/02/re-routing-jsf-resource-requests-with.html:" target="test_blank"&gt;http://rik-ansikter.blogspot.com.es/2012/02/re-routing-jsf-resource-requests-with.html:&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;We have created &lt;STRONG&gt;META-INF/richfaces/static-resource-mappings.properties&lt;/STRONG&gt; with this configuration:&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE&gt;org.richfaces\:jquery.js=org.richfaces.staticResource/jquery.js
primefaces\:jquery/jquery.js=org.richfaces.staticResource/jquery.js
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;We have added the jQuery 1.11 script in &lt;STRONG&gt;META-INF/resources/org.richfaces.staticResource/&lt;/STRONG&gt; directory.&lt;/LI&gt;
&lt;LI&gt;To correct jQuery deprecated methods used in RF, we also use jquery-migrate-1.2.1 script.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Now, everything works ok in normal pages, but when we access the page with PF widget, we get this error in the console of the browser:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Uncaught TypeError: Cannot call method 'remove' of null primefaces.js.faces?ln=primefaces:1
PrimeFaces.widget.BaseWidget.Class.extend.init primefaces.js.faces?ln=primefaces:1
PrimeFaces.widget.Button.PrimeFaces.widget.BaseWidget.extend.init primefaces.js.faces?ln=primefaces:16
prototype.(anonymous function) primefaces.js.faces?ln=primefaces:1
Class primefaces.js.faces?ln=primefaces:1
PrimeFaces.createWidget primefaces.js.faces?ln=primefaces:1
PrimeFaces.cw primefaces.js.faces?ln=primefaces:1
(anonymous function)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The error occurs when it tries to call:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;$(this.jqId+"_s").remove()
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;We know that this error happens when different versions of jQuery are loaded together, but we have checked that only one version is loaded. Why does the error still happen?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;How can we integrate Primefaces with Nuxeo in a proper way?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Is there any other library with TreeTable style widgets that we can use in Nuxeo? (If it is possible, with JSF support)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thank you in advance,&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2015 11:51:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-primefaces-treetable-treegrid-widget/m-p/327076#M14077</guid>
      <dc:creator>ioihanguren_</dc:creator>
      <dc:date>2015-06-22T11:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to add Primefaces TreeTable / TreeGrid widget?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-primefaces-treetable-treegrid-widget/m-p/327077#M14078</link>
      <description>&lt;P&gt;If anyone has the same errors, we are using OpenFaces now, and it works without any problem.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 10:33:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-primefaces-treetable-treegrid-widget/m-p/327077#M14078</guid>
      <dc:creator>ioihanguren_</dc:creator>
      <dc:date>2015-11-03T10:33:24Z</dc:date>
    </item>
  </channel>
</rss>

