1 Reply Latest reply on Mar 16, 2011 9:32 AM by mp911de

    Queue rendering of several data tables

    ckraus

      Hi,

       

      I want to queue the rendering of several <rich:dataTable> within a view.

      To do this, I want to prepare a Map with a list of objects as value. For each Map.Entry a <rich:dataTable> should be rendered.

       

      Something like this:

       

      <ui:repeat value="#{objectMap}" var="_entry">

           <rich:dataTable value="#{_entry.getValue()}" var="_property">

                <rich:column>

                     <h:outputText value="#{_property.name}"/

                </rich:column>

           </rich:dataTable>

      </ui:repeat>

       

      Because this could take a very long time, I thought it would be a cool idea, to queue the rendering of the data tables. What I mean is, that after each iteration of a Map.Entry, the data table should be rendered immediatly. Some kind of an asynchronous rendering. Don't know if this is possible...

      Hope that someone has a smooth idea of how to implement something like this.

       

      Thanks in advance,

      Chris

        • 1. Queue rendering of several data tables
          mp911de

          Hi Chris,

          basic RF does only one rerender for all given Id's. But you can create multiple a4j:jsFunction's with one rerender per function. Then you trigger a custom script to invoke each a4j:jsFunction.

           

          Best regards,

          Mark