Richfaces dataTable工作正常,但ExtendedDataTable不显示数据
我们正在使用Richfaces 4.1.0,我正在尝试使用extendedDataTable。我用dataTable启动(为了简单起见)。下面的代码工作正常,并按照预期在表中显示我的数据。
We are using Richfaces 4.1.0, and I am trying to use an extendedDataTable. I started (for simplicity's sake) with dataTable. The code below works fine, and shows my data in a table, as expected.
<rich:dataTable value="#{recipientBean.recipientList}" var="recipient" selectionMode="none" id="recipientTable">
<rich:column sortable="false" id="col_1" label="Name">
<f:facet name="header">
<h:outputText value="Name" id="name" />
</f:facet>
<h:outputText value="#{recipient.name}" id="rec_name" />
</rich:column>
<!-- More columns below, removed for post brevity -->
</rich:dataTable>
我们期待大量的记录,所以我们希望表可以滚动。我以为我可以将dataTable更改为extendedDataTable,但是当我这样做时,根本就没有显示任何数据。
We are expecting a large number of records, so we would like the table to be scrollable. I thought that I could just change the dataTable to extendedDataTable, however, when I do that, no data shows up at all.
我刚刚开始检查Chrome中的元素,突然数据显现。所以当我检查元素时,我看到html中的值,但是当页面加载时不显示。
I just started to inspect the element in Chrome, and all of a sudden the data showed up. So when I inspect the element, I see the values in the html, but they don't display when the page loads.
这可能是一个风格问题吗?缺少一个属性(扩展数据表所需的东西,但数据表不需要)?
Could this be a style issue? An attribute that is missing (something that is needed for extendedDataTable, but not needed for dataTable)?
我还缺少什么?
编辑:我有一个richDataTable中的extendedDataTable:tabPanel。当我删除rich:tabPanel它正确显示(但我真的需要tabPanel)。这是一个已知的问题吗?
I do have this extendedDataTable inside a rich:tabPanel. When I remove the rich:tabPanel it displays correctly (but I really need the tabPanel). Is this a known issue?
EDIT2:如果它位于rich:tabPanel的第一个选项卡上,它会正确显示。
It does display correctly if it is on the first tab of the rich:tabPanel.
我发现了一个关于joss站点的错误报告。解决的办法是使用AJAX的交换机类型,而不是使用选项卡面板的客户端。
I found a bug report on the joss site. The work around was to use the switch type of Ajax instead of client for the tab panel.