java - 丰富 :scrollableDataTable is generating an extra column

标签 java jsf richfaces jboss7.x ajax4jsf

我正在使用以下代码:

<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/

相关文章:

java - RichFaces - 组合框中包含字母或组合的建议

java - 按 Enter 关闭对话框

java - 发送 POST 请求或尝试更新时出现 org.springframework.http.converter.HttpMessageNotReadableException

css 不适用于 html 组件

jsf - WebSphere 8 : el-api. jar(在应用程序中)与 javax.j2ee.el.jar(在 WS 中)冲突

jsf - 显示开/关 HTML 的不同区域

java - 如何从损坏的名称中获取方法参数列表?

java - 如何让 java webservices 使用扩展类

java - Scope 如何影响 Bean 的对象?

java - 在rich :editor in richfaces定义不同的样式