title: how can i pass a DataTable as a parameter from view to backing bean?
body: <p>I'm implementing a custom pdf exporter, but i need to pass my datatable from the view to my backing bean, but i dont know how to do it.</p>
  
  <p>in the view i'll have a commandlink that is going to look like this:</p>
  
  <pre><code>  &lt;h:commandLink action="#{procesos.exportPDF( mytable , 'procesos')}"&gt;
       &lt;/h:commandLink&gt;
  </code></pre>
  
  <p>this is the method that receive a DataTable as a parameter:</p>
  
  <pre><code>public void exportPDF(DataTable table, String filename) throws IOException {
          FacesContext context = FacesContext.getCurrentInstance();
          Exporter exporter = new CustomPDFExporter();
          exporter.export(context, table, filename, false, false, "iso-8859-1", null, null);
          context.responseComplete();
      }
  </code></pre>
  
  <p>anyway.. what i want to do is to modify column width with a custompdf exporter because dataexporter and the exporter extension of primefaces does not allow that function, so if someone knows or have a custom pdf exporter that allow that it would be much appreciated to show a little bit (better all ) of the code :)!</p>
  
  <p>thanks.  </p>