2 Replies Latest reply on Mar 18, 2009 4:35 PM by Nick Belaevski

    dataTableScroller + repeat

    eklam Newbie

      Hello All,

      I am trying to use a repeat with a dataTableScroller, but it does not work properly... I tried to add some ajaxRendered="true" in the a4j:form, a4j:outputPanel and in the a4j:repeat, it worked when I use session scope, but I would like to use request one...

      Anyonem has any idea ?

      <a4j:outputPanel id="pneListMsg" ajaxRendered="false" layout="none" rendered="true">
       <h:inputHidden id="hdTopico" value="#{forumTemaMB.idTopicoSelecionado}" />
       <table class="tab-post">
       <thead>
       <th width="955px" colspan="2" class="th-tit">
       #{forumTemaMB.topicoSelecionado.titulo}
       <span class="data">
       <h:outputText value="#{forumTemaMB.topicoSelecionado.dataCriacao}">
       <f:convertDateTime pattern="HH:mm - dd 'de' MMMMM 'de' yyyy" />
       </h:outputText>
       </span>
       </th>
       </thead>
       <tbody>
       <a4j:repeat rows="10" ajaxRendered="false" id="repPosts" value="#{forumTemaMB.listMensagens}" var="item">
       <tr>
       <td width="150px" class="info">
       <a>
       <h:graphicImage rendered="#{item.criador.foto != null}" value="#{item.criador.foto.caminho}" style="width: 139px; height: 129px;"/>
       <h:graphicImage rendered="#{item.criador.foto == null}" value="/images/forum/ndisp.jpg" style="width: 139px; height: 129px;"/>
       </a>
       <span style="padding: 5px; padding-left:8px; color: #0296f5;">#{item.criador.nome}</span>
       <span class="data">
       <h:outputText value="#{item.dataCriacao}">
       <f:convertDateTime pattern="H:mm - dd MMM yyyy" />
       </h:outputText>
       </span>
       </td>
       <td width="805px" style="vertical-align: top; font-size:12px;">
       <h:outputText value="#{item.conteudo}" escape="false" />
       </td>
       </tr>
       </a4j:repeat>
       </tbody>
       </table>
       </a4j:outputPanel>
       <a4j:outputPanel id="pnePag" ajaxRendered="false" layout="block" styleClass="legenda" rendered="#{forumTemaMB.numeroMensagens > 10}" style="margin-left: 45px;">
       <rich:datascroller style="width:100%; float: left;" id="listBancoBP" align="center" for="repPosts" maxPages="10" renderIfSinglePage="false"/>
       </a4j:outputPanel>


        • 1. Re: dataTableScroller + repeat
          eklam Newbie

          I also tried with richDataTable and nothing, using the phaseTracker I can see:

          15:44:59,562 ERROR [STDERR] Mar 18, 2009 3:44:59 PM org.exadel.jsf.PhaseTracker beforePhase
          INFO: BEFORE RESTORE_VIEW 1
          15:44:59,593 ERROR [STDERR] Mar 18, 2009 3:44:59 PM org.exadel.jsf.PhaseTracker afterPhase
          INFO: AFTER RESTORE_VIEW 1
          15:44:59,593 ERROR [STDERR] Mar 18, 2009 3:44:59 PM org.exadel.jsf.PhaseTracker beforePhase
          INFO: BEFORE APPLY_REQUEST_VALUES 2
          15:44:59,593 ERROR [STDERR] Mar 18, 2009 3:44:59 PM org.exadel.jsf.PhaseTracker afterPhase
          INFO: AFTER APPLY_REQUEST_VALUES 2
          15:44:59,593 ERROR [STDERR] Mar 18, 2009 3:44:59 PM org.exadel.jsf.PhaseTracker beforePhase
          INFO: BEFORE PROCESS_VALIDATIONS 3
          15:45:00,062 ERROR [STDERR] Mar 18, 2009 3:45:00 PM org.exadel.jsf.PhaseTracker afterPhase
          INFO: AFTER PROCESS_VALIDATIONS 3
          15:45:00,062 ERROR [STDERR] Mar 18, 2009 3:45:00 PM org.exadel.jsf.PhaseTracker beforePhase
          INFO: BEFORE UPDATE_MODEL_VALUES 4
          15:45:00,062 ERROR [STDERR] Mar 18, 2009 3:45:00 PM org.exadel.jsf.PhaseTracker afterPhase
          INFO: AFTER UPDATE_MODEL_VALUES 4
          15:45:00,062 ERROR [STDERR] Mar 18, 2009 3:45:00 PM org.exadel.jsf.PhaseTracker beforePhase
          INFO: BEFORE INVOKE_APPLICATION 5
          15:45:00,062 ERROR [STDERR] Mar 18, 2009 3:45:00 PM org.exadel.jsf.PhaseTracker afterPhase
          INFO: AFTER INVOKE_APPLICATION 5
          15:45:00,062 ERROR [STDERR] Mar 18, 2009 3:45:00 PM org.exadel.jsf.PhaseTracker beforePhase
          INFO: BEFORE RENDER_RESPONSE 6
          15:45:00,125 ERROR [STDERR] Mar 18, 2009 3:45:00 PM org.exadel.jsf.PhaseTracker afterPhase
          INFO: AFTER RENDER_RESPONSE 6

          But the dataTable is no updated ...

          • 2. Re: dataTableScroller + repeat
            Nick Belaevski Master

            Hello,

            As security/optimization measure, non-rendered components are not processed. So it seems to me that rich:datascroller is non-rendered on the subsequent request and thus not processed. Solutions:

            1. Seam conversation-scoped beans
            2. a4j:keepAlive