6 Replies Latest reply on Jan 26, 2010 3:08 PM by kito99

    sorting and external filtering - mutually exclusive?

      How can you have an exerternal column filter on a datatable - where you put an inputText in the header facet, and also have a sortable column where you put the column name in the header facet. Whe nI try to put more than one thing in the header facet of a column, it only show the later of the widgets.
      Here is my code. I want to put built-in sorting on all columns, builtin fitlering on some columns, and external filtering on other columns. Is this possible?

      <rich:extendedDataTable value="#{taxSummaryList.resultList}"
       var="tax" id="taxSumTbl" width="100%" height="400px"
       sortMode="single" columnsWidth="0*">
       <rich:column width="25" sortBy="#{tax.id}"
       filterBy="#{tax.id}" filterEvent="onkeyup">
       <f:facet name="header">
       <h:outputText value="Id" style="font-size:xx-small;"/>
       </f:facet>
       <s:link view="/tax_summary_item.xhtml" value="#{tax.id}">
       <f:param name="tsID" value="#{tax.id}" />
       </s:link>
       </rich:column>
       <rich:column width="85"
       sortBy="#{tax.processMonth}" filterBy="#{tax.processMonth}"
       filterEvent="onkeyup" filterValue="#{Filters.filterProcessMonth}">
       <f:facet name="header">
       <h:outputText value="Process Month" style="font-size:xx-small;" />
       </f:facet>
       <h:outputText value="#{tax.processMonth}" style="font-size:xx-small;">
       <f:convertDateTime type="date" dateStyle="short"/>
       </h:outputText>
       </rich:column>
       <rich:column width="85"
       sortBy="#{tax.percentOfUpb}" filterBy="#{tax.percentOfUpb}"
       filterEvent="onkeyup">
       <f:facet name="header">
       <h:outputText value="Percent of UPB" style="font-size:xx-small;" />
       </f:facet>
       <h:outputText value="#{tax.percentOfUpb}" style="font-size:xx-small;" >
       <f:convertNumber type="percent" maxFractionDigits="4" />
       </h:outputText>
      
       </rich:column>
      .
      .
      .