我在选项卡式面板中有一个数据表。无论寻呼机是在选项卡式面板内还是外部,此数据表的寻呼机控件都不会刷新。但数据表正在毫无问题地推进到下一页。有人遇到过这个问题吗?这是一个示例代码。
<?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>
答案 0 :(得分:0)
如果您设置partialRefresh =“false”,则寻呼机将与页面上的所有其他元素一起刷新。