title: PrimeFaces How to represent Label insted of value in p:datatable cells
body: <p>hi every one I have this scenario :</p>
  
  <p>i am using primefaces data table <code>p:datatable</code> and it receives a list from managed bean...
  please look for this sample : and pay attention to the header "status"</p>
  
  <pre><code>&lt;p:datatable styleClass="table1" id="listTable" var="t" value="{testBean.elements}"&gt;
      &lt;p:column headerText="Request No."&gt;
         &lt;h:outputText value="#{t.part_request_no}"&gt;&lt;/h:outputText&gt;
      &lt;/p:column&gt;
      &lt;p:column headerText="Request No."&gt;
         &lt;h:outputText value="#{t.part_request_date}"&gt;&lt;/h:outputText&gt;
      &lt;/p:column&gt;
      &lt;!--please pay attention here --&gt;
      &lt;p:column headerText="status"&gt;
          &lt;h:outputText value="#{t.part_status}"&gt;&lt;/h:outputText&gt;
      &lt;/p:column&gt;
  &lt;/p:datatable&gt;
  </code></pre>
  
  <p>the result looks like : this</p>
  
  <pre><code>Request No.  | Request Date | Status |
      1        |   2013-02-02 |   1    |
      2        |   2013-01-01 |   2    |
      3        |  2013-4-23   |   5    |
  </code></pre>
  
  <p>my Question is : representing 1, 2, 5 is a shame. so i prefer to view statuses like</p>
  
  <ul>
  <li>1 : New</li>
  <li>2 : Rejected</li>
  <li>5 : Canceled.</li>
  </ul>
  
  <p><strong>the result i require to be like this</strong> </p>
  
  <pre><code>Request No.  | Request Date | Status   |
      1        |   2013-02-02 |   New    |
      2        |   2013-01-01 | Rejected |
      3        |   2013-4-23  | Canceled |
  </code></pre>
  
  <p>any ideas ????
  thank you ....</p>