J'ai un riche: dataTable et un riche: dataScroller. Lorsque je clique sur le datascroller, mon dataTable ne s'actualise pas automatiquement pour afficher la bonne page. Si, cependant, j'appuie sur le bouton d'actualisation, la table de données affiche la page correcte.riche: dataScroller ne pas actualiser riche: dataTable dans JSF
Qu'est-ce que je fais mal?
Voici mon code:
<rich:dataTable id="applicantsTable"
binding="#{applicantListManBean.applicantsDataTable}"
value="#{applicantListManBean.applicantsList}" var="applicant"
rows="10" width="650">
<h:column>
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
<h:outputText value="#{applicant.name}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Email" />
</f:facet>
<h:outputText value="#{applicant.email}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Action" />
</f:facet>
<h:commandLink action="#{applicantListManBean.showApplicantProducts}"
rendered="true">
<h:graphicImage value="/images/icons/view.png" width="15" height="15"
alt="view" />
<f:setPropertyActionListener
target="#{applicantListManBean.tempApplicant}" value="#{applicant}" />
</h:commandLink>
<h:commandLink action="#{applicantListManBean.deleteApplicant}"
rendered="true">
<h:graphicImage value="/images/icons/delete.png" width="15"
height="15" alt="view" />
<f:setPropertyActionListener
target="#{applicantListManBean.tempApplicant}" value="#{applicant}" />
</h:commandLink>
</h:column>
</rich:dataTable>
<rich:datascroller id="applicantsScroller" for="applicantsTable"
reRender="sc1" maxPages="7" page="#{applicantListManBean.scrollerPage}" />
MISE À JOUR: erreur Javascript joint:
je l'ai enlevé, mais pas de chance ... –
voir votre firefox javascript console pour toute erreur js et leur donne ici – Bozho
Merci, voir ci-joint . –