title: Create multiple column <p:selectOneMenu>
body: <p>I am new to PrimeFaces and JSF.
  i am trying to create  to display multiple columns but i always get a single column from the data in the database. I won't a situation where the drop down (Combo Style) will show multiple columns but one column will set as the value column.</p>
  
  <p>The xhtml portion is shown below. the {investmentProductsController.accountInfo} is a list from my bean. thank you.</p>
  
  <pre><code>                    &lt;p:outputLabel value="#{products.CreateInvestmentProductsLabel_totalCostGL}" for="totalCostGL" /&gt;
                      &lt;p:selectOneMenu id="totalCostGL" value="#{investmentProductsController.selected.totalCostGL}" editable="true" required="true" requiredMessage="#{products.CreateInvestmentProductsRequiredMessage_totalCostGL}"&gt;
  
  
                          &lt;f:selectItem itemLabel="" itemValue="" /&gt;
                          &lt;f:selectItems  value="#{investmentProductsController.accountInfo}" var="acc"&gt;
  
                              &lt;p:column&gt;
                                  &lt;h:outputText value="#{acc.accountID}" /&gt;
                              &lt;/p:column&gt;
  
                              &lt;p:column &gt;
                                  &lt;h:outputText value="#{acc.accountNumber}" /&gt;
                              &lt;/p:column&gt;
  
                              &lt;p:column &gt;
                                  &lt;h:outputText value="#{acc.accountName}" /&gt;
                              &lt;/p:column&gt;
                          &lt;/f:selectItems&gt;
  
                      &lt;/p:selectOneMenu&gt;
  </code></pre>