【问题标题】:How to remove filter components row from an extendedDataTable in richfaces如何从richfaces中的extendedDataTable中删除过滤器组件行
【发布时间】:2014-03-22 04:01:36
【问题描述】:

我有一个 extendedDataTable 包含这样的列

<rich:column id="exampleId"
             filter="#{exampleFilterBean.exampleFilterMethod}"
             filterValue="#{exampleFilterBean.exampleFilterValue">
             <f:facet name="header" >
                  <h:outputText value="Header" />
             </f:facet>
             <h:outputText value="#{exampleFilterBean.example.exampleAttribute}" />

我不想显示带有过滤器框的控制栏,因为我正在使用外部过滤器和 JavaScript API。

【问题讨论】:

    标签: javascript jsf-2 richfaces filtering richdatatable


    【解决方案1】:

    您可以通过添加 css 命令轻松隐藏它们:

    .rf-edt-flt-c { display:none; }
    

    当您删除filter/filterattribute - 属性时,输入框也将被删除

    第三种方法是通过 javascript 使用扩展数据表 onready-attribute 删除它们

    onready="$('.rf-edt-flt-c', this).each(
                    function(n){ 
                        this.parentNode.removeChild(this);
                     });"
    

    希望对你有帮助...

    【讨论】:

      猜你喜欢
      • 2011-05-26
      • 1970-01-01
      • 2021-06-16
      • 1970-01-01
      • 1970-01-01
      • 2011-07-23
      • 2012-02-22
      • 1970-01-01
      • 2011-09-03
      相关资源
      最近更新 更多