gpt4 book ai didi

java - 丰富 :scrollableDataTable is generating an extra column

转载 作者:行者123 更新时间:2023-12-01 14:48:31 29 4
gpt4 key购买 nike

我正在使用以下代码:

<rich:scrollableDataTable value="#{allActiveUsers}" 
var="user"
rows="20"
>
<a4j:support event="onRowClick"
action="#{editUser.prepareSelectionOfUser(user)}"
reRender="editUserForm"
/>

<f:facet name="header">
<h:outputText value="Active Users" />
</f:facet>
<h:column>

<f:facet name="header">Username</f:facet>
<h:outputText value="#{user.login}" />
</h:column>
<h:column>
<f:facet name="header">Full Name</f:facet>
<h:outputText value="#{user.name}" />
</h:column>
<h:column>
<f:facet name="header">Email address</f:facet>
<h:outputText value="#{user.email}" />
</h:column>
<f:facet name="footer">
<rich:datascroller renderIfSinglePage="false" maxPages="5" />
</f:facet>

</rich:scrollableDataTable>

问题在于它无缘无故地产生白色幽灵柱。有谁知道我怎样才能摆脱它?

提前致谢。

最佳答案

来自 richfaces 论坛:

This column is used to fill table space when overall width of columns is not enough to cover table space. When columns are resized, they are taking space from this extra column.

根据this thread在 richfaces 论坛上,这是设计使然的。它的发生是为了补偿滚动期间表/列大小的调整。要修复此问题,请手动设置列上的 width 属性。

另请参阅this thread

关于java - 丰富 :scrollableDataTable is generating an extra column,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15136035/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com