首页 > 解决方案 > af:table 在将数据添加到表后未对齐标题

问题描述

我有一个 af:table 如下:

<f:facet name="first" >
<af:panelCollection id="pc1"   styleClass="AFStretchWidth"
binding="#{pageFlowScope.bean.pg}">
<af:table value="#{bindings.list.collectionModel}"
 var="row" columnStretching="multiple"
 selectionListener="#{pageFlowScope.bean.selectListner}"
 selectedRowKeys="#{bindings.list.collectionModel.selectedRow}"
 rowSelection="single" width="100%"
 rows="#{bindings.list.rangeSize}"
 autoHeightRows="1">
 <af:column  width="21%"
   headerText="#{Bundle.data1}"> 
   <af:outputText value="#{row.data1}" id="ot2"/>   
   </af:column>
<af:column  width="20%" 
 headerText="#{Bundle.data2}">
<af:outputText value="#{row.data2}"
id="ot1"/>

其他列也是如此

问题是在我向表格中插入多行后,出现滚动条,并且标题与内容未对齐,如下图所示:

在此处输入图像描述

标签: oracle-adf

解决方案


推荐阅读