title: p:dataTable doesn't display each p:selectManyCheckbox selected
body: <p>Passed on the demo example of:</p>
  
  <p><a href="https://www.primefaces.org/showcase/ui/data/datatable/basic.xhtml" rel="nofollow noreferrer">https://www.primefaces.org/showcase/ui/data/datatable/basic.xhtml</a></p>
  
  <p>and I can show the complete example as primefaces-test-master and run as mvn clean jetty:run-exploded</p>
  
  <p>I've created a displays using 'p:selectManyCheckbox ' to show all my Year, Brand, Colour, Price &amp; Sold' as:</p>
  
  <pre><code>&lt;p:selectManyCheckbox id="carColumns" value="#{carService.selectedItems}"&gt;
              &lt;f:selectItem itemLabel="Year" itemValue="Year"/&gt;
              &lt;f:selectItem itemLabel="Brand" itemValue="Brand"/&gt;
              &lt;f:selectItem itemLabel="Colour" itemValue="Colour"/&gt;
              &lt;f:selectItem itemLabel="Price" itemValue="Price"/&gt;
              &lt;f:selectItem itemLabel="Sold" itemValue="Sold"/&gt;
              &lt;p:ajax listener="#{carService.selectedItemsChanged}" update="formCars:tblCars"/&gt;
   &lt;/p:selectManyCheckbox&gt;
  </code></pre>
  
  <p>It then displays the p:dataTable and each p:column of the 'car' plus the others:</p>
  
  <pre><code>&lt;p:dataTable id="tblCars" var="car" value="#{dtBasicView.cars}" paginator="true"
                       rows="100"
                       multiViewState="true"
                       paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                       rowsPerPageTemplate="5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100"
                       resizableColumns="true"
                       draggableColumns="true"
                       scrollWidth="100%"&gt;
  
              &lt;f:facet name="header"&gt;
                  &lt;p:commandButton id="columnTogglerCars" type="button" value="Columns" style="float:right"
                                   icon="pi pi-align-justify"/&gt;
                  &lt;p:columnToggler datasource="tblCars" trigger="columnTogglerCars"/&gt;
              &lt;/f:facet&gt;
  
              &lt;p:column headerText="Id" rendered="true"&gt;
                  &lt;h:outputText value="#{car.id}"/&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Year" sortBy="#{car.year}" rendered="#{carService.yearColumnRendered}"&gt;
                  &lt;h:outputText value="#{car.year}"/&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Brand" sortBy="#{car.brand}" rendered="#{carService.brandColumnRendered}"&gt;
                  &lt;h:outputText value="#{car.brand}"/&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Colour" sortBy="#{car.colour}" rendered="#{carService.colourColumnRendered}"&gt;
                  &lt;h:outputText value="#{car.colour}"/&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Price" sortBy="#{car.price}" rendered="#{carService.priceColumnRendered}"&gt;
                  &lt;h:outputText value="#{car.price}"/&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Sold" sortBy="#{car.sold}" rendered="#{carService.soldColumnRendered}"&gt;
                  &lt;h:outputText value="#{car.sold}"/&gt;
              &lt;/p:column&gt;
  &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>If I then alter the orders (up or down) displayed of p:column headerText on the selected items of p:selectManyCheckbox then sometimes will not actually displayed each of the 'Year, Brand, Colour, Price &amp; Sold' in dataTable.</p>
  
  <p>Am I doing something wrong with p:selectManyCheckbox and p:dataTable ?</p>
  
  <p>(1) Hows all five images 'Year, Brand, Colour, Price &amp; Sold'.
  (2) Show two pages 'Year, Brand'
  (3) Selects "Year, Brand, Colour but it only shows '"Year, Brand', though selected (Colour)!</p>
  
  <p><a href="https://i.stack.imgur.com/FrA6e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FrA6e.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Us0I8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Us0I8.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/1R2gm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1R2gm.png" alt="enter image description here"></a></p>
  
  <p>See the code at: <a href="https://www.dropbox.com/s/vfugj0fppejtti7/primefaces-test-master.zip?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/vfugj0fppejtti7/primefaces-test-master.zip?dl=0</a></p>