【发布时间】:2010-12-30 17:32:14
【问题描述】:
我有一个rich:dataTable 和一个rich:dataScroller。当我单击 datascroller 时,我的 dataTable 不会自动刷新以显示正确的页面。但是,如果我按下刷新按钮,dataTable 会显示正确的页面。
我做错了什么?
这是我的代码:
<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}" />
更新:附加 Javascript 错误:
【问题讨论】:
标签: java jsf jakarta-ee refresh richfaces