title: Column.setFilterBy() and Column.setSortBy() what type of parameter should i give?
body: <p>i'm trying to set the filtering and sorting for a column of my datatable dynamically from a managed bean, but i had a problem regarding the value that i should give to those methods, here is the code i tried :</p>
  
  <pre><code>  /*this is the XHTML that i try to do in Java code :
      &lt;p:column style="text-align:center;"
       width="10"
       id="etatCol"
       filterBy="#{exam.examen.studyPatientState}"
       filterOptions="#{examenListBean.etatExamOptions}"  
       filterMatchMode="exact"
       headerText="Etat"
       filterStyle="dispo"
       sortBy="#{exam.examen.studyPatientState}" 
       rendered="true"&gt; 
  
       &lt;p:graphicImage value="/images/study_State_icons/#{exam.examen.studyPatientState}.png"/&gt;
       &lt;/p:column&gt;
      */
  
      //Patstate
      Column patSate = (Column) application.createComponent(Column.COMPONENT_TYPE);
      patSate.setHeaderText("Etat");
      patSate.setWidth("10");
      patSate.setId("etatCol");
      patSate.setFilterBy("#{exam.examen.studyPatientState}");
      patSate.setFilterOptions(etatExamOptions);
      patSate.setFilterMatchMode("exact");
      patSate.setFilterStyle("dispo");
      patSate.setSortBy("#{exam.examen.studyPatientState}");
      patSate.setRendered(true);
  
      GraphicImage patsategraph = (GraphicImage) application.createComponent(GraphicImage.COMPONENT_TYPE);
      ValueExpression patsategraphExp = ef.createValueExpression(elc, "/images/study_State_icons/#{exam.examen.studyPatientState}.png", Object.class);
      patsategraph.setValueExpression("value", patsategraphExp);
      patSate.getChildren().add(patsategraph);
      table.getChildren().add(patSate);
  </code></pre>
  
  <p>everything is rendered well except the column filter,it  won't show a list of options that i provide :</p>
  
  <pre><code>etatExamOptions = createFilterOptions();
  
  private SelectItem[] createFilterOptions() {
  
      SelectItem[] options = new SelectItem[10];
  
      options[0] = new SelectItem("", "X0");
      options[1] = new SelectItem(0, "X1");
      options[2] = new SelectItem(1, "X2");
      options[3] = new SelectItem(2, "X3");
      options[4] = new SelectItem(3, "X4");
      options[5] = new SelectItem(4, "X5");
      options[6] = new SelectItem(5, "X6");
      options[7] = new SelectItem(6, "X7");
      options[8] = new SelectItem(7, "X8");
      options[9] = new SelectItem(8, "X9");
  
      return options;
  }
  </code></pre>