<?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: Paging in vocabulary editor? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327397#M14398</link>
    <description>&lt;P&gt;For very large vocabulary I had success by replacing the nxu repeat in view_directory.xhtml template with an a4j:repeat and rich:datascroller like follows. I does not makes database query faster, but should shorten considerably page loading time and works well for ~2000 entries vocabularies.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;a4j:form rendered="#{!empty directoryUIActions.currentDirectoryEntries}"
          id="viewDirectoryEntries"&amp;gt;

  &amp;lt;rich:datascroller align="center" for="directoryData"
                     reRender="viewDirectoryEntries"
                     renderIfSinglePage="false" /&amp;gt;
  &amp;lt;table class="dataOutput"&amp;gt;
    &amp;lt;tbody&amp;gt;
      &amp;lt;a4j:repeat id="directoryData" rows="10" var="entry" rowKeyVar="index"
                  value="#{directoryUIActions.currentDirectoryEntries}"&amp;gt;
        &amp;lt;nxl:layout name="#{currentVoc.layout}" mode="view_list"
                    value="#{entry}" /&amp;gt;
      &amp;lt;/a4j:repeat&amp;gt;
    &amp;lt;/tbody&amp;gt;
  &amp;lt;/table&amp;gt;
  &amp;lt;rich:datascroller align="center" for="directoryData"
                     reRender="viewDirectoryEntries"
                     renderIfSinglePage="false" /&amp;gt;

&amp;lt;/a4j:form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 31 Aug 2012 19:53:27 GMT</pubDate>
    <dc:creator>simpoir_</dc:creator>
    <dc:date>2012-08-31T19:53:27Z</dc:date>
    <item>
      <title>Paging in vocabulary editor?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327394#M14395</link>
      <description>&lt;P&gt;Is it possible to do paging in the vocabulary editor?&lt;/P&gt;
&lt;P&gt;For one client, the vocabulary is huge and sometimes create a timeout (firefox) while loading.&lt;/P&gt;
&lt;P&gt;Is there a way to define the vocabulary so there is paging in the editor?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2012 19:45:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327394#M14395</guid>
      <dc:creator>patrek</dc:creator>
      <dc:date>2012-07-04T19:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Paging in vocabulary editor?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327395#M14396</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;There's currently no easy way to do that as directory API does not currently support pagination, see &lt;A href="https://jira.nuxeo.com/browse/NXP-5301"&gt;NXP-5301&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;And the page displaying directory entries is not optimized: it was the first one designed to use layouts for listings, and it would need an upgrade to rely on content views.&lt;/P&gt;
&lt;P&gt;But you could gain something (maybe enough) by overriding the template at /directory/view_directory.xhtml to implement pseudo-pagination for big vocabularies, at least at the UI level: the rendered HTML page would be lighter. Especially the nxu:repeat tag can be costly, and it should not be needed anymore for layouts rendering (using a c:forEach tag should be enough).&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2012 21:17:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327395#M14396</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-07-04T21:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Paging in vocabulary editor?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327396#M14397</link>
      <description>&lt;P&gt;I noted the patch for NXP-9668, that replaces nxu&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2012 23:07:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327396#M14397</guid>
      <dc:creator>ycmorissette_</dc:creator>
      <dc:date>2012-08-28T23:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Paging in vocabulary editor?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327397#M14398</link>
      <description>&lt;P&gt;For very large vocabulary I had success by replacing the nxu repeat in view_directory.xhtml template with an a4j:repeat and rich:datascroller like follows. I does not makes database query faster, but should shorten considerably page loading time and works well for ~2000 entries vocabularies.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;a4j:form rendered="#{!empty directoryUIActions.currentDirectoryEntries}"
          id="viewDirectoryEntries"&amp;gt;

  &amp;lt;rich:datascroller align="center" for="directoryData"
                     reRender="viewDirectoryEntries"
                     renderIfSinglePage="false" /&amp;gt;
  &amp;lt;table class="dataOutput"&amp;gt;
    &amp;lt;tbody&amp;gt;
      &amp;lt;a4j:repeat id="directoryData" rows="10" var="entry" rowKeyVar="index"
                  value="#{directoryUIActions.currentDirectoryEntries}"&amp;gt;
        &amp;lt;nxl:layout name="#{currentVoc.layout}" mode="view_list"
                    value="#{entry}" /&amp;gt;
      &amp;lt;/a4j:repeat&amp;gt;
    &amp;lt;/tbody&amp;gt;
  &amp;lt;/table&amp;gt;
  &amp;lt;rich:datascroller align="center" for="directoryData"
                     reRender="viewDirectoryEntries"
                     renderIfSinglePage="false" /&amp;gt;

&amp;lt;/a4j:form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Aug 2012 19:53:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327397#M14398</guid>
      <dc:creator>simpoir_</dc:creator>
      <dc:date>2012-08-31T19:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Paging in vocabulary editor?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327398#M14399</link>
      <description>&lt;P&gt;Thanks this is interesting waiting the clean implementation.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2012 11:31:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327398#M14399</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-09-03T11:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Paging in vocabulary editor?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327399#M14400</link>
      <description>&lt;P&gt;Ask and you shall receive. Implementing contrib on github&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 17:04:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/paging-in-vocabulary-editor/m-p/327399#M14400</guid>
      <dc:creator>simpoir_</dc:creator>
      <dc:date>2012-09-04T17:04:49Z</dc:date>
    </item>
  </channel>
</rss>

