我有一个ui:repeat循环来执行一些分页:
<h:panelGroup layout="block" style="height: 25px;text-align: right" id="Prod-printed-paging">
<ui:repeat value="#{upBean.pagesProdPrinted}"
id="Prod-printed-page-loop"
var="cppage" varStatus="cpstatus" >
<h:panelGroup rendered="#{cpstatus.first and not (upBean.pageProdPrinted == '1')}">
<h:commandLink id="previous" style="color: #390">#{appMsg.previous}
<f:ajax listener="#{upBean.previousPageProdPrinted}"
event="click"
render=":form-myProd:get-printed-Prod :form-myProd:Prod-printed-paging"/>
</h:commandLink> |
</h:panelGroup>
<h:panelGroup rendered="#{upBean.pageProdPrinted eq cppage}">
<h:panelGroup style="font-weight: bold">#{cppage}</h:panelGroup>
</h:panelGroup>
<h:panelGroup rendered="#{not (upBean.pageProdPrinted eq cppage)}">
<h:commandLink>
<h:panelGroup>#{cppage}</h:panelGroup>
<f:ajax listener="#{upBean.goToPagePrinted(cppage)}"
event="click"
render=":form-myProd:get-printed-Prod :form-myProd:Prod-printed-paging"/>
</h:commandLink>
</h:panelGroup>
<h:panelGroup rendered="#{cpstatus.last and not (upBean.pageProdPrinted == upBean.nbPageProdPrinted)}">
| <h:commandLink id="next" style="color: #390">#{appMsg.next}
<f:ajax listener="#{upBean.nextPageProdPrinted}"
event="click"
render=":form-myProd:get-printed-Prod :form-myProd:Prod-printed-paging"/>
</h:commandLink>
</h:panelGroup>
</ui:repeat>
</h:panelGroup>
这样显示得很好(如果我们在页面上&gt;页面n.1):
上一页| 1 2 3 4 |下
所有链接都运行正常(触发ManagedBean操作),但“上一个:链接。点击”上一个“似乎做了一些事情: - 我看到它发送了一个部分请求(来自firebug Console选项卡)但是“previousPageProdPrinted”的断点没有被捕获。
我有一个h:表单,而不是嵌套在另一个表单中。有什么办法可以跟踪这个问题吗?
环境: - Glassfish 3.1 - Mojarra 2.1.3(FCS b02)
感谢您的阅读, JSC