我在选项卡式面板中有一个数据表。无论分页器是在选项卡式面板内部还是外部,此数据表的分页器控件都不会自行刷新。但是数据表毫无问题地前进到下一页。有没有人遇到过这个问题?这是一个示例代码。
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:tabbedPanel id="tabbedPanel1">
<xp:this.selectedTab><![CDATA[#{javascript:viewScope.selectedTab?viewScope.selectedTab:"tabPanel1"}]]></xp:this.selectedTab>
<xp:pager layout="Previous Group Next" partialExecute="true"
partialRefresh="true" for="dataTable1" id="pager1">
</xp:pager>
<xp:tabPanel label="New Tab 1" id="tabPanel1">
<xp:dataTable id="dataTable1" rows="2" indexVar="i">
<xp:this.value><![CDATA[#{javascript:["1","2","3","4","5","6"]}]]></xp:this.value>
<xp:column id="column1">
<xp:text escape="true" id="computedField1" value="#{javascript:i}">
</xp:text>
</xp:column>
</xp:dataTable>
</xp:tabPanel>
<xp:tabPanel label="New Tab 2" id="tabPanel2"></xp:tabPanel>
<xp:tabPanel label="New Tab 3" id="tabPanel3"></xp:tabPanel>
<xp:tabPanel label="New Tab 4" id="tabPanel4"></xp:tabPanel>
</xp:tabbedPanel>
</xp:view>